/* ==============================================================================
   TROPICAL VILLAGE NATIONAL HIGH SCHOOL (TVNHS)
   LEARNING RESOURCES HUB - CUSTOM DESIGN SYSTEM & STYLESHEET
   Colors: Dark Blue (#0a2540 / #0f3460) & DepEd Green (#0e8751 / #16a34a)
   Secondary: Clean White & Refined Gray (#f8fafc / #f1f5f9)
   ============================================================================== */

:root {
  /* Brand Palette: Curated Academic Blue & Emerald/Mint Green */
  --tv-blue-darkest: #07192d;
  --tv-blue-navy: #0a2540;
  --tv-blue-deep: #0f3460;
  --tv-blue-primary: #1d4ed8;
  --tv-blue-accent: #2563eb;
  --tv-blue-sky: #0284c7;
  --tv-blue-soft: #eff6ff;
  --tv-blue-ice: #dbeafe;
  
  --tv-green-dark: #064e3b;
  --tv-green-forest: #065f46;
  --tv-green-primary: #059669;
  --tv-green-emerald: #10b981;
  --tv-green-mint: #34d399;
  --tv-green-soft: #ecfdf5;
  --tv-green-glow: rgba(16, 185, 129, 0.25);
  
  --tv-teal: #0d9488;
  --tv-teal-soft: #f0fdfa;

  /* Classic Library Golden Accent */
  --tv-gold: #f59e0b;
  --tv-gold-light: #fef3c7;

  /* Aliases for Full Compatibility */
  --tvnhs-navy-dark: var(--tv-blue-darkest);
  --tvnhs-navy: var(--tv-blue-navy);
  --tvnhs-navy-light: var(--tv-blue-deep);
  --tvnhs-blue-accent: var(--tv-blue-accent);
  --tvnhs-green-dark: var(--tv-green-forest);
  --tvnhs-green: var(--tv-green-primary);
  --tvnhs-green-light: var(--tv-green-emerald);
  --tvnhs-green-soft: var(--tv-green-soft);
  --tvnhs-gold: var(--tv-gold);
  --tvnhs-gold-light: var(--tv-gold-light);

  /* Neutrals */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Modern Library Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(10, 37, 64, 0.08), 0 4px 6px -4px rgba(14, 135, 81, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(10, 37, 64, 0.12), 0 8px 10px -6px rgba(16, 185, 129, 0.06);
  --shadow-card: 0 10px 30px -5px rgba(10, 37, 64, 0.07);
  --shadow-card-hover: 0 22px 38px -5px rgba(10, 37, 64, 0.14), 0 12px 18px -5px rgba(16, 185, 129, 0.14);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==============================================================================
   RESET & GLOBAL BASE
   ============================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-body);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--tvnhs-navy);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

a {
  color: var(--tvnhs-blue-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--tvnhs-navy);
}

img {
  max-width: 100%;
  height: auto;
}

/* Accessibility Focus States */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--tvnhs-green);
  outline-offset: 3px;
}

/* ==============================================================================
   TOP ANNOUNCEMENT BAR
   ============================================================================== */
.top-notice-bar {
  background: linear-gradient(90deg, var(--tvnhs-navy-dark) 0%, var(--tvnhs-navy) 100%);
  color: #e2e8f0;
  font-size: 0.84rem;
  padding: 0.45rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-notice-bar .badge-deped {
  background-color: rgba(255, 255, 255, 0.12);
  color: #fef08a;
  font-weight: 600;
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.top-notice-bar a {
  color: #93c5fd;
  text-decoration: none;
}
.top-notice-bar a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==============================================================================
   HEADER & NAVBAR
   ============================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px -2px rgba(10, 37, 64, 0.05);
  transition: all var(--transition-normal);
}

.navbar-brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.school-logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: transform var(--transition-spring);
  filter: drop-shadow(0 2px 4px rgba(10, 37, 64, 0.15));
}

