/* Guru Kula Desam - Modern Saiva Neri Spiritual Design System */
@import url('https://fonts.googleapis.com/css2?family=Mukta+Malar:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-dark: #07080b;
  --bg-surface: #0f1218;
  --bg-card: rgba(19, 23, 31, 0.8);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 55, 0.25);
  --border-gold-hover: rgba(212, 175, 55, 0.55);
  --gold: #d4af37;
  --gold-bright: #ffd700;
  --gold-soft: #fbf2d3;
  --amber: #e09f3e;
  --text-main: #f3f5f8;
  --text-muted: #9aa2b1;
  --badge-film: #e63946;
  --badge-audio: #2a9d8f;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 0 25px rgba(212, 175, 55, 0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Outfit', 'Mukta Malar', sans-serif;
  background-color: #07080b;
  background-image: 
    linear-gradient(180deg, rgba(7, 9, 13, 0.72) 0%, rgba(7, 9, 13, 0.82) 35%, rgba(7, 9, 13, 0.90) 100%),
    url('../images/western-ghats-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

/* Header & Navigation */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 11, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-gold);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-emblem {
  font-size: 1.85rem;
  color: var(--gold-bright);
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.55));
  line-height: 1;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold-soft);
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1.2;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  white-space: nowrap;
  margin-top: 2px;
}

nav.main-nav {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-link:hover {
  color: var(--gold-soft);
  background: rgba(212, 175, 55, 0.12);
}

.nav-link.active {
  color: #07080b;
  background: var(--gold);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.25s ease;
  display: inline-block;
  line-height: 1;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 290px;
  background: rgba(12, 15, 21, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.15);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 250;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

/* Hover support on desktop */
@media (min-width: 1101px) {
  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown.open .dropdown-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-soft);
  transform: translateX(4px);
}

.dropdown-item.active {
  background: rgba(212, 175, 55, 0.18);
  border-left: 3px solid var(--gold);
  color: var(--gold-bright);
}

.dropdown-item.active .dropdown-item-title {
  color: var(--gold-bright);
  font-weight: 700;
}

.dropdown-item-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.4));
}

.dropdown-item-content {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.dropdown-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-soft);
  line-height: 1.3;
}

.dropdown-item-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 2px;
}

/* YouTube Button */
.yt-btn-header {
  background: linear-gradient(135deg, #e60000 0%, #b30000 100%);
  color: #fff;
  padding: 7px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(230, 0, 0, 0.3);
  flex-shrink: 0;
}

.yt-btn-header:hover {
  background: linear-gradient(135deg, #ff1a1a 0%, #cc0000 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(230, 0, 0, 0.45);
  color: #fff;
}

/* Mobile Nav Toggle & Drawer */
.mobile-toggle {
  display: none;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  color: var(--gold-bright);
  padding: 6px 12px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-toggle:hover {
  background: rgba(212, 175, 55, 0.2);
  color: #fff;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 98;
}

.nav-overlay.open {
  display: block;
}

@media (max-width: 1100px) {
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 13, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
    flex-direction: column;
    padding: 16px 20px 24px 20px;
    gap: 8px;
    max-height: calc(100vh - 75px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 99;
  }

  nav.main-nav.open {
    display: flex;
    animation: slideDownNav 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes slideDownNav {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-link {
    width: 100%;
    padding: 11px 16px;
    font-size: 0.94rem;
    border-radius: 10px;
    justify-content: flex-start;
  }

  .nav-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-dropdown .dropdown-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: rgba(22, 27, 36, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.2);
    margin: 4px 0 6px 12px;
    padding: 8px;
    box-shadow: none;
    border-radius: 10px;
  }

  .nav-dropdown.open .dropdown-menu {
    display: flex;
  }

  .dropdown-item {
    padding: 10px 12px;
  }

  .dropdown-item:hover {
    transform: none;
  }

  .yt-btn-header {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
    padding: 12px 18px;
    font-size: 0.95rem;
    justify-content: center;
    border-radius: 10px;
  }
}

@media (max-width: 576px) {
  .header-container {
    padding: 10px 16px;
  }
  .brand {
    gap: 8px;
  }
  .brand-emblem {
    font-size: 1.5rem;
  }
  .brand-text h1 {
    font-size: 1.1rem;
  }
  .brand-text span {
    font-size: 0.65rem;
    letter-spacing: 0.05em;
  }
}

@media (max-width: 440px) {
  .brand-sub-extra {
    display: none;
  }
}

/* Main Container */
main.main-content {
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 30px 24px 60px 24px;
}

/* Page Hero */
.hero-banner {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 35px auto;
  padding: 20px 10px;
}

.hero-banner .sacred-tag {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.hero-banner h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.75);
  margin-bottom: 8px;
}

.hero-banner h2 {
  font-size: 1.15rem;
  color: #cbd5e1;
  font-weight: 500;
  margin-bottom: 16px;
}

.verse-quote {
  display: inline-block;
  background: rgba(212, 175, 55, 0.08);
  border-left: 3px solid var(--gold);
  border-right: 3px solid var(--gold);
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1.02rem;
  color: #efe8d6;
  font-style: italic;
  font-family: 'Mukta Malar', serif;
  line-height: 1.6;
  margin-bottom: 14px;
}

.hero-banner p.hero-desc {
  color: var(--text-muted);
  font-size: 0.96rem;
  max-width: 760px;
  margin: 0 auto;
}

/* Modal Player - Expansive Cinema & Fullscreen Maximized Layout */
.player-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.player-modal.active { display: flex; }

.player-modal-box {
  background: #07090f;
  border: 1px solid var(--border-gold-hover);
  border-radius: 14px;
  width: 100%;
  max-width: 96vw;
  max-height: 96vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.98), 0 0 50px rgba(212, 175, 55, 0.3);
  animation: modalScale 0.25s ease;
  position: relative;
  margin: auto;
}

.player-modal-box::-webkit-scrollbar {
  width: 10px;
}
.player-modal-box::-webkit-scrollbar-track {
  background: #04060a;
}
.player-modal-box::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.5);
  border-radius: 5px;
  border: 2px solid #04060a;
}
.player-modal-box::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

