/* FONTS */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Cherokee&display=swap');
@font-face { font-family: 'Noto Sans Cherokee'; src: url('font/NotoSansCherokee-VariableFont_wght.ttf') format('truetype'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Futura'; src: url('font/futura-light-webfont.woff2') format('woff2'), url('font/futura-light-webfont.woff') format('woff'); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: 'Arimo'; src: url('font/Arimo-Bold.ttf') format('ttf'); font-weight: normal; font-style: normal; font-display: swap; }

/* PREDICTIVE SEARCH */
#predictiveResultsContainer { border-top: none; max-height: 200px; overflow-y: auto; width: 80%; position: absolute; z-index: 1000; background-color: white; top: 86%; border-radius: 10px 10px 10px 10px; display: none; }
.predictive-result { padding: 10px; cursor: pointer; border-bottom: 1px solid #eee; }
.predictive-result:hover { background-color: #f0f0f0; }

/* LANGUAGE OVERLAY */
.overlay { background-image: url(home-splash.png); position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); display: flex; justify-content: center; align-items: center; z-index: 1100; background-size: cover; transition: opacity 0.5s ease-in-out; background-repeat: repeat-y; }
.overlay.hidden { opacity: 0; pointer-events: none; }
@media (min-width: 768px) and (max-width: 1024px) {
  .overlay { display: none; background-image: none; }
}
.language-selection-box { text-align: center; }
.language-selection-box h2 { font-size: 24px; font-weight: bold; margin-bottom: 16px; color: #1f2937; }
.language-selection-box p { color: #4b5563; margin-bottom: 24px; }
.language-switcher-container-open { display: flex; justify-content: center; margin-top: 350px; }

/* Recent Searches (home) */
#recentSearchesSection { padding: 0; }
.recent-header {display: flex; align-items: center; gap: 8px; color: #9c9c9c; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; margin: 0 4px 12px;}
.recent-header i { font-size: 1rem; }
.recent-list {background: #f4f4f6; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06);}
.recent-item {display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #e5e5ea;}
.recent-item:last-child { border-bottom: none; }
.recent-main { flex: 1 1 auto; min-width: 0; cursor: pointer; }
.recent-head { font-size: 1.15rem; line-height: 1.25; color: #1f2937; }
.recent-practical { }
.recent-syll { color: #6b7280; }
.recent-sub { margin-top: 3px; color: #6b7280; font-size: 0.95rem; }
.recent-sub .recent-pos { font-style: italic; font-weight: 600; color: #4b5563; }
.recent-fav {flex: none; background: none; border: none; cursor: pointer; color: #c9ccd3; font-size: 1.35rem; padding: 6px; line-height: 1;}
.recent-fav .fas { color: #F2A900; }

/* UNIFIED SIDEBAR */
#unifiedSidebar { position: fixed; top: 0; right: -400px; width: 400px; height: 100%; background-color: #f0f0f0; box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2); transition: right 0.3s ease; z-index: 1000; padding: 20px; overflow-y: auto; }
#unifiedSidebar h2 { font-size: 1.5em; border-bottom: 2px solid #ccc; padding-bottom: 5px; margin-top: 20px; }
.share-button { padding: 0.5rem 1rem; border: 1px solid #ccc; border-radius: 999px; background-color: #f1f1f1; color: #000; cursor: pointer; font-size: 0.875rem; transition: background-color 0.2s, color 0.2s; }
.filter-container { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; align-items: flex-end; justify-content: flex-start; align-content: center; flex-direction: row; }
.filter-button { padding: 0.5rem 1rem; border: 1px solid #ccc; border-radius: 999px; background-color: #f1f1f1; color: #000; cursor: pointer; font-size: 0.875rem; transition: background-color 0.2s, color 0.2s; }
.filter-button.active-filter { background: #FFEEF0; border-color: #FFD5DA; color: var(--brand); }
#combinedList li { padding: 10px 0; border-bottom: 1px dashed #ddd; display: flex; justify-content: space-between; align-items: center; }
.combined-term { text-decoration: none; color: #333; font-size: 1.1em; }
.remove-item { background: none; border: none; color: red; font-size: 1.2em; cursor: pointer; font-weight: bold; }
#closeUnifiedSidebarButton { position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 1.5em; cursor: pointer; }
.filter { width: 30px; height: 20px; position: fixed; top: 35px; right: 15px; padding-top: 30px; z-index: 1000; filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.5)); }

/* APP LAYOUT */
.button-container { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; justify-content: center; width: 100%; transition: opacity 0.5s ease-out, transform 0.5s ease-out, height 0.5s ease-out, margin-top 0.5s ease-out; }
.button-container.hide-buttons { opacity: 0; transform: translateY(50px); pointer-events: none; height: 0; margin-top: 0; overflow: hidden; }
.app-container { flex-direction: column; align-items: center; transition: all 0.7s ease-in-out; margin-bottom: auto; padding-top: 80px; border-bottom-left-radius: 10% 50px; background-color: #A71C20; background-image: url(pattern-background-02.svg); background-size: cover; place-items: center; margin-top: unset; }
@media (max-width: 767px) { .app-container { background-size: auto; } }
#logo-title-container { display: flex; flex-direction: column; align-items: center; margin-bottom: 40px; transition: all 0.7s ease-in-out, opacity 0.5s ease-out; text-align: center; }
.page-container-hide { display: none; }
#logo-title-container.hide-logo { opacity: 0; transform: translateY(-150px) scale(0.8); pointer-events: none; height: 0; margin-bottom: 0; overflow: hidden; }
body.search-active .app-container { align-items: flex-start; margin-top: 5vh; margin-bottom: auto; }
#results { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease-out 0.6s, transform 0.5s ease-out 0.6s; }
#results.show-results { opacity: 1; transform: translateY(0); }
#loading-indicator { display: none; text-align: center; margin-top: 20px; color: #6b7280; }
#loading-indicator.show { display: block; }
.icons { height: 24px; width: 30px; }

/* TABS */
.tabs-container { display: flex; justify-content: center; width: 100%; background-color: #fff; border-bottom: 1px solid #ddd; border-radius: 8px 8px 0 0; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); margin-top: 20px; place-items: center; flex-wrap: nowrap; }
.tab-button { padding: 15px 25px; cursor: pointer; font-weight: bold; color: #555; background-color: transparent; border: none; outline: none; transition: color 0.3s ease, background-color 0.3s ease; font-size: 1.1em; }
.tab-button:hover { color: #8B0000; }
.tab-button.active { color: #8B0000; border-bottom: 3px solid #8B0000; background-color: #fefefe; }

/* CONTENT SECTIONS */
.content-area { padding: 20px; max-width: 960px; margin: 0 auto; min-height: 500px; box-sizing: border-box; width: 100%; }
.content-section { display: none; padding: 20px 0; line-height: 1.6; color: #333; }
.content-section.active { display: block; animation: fadeIn 0.5s ease-in-out; }
.content-section h2 { color: #8B0000; font-size: 2em; margin-bottom: 15px; border-bottom: 2px solid #D9B380; padding-bottom: 10px; }
.content-section h3 { color: #A32C2C; font-size: 1.5em; margin-top: 25px; margin-bottom: 10px; }
.content-section p { margin-bottom: 1em; }
.content-section ul,
.content-section ol { margin-left: 20px; margin-bottom: 1em; }
.content-section li { margin-bottom: 0.5em; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) {
  .content-area { padding: 15px; }
  .tab-button { padding: 10px 15px; font-size: 1em; }
  .content-section h2 { font-size: 1.8em; }
  .content-section h3 { font-size: 1.3em; }
}
@media (max-width: 480px) {
  .content-area { padding: 10px; margin: 0 10px; }
  .tab-button { padding: 8px 10px; font-size: 0.9em; }
  .content-section h2 { font-size: 1.5em; }
}

/* WORD OF THE DAY */
.container-wod { background-color: #383838; border-radius: 10px; padding: 30px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); position: relative; overflow: hidden; margin: 20px; background-image: url(pattern-background-02.svg); background-size: cover; }
.word-of-the-day-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj4KICA8cGF0aCBkPSJNMCA1MGE1MCA1MCAwIDEgMCAxMDAgMHoiIGZpbGw9IiM0NjQ2NDYiLz4KICA8cGF0aCBkPSJNNTAgNTBMMTAwIDUwTTEwMCAwTDk1IDVNNjAgMTBMMTAwIDIwTTcwIDM1TDEwMCA0ME01MCAwTDc1IDUwTTEwMCA3NWwtMjUgMjVMNTAgNTBMNzUgNzV6IiBzdHJva2U9IiM0NjQ2NDYiIHN0cm9rZS13aWR0aD0iMiIgZmlsbD0ibm9uZSIvPgo8L3N2Zz4='); background-repeat: repeat; opacity: 0.1; z-index: 0; }
.wordOfTheWeekTitle { color: #ffc107; font-size: 1em; text-transform: uppercase; letter-spacing: 2px; margin-top: 0; margin-bottom: 5px; z-index: 1; position: relative; font-weight: normal; }
.word-details { display: flex; align-items: center; justify-content: flex-start; margin-top: 10px; z-index: 1; position: relative; color: #fff; }
#wordOfTheWeekBold { font-size: 1.5em; font-weight: bold; margin: 0; padding-right: 15px; border-right: 2px solid #555; cursor: pointer; }
.citation { color: #aaa; font-style: italic; font-size: 0.9em; border-top: 1px solid #444; padding-top: 10px; }
.word-translation { display: flex; flex-direction: row; align-items: center; padding-left: 15px; color: #fff; }
.word-bold { display: flex; flex-direction: row; align-items: center; color: #fff; }
.word-translation span { font-size: 1.5em; font-weight: 300; }
.word-translation .audio-icon { margin-left: 10px; width: 25px; cursor: pointer; }
p#wordOfTheWeekPOS { font-style: italic; color: #ccc; font-size: 1.2em; margin-top: 10px; }
.example-toggle { color: #ffc107; cursor: pointer; font-weight: bold; font-size: 1.1em; margin-top: 20px; }
.example-content { border-left: 2px solid #ffc107; padding-left: 15px; margin-top: 15px; font-style: normal; color: #ffffff; }
.example-content.visible { display: block; }
.example-content p { margin: 0; font-size: 1.1em; }
.example-content p:first-child { font-weight: bold; }
.example-content .syllabary { font-size: 1.5em; line-height: 1.5; }
.example-content .phonetic { font-style: italic; font-family: monospace; }
.example-content .english { font-weight: 300; }
.citation { margin-top: 40px; color: #aaa; font-style: italic; font-size: 0.9em; border-top: 1px solid #444; padding-top: 10px; }

/* SEARCH BAR */
.search-container { display: flex; align-items: center; width: 100%; max-width: 600px; padding: 10px; background-color: transparent; position: relative; margin: 0 auto; padding-left: 25px; }
#search-input-container { display: flex; justify-content: center; align-items: center; }
#searchInput { flex-grow: 1; padding: 10px 10px; border: none; border-radius: 9999px; background-color: #ffffff; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); font-family: 'Inter', sans-serif; font-size: 16px; color: #333333; outline: none; -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-left: 50px; }
#searchInput::placeholder { color: #888888; opacity: 1; }
.search-button { display: inline-flex; align-items: center; justify-content: center; background-color: transparent; color: #333333; border: none; border-radius: 9999px; font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 500; cursor: pointer; transition: color 0.3s ease; margin-left: -50px; position: relative; z-index: 1; margin-top: 0px; }
.search-button i { margin-right: 8px; font-size: 18px; }

/* ACTION BUTTONS */
.button-container { display: flex; gap: 15px; justify-content: center; align-items: center; }
.app-button { display: inline-flex; align-items: center; justify-content: center; background-color: #333333; color: #ffffff; border-radius: 9999px; font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 500; cursor: pointer; transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }
.app-button:hover { background-color: #444444; border-color: #cccccc; }
.app-button i { margin-left: 10px; font-size: 18px; }
.app-button .fa-star { color: #FFD700; }

/* BOTTOM NAVIGATION */
.fixed-bottom-title img { width: 30px; height: 24px; margin-bottom: 0.25rem; }
.fixed-bottom-title.active-page i { color: #AD1D35; }
.fixed-bottom-title.active-page img { color: #AD1D35; }
.fixed-bottom-nav { position: fixed; bottom: 0; z-index: 1000; background-color: #fff; padding-top: 1rem; padding-bottom: 1rem; display: flex; flex-direction: row; justify-content: center; align-items: center; width: 100%; border-top-width: 1px; border-color: #e5e7eb; flex-wrap: nowrap; box-shadow: 0px 1px 3px; }
.fixed-bottom-title { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-width: 0; margin: 0 0.2rem; color: #9C9C9C; padding: 0.2rem; border-radius: 0.375rem; transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-duration: 200ms; white-space: nowrap; text-decoration: none; }
.fixed-bottom-title.active-page { color: #AD1D35; }
.fixed-bottom-title:hover { color: #AD1D35; }
.fixed-bottom-title i { font-size: 1.5rem; margin-bottom: 0.25rem; }
.fixed-bottom-title span { font-size: 0.6rem; }

/* BASE / GLOBAL */
body, html { font-family: 'Futura', 'Arimo', Noto Sans Cherokee; margin: 0; padding: 0; margin-top: 0px; background-color: #ffffff; color: #525252; overflow-x: hidden; width: 100%; margin: 0; padding: 0; margin-bottom: 100px; }
.remove-favorite { color: #333; background-color: #ffffff; padding: 2px 4px; }
.seal { display: flex; justify-content: center; margin: auto; width: 100px; margin-top: 20px; }

/* SOCIAL ICONS */
.social-icons { padding-left: 0; margin-bottom: 0; list-style: none; display: flex; gap: 5px; margin-left: 25px; }
.social-icons li { display: inline-block; margin-bottom: 5px; }
.social-icons a { background-color: #fff; color: #000; font-size: 15px; display: inline-flex; justify-content: center; align-items: center; width: 25px; height: 25px; line-height: 40px; border-radius: 50%; text-align: center; transition: all 0.2s ease-in-out; text-decoration: none; }
.social-icons a:hover { opacity: 0.8; }
.social-icons .fa-linkedin { font-size: 20px; }
.social-icons .fa-facebook { font-size: 20px; }
.social-icons .fa-twitter { font-size: 20px; }
.social-icons .fa-tiktok { font-size: 20px; }

/* LANGUAGE SWITCHER */
.language-switcher-container { padding: 5px; display: flex; border-radius: 5px; width: fit-content; margin: 20px; }
.language-button { padding: 10px 15px; font-weight: bold; border-radius: 0px; margin-top: 0px; cursor: pointer; border: none; outline: none; transition: background-color 0.3s ease, color 0.3s ease; background-color: transparent; color: white; }
.language-button:first-child { border-top-left-radius: 5px; border-bottom-left-radius: 5px; }
.language-button:last-child { border-top-right-radius: 5px; border-bottom-right-radius: 5px; }
.language-button.active { background-color: #333; color: #ffffff; outline: 2px solid #525252; }
.language-button:not(.active) { background-color: #ffffff; color: #5A5A5A; }
.language-button:not(.active):hover { background-color: #f0f0f0; }
.language-button.active:hover { background-color: #525252; }
.search-options { border: 0px solid red; }
.search-options input[type="checkbox"] { margin-top: 20px; display: inline; opacity: 1; }
.input[type=checkbox] { transition: all 0.3s; box-sizing: border-box; display: none; }

/* BACK TO TOP */
.button-like-link { display: inline-block; padding: 10px 15px; background-color: #a6192e; color: white; text-decoration: none; border-radius: 8px; border: none; cursor: pointer; font-weight: bold; text-align: center; transition: background-color 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.button-like-link:hover { background-color: #a6192e85; transform: translateY(-2px); box-shadow: 0 6px 8px rgba(0,0,0,0.15); }
.button-like-link:active { background-color: #a6192e85; transform: translateY(0); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
section { min-height: 70vh; padding: 40px 20px; margin-bottom: 20px; background-color: #ffffff; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin: 20px auto; max-width: 900px; line-height: 1.6; }
section:nth-of-type(even) { background-color: #ecf0f1; }
#backToTopBtn { display: none; position: fixed; bottom: 100px; right: 20px; z-index: 99; background-color: #000000; color: white; padding: 12px 18px; border-radius: 50%; text-align: center; font-size: 24px; line-height: 1; text-decoration: none; box-shadow: 0 4px 8px rgba(0,0,0,0.2); transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.3s ease; opacity: 0.8; border: none; cursor: pointer; font-family: 'Arial', sans-serif; }
#backToTopBtn:hover { background-color: #c0392b; opacity: 1; transform: translateY(-3px); }
#backToTopBtn:active { transform: translateY(0); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
#backToTopBtn::before { content: '↑'; display: block; font-size: 24px; font-weight: bold; }
#top { position: absolute; top: 0; left: 0; height: 1px; width: 1px; overflow: hidden; }
.button-like-link { width: 90%; margin-bottom: 10px; }
#backToTopBtn::before { font-size: 20px; }

/* SYLLABARY GRID */
#languageGrid { display: grid; gap: 5px; padding: 10px; border-radius: 8px; grid-template-columns: repeat(9, minmax(0, 1fr)); }
.outer-box { position: relative; aspect-ratio: 1 / 1; background-color: #2C2829; border-radius: 15px; display: flex; justify-content: center; align-items: center; font-family: sans-serif; font-weight: bold; cursor: pointer; box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out; padding: 10px; }
.outer-box:hover { transform: translateY(-2px); box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.3); }
.outer-box:active { background-color: #cf887f; transform: translateY(0); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); }
.big-char { margin: 0; font-size: clamp(20px, 5vw, 50px); color: #fff; line-height: 1; }
.inner-box { position: absolute; bottom: 0.2em; width: 45%; height: 25%; display: flex; justify-content: center; align-items: center; padding: 2px; box-sizing: border-box; cursor: pointer; }
.small-char { margin: 0; font-size: clamp(8px, 1.5vw, 14px); color: #fff; white-space: nowrap; }
.outer-box.empty-cell { background-color: transparent; box-shadow: none; cursor: default; }
.inner-box.empty-inner-cell { display: none; }
@media (max-width: 768px) {
  #languageGrid { gap: 4px; padding: 8px; }
}
@media (max-width: 480px) {
  #languageGrid { gap: 3px; padding: 5px; }
}

/* PDF VIEWER */
.pdf-viewer { height: 80vh; border: 1px solid #ccc; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); justify-content: center; }
.fallback { text-align: center; margin-top: 20px; color: #fff; }

/* SUPPORT PAGE */
.support-container { display: flex; gap: 20px; max-width: 1200px; padding: 20px; }
.support-box { background-color: #fff; border: 1px solid #ddd; border-radius: 10px; padding: 20px; text-align: center; flex: 1; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; margin-top: 10px; margin-bottom: 10px; }
.support-box:hover { transform: translateY(-10px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); }
.support-box h2 { margin-bottom: 20px; font-size: 24px; color: #333; }
.support-box p { font-size: 16px; color: #666; }
.support-box a { display: inline-block; margin-top: 20px; padding: 10px 20px; background-color: #a6192e; color: #fff; text-decoration: none; border-radius: 5px; transition: background-color 0.3s ease; }
.support-box a:hover { background-color: #cf887f; }
.modal-support { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 80%; height: 80%; background-color: rgba(0, 0, 0, 0.5); justify-content: center; align-items: center; }
.modal-content { background-color: #fff; padding: 20px; border-radius: 10px; width: 80%; max-width: 600px; text-align: center; position: relative; }
.close { position: absolute; top: 10px; right: 10px; font-size: 24px; cursor: pointer; color: #333; }
.close:hover { color: #000; }
@media (max-width: 768px) {
  .support-container { flex-direction: column; }
  .support-box { margin-bottom: 20px; }
}

/* FAQ & CONTACT FORM */
.faq-section { margin-bottom: 30px; }
.faq-question { font-weight: bold; color: #333; }
.faq-answer { margin-left: 20px; color: #333; }
.contact-form { padding: 20px; width: 100%; max-width: 500px; }
.contact-form h2 { margin-bottom: 20px; font-size: 24px; color: #333; }
.contact-form label { display: block; margin-bottom: 5px; font-weight: bold; color: #333; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea { width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 4px; font-size: 16px; }
.contact-form textarea { resize: vertical; height: 100px; }
.contact-form input[type="submit"] { background-color: #2980b9; color: #fff; border: none; padding: 10px 20px; font-size: 16px; border-radius: 4px; cursor: pointer; }
.contact-form input[type="submit"]:hover { background-color: #3498db; }

/* SIDEBAR MENU */
.header { background-color: #0073e6; padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; }
.main { margin: 0 auto; display: block; height: 100%; margin-top: 60px; }
.mainInner { display: table; height: 100%; width: 100%; text-align: center; }
.mainInner div { display: table-cell; vertical-align: middle; font-size: 3em; font-weight: bold; letter-spacing: 1.25px; }
#sidebarMenu { padding-top: 60px; height: 100%; top: 0px; position: fixed; left: 0; width: 250px; transform: translateX(-250px); transition: transform 250ms ease-in-out; background: linear-gradient(180deg, #a71c20 0%, #0C0203 100%); z-index: 1001; }
.sidebarMenuInner { margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.10); }
.sidebarMenuInner li { list-style: none; color: #fff; text-transform: uppercase; font-weight: bold; padding: 20px; cursor: pointer; border-bottom: 1px solid rgba(255, 255, 255, 0.10); }
.sidebarMenuInner li span { display: block; font-size: 14px; color: rgba(255, 255, 255, 0.50); }
.sidebarMenuInner li a { color: #fff; text-transform: uppercase; font-weight: bold; cursor: pointer; text-decoration: none; }
input[type="checkbox"]:checked ~ #sidebarMenu { transform: translateX(0); }
input[type=checkbox] { transition: all 0.3s; box-sizing: border-box; display: none; }
.sidebarIconToggle { transition: all 0.3s; box-sizing: border-box; cursor: pointer; position: fixed; z-index: 1002; height: 100%; width: 100%; top: 40px; left: 15px; height: 22px; width: 22px; padding-top: 30px; }
.spinner { transition: all 0.3s; box-sizing: border-box; position: absolute; height: 3px; width: 100%; background-color: #fff; }
.horizontal { transition: all 0.3s; box-sizing: border-box; position: relative; float: left; margin-top: 3px; box-shadow: 0.5px 0.5px; border-radius: 6px; }
.diagonal.part-1 { position: relative; transition: all 0.3s; box-sizing: border-box; float: left; box-shadow: 0.5px 0.5px; border-radius: 6px; height: 3px; width: 15px; }
.diagonal.part-2 { transition: all 0.3s; box-sizing: border-box; position: relative; float: left; margin-top: 3px; box-shadow: 0.5px 0.5px; border-radius: 6px; height: 3px; width: 15px; }
input[type=checkbox]:checked ~ .sidebarIconToggle > .horizontal { transition: all 0.3s; box-sizing: border-box; opacity: 0; }
input[type=checkbox]:checked ~ .sidebarIconToggle > .diagonal.part-1 { transition: all 0.3s; box-sizing: border-box; transform: rotate(135deg); margin-top: 8px; }
input[type=checkbox]:checked ~ .sidebarIconToggle > .diagonal.part-2 { transition: all 0.3s; box-sizing: border-box; transform: rotate(-135deg); margin-top: -9px; }

/* PAGINATION */
#paginationControls { margin-top: 20px; text-align: center; }
#paginationControls button { padding: 5px 10px; margin: 0 5px; cursor: pointer; }
#paginationControls button:disabled { cursor: not-allowed; opacity: 0.5; }

/* MODALS */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.5); }
.modal-content { background-color: #fff; margin: 50% auto; padding: 20px; border: 1px solid #888; width: 80%; max-width: 600px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); }
.close { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; }
.close:hover,
.close:focus { color: #000; text-decoration: none; }

/* NAV & HEADER */
.logo img { height: 50px; margin-left: 15px; margin-top: 10px; margin-bottom: 5px; }
nav { display: flex; align-items: center; flex-grow: 1; justify-content: center; }
.menu-icon { display: none; cursor: pointer; }
.menu-icon svg { fill: #fff; }
.nav-links { list-style: none; margin: 0; padding: 20px; display: flex; justify-content: center; background-color: #ffffff; border-radius: 20px; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); }
.nav-links li { margin: 0 15px; }
.nav-links a { color: #333; text-decoration: none; font-size: 16px; }
.nav-links a:hover { text-decoration: underline; }
.top-container { padding: 20px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); border-bottom-left-radius: 10% 50px; background-color: #A71C20; background-image: url(pattern-background-02.svg); place-items: center; }
.container { margin: 20px auto; margin-left: 20px; margin-right: 20px; padding: 20px; background-color: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); border-radius: 8px; }
h1 { text-align: center; color: #333; }
button { padding: 10px 20px; cursor: pointer; background-color: #a6192e; color: #fff; border: none; border-radius: 4px; margin-top: 20px; }
button:hover { }

/* RESULTS */
#results { margin-top: 10px; }
.result-item { border-bottom: 1px solid #ddd; padding: 10px 0; }

/* FAVORITES SIDEBAR */
.Favorites-sidebar { position: fixed; top: 0px; right: -300px; height: 100%; background-color: #fff; box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1); transition: right 0.3s ease; padding: 20px; padding-top: 40px; z-index: 1200; }
.Favorites-sidebar h2 { margin-top: 10; color: #333; }
#FavoritesList { list-style: none; padding: 0; }
#FavoritesList li { margin-bottom: 10px; }
#FavoritesList li a { color: #333; text-decoration: none; font-size: 16px; }
#FavoritesList li a:hover { text-decoration: underline; }
#closeFavoritesButton { position: absolute; top: 15px; right: 10px; background: none; border: none; font-size: 24px; cursor: pointer; color: #333; }
#closeFavoritesButton:hover { color: #005bb5; }
.opensearch { margin-top: unset; padding: 0.5rem 1rem; border: 1px solid #ccc; border-radius: 999px; background-color: #f1f1f1; color: #000; cursor: pointer; font-size: 0.875rem; transition: background-color 0.2s, color 0.2s; }
.clear-favorites-button { padding: 0.5rem 1rem; border: 1px solid #ccc; border-radius: 999px; background-color: #f1f1f1; color: #000; cursor: pointer; font-size: 0.875rem; transition: background-color 0.2s, color 0.2s; }
.clear-history-button { padding: 0.5rem 1rem; border: 1px solid #ccc; border-radius: 999px; background-color: #f1f1f1; color: #000; cursor: pointer; font-size: 0.875rem; transition: background-color 0.2s, color 0.2s; }
#clearFavoritesButton:hover { background: #FFEEF0; border-color: #FFD5DA; color: var(--brand); }
.pagination-button { padding: 0.5rem 1rem; border: 1px solid #ccc; border-radius: 999px; background-color: #f1f1f1; color: #000; cursor: pointer; font-size: 0.875rem; transition: background-color 0.2s, color 0.2s; }

/* HISTORY SIDEBAR */
.history-sidebar { position: fixed; top: 0; right: -400px; height: 100%; background-color: #fff; box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1); transition: right 0.3s ease; padding: 20px; padding-top: 40px; z-index: 1200; }
.history-sidebar h2 { margin-top: 10; color: #333; }
#historyList { list-style: none; padding: 0; }
#historyList li { margin-bottom: 10px; }
#historyList li a { color: #333; text-decoration: none; font-size: 16px; }
#historyList li a:hover { text-decoration: underline; }
#closeHistoryButton { position: absolute; top: 15px; right: 10px; background: none; border: none; font-size: 24px; cursor: pointer; color: #333; }
#closeHistoryButton:hover { color: #8a8573; }
#clearHistoryButton { padding: 0.5rem 1rem; border: 1px solid #ccc; border-radius: 999px; background-color: #f1f1f1; color: #000; cursor: pointer; font-size: 0.875rem; transition: background-color 0.2s, color 0.2s; }
#clearHistoryButton:hover { background: #FFEEF0; border-color: #FFD5DA; color: var(--brand); }
@media (max-width: 768px) {
  .menu-icon { display: block; text-align: right; }
  .nav-links { position: fixed; top: 60px; right: -200%; height: 100vh; width: 100%; background-color: #2F6695; flex-direction: column; align-items: center; transition: right 0.3s ease; }
  .nav-links.active { right: 0; }
  .nav-links li { margin: 20px 0; }
  .action-buttons { margin-top: 10px; }
  .action-buttons button { margin-right: 10px; background-color: #a6192e; color: #fff; border: none; max-width: 25%; cursor: pointer; }
  .action-buttons button:hover { background-color: #a6192e7a; }
  #recording-module { margin-top: 20px; }
  #record-button, #stop-button, #save-button { padding: 10px 20px; margin: 5px; border: none; cursor: pointer; }
  #record-button { background-color: green; color: white; }
  #stop-button { background-color: red; color: white; }
  #save-button { background-color: blue; color: white; }
  #audio-player { margin-top: 10px; }
  #waveform { width: 100%; height: 100px; border: 1px solid #ccc; margin-top: 10px; }
  #recording-meter { width: 100%; height: 20px; border: 1px solid #ccc; margin-top: 10px; background-color: #eee; }
  #meter-level { height: 100%; width: 0%; background-color: green; }
}

/* RECORDING MODULE */
#recording-module { margin-top: 20px; }
#record-button, #stop-button, #save-button { padding: 10px 20px; margin: 5px; border: none; cursor: pointer; }
#record-button { background-color: green; color: white; }
#stop-button { background-color: red; color: white; }
#save-button { background-color: blue; color: white; }
#audio-player { margin-top: 10px; }
#waveform { width: 100%; height: 100px; border: 1px solid #ccc; margin-top: 10px; }
#recording-meter { width: 100%; height: 20px; border: 1px solid #ccc; margin-top: 10px; background-color: #eee; }
#meter-level { height: 100%; width: 0%; background-color: green; }

/* SITE FOOTER */
.site-main { color: #ffffff; padding: 60px 0 40px; margin-top: 40px; width: 100%; position: relative; border-top-left-radius: 80% 80px; border-top-right-radius: 80% 80px; overflow: hidden; }
.site-footer { color: #ffffff; padding: 60px 0 40px; margin-top: 40px; width: 100%; position: relative; border-top-left-radius: 80% 80px; border-top-right-radius: 80% 80px; overflow: hidden; }
.site-footer .container { max-width: 1200px; margin: 0 auto; display: block; }
.site-footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; padding: 0 15px; }
.site-footer .col-xs-6, .site-footer .col-md-3, .site-footer .col-md-8, .site-footer .col-sm-6, .site-footer .col-xs-12 { flex: 1 1 auto; padding: 15px; box-sizing: border-box; }
.site-footer ul.nav-links { list-style: none; padding: 0; margin: 0; }
.site-footer ul.nav-links li a { color: #ffffff; text-decoration: none; padding: 5px 0; display: block; transition: color 0.3s ease; }
.site-footer ul.nav-links li a:hover { color: #cbd5e0; }
.site-footer .copyright-text { margin-top: 20px; font-size: 0.9rem; text-align: center; }
.site-footer .copyright-text a { color: #ffffff; text-decoration: none; transition: color 0.3s ease; }
.site-footer .copyright-text a:hover { color: #cbd5e0; }
.site-footer .social-icons { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.site-footer .social-icons li a { color: #ffffff; font-size: 1.5rem; transition: color 0.3s ease; }
.site-footer .social-icons li a:hover { color: #cbd5e0; }
@media (max-width: 768px) {
  .grid-cell { font-size: 1.2rem; padding: 0.8rem; }
  .grid-container { padding: 15px; gap: 6px; }
  .site-footer .row { flex-direction: column; align-items: center; }
  .site-footer .col-xs-6, .site-footer .col-md-3, .site-footer .col-md-8, .site-footer .col-sm-6, .site-footer .col-xs-12 { text-align: center; }
  .site-footer ul.nav-links { margin-bottom: 20px; }
}
@media (max-width: 480px) {
  .grid-cell { font-size: 1rem; padding: 0.6rem; }
  .grid-container { padding: 10px; gap: 4px; }
  .site-footer { padding: 40px 0 20px; }
}

/* DROPDOWN */
.dropdown { float: left; overflow: hidden; }
.dropdown .dropbtn { font-size: 16px; border: none; outline: none; color: white; padding: 0px 0px; background-color: inherit; font-family: inherit; margin-left: 10px; }
.navbar a:hover, .dropdown:hover .dropbtn { background-color: red; }
.dropdown-content { display: none; position: absolute; background-color: #f9f9f9; min-width: 160px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 1; }
.dropdown-content a { float: none; color: black; padding: 12px 16px; text-decoration: none; display: block; text-align: left; }
.dropdown-content a:hover { background-color: #ddd; }
.dropdown:hover .dropdown-content { display: block; }

/* FORMS */
.form-control { border: none; border: 1px solid #d9d9d9; border-radius: 0; }
.form-control:active, .form-control:focus { outline: none; -webkit-box-shadow: none; box-shadow: none; border-color: #000; }
.col-form-label { color: #000; }
.btn, .form-control { height: 55px; }
.btn:active, .btn:focus { outline: none; -webkit-box-shadow: none; box-shadow: none; }
label.error { font-size: 12px; color: red; }
#message { resize: vertical; }
#form-message-warning, #form-message-success { display: none; }
#form-message-warning { color: #B90B0B; }
#form-message-success { color: #55A44E; font-size: 18px; font-weight: bold; }
.submitting { float: left; width: 100%; padding: 10px 0; display: none; font-weight: bold; font-size: 12px; color: #000; }
.button-on-absolute { position: relative; z-index: 999; }

/* VOICE COACH / PRACTICE */
.practice-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; z-index: 9000; }
.practice-backdrop.open { opacity: 1; pointer-events: auto; }
.practice-drawer { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.12); padding: 10px 22px calc(28px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform 0.28s cubic-bezier(.16,1,.3,1); z-index: 9001; max-width: 600px; margin: 0 auto; max-height: 90vh; overflow-y: auto; font-family: 'Futura', 'Arimo', 'Noto Sans Cherokee', sans-serif; color: #525252; border-top: 4px solid #A71C20; }
.practice-drawer.open { transform: translateY(0); }
.practice-drawer:focus { outline: none; }
.practice-drawer :focus-visible { outline: 3px solid #a6192e; outline-offset: 2px; border-radius: 8px; }
body.practice-open { overflow: hidden; }
.practice-handle { width: 44px; height: 4px; border-radius: 2px; background: #d1d5db; margin: 4px auto 10px; }
.practice-close { position: absolute; top: 6px; right: 8px; background: transparent; border: none; font-size: 1.8rem; line-height: 1; color: #6b7280; cursor: pointer; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.practice-close:hover { color: #1f2937; }
.practice-title { font-size: 0.85rem; font-weight: 700; color: #8B0000; margin: 2px 0 8px; text-align: center; letter-spacing: 2px; text-transform: uppercase; }
.practice-word { text-align: center; font-size: 1.35rem; font-weight: 600; color: #333; margin: 0 auto 10px; padding-bottom: 10px; line-height: 1.25; border-bottom: 2px solid #D9B380; max-width: 90%; overflow-wrap: anywhere; }
.practice-subtitle { text-align: center; color: #525252; font-size: 0.9rem; margin: 0 0 14px; line-height: 1.45; }
.practice-row { display: flex; justify-content: center; margin-bottom: 10px; }
.practice-listen-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; background: #f1f1f1; color: #525252; border: 1px solid #ccc; border-radius: 999px; font-size: 0.95rem; font-family: inherit; font-weight: 500; cursor: pointer; min-height: 40px; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.practice-listen-btn:hover { background: #fff; border-color: #a6192e; color: #a6192e; }
.practice-listen-btn .fa-stop { color: #a6192e; }
.practice-meter { width: 100%; height: 12px; background: #f3f4f6; border-radius: 999px; overflow: hidden; margin: 10px 0 6px; box-shadow: inset 0 1px 2px rgba(0,0,0,0.05); display: none; }
.practice-meter.practice-meter-visible { display: block; }
.practice-timer { display: none; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 1.05rem; color: #a6192e; margin: 2px 0 0; }
.practice-timer.practice-timer-active { display: block; }
.practice-meter-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #10b981 0%, #34d399 100%); border-radius: 999px; transition: width 0.05s linear, background 0.1s linear; }
.practice-meter-fill.practice-meter-clip { background: linear-gradient(90deg, #ef4444 0%, #f87171 100%); }
.practice-status { text-align: center; font-size: 0.92rem; color: #4b5563; min-height: 1.4em; margin: 4px 0 14px; padding: 0 4px; line-height: 1.35; }
.practice-status-info { color: #4b5563; font-weight: 400; }
.practice-status-warn { color: #92400e; font-weight: 600; }
.practice-status-error { color: #991b1b; font-weight: 600; }
.practice-controls { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-bottom: 24px; }
.practice-record-btn { width: 84px; height: 84px; border-radius: 50%; border: none; background: #a6192e; color: #fff; font-size: 2rem; cursor: pointer; box-shadow: 0 6px 16px rgba(166, 25, 46, 0.4); transition: transform 0.1s ease, background 0.2s ease, box-shadow 0.2s ease; display: inline-flex; align-items: center; justify-content: center; }
.practice-record-btn:hover { background: #8e1626; }
.practice-record-btn:active { transform: scale(0.95); }
.practice-record-btn.practice-record-active { background: #b91c1c; animation: practice-pulse 1.2s ease-in-out infinite; }
.practice-record-btn.practice-record-disabled { background: #9ca3af; cursor: not-allowed; box-shadow: none; }
@keyframes practice-pulse { 0% { box-shadow: 0 0 0 0   rgba(185, 28, 28, 0.55); } 70% { box-shadow: 0 0 0 16px rgba(185, 28, 28, 0); } 100% { box-shadow: 0 0 0 0   rgba(185, 28, 28, 0); } }
.practice-secondary-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
.practice-secondary-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; background: #fff; color: #a6192e; border: 1.5px solid #a6192e; border-radius: 999px; font-size: 0.95rem; font-family: inherit; font-weight: 500; cursor: pointer; min-height: 40px; transition: background 0.15s ease; }
.practice-secondary-btn:hover { background: #fdecef; }
.practice-secondary-btn[hidden] { display: none; }
.action-buttons .practice-speech-btn .fa-microphone { margin-right: 4px; }
.wotd-practice-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 8px 16px; background-color: #a6192e; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 0.95rem; }
.wotd-practice-btn:hover { background-color: #8e1626; }
.wotd-practice-btn .fa-microphone { margin-right: 4px; }
.practice-result { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 8px 0 32px; }
.practice-result[hidden] { display: none; }
.practice-score-ring-wrap { position: relative; width: 160px; height: 160px; display: flex; align-items: center; justify-content: center; }
.practice-score-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.practice-score-ring-bg { fill: none; stroke: #f3f4f6; stroke-width: 9; }
.practice-score-ring-fg { fill: none; stroke: #16a34a; stroke-width: 9; stroke-linecap: round; stroke-dasharray: 339.29; stroke-dashoffset: 339.29; transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1); }
.practice-score-value { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 1; font-family: 'Futura', 'Arimo', sans-serif; }
#practice-score-number { font-size: 3rem; font-weight: 700; color: #16a34a; transition: color 0.3s ease; line-height: 1; }
.practice-score-denom { font-size: 0.85rem; color: #9ca3af; font-weight: 500; margin-top: 2px; }
.practice-result-subscores { display: flex; justify-content: center; gap: 32px; width: 100%; }
.practice-subscore { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.practice-subscore-ring-wrap { position: relative; width: 90px; height: 90px; display: flex; align-items: center; justify-content: center; }
.practice-subscore-ring-bg { stroke-width: 7; }
.practice-subscore-ring-fg { fill: none; stroke: #e5e7eb; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 213.63; stroke-dashoffset: 213.63; transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1); }
.practice-subscore-value { position: relative; font-family: 'Futura', 'Arimo', sans-serif; }
.practice-subscore-value span { font-size: 1.5rem; font-weight: 700; line-height: 1; color: #374151; }
.practice-subscore-label { font-size: 0.72rem; color: #9ca3af; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin: 0; text-align: center; }
.practice-result-feedback { font-size: 0.95rem; color: #374151; text-align: center; line-height: 1.55; margin: 0; padding: 0 8px; }
.practice-result-actions { width: 100%; display: flex; justify-content: center; }
.practice-result-retry-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 32px; background: #a6192e; color: #fff; border: none; border-radius: 999px; font-size: 0.95rem; font-family: inherit; font-weight: 600; cursor: pointer; transition: background 0.15s ease; }
.practice-result-retry-btn:hover { background: #8e1626; }
.practice-result-retry-btn:active { transform: scale(0.97); }
.practice-assess-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); display: flex; align-items: center; justify-content: center; z-index: 9100; }
.practice-assess-overlay[hidden] { display: none; }
.practice-assess-card { background: #fff; border-radius: 16px; border-top: 4px solid #a6192e; padding: 36px 32px 28px; display: flex; flex-direction: column; align-items: center; gap: 18px; min-width: 210px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); font-family: 'Futura', 'Arimo', 'Noto Sans Cherokee', sans-serif; }
.practice-assess-spinner { width: 52px; height: 52px; border: 4px solid #f3f4f6; border-top-color: #a6192e; border-radius: 50%; animation: practice-spin 0.75s linear infinite; }
@keyframes practice-spin { to { transform: rotate(360deg); } }
.practice-assess-stage-text { font-size: 0.95rem; color: #525252; font-weight: 500; margin: 0; text-align: center; }
button:disabled { opacity: 0.5; cursor: not-allowed !important; }
.disabled-audio { opacity: 0.5; cursor: not-allowed !important; }