.navbar-brand-wrapper:hover .school-logo-img {
  transform: rotate(-3deg) scale(1.05);
}

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

.brand-acronym {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--tvnhs-navy);
  letter-spacing: -0.01em;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--tv-blue-primary) 0%, var(--tv-green-primary) 100%);
  color: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.25);
}

.brand-subtitle {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--tvnhs-navy) !important;
  padding: 0.55rem 0.95rem !important;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--tvnhs-green) !important;
  background-color: rgba(14, 135, 81, 0.07);
}

/* Custom Mega/Dropdown Menu for Grade Levels & Department Repositories */
.dropdown-subjects-menu {
  width: 360px;
  max-width: 95vw;
  max-height: 540px;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 16px 40px -8px rgba(10, 37, 64, 0.18), 0 0 1px 1px rgba(10, 37, 64, 0.08);
  padding: 0.6rem;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.dropdown-subjects-menu::-webkit-scrollbar {
  width: 6px;
}
.dropdown-subjects-menu::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.dropdown-subject-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--tvnhs-navy);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.dropdown-subject-item:hover {
  background-color: var(--tvnhs-green-soft);
  color: var(--tvnhs-green);
  transform: translateX(3px);
}

.dropdown-subject-item .sub-index {
  font-size: 0.72rem;
  color: var(--text-light);
  width: 22px;
  font-weight: 700;
}

.dropdown-subject-item .sub-name {
  flex-grow: 1;
}

.dropdown-subject-item .sub-badge {
  font-size: 0.68rem;
  font-weight: 600;
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  margin-right: 0.4rem;
}

.dropdown-subject-item .sub-ext {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Expandable Grade Group in Dropdown */
.nav-grade-group {
  margin-bottom: 0.25rem;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.nav-grade-header {
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  outline: none;
}

.nav-grade-group.is-open .nav-grade-header {
  background-color: rgba(14, 135, 81, 0.08);
  color: var(--tvnhs-green-dark);
}

.sub-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--text-light);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
  margin-left: 0.35rem;
}

.nav-grade-group.is-open .sub-chevron {
  transform: rotate(180deg);
  color: var(--tvnhs-green);
}

/* Subsections list with smooth accordion slide */
.nav-grade-subsections {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.nav-grade-group.is-open .nav-grade-subsections {
  max-height: 800px;
  opacity: 1;
}

.nav-subsections-inner {
  margin: 0.25rem 0.4rem 0.5rem 1.45rem;
  padding-left: 0.65rem;
  border-left: 2px solid rgba(14, 135, 81, 0.28);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-subsection-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.65rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--tvnhs-navy);
  font-size: 0.82rem;
  font-weight: 600;
  background-color: rgba(248, 250, 252, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.7);
  transition: all var(--transition-fast);
}

.nav-subsection-item:hover {
  background-color: #ffffff;
  color: var(--tvnhs-green);
  border-color: rgba(14, 135, 81, 0.35);
  transform: translateX(3px);
  box-shadow: 0 2px 6px rgba(10, 37, 64, 0.07);
}

.nav-sub-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.nav-sub-title {
  flex-grow: 1;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-sub-code {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nav-sub-ext {
  font-size: 0.7rem;
  color: var(--text-light);
  transition: color var(--transition-fast);
}

.nav-subsection-item:hover .nav-sub-ext {
  color: var(--tvnhs-green);
}

.nav-subsections-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(203, 213, 225, 0.7);
}

.nav-sub-action-link,
.nav-sub-action-btn {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  color: var(--tvnhs-navy);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-sub-action-link:hover,
.nav-sub-action-btn:hover {
  background-color: var(--tvnhs-green-soft);
  color: var(--tvnhs-green);
  border-color: rgba(14, 135, 81, 0.3);
}

.dropdown-group-header {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tvnhs-navy-light);
  padding: 0.5rem 0.75rem 0.2rem;
  margin-top: 0.35rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dropdown-group-header:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0.2rem;
}

/* Header Action Buttons */
.btn-nav-drive {
  background: linear-gradient(135deg, var(--tv-blue-primary) 0%, var(--tv-green-primary) 100%);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.22);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  border: none;
}