/* Sticky Modal Header at Top */
.modal-header {
  position: sticky;
  top: 0;
  z-index: 40;
  flex-shrink: 0;
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #10141f;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 55%;
  letter-spacing: 0.01em;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.modal-fullscreen-btn,
.modal-scroll-btn {
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: var(--gold-bright);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.modal-fullscreen-btn:hover,
.modal-scroll-btn:hover {
  background: rgba(212, 175, 55, 0.3);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-1px);
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}

.modal-close-btn:hover {
  background: rgba(255, 77, 77, 0.25);
  border-color: #ff6666;
  color: #ffcccc;
}

/* Maximized Video Frame - Uses Maximum Available Screen Height and Width */
.modal-iframe-wrapper {
  flex-shrink: 0;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: min(78vh, calc(96vw * 9 / 16));
  max-height: 82vh;
  background: #000;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-iframe-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* Clickable Scroll Hint Bar */
.modal-scroll-hint {
  flex-shrink: 0;
  padding: 8px 16px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.08));
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  text-align: center;
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, color 0.2s;
  user-select: none;
}

.modal-scroll-hint:hover {
  background: rgba(212, 175, 55, 0.3);
  color: #ffffff;
}

/* Hardware Fullscreen & Theater Mode */
.player-modal-box.modal-theater-mode,
.player-modal-box:fullscreen {
  max-width: 100vw !important;
  width: 100vw !important;
  max-height: 100vh !important;
  height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  background: #000 !important;
}

.player-modal-box.modal-theater-mode .modal-iframe-wrapper,
.player-modal-box:fullscreen .modal-iframe-wrapper {
  height: calc(100vh - 90px) !important;
  max-height: calc(100vh - 90px) !important;
  aspect-ratio: auto !important;
}

/* Modal Details: Lyrics & Meaning Section */
.modal-details {
  flex-shrink: 0;
  padding: 24px 28px 40px;
  background: #07090f;
  color: #e0e4ef;
}

.modal-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.modal-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.modal-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gold-soft);
}

.modal-meta-tag strong {
  color: var(--gold-bright);
}

.modal-action-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.modal-btn-yt {
  background: #cc0000;
  color: #fff;
  border: 1px solid #ff4d4d;
}

.modal-btn-yt:hover {
  background: #e60000;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.4);
  color: #fff;
}

.modal-btn-copy {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-soft);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.modal-btn-copy:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--gold);
  color: #fff;
}

.modal-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .modal-content-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.modal-box {
  background: rgba(18, 22, 32, 0.85);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}

.modal-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.modal-box-icon {
  font-size: 1.1rem;
}

.modal-box-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.modal-box-body {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.35);
  padding: 14px 16px;
  border-radius: 8px;
}

.lyrics-body {
  font-family: 'Mukta Malar', serif;
  font-size: 1.05rem;
  line-height: 1.9;
  color: #f7f2de;
  border-left: 3px solid var(--gold);
  white-space: normal;
  word-break: break-word;
  user-select: text;
}

.meaning-body {
  font-size: 0.96rem;
  line-height: 1.8;
  color: #d8deeb;
  border-left: 3px solid #ff9933;
  user-select: text;
}

/* Modal Bottom Actions & Mobile Fixes */
.modal-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  flex-wrap: wrap;
}

.modal-btn-top {
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold-soft);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.modal-btn-top:hover {
  background: rgba(212, 175, 55, 0.28);
  border-color: var(--gold);
  color: #fff;
}

.modal-btn-close-bottom {
  background: rgba(255, 255, 255, 0.1);
  color: #e0e4ef;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.modal-btn-close-bottom:hover {
  background: rgba(255, 77, 77, 0.2);
  border-color: #ff6666;
  color: #fff;
}

@media (max-width: 768px) {
  .player-modal {
    padding: 0 !important;
    align-items: flex-start !important;
  }
  .player-modal-box {
    max-width: 100vw !important;
    width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
  }
  .modal-iframe-wrapper {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    min-height: 220px !important;
    max-height: none !important;
  }
  .modal-header {
    padding: 8px 12px !important;
  }
  .modal-title {
    max-width: 44% !important;
    font-size: 0.88rem !important;
  }
  .modal-fullscreen-btn,
  .modal-scroll-btn {
    padding: 4px 6px !important;
    font-size: 0.72rem !important;
  }
  .modal-close-btn {
    padding: 4px 8px !important;
    font-size: 0.75rem !important;
  }
  .modal-details {
    padding: 16px 14px 28px !important;
  }
}

/* Controls & Filters */
.controls-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  padding: 14px 20px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}

.search-box {
  flex: 1;
  min-width: 280px;
  max-width: 480px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 11px 18px 11px 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
  transition: all 0.2s;
}