.btn-nav-drive:hover {
  background: linear-gradient(135deg, var(--tv-green-primary) 0%, var(--tv-green-emerald) 100%);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

/* ==============================================================================
   HERO SECTION & LIBRARY HUB MODERN STYLES
   ============================================================================== */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 12% 18%, rgba(29, 78, 216, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 88% 75%, rgba(16, 185, 129, 0.09) 0%, transparent 45%),
              radial-gradient(circle at 50% 10%, rgba(13, 148, 136, 0.05) 0%, transparent 40%),
              linear-gradient(180deg, #ffffff 0%, var(--bg-body) 100%);
  padding: 4.8rem 0 3.8rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(rgba(10, 37, 64, 0.035) 1px, transparent 1px),
    radial-gradient(rgba(16, 185, 129, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  pointer-events: none;
  opacity: 0.75;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background-color: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--tv-green-forest);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.38rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(10, 37, 64, 0.05);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero-badge-pill .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--tv-green-emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.35rem);
  font-weight: 800;
  color: var(--tv-blue-navy);
  line-height: 1.18;
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
}

.hero-title .text-gradient-lib {
  background: linear-gradient(135deg, #1d4ed8 0%, #0d9488 45%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-title .text-gradient-green {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .text-gradient-blue {
  background: linear-gradient(135deg, #0a2540 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #0a2540 0%, #1d4ed8 50%, #059669 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 20px -5px rgba(10, 37, 64, 0.28), 0 4px 10px -2px rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all var(--transition-fast);
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #1d4ed8 100%);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 14px 26px -5px rgba(5, 150, 105, 0.35), 0 6px 14px -2px rgba(29, 78, 216, 0.25);
}

.btn-hero-secondary {
  background-color: #ffffff;
  color: var(--tv-blue-navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.88rem 1.6rem;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(13, 148, 136, 0.3);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all var(--transition-fast);
}

.btn-hero-secondary:hover {
  background-color: var(--tv-green-soft);
  border-color: var(--tv-green-emerald);
  color: var(--tv-green-forest);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -4px rgba(16, 185, 129, 0.2);
}

/* Modern Library Catalog Search Bar */
.hero-search-wrapper {
  background: #ffffff;
  border: 1.5px solid rgba(29, 78, 216, 0.18);
  border-radius: var(--radius-xl);
  padding: 0.45rem 0.6rem 0.45rem 1.25rem;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 24px -4px rgba(10, 37, 64, 0.08);
  max-width: 600px;
  transition: all var(--transition-fast);
}

.hero-search-wrapper:focus-within {
  border-color: var(--tv-green-emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18), 0 12px 28px -4px rgba(10, 37, 64, 0.12);
}

.hero-search-wrapper i {
  color: var(--tv-blue-primary);
  font-size: 1.2rem;
}

.hero-search-input {
  border: none;
  background: transparent;
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  width: 100%;
  outline: none;
  font-family: var(--font-body);
}

.hero-search-input::placeholder {
  color: var(--text-muted);
}

/* Quick Search Tags Under Hero Search */
.hero-quick-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.quick-tags-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--tv-blue-navy);
  letter-spacing: 0.02em;
}

.quick-tag-chip {
  background: #ffffff;
  border: 1px solid rgba(29, 78, 216, 0.18);
  color: var(--tv-blue-navy);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.quick-tag-chip:hover {
  background: var(--tv-green-soft);
  color: var(--tv-green-forest);
  border-color: var(--tv-green-emerald);
  transform: translateY(-1px);
}

/* Hero Right Visual: Digital Library Commons Display Card */
.hero-visual-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 1.85rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(226, 232, 240, 0.85);
  position: relative;
  overflow: hidden;
}

.hero-visual-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #1d4ed8 0%, #0d9488 40%, #10b981 80%, #f59e0b 100%);
}

.hub-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.hub-status-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--tv-blue-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.hub-stat-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.95rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all var(--transition-fast);
}