.search-box input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.search-box::before {
  content: "🔍";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  opacity: 0.6;
}

.filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.filter-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.filter-btn.active {
  background: var(--gold);
  color: #07080b;
  border-color: var(--gold);
  font-weight: 700;
}

.item-count-badge {
  font-size: 0.88rem;
  color: var(--gold-soft);
  font-weight: 600;
  white-space: nowrap;
}

/* Media Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  backdrop-filter: blur(8px);
}

.video-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold-hover);
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.18);
}

.card-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #14171d;
  overflow: hidden;
}

.card-thumbnail img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.video-card:hover .card-thumbnail img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 6px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.badge-film { background: var(--badge-film); }
.badge-audio { background: var(--badge-audio); }

.card-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 50px; height: 50px;
  background: rgba(0, 0, 0, 0.72);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  font-size: 1.3rem;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
}

.video-card:hover .card-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}

.card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-main);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
}

.card-footer .tag {
  color: var(--gold);
  font-weight: 600;
}

.card-yt-link {
  color: var(--gold-soft);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.card-yt-link:hover {
  color: #fff;
}

/* Card Author/Source Line */
.card-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.card-meta-tag {
  display: inline-block;
  font-size: 0.73rem;
  color: var(--gold-soft);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Card Lyrics & Meaning Toggle Button */
.card-lyrics-toggle-btn {
  margin-top: 10px;
  width: 100%;
  padding: 8px 12px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  color: var(--gold-bright);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
  transition: all 0.2s ease;
}

.card-lyrics-toggle-btn:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold);
}

.card-lyrics-toggle-btn.open {
  background: rgba(212, 175, 55, 0.22);
  border-color: var(--gold);
}

.card-lyrics-toggle-btn .lyrics-chevron {
  transition: transform 0.25s ease;
  font-size: 0.9rem;
}

.card-lyrics-toggle-btn.open .lyrics-chevron {
  transform: rotate(180deg);
}

/* In-Card Expandable Drawer */
.card-lyrics-drawer {
  margin-top: 10px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px dashed rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  animation: drawerFade 0.2s ease;
}

@keyframes drawerFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-lyrics-drawer .drawer-section {
  margin-bottom: 10px;
}

.card-lyrics-drawer .drawer-section:last-of-type {
  margin-bottom: 12px;
}

.card-lyrics-drawer .drawer-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card-lyrics-drawer .drawer-lyrics-text {
  font-family: 'Mukta Malar', serif;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #f7f2de;
  max-height: 280px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  overflow-y: auto;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.3);
  border-left: 2px solid var(--gold);
  border-radius: 4px;
  word-break: break-word;
}

.card-lyrics-drawer .drawer-meaning-text {
  font-size: 0.8rem;
  line-height: 1.55;
  color: #cbd3e1;
  max-height: 240px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  overflow-y: auto;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.3);
  border-left: 2px solid #ff9933;
  border-radius: 4px;
  word-break: break-word;
}

.card-lyrics-drawer .drawer-play-btn {
  width: 100%;
  padding: 8px 12px;
  background: linear-gradient(135deg, var(--gold-bright), #996515);
  color: #07080b;
  font-weight: 700;
  font-size: 0.82rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.15s ease, filter 0.2s ease;
  font-family: inherit;
}

.card-lyrics-drawer .drawer-play-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

/* Home Highlights / Philosophy Sections */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.philosophy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 26px;
  transition: transform 0.2s, border-color 0.2s;
}

.philosophy-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.philosophy-card .card-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: var(--gold-bright);
}

.philosophy-card h3 {
  font-size: 1.3rem;
  color: #f8fafc;
  margin-bottom: 8px;
}

.philosophy-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer */
footer.site-footer {
  background: #050608;
  border-top: 1px solid var(--border-gold);
  padding: 40px 24px;
  margin-top: auto;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer-col { flex: 1; min-width: 250px; }

.footer-col h4 {
  color: #f8fafc;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1400px;
  margin: 30px auto 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}


/* Sacred Text & Scholarly Content Sections */
.scripture-study-section {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  padding: 36px 32px;
  margin-bottom: 45px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.5);
}