.hub-stat-item:hover {
  background: #ffffff;
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.hub-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.hub-stat-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.1rem;
}

.hub-stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--tv-blue-navy);
  margin: 0;
}

/* ==============================================================================
   MODERN LIBRARY HUB FEATURE RIBBON
   ============================================================================== */
.library-features-ribbon {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 1.6rem 0;
  position: relative;
  z-index: 5;
}

.lib-feature-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  height: 100%;
}

.lib-feature-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.lib-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: transform var(--transition-spring);
}

.lib-feature-card:hover .lib-feature-icon {
  transform: scale(1.1);
}

.lib-feature-icon.icon-blue {
  background: rgba(29, 78, 216, 0.1);
  color: #1d4ed8;
}

.lib-feature-icon.icon-green {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
}

.lib-feature-icon.icon-teal {
  background: rgba(13, 148, 136, 0.1);
  color: #0d9488;
}

.lib-feature-icon.icon-emerald {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.lib-feature-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--tv-blue-navy);
  margin-bottom: 0.15rem;
  line-height: 1.25;
}

.lib-feature-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.35;
}

/* ==============================================================================
   HOW IT WORKS / LIBRARY RESOURCES ACCESS GUIDE (Section D)
   ============================================================================== */
.info-section {
  padding: 5rem 0;
  background-color: #ffffff;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tv-green-forest);
  background-color: var(--tv-green-soft);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--tv-blue-navy);
  margin-bottom: 0.9rem;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 3rem;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.75rem;
  text-align: center;
  height: 100%;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: var(--shadow-card-hover);
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--tv-blue-navy) 0%, var(--tv-blue-primary) 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-sm);
}

.step-card:hover .step-number {
  background: linear-gradient(135deg, var(--tv-green-primary) 0%, var(--tv-green-emerald) 100%);
}

.step-icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: rgba(16, 185, 129, 0.1);
  color: var(--tv-green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0.5rem auto 1.5rem;
  transition: all var(--transition-fast);
}

.step-card:hover .step-icon-box {
  background: linear-gradient(135deg, var(--tv-green-primary) 0%, var(--tv-green-emerald) 100%);
  color: #ffffff;
  transform: scale(1.08) rotate(3deg);
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--tv-blue-navy);
  margin-bottom: 0.75rem;
}

.step-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* DepEd Tip Box */
.deped-tip-banner {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.04) 0%, rgba(16, 185, 129, 0.06) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-left: 5px solid var(--tv-green-primary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-top: 2.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.deped-tip-banner i {
  font-size: 1.5rem;
  color: var(--tv-green-primary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.deped-tip-banner p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ==============================================================================
   GRADE LEVELS & REPOSITORIES SECTION (Section C)
   ============================================================================== */
.subjects-section {
  padding: 5.5rem 0 5rem;
  background-color: var(--bg-body);
  position: relative;
}

/* Category Filter Pills */
.filter-pills-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-pill-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill-btn:hover {
  background: var(--tv-blue-soft);
  color: var(--tv-blue-primary);
  border-color: rgba(29, 78, 216, 0.25);
}

.filter-pill-btn.active {
  background: linear-gradient(135deg, var(--tv-blue-navy) 0%, #0f3661 50%, var(--tv-green-forest) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.2);
}

/* SUBJECT / LIBRARY STACK CARD DESIGN */
.subject-card-col {
  transition: transform var(--transition-normal);
}

.subject-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--card-theme, var(--tv-blue-primary));
  border-radius: var(--radius-xl);
  padding: 1.85rem 1.65rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.subject-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--card-theme, #1d4ed8) 0%, #10b981 100%);
  opacity: 0.85;
  transition: height var(--transition-fast);
}

.subject-card:hover {
  transform: translateY(-8px);
  border-color: rgba(16, 185, 129, 0.35);
  border-left-color: var(--card-theme, var(--tv-green-primary));
  box-shadow: var(--shadow-card-hover);
}

.subject-card:hover::before {
  height: 6px;
}

/* Card Header */
.subject-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.subject-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: transform var(--transition-spring);
}

.subject-card:hover .subject-icon-wrap {
  transform: scale(1.1) rotate(-4deg);
}

.subject-badge-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
}

.subject-index-pill {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.subject-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--tvnhs-navy);
  margin-bottom: 0.65rem;
  line-height: 1.2;
}

.subject-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.subject-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.4rem;
}

.subject-tag-item {
  font-size: 0.74rem;
  color: var(--text-secondary);
  background-color: var(--bg-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-weight: 500;
}

/* Sub-sections preview chips on Grade Level Card */
.subject-sections-preview-box {
  margin-bottom: 1.25rem;
  padding: 0.75rem 0.85rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
}

.subject-sections-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--tvnhs-navy);
}

.subject-preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.subject-preview-chip {
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  background: #ffffff;
  color: var(--text-secondary);
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all var(--transition-fast);
}

.subject-preview-chip:hover {
  text-decoration: none;
  background: var(--tvnhs-navy);
  color: #ffffff;
  border-color: var(--tvnhs-navy);
}

.subject-preview-chip .chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

/* Card Button / Footer */
.subject-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.subject-access-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--card-theme, var(--tvnhs-navy));
  transition: all var(--transition-fast);
}

.subject-card:hover .subject-access-btn {
  color: var(--tvnhs-green);
  gap: 0.7rem;
}

.drive-badge-flag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #16a34a;
  background-color: rgba(22, 163, 74, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Placeholder warning badge when not configured yet */
.drive-badge-unconfigured {
  font-size: 0.72rem;
  font-weight: 600;
  color: #d97706;
  background-color: rgba(217, 119, 6, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

/* No results found notice */
.no-results-box {
  display: none;
  text-align: center;
  padding: 4rem 1.5rem;
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px dashed var(--border-color);
}

/* ==============================================================================
   ADMINISTRATOR / SETUP HELPER BANNER
   ============================================================================== */
.admin-helper-section {
  background: linear-gradient(135deg, var(--tvnhs-navy) 0%, #0d2847 100%);
  color: #ffffff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.admin-helper-section::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.admin-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(8px);
}

.admin-card code {
  color: #6ee7b7;
  font-size: 0.88rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.btn-open-config-modal {
  background-color: var(--tvnhs-green);
  color: #ffffff;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  transition: all var(--transition-fast);
}

.btn-open-config-modal:hover {
  background-color: #059669;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==============================================================================
   FOOTER (Section E)
   ============================================================================== */
.main-footer {
  background-color: var(--tvnhs-navy-dark);
  color: #cbd5e1;
  padding: 4.5rem 0 2rem;
  font-size: 0.92rem;
  border-top: 4px solid var(--tvnhs-green);
}

.footer-brand-title {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.footer-school-tag {
  color: #94a3b8;
  font-size: 0.86rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--tvnhs-green);
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 0.6rem;
}

.footer-links-list a {
  color: #94a3b8;
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links-list a:hover {
  color: #34d399;
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  color: #cbd5e1;
}

.footer-contact-item i {
  color: var(--tvnhs-green-light);
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

.footer-bottom-bar {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  color: #64748b;
}

.footer-bottom-bar a {
  color: #94a3b8;
}

.footer-bottom-bar a:hover {
  color: #ffffff;
}

/* ==============================================================================
   CONFIG GUIDE & UNCONFIGURED URL MODAL
   ============================================================================== */
.modal-content {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.modal-header-custom {
  background: linear-gradient(135deg, var(--tvnhs-navy) 0%, #123764 100%);
  color: #ffffff;
  padding: 1.25rem 1.75rem;
  border-bottom: 3px solid var(--tvnhs-green);
}

.code-preview-box {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  font-family: 'Consolas', monospace;
  font-size: 0.86rem;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 1rem 0;
}

.code-preview-box .highlight {
  color: #34d399;
  font-weight: bold;
}

/* ==============================================================================
   TOAST NOTIFICATION (For Quick Feedback)
   ============================================================================== */
.toast-container-custom {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1090;
}

.tvnhs-toast {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--tvnhs-gold);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-xl);
  max-width: 380px;
  animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==============================================================================
   SECTION / SUBJECT PICKER CARD MODAL (Grade 7 & Other Grades)
   ============================================================================== */
.section-picker-modal-content {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 60px -15px rgba(10, 37, 64, 0.35);
  background: #ffffff;
}

.picker-grade-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.section-picker-intro-card {
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.04) 0%, rgba(14, 135, 81, 0.05) 100%);
  border: 1px solid rgba(14, 135, 81, 0.18);
  border-left: 4px solid var(--tvnhs-green);
}

.picker-search-bar .form-control {
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  border-color: var(--border-color);
  box-shadow: none;
}

.picker-search-bar .form-control:focus {
  border-color: var(--tvnhs-green);
  box-shadow: 0 0 0 3px rgba(14, 135, 81, 0.15);
}

.picker-search-bar .input-group-text {
  border-color: var(--border-color);
  color: var(--text-muted);
}

/* Individual Subject / Section Card */
.section-card-col {
  transition: transform var(--transition-normal);
}

.section-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.15rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--section-theme, var(--tvnhs-navy));
  transition: height var(--transition-fast);
}

.section-card:hover {
  transform: translateY(-5px);
  border-color: var(--section-theme, var(--tvnhs-green));
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.12), 0 4px 8px -2px rgba(15, 23, 42, 0.06);
}

.section-card:hover::before {
  height: 5px;
}

.section-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.section-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: transform var(--transition-spring);
}

.section-card:hover .section-icon-box {
  transform: scale(1.1) rotate(-3deg);
}

.section-code-badge {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--section-theme, var(--tvnhs-navy));
  background: var(--bg-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.section-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tvnhs-navy);
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.section-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.section-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(226, 232, 240, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-open-btn {
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--section-theme, var(--tvnhs-navy));
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.section-card:hover .section-open-btn {
  text-decoration: none;
  color: var(--tvnhs-green);
  gap: 0.55rem;
}

.section-badge-live {
  font-size: 0.68rem;
  font-weight: 700;
  color: #16a34a;
  background-color: rgba(22, 163, 74, 0.1);
  padding: 0.18rem 0.45rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.section-badge-pending {
  font-size: 0.68rem;
  font-weight: 600;
  color: #d97706;
  background-color: rgba(217, 119, 6, 0.1);
  padding: 0.18rem 0.45rem;
  border-radius: var(--radius-full);
}

/* ==============================================================================
   BACK TO TOP BUTTON
   ============================================================================== */
.btn-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background-color: var(--tvnhs-navy);
  color: #ffffff;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
}

.btn-back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.btn-back-to-top:hover {
  background-color: var(--tvnhs-green);
  transform: translateY(-3px);
}

/* ==============================================================================
   RESPONSIVE QUERIES
   ============================================================================== */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 3.5rem 0 2.5rem;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-search-wrapper {
    margin: 0 auto;
  }
  .hero-visual-card {
    margin-top: 2.5rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
  .dropdown-subjects-menu {
    width: 100%;
    max-height: 440px;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .btn-hero-primary, .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }
  .subject-card {
    padding: 1.35rem 1.25rem;
  }
}