.scripture-study-section h2 {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.scripture-study-section h3 {
  font-size: 1.3rem;
  color: #f1f5f9;
  margin: 24px 0 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
}

.scripture-study-section p {
  color: #d2d8e4;
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.source-badge {
  display: inline-block;
  background: rgba(224, 159, 62, 0.15);
  border: 1px solid var(--amber);
  color: var(--gold-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  font-weight: 700;
}

.vedic-verse-box {
  background: rgba(0, 0, 0, 0.4);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 18px 24px;
  margin: 20px 0;
  font-family: 'Mukta Malar', serif;
}

.vedic-verse-box .sanskrit {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.vedic-verse-box .tamil {
  font-size: 1.05rem;
  color: var(--gold-soft);
  margin-bottom: 8px;
  line-height: 1.6;
}

.vedic-verse-box .meaning {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

.periyava-quote-box {
  background: rgba(224, 159, 62, 0.07);
  border: 1px dashed rgba(224, 159, 62, 0.4);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 24px 0;
}

.periyava-quote-box .quote-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.periyava-quote-box p {
  color: #e5e8f0;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 8px;
}

.canonical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.canonical-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px 20px;
}

.canonical-card h4 {
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.canonical-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.section-divider-title {
  text-align: center;
  font-size: 1.8rem;
  color: var(--gold-soft);
  margin: 45px 0 20px 0;
  position: relative;
}

.section-divider-title::before, .section-divider-title::after {
  content: "";
  display: inline-block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin: 0 15px;
  opacity: 0.6;
}


/* Sacred Text & Scholarly Content Sections */
.scripture-study-section {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  padding: 36px 32px;
  margin-bottom: 45px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.5);
}

.scripture-study-section h2 {
  font-size: 1.8rem;
  color: var(--gold-soft);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.scripture-study-section h3 {
  font-size: 1.3rem;
  color: var(--gold-bright);
  margin: 24px 0 10px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 6px;
}

.scripture-study-section p {
  color: #d2d8e4;
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.source-badge {
  display: inline-block;
  background: rgba(224, 159, 62, 0.15);
  border: 1px solid var(--amber);
  color: var(--gold-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  font-weight: 700;
}

.vedic-verse-box {
  background: rgba(0, 0, 0, 0.4);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 18px 24px;
  margin: 20px 0;
  font-family: 'Mukta Malar', serif;
}

.vedic-verse-box .sanskrit {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.vedic-verse-box .tamil {
  font-size: 1.05rem;
  color: var(--gold-soft);
  margin-bottom: 8px;
  line-height: 1.6;
}

.vedic-verse-box .meaning {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

.periyava-quote-box {
  background: rgba(224, 159, 62, 0.07);
  border: 1px dashed rgba(224, 159, 62, 0.4);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 24px 0;
}

.periyava-quote-box .quote-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.periyava-quote-box p {
  color: #e5e8f0;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 8px;
}

.canonical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.canonical-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px 20px;
}

.canonical-card h4 {
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.canonical-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.section-divider-title {
  text-align: center;
  font-size: 1.8rem;
  color: var(--gold-soft);
  margin: 45px 0 20px 0;
  position: relative;
}

.section-divider-title::before, .section-divider-title::after {
  content: "";
  display: inline-block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin: 0 15px;
  opacity: 0.6;
}


/* Sacred Text & Scholarly Content Sections */
.scripture-study-section {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  padding: 36px 32px;
  margin-bottom: 45px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.5);
}

.scripture-study-section h2 {
  font-size: 1.8rem;
  color: var(--gold-soft);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.scripture-study-section h3 {
  font-size: 1.3rem;
  color: var(--gold-bright);
  margin: 24px 0 10px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 6px;
}

.scripture-study-section p {
  color: #d2d8e4;
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.source-badge {
  display: inline-block;
  background: rgba(224, 159, 62, 0.15);
  border: 1px solid var(--amber);
  color: var(--gold-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  font-weight: 700;
}

.vedic-verse-box {
  background: rgba(0, 0, 0, 0.4);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 18px 24px;
  margin: 20px 0;
  font-family: 'Mukta Malar', serif;
}

.vedic-verse-box .sanskrit {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.vedic-verse-box .tamil {
  font-size: 1.05rem;
  color: var(--gold-soft);
  margin-bottom: 8px;
  line-height: 1.6;
}

.vedic-verse-box .meaning {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

.periyava-quote-box {
  background: rgba(224, 159, 62, 0.07);
  border: 1px dashed rgba(224, 159, 62, 0.4);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 24px 0;
}

.periyava-quote-box .quote-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.periyava-quote-box p {
  color: #e5e8f0;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 8px;
}

.canonical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.canonical-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px 20px;
}

.canonical-card h4 {
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.canonical-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.section-divider-title {
  text-align: center;
  font-size: 1.8rem;
  color: var(--gold-soft);
  margin: 45px 0 20px 0;
  position: relative;
}

.section-divider-title::before, .section-divider-title::after {
  content: "";
  display: inline-block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin: 0 15px;
  opacity: 0.6;
}


/* Sacred Text & Scholarly Content Sections */
.scripture-study-section {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  padding: 36px 32px;
  margin-bottom: 45px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.5);
}

.scripture-study-section h2 {
  font-size: 1.8rem;
  color: var(--gold-soft);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.scripture-study-section h3 {
  font-size: 1.3rem;
  color: var(--gold-bright);
  margin: 24px 0 10px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 6px;
}

.scripture-study-section p {
  color: #d2d8e4;
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.source-badge {
  display: inline-block;
  background: rgba(224, 159, 62, 0.15);
  border: 1px solid var(--amber);
  color: var(--gold-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  font-weight: 700;
}

.vedic-verse-box {
  background: rgba(0, 0, 0, 0.4);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 18px 24px;
  margin: 20px 0;
  font-family: 'Mukta Malar', serif;
}

.vedic-verse-box .sanskrit {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.vedic-verse-box .tamil {
  font-size: 1.05rem;
  color: var(--gold-soft);
  margin-bottom: 8px;
  line-height: 1.6;
}

.vedic-verse-box .meaning {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

.periyava-quote-box {
  background: rgba(224, 159, 62, 0.07);
  border: 1px dashed rgba(224, 159, 62, 0.4);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 24px 0;
}

.periyava-quote-box .quote-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.periyava-quote-box p {
  color: #e5e8f0;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 8px;
}

.canonical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.canonical-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px 20px;
}

.canonical-card h4 {
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.canonical-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.section-divider-title {
  text-align: center;
  font-size: 1.8rem;
  color: var(--gold-soft);
  margin: 45px 0 20px 0;
  position: relative;
}

.section-divider-title::before, .section-divider-title::after {
  content: "";
  display: inline-block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin: 0 15px;
  opacity: 0.6;
}

/* ==========================================================================
   Google Sites Imported Pages & Education Styles (Guru Kula Desam)
   ========================================================================== */

/* Multi-column Kalvi Dropdown Menu */
.kalvi-menu {
  min-width: 440px !important;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  max-height: 520px;
  overflow-y: auto;
}

@media (min-width: 1101px) {
  .nav-dropdown:hover .kalvi-menu,
  .nav-dropdown.open .kalvi-menu {
    display: grid !important;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

@media (max-width: 1100px) {
  .kalvi-menu {
    min-width: 100% !important;
    grid-template-columns: 1fr !important;
    max-height: none;
  }
}

/* Grades Hub Grid */
.grades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.grade-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.grade-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-bright);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6), var(--shadow-gold);
  background: rgba(24, 29, 39, 0.95);
}

.grade-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.grade-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.grade-card-icon {
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.4));
}

.grade-card-title h3 {
  font-size: 1.25rem;
  color: #f8fafc;
  font-weight: 700;
  margin-bottom: 2px;
}

.grade-card-title span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.grade-card-desc {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.5;
}

.grade-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  margin-top: 4px;
}

/* 60 Sheets Grid for Grade 1 */
.sheets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.sheet-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.sheet-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-bright);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.3);
}

.sheet-header {
  padding: 10px 14px;
  background: rgba(12, 15, 21, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f8fafc;
}

.sheet-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #0f1218;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sheet-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sheet-thumb:hover img {
  transform: scale(1.05);
}

.sheet-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  font-size: 1.8rem;
  color: #fff;
}

.sheet-thumb:hover .sheet-zoom-overlay {
  opacity: 1;
}

.sheet-actions {
  padding: 10px 12px;
  background: rgba(12, 15, 21, 0.85);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.sheet-btn {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.sheet-btn-view {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.sheet-btn-view:hover {
  background: var(--gold);
  color: #07080b;
}

.sheet-btn-direct {
  background: transparent;
  color: var(--text-muted);
}

.sheet-btn-direct:hover {
  color: #ffffff;
}

/* Music Feast (இறை இசை விருந்து) */
.music-feast-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 960px) {
  .music-feast-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.feast-media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  background: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.feast-media-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.feast-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feast-badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.feast-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.feast-meta {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 600;
}

.feast-lyrics-box {
  background: rgba(10, 13, 18, 0.9);
  border-left: 3px solid var(--gold);
  padding: 14px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #f1f5f9;
  white-space: pre-line;
  font-family: inherit;
}

.feast-meaning {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Google Sites Mirror Banner */
.google-site-banner {
  background: linear-gradient(135deg, rgba(30, 42, 60, 0.95) 0%, rgba(15, 20, 30, 0.95) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 24px 30px;
  margin: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .google-site-banner {
    flex-direction: column;
    text-align: center;
  }
}

.gs-banner-content h3 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.gs-banner-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.gs-banner-btn {
  padding: 10px 22px;
  background: var(--gold);
  color: #07080b;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.gs-banner-btn:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* Image Sheet Modal */
.sheet-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sheet-modal.active {
  display: flex;
}

.sheet-modal-box {
  max-width: 900px;
  width: 100%;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: #0d1017;
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
}

.sheet-modal-header {
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(12, 15, 21, 0.95);
  border-bottom: 1px solid var(--border-gold);
}

.sheet-modal-title {
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 1.05rem;
}

.sheet-modal-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #08090d;
}

.sheet-modal-body img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

/* ==========================================================================
   School Curriculum & Interactive Self-Learning Coursebook Design System
   ========================================================================== */

.course-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 12px 20px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
}

.course-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-bright);
}

/* Course Tab Navigation (Slow, Chapter-by-Chapter Pacing) */
.course-tabs-wrapper {
  margin: 25px 0 35px 0;
  position: sticky;
  top: 75px;
  z-index: 100;
  background: rgba(7, 8, 11, 0.95);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-gold);
}

.course-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.course-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(19, 23, 31, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.course-tab-btn:hover {
  border-color: var(--gold);
  color: var(--text-main);
  transform: translateY(-1px);
}

.course-tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.6);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.course-tab-num {
  min-width: 28px;
  height: 22px;
  padding: 0 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: inherit;
  flex-shrink: 0;
}

.course-tab-btn.active .course-tab-num {
  background: var(--gold);
  color: #07080b;
  font-weight: 800;
}

/* Lesson Unit Panels */
.lesson-unit-panel {
  display: none;
  animation: fadeInLesson 0.35s ease;
}

.lesson-unit-panel.active {
  display: block;
}

@keyframes fadeInLesson {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pedagogical Components inside Lesson */
.lesson-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.lesson-main-title {
  font-size: 1.6rem;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.3;
}

.lesson-sub-title {
  font-size: 1.05rem;
  color: #94a3b8;
  margin-top: 4px;
}

/* Learning Objectives Card */
.objectives-card {
  background: rgba(45, 212, 191, 0.07);
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 28px;
}

.objectives-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2dd4bf;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.objectives-list {
  margin-left: 20px;
  color: var(--text-main);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* Vocabulary Grid */
.vocab-section {
  margin: 30px 0;
}

.vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.vocab-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px 20px;
  border-left: 3px solid rgba(212, 175, 55, 0.6);
}

.vocab-term {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 6px;
}

.vocab-meaning {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* Step-by-Step Deep Dive Sections (Going slow on each topic) */
.lesson-step-section {
  margin: 32px 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 24px 28px;
}

.lesson-step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 14px;
}

.lesson-step-content {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-main);
}

.lesson-step-content p {
  margin-bottom: 12px;
}

/* Visual Diagram Card */
.visual-diagram-card {
  margin: 30px 0;
  background: rgba(12, 16, 23, 0.95);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.diagram-header {
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.diagram-tag {
  background: var(--gold);
  color: #07080b;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.diagram-header h4 {
  font-size: 1.05rem;
  color: #f8fafc;
  font-weight: 700;
  margin: 0;
}

.pedagogy-svg {
  width: 100%;
  height: auto;
  display: block;
  padding: 10px 15px;
}

.diagram-footer {
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Self-Learning Interactive Quiz */
.quiz-section {
  margin: 36px 0;
}

.quiz-card {
  background: rgba(20, 25, 35, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}

.quiz-card details {
  cursor: pointer;
}

.quiz-card summary {
  padding: 18px 24px;
  font-weight: 600;
  color: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
  font-size: 1.02rem;
  background: rgba(255, 255, 255, 0.02);
}

.quiz-card summary:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.quiz-badge {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-left: 12px;
  flex-shrink: 0;
}

.quiz-body {
  padding: 18px 24px;
  border-top: 1px dashed var(--border-subtle);
  background: rgba(7, 9, 13, 0.9);
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.7;
}

.quiz-answer-highlight {
  color: #34d399;
  font-weight: 700;
  margin-bottom: 6px;
}

/* Student Daily Sadhana Checklist */
.sadhana-box {
  background: rgba(45, 212, 191, 0.05);
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 30px 0;
}

.sadhana-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2dd4bf;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.sadhana-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.6;
}

.sadhana-item input[type="checkbox"] {
  accent-color: #2dd4bf;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  cursor: pointer;
}

/* Lesson Navigation Footer */
.lesson-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-gold);
}

.lesson-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  cursor: pointer;
}

.lesson-nav-prev {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.lesson-nav-prev:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
}

.lesson-nav-next {
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: #07080b;
  border: 1px solid var(--gold-bright);
}

.lesson-nav-next:hover {
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

/* Drawer Custom Scrollbar */
.card-lyrics-drawer .drawer-lyrics-text::-webkit-scrollbar,
.card-lyrics-drawer .drawer-meaning-text::-webkit-scrollbar {
  width: 6px;
}
.card-lyrics-drawer .drawer-lyrics-text::-webkit-scrollbar-track,
.card-lyrics-drawer .drawer-meaning-text::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 3px;
}
.card-lyrics-drawer .drawer-lyrics-text::-webkit-scrollbar-thumb,
.card-lyrics-drawer .drawer-meaning-text::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.45);
  border-radius: 3px;
}
.card-lyrics-drawer .drawer-lyrics-text::-webkit-scrollbar-thumb:hover,
.card-lyrics-drawer .drawer-meaning-text::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ==========================================================================
   WBS (Work Breakdown Structure) Identification System
   ========================================================================== */

.wbs-code {
  display: inline-flex;
  align-items: center;
  font-family: 'Outfit', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 7px;
  border-radius: 6px;
  margin-right: 6px;
  text-transform: uppercase;
  vertical-align: middle;
  line-height: 1.3;
}

.wbs-code-primary {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
  border-color: rgba(212, 175, 55, 0.35);
  font-size: 0.8rem;
  padding: 3px 9px;
  border-radius: 8px;
}

.wbs-sidebar-code {
  font-family: 'Outfit', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 5px;
  border-radius: 4px;
  margin-right: 6px;
  flex-shrink: 0;
}

/* ==========================================================================
   Courseware Sidebar & Section Navigation Architecture
   ========================================================================== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

.course-layout-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  position: relative;
  margin-top: 20px;
}

/* Sticky Course Navigation Sidebar (Desktop) */
.course-sidebar {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: 85px;
  max-height: calc(100vh - 105px);
  overflow-y: auto;
  background: rgba(13, 17, 24, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  padding: 20px 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65);
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.4) transparent;
  z-index: 100;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-sidebar::-webkit-scrollbar {
  width: 5px;
}
.course-sidebar::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
  border-radius: 4px;
}

.sidebar-header {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-gold);
}

.sidebar-grade-badge {
  display: inline-block;
  background: var(--gold-gradient);
  color: #07080b;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.sidebar-title {
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 4px 0;
}

.sidebar-sub {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0;
}

/* Sidebar Chapters & Subsections */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-chapter-group {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: all 0.25s ease;
}

.sidebar-chapter-group.active {
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-chapter-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-chapter-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.sidebar-chapter-btn.active {
  color: #ffffff;
  font-weight: 700;
}

.sidebar-chapter-pill {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-num {
  min-width: 28px;
  height: 22px;
  padding: 0 5px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sidebar-chapter-btn.active .sidebar-num {
  background: var(--gold);
  color: #07080b;
}

.sidebar-arrow {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.sidebar-chapter-group.active .sidebar-arrow {
  transform: rotate(90deg);
  color: var(--gold);
}

/* Sub-items list */
.sidebar-subsections {
  display: none;
  flex-direction: column;
  padding: 4px 10px 12px 34px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.sidebar-chapter-group.active .sidebar-subsections {
  display: flex;
}

.sidebar-sub-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-sub-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

/* Quick Grade Switcher at Sidebar Bottom */
.sidebar-other-grades {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-gold);
}

.sidebar-other-grades-title {
  font-size: 0.78rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.sidebar-grades-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.sidebar-grade-pill {
  padding: 5px 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-grade-pill:hover,
.sidebar-grade-pill.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(212, 175, 55, 0.6);
  color: #ffffff;
}

/* Main Column containing Course Lessons */
.course-main-column {
  flex: 1;
  min-width: 0;
}

/* Mobile Sidebar Toggle Button & Overlay */
.course-sidebar-mobile-toggle {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: #07080b;
  border: 1px solid var(--gold-bright);
  border-radius: 30px;
  padding: 12px 20px;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.4);
  cursor: pointer;
  align-items: center;
  gap: 8px;
}

.course-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 991px) {
  .course-sidebar-mobile-toggle {
    display: inline-flex;
  }

  .course-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 310px;
    max-height: 100vh;
    border-radius: 0 20px 20px 0;
    z-index: 1001;
    transform: translateX(-105%);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.85);
  }

  .course-sidebar.open {
    transform: translateX(0);
  }

  .course-sidebar-overlay.active {
    display: block;
  }
}


/* -------------------------------------------------------------------------- */
/* THEMES & USER PREFERENCES STYLES                                            */
/* -------------------------------------------------------------------------- */
:root {
  --user-font-scale: 1;
}

body {
  font-size: calc(1rem * var(--user-font-scale, 1));
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Midnight Navy Theme */
body.theme-midnight {
  --bg-dark: #080d1a;
  --bg-surface: #0e172e;
  --bg-card: rgba(16, 26, 48, 0.85);
  --border-gold: rgba(212, 175, 55, 0.3);
  --border-gold-hover: rgba(255, 215, 0, 0.65);
  background-color: #080d1a !important;
  background-image: linear-gradient(180deg, rgba(8, 13, 26, 0.82) 0%, rgba(8, 13, 26, 0.92) 100%), url('../images/western-ghats-bg.jpg') !important;
}

/* AMOLED Pure Black Theme */
body.theme-amoled {
  --bg-dark: #000000;
  --bg-surface: #0a0a0a;
  --bg-card: rgba(14, 14, 14, 0.95);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-gold: rgba(212, 175, 55, 0.35);
  --border-gold-hover: rgba(255, 215, 0, 0.7);
  background-color: #000000 !important;
  background-image: none !important;
}

/* Tamil Font Selection */
body.font-noto {
  font-family: 'Noto Sans Tamil', 'Outfit', sans-serif !important;
}
body.font-mukta {
  font-family: 'Mukta Malar', 'Outfit', serif !important;
}

/* -------------------------------------------------------------------------- */
/* LEFT STRIP BAR (SIDEBAR DOCK)                                              */
/* -------------------------------------------------------------------------- */
.left-strip-bar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 68px;
  background: rgba(10, 13, 20, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid var(--border-gold);
  z-index: 850;
  display: flex;
  flex-direction: column;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s ease;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.left-strip-bar.expanded {
  width: 230px;
}

.strip-header {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.strip-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  overflow: hidden;
}

.strip-emblem {
  font-size: 1.6rem;
  color: var(--gold-bright);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
  line-height: 1;
  flex-shrink: 0;
}

.strip-brand-text {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-soft);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.left-strip-bar.expanded .strip-brand-text {
  opacity: 1;
  pointer-events: auto;
}

.strip-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--gold-soft);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.strip-toggle-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold);
  color: #fff;
}

.strip-nav-list {
  flex-grow: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.strip-nav-list::-webkit-scrollbar {
  width: 4px;
}
.strip-nav-list::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 2px;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
}

.strip-item:hover {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-soft);
}

.strip-item.active {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.06));
  color: var(--gold-bright);
  border-left: 3px solid var(--gold);
}

.strip-item-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
}

.strip-item-label {
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.left-strip-bar.expanded .strip-item-label {
  opacity: 1;
  pointer-events: auto;
}

/* Floating Tooltip when collapsed */
.left-strip-bar:not(.expanded) .strip-item::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 74px;
  top: 50%;
  transform: translateY(-50%);
  background: #141824;
  color: var(--gold-soft);
  border: 1px solid var(--border-gold);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.left-strip-bar:not(.expanded) .strip-item:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(4px);
}

.strip-footer-dock {
  padding: 10px 8px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  background: rgba(8, 10, 16, 0.8);
}

.strip-dock-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-muted);
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  width: 100%;
}

.strip-dock-btn:hover {
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold-bright);
}

.strip-dock-avatar {
  font-size: 1.25rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.strip-dock-label {
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  pointer-events: none;
}

.left-strip-bar.expanded .strip-dock-label {
  opacity: 1;
  pointer-events: auto;
}

/* Page Layout Offsets on Desktop */
@media (min-width: 992px) {
  body {
    padding-left: 68px;
    transition: padding-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }
  body.strip-expanded {
    padding-left: 230px;
  }
}

/* Mobile Off-canvas Drawer */
@media (max-width: 991px) {
  .left-strip-bar {
    transform: translateX(-100%);
    width: 240px;
  }
  .left-strip-bar.mobile-open {
    transform: translateX(0);
  }
  .left-strip-bar.mobile-open .strip-item-label,
  .left-strip-bar.mobile-open .strip-dock-label,
  .left-strip-bar.mobile-open .strip-brand-text {
    opacity: 1;
    pointer-events: auto;
  }
  .strip-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 840;
    display: none;
  }
  .strip-backdrop.active {
    display: block;
  }
}

/* -------------------------------------------------------------------------- */
/* CONTEXT-SENSITIVE TOP BAR                                                  */
/* -------------------------------------------------------------------------- */
.context-sensitive-bar { display: none !important; }

.context-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.context-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.context-strip-trigger {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-bright);
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  transition: all 0.2s;
}

.context-strip-trigger:hover {
  background: rgba(212, 175, 55, 0.25);
  color: #fff;
}

.context-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.crumb-root {
  color: var(--gold-soft);
  font-weight: 600;
}

.crumb-separator {
  color: rgba(212, 175, 55, 0.4);
}

.crumb-current {
  color: var(--gold-bright);
  font-weight: 700;
}

.context-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Quick Search Input */
.context-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.context-search-icon {
  position: absolute;
  left: 10px;
  font-size: 0.82rem;
  color: var(--gold);
  pointer-events: none;
}

.context-search-input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 5px 28px 5px 30px;
  font-size: 0.82rem;
  color: var(--text-main);
  width: 170px;
  transition: width 0.25s ease, border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: inherit;
}

.context-search-input:focus {
  width: 240px;
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.context-search-clear {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 2px 4px;
}

/* Font Size & Tool Buttons */
.context-tool-group {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2px 6px;
  gap: 4px;
}

.context-tool-btn {
  background: none;
  border: none;
  color: var(--gold-soft);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}

.context-tool-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  color: #fff;
}

.font-scale-indicator {
  font-size: 0.74rem;
  color: var(--amber);
  min-width: 34px;
  text-align: center;
}

.theme-quick-btn {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 5px 8px;
}

/* Profile Pill */
.context-profile-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  padding: 4px 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.context-profile-pill:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--gold);
}

.pill-avatar {
  font-size: 1rem;
}

.pill-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-soft);
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill-badge {
  font-size: 0.7rem;
  background: rgba(212, 175, 55, 0.25);
  color: var(--gold-bright);
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* USER PROFILE & PREFERENCES MODAL                                          */
/* -------------------------------------------------------------------------- */
.user-settings-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.user-settings-modal.active {
  display: flex;
}

.user-modal-box {
  background: #0d111a;
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(212, 175, 55, 0.25);
  overflow: hidden;
  animation: modalScale 0.25s ease;
}

.user-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #131724;
  border-bottom: 1px solid var(--border-gold);
}

.user-modal-tabs {
  display: flex;
  gap: 8px;
}

.user-tab-btn {
  background: none;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.user-tab-btn.active {
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-bright);
}

.user-modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.user-modal-close-btn:hover {
  background: rgba(255, 77, 77, 0.2);
  border-color: #ff6666;
  color: #ffcccc;
}

.user-modal-body {
  padding: 22px 24px;
  overflow-y: auto;
  flex-grow: 1;
}

.user-tab-content {
  display: none;
}

.user-tab-content.active {
  display: block;
}

/* Profile Hero Card */
.profile-hero-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(224, 159, 62, 0.06));
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 22px;
}

.profile-avatar-large {
  font-size: 3rem;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.2);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-hero-info h3 {
  color: var(--gold-bright);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.profile-tier-badge {
  display: inline-block;
  font-size: 0.78rem;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--border-gold);
  color: var(--gold-soft);
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.profile-streak-line {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.profile-streak-line strong {
  color: var(--amber);
}

/* Form Groups in Settings */
.settings-form-group {
  margin-bottom: 20px;
}

.settings-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-soft);
  margin-bottom: 8px;
}

.settings-input,
.settings-select {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.92rem;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.settings-input:focus,
.settings-select:focus {
  border-color: var(--gold-bright);
}

.avatar-selection-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 8px;
}

.avatar-option {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 4px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-option:hover,
.avatar-option.selected {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--gold);
  transform: scale(1.1);
}

.radio-pill-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.radio-pill:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--border-gold);
}

.radio-pill input[type="radio"] {
  accent-color: var(--gold);
}

.font-size-slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.slider-font-label {
  font-weight: 700;
  color: var(--gold);
  min-width: 120px;
  text-align: center;
}

.toggle-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.toggle-checkbox {
  accent-color: var(--gold);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.profile-stats-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 18px;
}

.profile-stats-card h4 {
  font-size: 0.9rem;
  color: var(--gold-soft);
  margin-bottom: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-bright);
}

.stat-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.settings-actions-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #b8860b);
  color: #07080b;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-primary:hover {
  filter: brightness(1.15);
}


/* -------------------------------------------------------------------------- */
/* CONTEXT-SENSITIVE TOP MENU TABS (Replacing Duplicate Navbar)               */
/* -------------------------------------------------------------------------- */
.header-container {
  max-width: 100%;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.context-tabs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 6px;
  flex-grow: 1;
  justify-content: center;
}

.context-tabs-nav::-webkit-scrollbar {
  display: none;
}

.context-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
}

.context-tab-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.context-tab-pill.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(212, 175, 55, 0.6);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.context-tab-pill-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.header-right-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .context-tabs-nav {
    justify-content: flex-start;
  }
}
