/* ==========================================================================
   BRILLIANT LEARNING - MAIN STYLESHEET
   Brand Colors: Royal Navy Blue (#0B1E3F, #163A75) & Metallic Gold (#D4AF37)
   ========================================================================== */

:root {
  /* Brand Palette */
  --primary-navy: #0B1E3F;
  --primary-dark: #050E1F;
  --primary-navy-card: #0F254E;
  --navy-light: #163A75;
  --navy-subtle: #1E4E9D;
  --royal-blue: #1D5BBF;
  --accent-cyan: #0EA5E9;
  
  /* Gold Accent */
  --gold-primary: #D4AF37;
  --gold-light: #F7DF88;
  --gold-dark: #A77E1E;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --gold-gradient: linear-gradient(135deg, #F9E79F 0%, #D4AF37 50%, #B78727 100%);
  --blue-gradient: linear-gradient(135deg, #0B1E3F 0%, #163A75 100%);
  --hero-overlay: linear-gradient(90deg, rgba(5,14,31,0.92) 0%, rgba(11,30,63,0.85) 55%, rgba(11,30,63,0.4) 100%);

  /* Neutrals */
  --bg-page: #F8FAFC;
  --bg-white: #FFFFFF;
  --bg-slate: #F1F5F9;
  --card-border: #E2E8F0;
  --card-shadow: 0 10px 30px -5px rgba(11, 30, 63, 0.08);
  --card-hover-shadow: 0 20px 35px -5px rgba(11, 30, 63, 0.15);

  /* Typography */
  --text-dark: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-light: #F8FAFC;

  /* Dimensions & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --container-max: 1240px;
  --header-height: 98px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   SLEEK COMPACT BRANDED PRELOADER
   ========================================================================== */
.site-preloader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(12, 30, 60, 0.98) 0%, rgba(5, 14, 31, 0.99) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s ease;
  pointer-events: auto;
  overflow: hidden;
}

.site-preloader.fade-out {
  opacity: 0 !important;
  transform: scale(0.96) !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  position: relative;
  max-width: 320px;
  width: 100%;
}

/* Premium White Badge For 100% Crisp Logo Visibility */
.preloader-logo-card {
  background: #FFFFFF;
  padding: 14px 28px;
  border-radius: 16px;
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 25px rgba(212, 175, 55, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  animation: preloaderCardPulse 1.8s ease-in-out infinite alternate;
}

@keyframes preloaderCardPulse {
  0% {
    transform: scale(0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 18px rgba(212, 175, 55, 0.25);
  }
  100% {
    transform: scale(1.01);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 32px rgba(212, 175, 55, 0.45);
  }
}

.preloader-logo {
  height: 56px;
  max-height: 60px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

/* Sleek Compact Micro Progress Bar & Percentage Row */
.preloader-bar-wrap {
  width: 150px;
  height: 4px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #D4AF37 0%, #F59E0B 100%);
  border-radius: 99px;
  transition: width 0.12s ease-out;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

.preloader-meta-row {
  width: 150px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.preloader-status-text {
  color: #94A3B8;
  font-size: 0.70rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
  font-family: 'Inter', -apple-system, sans-serif;
  transition: color 0.2s ease;
}

.preloader-percent {
  color: #D4AF37;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Inter', monospace;
  font-variant-numeric: tabular-nums;
  display: inline-block !important;
}

/* Backward compatibility cleanup */
.preloader-logo-wrap {
  display: contents;
}
.preloader-orbit-outer,
.preloader-pulse-ring,
.preloader-text,
.preloader-sub {
  display: none !important;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-body);
  background-color: var(--bg-page);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Allow normal text selection & typing inside form fields */
input,
textarea,
select,
[contenteditable="true"] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
}

/* Prevent image dragging */
img {
  -webkit-user-drag: none;
  user-drag: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Poppins', sans-serif;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Gold Gradient Text helper */
.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Badge common */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.badge-gold {
  background: rgba(212, 175, 55, 0.15);
  color: #B2821A;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.badge-blue {
  background: rgba(30, 86, 160, 0.12);
  color: var(--navy-light);
  border: 1px solid rgba(30, 86, 160, 0.25);
}

/* Section Header Styles */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-header .section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy-subtle);
  background: rgba(22, 58, 117, 0.08);
  padding: 5px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2.3rem;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ==========================================================================
   TOP ANNOUNCEMENT BAR
   ========================================================================== */
.top-bar {
  background-color: var(--primary-dark);
  color: #94A3B8;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-left a, .top-bar-left span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #CBD5E1;
}

.top-bar-left a:hover {
  color: var(--gold-primary);
}

.top-bar-left i {
  color: var(--gold-primary);
  font-size: 0.9rem;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

.top-bar-social {
  display: flex;
  gap: 12px;
}

.top-bar-social a {
  color: #94A3B8;
}

.top-bar-social a:hover {
  color: var(--gold-primary);
}

/* ==========================================================================
   MAIN NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(11, 30, 63, 0.06);
  transition: var(--transition);
}

.site-header.scrolled {
  background: #FFFFFF;
  box-shadow: 0 6px 25px rgba(11, 30, 63, 0.12);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 20px;
}

/* Logo container - Pure transparent, zero background */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  padding: 4px 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.brand-logo-img {
  height: 84px;
  max-height: 88px;
  width: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  transition: var(--transition);
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: none !important;
  mix-blend-mode: multiply;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.02);
}

/* Main Nav items */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--primary-navy);
  border-radius: var(--radius-sm);
  transition: color 0.25s ease, background-color 0.25s ease;
  white-space: nowrap;
}

/* Luxury Animated Underline Indicator */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 12px;
  right: 12px;
  height: 3px;
  background: linear-gradient(90deg, #D4AF37 0%, #F59E0B 50%, #D4AF37 100%);
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
  opacity: 0;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.nav-link:hover {
  color: var(--royal-blue);
  background: transparent;
}

.nav-link:hover::after {
  transform: scaleX(0.75);
  opacity: 0.7;
}

.nav-item:hover > .nav-link {
  color: var(--royal-blue);
  background: transparent;
}

.nav-link.active {
  color: var(--primary-navy) !important;
  font-weight: 700 !important;
  background: transparent !important;
}

.nav-link.active:hover {
  background: transparent !important;
  color: var(--royal-blue) !important;
}

.nav-link.active::after {
  transform: scaleX(1) !important;
  opacity: 1 !important;
  height: 3.5px !important;
  background: linear-gradient(90deg, #C59A27 0%, #D4AF37 50%, #C59A27 100%) !important;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.65) !important;
}

.nav-link i.fa-chevron-down {
  font-size: 0.7rem;
  transition: transform 0.25s ease;
}

.nav-item:hover .nav-link i.fa-chevron-down {
  transform: rotate(180deg);
}

/* Multi-Tier Dropdown Menus - Best Ever Smooth Luxury Edition */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 255px;
  background: linear-gradient(175deg, #07152B 0%, #0D2244 100%);
  border-radius: 10px;
  box-shadow: 0 22px 55px rgba(2, 8, 20, 0.55), 0 0 1px 1px rgba(212, 175, 55, 0.25);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.24s;
  z-index: 1100;
  list-style: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Hover bridge between nav-link and dropdown-menu */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 18px;
  background: transparent;
}

.nav-item:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Submenu container (Levels 1, 2, 3, 4) */
.has-submenu {
  position: relative;
  list-style: none;
}

.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 15px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #E2E8F0;
  border-radius: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.dropdown-link:hover, .has-submenu:hover > .dropdown-link {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0.04) 100%);
  color: #FFFFFF;
  border-left-color: #D4AF37;
  padding-left: 18px;
}

.dropdown-link i.arrow-icon {
  font-size: 0.7rem;
  color: #94A3B8;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.has-submenu:hover > .dropdown-link i.arrow-icon {
  color: #D4AF37;
  transform: translateX(4px);
}

/* Submenu Flyout (Levels 2, 3, 4) */
.submenu-flyout {
  position: absolute;
  top: -6px;
  left: 100%;
  min-width: 260px;
  background: linear-gradient(175deg, #07152B 0%, #0D2244 100%);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(2, 8, 20, 0.6), 0 0 1px 1px rgba(212, 175, 55, 0.25);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px) scale(0.98);
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.24s;
  z-index: 1110;
  overflow: visible;
  list-style: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Invisible hover bridge to prevent losing hover when cursor moves diagonally */
.submenu-flyout::before {
  content: '';
  position: absolute;
  top: -16px;
  bottom: -16px;
  left: -24px;
  width: 28px;
  background: transparent;
}

.has-submenu:hover > .submenu-flyout {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}

/* Progressive Z-Index for deep nesting */
.dropdown-menu .submenu-flyout {
  z-index: 1110;
}

.dropdown-menu .submenu-flyout .submenu-flyout {
  z-index: 1120;
}

.dropdown-menu .submenu-flyout .submenu-flyout .submenu-flyout {
  z-index: 1130;
}

/* Flyout towards left if near right edge of the screen */
.submenu-flyout.flyout-left {
  left: auto;
  right: 100%;
  transform: translateX(-10px) scale(0.98);
}

.submenu-flyout.flyout-left::before {
  left: auto;
  right: -24px;
}

.has-submenu:hover > .submenu-flyout.flyout-left {
  transform: translateX(0) scale(1);
}

/* Mega dropdown option for Courses */
.dropdown-menu.mega-menu {
  width: 580px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 18px;
}

.dropdown-col-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: #B2821A;
  margin-bottom: 10px;
  padding-bottom: 4px;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.3);
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--bg-slate);
  transform: translateX(3px);
}

.dropdown-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(30, 86, 160, 0.08);
  color: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.dropdown-item:hover .dropdown-icon {
  background: var(--primary-navy);
  color: var(--gold-light);
}

.dropdown-text h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 2px;
}

.dropdown-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Cohesive Header Auth Group (Sign In & Sign Up Together with Account Icon) */
.header-auth-group {
  display: inline-flex;
  align-items: center;
  background: #0B1E3F;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #1E3A8A;
  box-shadow: 0 2px 4px rgba(11, 30, 63, 0.12);
}

.header-auth-group .btn-signin-link,
.header-auth-group .btn-signup-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF !important;
  border-radius: 7px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.header-auth-group .btn-signin-link i.account-icon,
.header-auth-group .btn-signin-link i.fa-circle-user {
  color: #F59E0B;
  font-size: 1.05rem;
}

.header-auth-group .btn-signin-link:hover,
.header-auth-group .btn-signup-link:hover {
  color: #FCD34D !important;
  background: rgba(255, 255, 255, 0.1);
}

.header-auth-group .auth-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 2px;
}

@media (max-width: 576px) {
  .header-auth-group .btn-signin-link,
  .header-auth-group .btn-signup-link {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   AUTHENTICATED USER HEADER HOVER DROPDOWN (FRONTEND NAVBAR)
   ========================================================================== */
.header-user-dropdown {
  position: relative;
  display: inline-block;
}

.header-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0B1E3F;
  border: 1px solid #1E3A8A;
  border-radius: 12px;
  padding: 4px 12px 4px 5px;
  color: #FFFFFF !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 5px rgba(11, 30, 63, 0.15);
}

.header-user-trigger:hover,
.header-user-dropdown:hover .header-user-trigger {
  background: #112a55;
  border-color: #2563EB;
  box-shadow: 0 4px 14px rgba(11, 30, 63, 0.25);
  transform: translateY(-1px);
}

.header-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  text-transform: uppercase;
}

.header-user-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.header-user-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.header-user-role-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #F59E0B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.header-user-chevron {
  font-size: 0.72rem;
  color: #94A3B8;
  margin-left: 2px;
  transition: transform 0.25s ease, color 0.2s ease;
}

.header-user-dropdown:hover .header-user-chevron {
  transform: rotate(180deg);
  color: #F59E0B;
}

/* Dropdown Menu Card */
.header-user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  width: 275px;
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 16px 38px -4px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  overflow: hidden;
  pointer-events: none;
}

/* Hover bridge so mouse movement doesn't close dropdown */
.header-user-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
}

.header-user-dropdown:hover .header-user-menu,
.header-user-dropdown:focus-within .header-user-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.header-user-menu-header {
  padding: 16px;
  background: linear-gradient(135deg, #0B1E3F 0%, #172554 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-user-menu-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  text-transform: uppercase;
}

.header-user-menu-info {
  min-width: 0;
  flex: 1;
}

.header-user-menu-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.header-user-menu-email {
  font-size: 0.72rem;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
  display: block;
}

.header-user-menu-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.header-user-menu-tag.admin {
  background: rgba(245, 158, 11, 0.2);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.header-user-menu-tag.student {
  background: rgba(16, 185, 129, 0.2);
  color: #6EE7B7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.header-user-menu-body {
  padding: 8px;
}

.header-user-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  color: #1E293B !important;
  text-decoration: none !important;
  font-size: 0.83rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.header-user-menu-link .link-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-user-menu-link .link-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #F1F5F9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.15s ease;
}

.header-user-menu-link:hover {
  background: #F8FAFC;
  color: #2563EB !important;
}

.header-user-menu-link:hover .link-icon {
  background: #EFF6FF;
  color: #2563EB;
}

.header-user-menu-link .chevron {
  font-size: 0.65rem;
  color: #94A3B8;
  transition: transform 0.15s ease;
}

.header-user-menu-link:hover .chevron {
  transform: translateX(2px);
  color: #2563EB;
}

.header-user-menu-divider {
  height: 1px;
  background: #F1F5F9;
  margin: 4px 8px;
}

.header-user-menu-footer {
  padding: 8px;
  background: #F8FAFC;
  border-top: 1px solid #F1F5F9;
}

.header-user-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  background: #FEF2F2;
  border: 1px solid #FEE2E2;
  color: #DC2626 !important;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.header-user-logout-btn:hover {
  background: #DC2626;
  border-color: #DC2626;
  color: #FFFFFF !important;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.25);
}

.header-user-logout-btn:hover .logout-icon,
.header-user-logout-btn:hover .logout-chevron {
  color: #FFFFFF !important;
}

.header-user-logout-btn .logout-icon {
  color: #DC2626;
  transition: color 0.15s ease;
}

.header-user-logout-btn .logout-chevron {
  font-size: 0.65rem;
  opacity: 0.7;
  transition: all 0.15s ease;
}

.header-user-logout-btn:hover .logout-chevron {
  transform: translateX(2px);
  opacity: 1;
}

@media (max-width: 576px) {
  .header-user-name,
  .header-user-role-badge {
    display: none;
  }
  .header-user-trigger {
    padding: 3px 6px 3px 3px;
  }
}

/* Search Box in Header */
.search-wrapper {
  position: relative;
}

.search-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  color: #64748B;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.82rem;
  font-weight: 500;
  max-width: 175px;
}

.search-trigger-btn:hover {
  border-color: var(--gold-primary);
  background: #FFF;
  color: var(--primary-navy);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.18);
}

.search-trigger-btn i {
  color: var(--gold-primary);
  font-size: 0.85rem;
}

.search-trigger-btn .search-btn-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-trigger-btn kbd {
  background: #E2E8F0;
  color: #475569;
  font-size: 0.68rem;
  padding: 1px 5px;
  border-radius: 4px;
  font-family: inherit;
  font-weight: 600;
  border: 1px solid #CBD5E1;
}

/* CTA Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.94rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-gradient);
  color: #FFF;
  box-shadow: 0 4px 15px rgba(11, 30, 63, 0.25);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #122c5e 0%, #1c4892 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 30, 63, 0.35);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #061224;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.45);
  filter: brightness(1.05);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-primary);
  border: 1.5px solid var(--gold-primary);
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.12);
  color: #FFF;
}

.btn-outline-white {
  background: transparent;
  color: #FFF;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FFF;
}

.btn-login {
  background: transparent;
  color: var(--primary-navy);
  border: 1.5px solid var(--primary-navy);
  padding: 8px 18px;
  font-size: 0.9rem;
}

.btn-login:hover {
  background: var(--primary-navy);
  color: var(--gold-light);
}

/* Mobile Toggle Hamburger */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  align-items: center;
  justify-content: center;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-navy);
  position: relative;
  transition: var(--transition);
}

.hamburger-line::before, .hamburger-line::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--primary-navy);
  transition: var(--transition);
}

.hamburger-line::before {
  top: -7px;
}

.hamburger-line::after {
  bottom: -7px;
}

.mobile-nav-toggle.active .hamburger-line {
  background: transparent;
}

.mobile-nav-toggle.active .hamburger-line::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-nav-toggle.active .hamburger-line::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* ==========================================================================
   LIVE AJAX SEARCH MODAL / POPUP (Compact & Sleek)
   ========================================================================== */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 14, 31, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 50px 16px 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.search-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.search-modal-box {
  width: 100%;
  max-width: 480px;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 1px 1px rgba(212, 175, 55, 0.3);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.35);
  transform: translateY(-16px) scale(0.98);
  transition: var(--transition);
}

.search-modal-backdrop.active .search-modal-box {
  transform: translateY(0) scale(1);
}

.search-header-bar {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #E2E8F0;
  gap: 10px;
  background: #FFF;
}

.search-header-bar i.fa-magnifying-glass {
  color: var(--gold-primary);
  font-size: 1rem;
}

.search-input-field {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.92rem;
  color: var(--primary-navy);
  background: transparent;
  font-weight: 500;
}

.search-input-field::placeholder {
  color: #94A3B8;
  font-size: 0.88rem;
}

.search-ajax-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--gold-primary);
  border-right-color: #0EA5E9;
  animation: spinViewer 0.65s linear infinite;
  display: none;
  flex-shrink: 0;
}

.search-ajax-spinner.active {
  display: block;
}

.search-close-btn {
  background: #F1F5F9;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition);
}

.search-close-btn:hover {
  background: #E2E8F0;
  color: var(--text-dark);
}

/* Search results list */
.search-results-container {
  max-height: 380px;
  overflow-y: auto;
  padding: 10px 16px;
}

.search-result-category-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  color: #B2821A;
  margin: 10px 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 4px;
  text-decoration: none;
  background: #FFF;
  border: 1px solid transparent;
}

.search-item:hover, .search-item.active {
  background: #F8FAFC;
  border-color: rgba(212, 175, 55, 0.25);
  transform: translateX(3px);
}

/* Auth Mode Switcher (Login / Register) */
.login-auth-switch {
  display: flex;
  background: #F1F5F9;
  border-radius: var(--radius-full);
  padding: 3px;
  margin: 0 0 16px 0;
  border: 1px solid #E2E8F0;
}

.login-auth-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748B;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.login-auth-btn.active {
  background: #0B1E3F;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(11, 30, 63, 0.2);
}

.login-auth-btn.active i {
  color: #D4AF37;
}

.login-switch-footer {
  margin-top: 14px;
  text-align: center;
  font-size: 0.84rem;
  color: #64748B;
}

.login-switch-footer a {
  color: var(--gold-dark);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.login-switch-footer a:hover {
  text-decoration: underline;
}

.search-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.search-item-info {
  flex: 1;
}

.search-item-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 2px;
}

.search-item-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.search-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.search-item-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: #E2E8F0;
  color: #475569;
  font-weight: 600;
}

.search-footer-info {
  padding: 10px 24px;
  background: #F8FAFC;
  border-top: 1px solid var(--card-border);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   HERO IMAGE SLIDER
   ========================================================================== */
.hero-slider-section {
  position: relative;
  width: 100%;
  height: 640px;
  overflow: hidden;
  background: var(--primary-dark);
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Background image in slide */
.slide-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 6s ease-out;
}

.slide.active .slide-bg {
  transform: scale(1);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 2;
}

/* Slide Content */
.slide-content-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
}

.slide-content {
  max-width: 680px;
  color: #FFF;
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
  backdrop-filter: blur(6px);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.6s ease 0.2s, opacity 0.6s ease 0.2s;
}

.slide.active .slide-badge {
  transform: translateY(0);
  opacity: 1;
}

.slide-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: #FFF;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  transform: translateY(25px);
  opacity: 0;
  transition: transform 0.6s ease 0.3s, opacity 0.6s ease 0.3s;
}

.slide.active .slide-title {
  transform: translateY(0);
  opacity: 1;
}

.slide-desc {
  font-size: 1.15rem;
  color: #CBD5E1;
  margin-bottom: 28px;
  line-height: 1.6;
  max-width: 600px;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.6s ease 0.4s, opacity 0.6s ease 0.4s;
}

.slide.active .slide-desc {
  transform: translateY(0);
  opacity: 1;
}

.slide-btns {
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateY(35px);
  opacity: 0;
  transition: transform 0.6s ease 0.5s, opacity 0.6s ease 0.5s;
}

.slide.active .slide-btns {
  transform: translateY(0);
  opacity: 1;
}

/* Slider Controls: Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(5, 14, 31, 0.6);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.slider-arrow:hover {
  background: var(--gold-primary);
  color: var(--primary-dark);
  border-color: var(--gold-primary);
  box-shadow: 0 0 20px var(--gold-glow);
}

.slider-arrow.prev {
  left: 30px;
}

.slider-arrow.next {
  right: 30px;
}

/* Slider Pagination Dots */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  width: 34px;
  border-radius: var(--radius-full);
  background: var(--gold-gradient);
  box-shadow: 0 0 10px var(--gold-glow);
}

/* ==========================================================================
   STATISTICS STRIP
   ========================================================================== */
.stats-strip {
  background: #FFF;
  padding: 30px 0;
  margin-top: -45px;
  position: relative;
  z-index: 20;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 40px rgba(11, 30, 63, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item {
  padding: 10px 15px;
  border-right: 1px solid #E2E8F0;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-navy);
  font-family: 'Outfit', sans-serif;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

.stat-number span {
  color: var(--gold-dark);
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   TEACHING MODES SECTION
   ========================================================================== */
.teaching-modes-section {
  padding: 90px 0 80px;
  background: #F8FAFC;
}

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

.mode-card {
  background: #FFF;
  border-radius: var(--radius-md);
  padding: 36px 30px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.mode-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(212, 175, 55, 0.4);
}

.mode-card.featured {
  border-color: var(--gold-primary);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
}

.mode-ribbon {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--gold-gradient);
  color: #051224;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.mode-icon-box {
  width: 65px;
  height: 65px;
  border-radius: 16px;
  background: var(--blue-gradient);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 8px 20px rgba(11, 30, 63, 0.15);
}

.mode-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--primary-navy);
}

.mode-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 20px;
  flex: 1;
}

.mode-features-list {
  margin-bottom: 24px;
}

.mode-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-body);
  margin-bottom: 10px;
}

.mode-features-list li i {
  color: #10B981;
  font-size: 0.85rem;
}

.mode-btn {
  width: 100%;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(11, 30, 63, 0.05);
  color: var(--primary-navy);
  transition: var(--transition);
}

.mode-card:hover .mode-btn {
  background: var(--primary-navy);
  color: var(--gold-light);
}

/* ==========================================================================
   ACADEMIC PROGRAMS / VERTICALS
   ========================================================================== */
.programs-section {
  padding: 80px 0;
  background: #FFF;
}

.program-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.program-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--bg-slate);
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--primary-navy);
  cursor: pointer;
  transition: var(--transition);
}

.program-tab-btn i {
  color: var(--gold-dark);
}

.program-tab-btn.active, .program-tab-btn:hover {
  background: var(--primary-navy);
  color: #FFF;
  border-color: var(--gold-primary);
  box-shadow: 0 6px 18px rgba(11, 30, 63, 0.15);
}

.program-tab-btn.active i {
  color: var(--gold-light);
}

/* Tab Panels */
.program-tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.program-tab-panel.active {
  display: block;
}

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

.courses-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.course-card {
  background: #FFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(212, 175, 55, 0.35);
}

.course-card-header {
  padding: 24px 24px 18px;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFF 100%);
  border-bottom: 1px solid #F1F5F9;
}

.course-card-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.course-board-badge {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(22, 58, 117, 0.08);
  color: var(--navy-light);
}

.course-level-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.course-card-header h3 {
  font-size: 1.25rem;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.course-card-body {
  padding: 20px 24px;
  flex: 1;
}

.course-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.course-subject-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.course-tag {
  font-size: 0.74rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-slate);
  color: #475569;
  font-weight: 500;
}

.course-features {
  border-top: 1px dashed #E2E8F0;
  padding-top: 14px;
}

.course-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-body);
  margin-bottom: 6px;
}

.course-features li i {
  color: var(--gold-dark);
  font-size: 0.8rem;
}

.course-card-footer {
  padding: 16px 24px;
  background: #F8FAFC;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-card-footer .enroll-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--royal-blue);
  display: flex;
  align-items: center;
  gap: 6px;
}

.course-card-footer .enroll-link:hover {
  color: var(--gold-dark);
  transform: translateX(3px);
}

/* ==========================================================================
   PAPERS & RESOURCES REPOSITORY
   ========================================================================== */
.papers-section {
  padding: 85px 0;
  background: #F8FAFC;
}

/* Papers Toolbar */
.papers-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.papers-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.paper-filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: #FFF;
  border: 1px solid var(--card-border);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition);
}

.filter-chip.active, .filter-chip:hover {
  background: var(--primary-navy);
  color: var(--gold-light);
  border-color: var(--primary-navy);
}

/* Year Filter Row (Post-2020 & Specific Years) & Live Search */
.paper-year-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: #F8FAFC;
  border-radius: var(--radius-md);
  border: 1px solid #E2E8F0;
}

.year-filter-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.year-filter-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary-navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.paper-year-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.year-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: #FFF;
  border: 1px solid #CBD5E1;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-navy);
  cursor: pointer;
  transition: var(--transition);
}

.year-chip:hover,
.year-chip.active {
  background: var(--gold-gradient);
  color: #051224;
  border-color: var(--gold-primary);
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
}

.year-chip.highlight-chip {
  background: rgba(30, 86, 160, 0.08);
  border-color: var(--royal-blue);
  color: var(--royal-blue);
}

.year-chip.highlight-chip.active,
.year-chip.highlight-chip:hover {
  background: var(--royal-blue);
  color: #FFF;
  border-color: var(--royal-blue);
}

.papers-quick-search {
  position: relative;
  width: 280px;
  max-width: 100%;
}

.papers-quick-search input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--card-border);
  font-size: 0.88rem;
  background: #FFF;
  outline: none;
  transition: var(--transition);
}

.papers-quick-search input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.papers-quick-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.papers-meta-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 0.86rem;
  color: #64748B;
}

.papers-results-badge {
  font-weight: 600;
  color: var(--primary-navy);
}

.papers-results-badge strong {
  color: var(--gold-dark);
}

/* 4-Column Question Papers Grid (1 Row = 4 Papers) */
.papers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.paper-item-card {
  background: #FFF;
  border-radius: var(--radius-md);
  padding: 22px 20px;
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 16px rgba(11, 30, 63, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.paper-item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s ease;
}

.paper-item-card:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 14px 32px rgba(11, 30, 63, 0.09);
  transform: translateY(-4px);
}

.paper-item-card:hover::before {
  background: var(--gold-gradient);
}

.paper-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.paper-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.paper-card-tags {
  display: flex;
  align-items: center;
  gap: 6px;
}

.paper-board-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(30, 86, 160, 0.08);
  color: var(--royal-blue);
}

.paper-year-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: #FEF3C7;
  color: #92400E;
}

.paper-card-body h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 8px;
  line-height: 1.42;
  min-height: 44px;
}

.paper-meta-line {
  font-size: 0.78rem;
  color: #64748B;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 4px;
}

.paper-download-btn,
.paper-view-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--gold-gradient);
  color: #051224;
  font-size: 0.86rem;
  font-weight: 700;
  border: 1px solid var(--gold-primary);
  transition: var(--transition);
  cursor: pointer;
  font-family: inherit;
  margin-top: auto;
}

.paper-download-btn:hover,
.paper-view-btn:hover {
  background: linear-gradient(135deg, #F5D77F 0%, #D4AF37 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--gold-glow);
}

@media (max-width: 1200px) {
  .papers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 850px) {
  .papers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .papers-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   BOOKS & STUDY MATERIALS SECTION
   ========================================================================== */
.books-section {
  padding: 80px 0;
  background: #FFF;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.book-card {
  background: var(--bg-slate);
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(212, 175, 55, 0.35);
}

.book-spine-accent {
  height: 6px;
  background: var(--gold-gradient);
}

.book-content {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-type-badge {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--navy-light);
  margin-bottom: 8px;
}

.book-content h4 {
  font-size: 1.08rem;
  color: var(--primary-navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.book-content p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex: 1;
}

.book-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #E2E8F0;
  padding-top: 14px;
}

.book-badge-meta {
  font-size: 0.76rem;
  color: #64748B;
  font-weight: 500;
}

.book-action-btn {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--royal-blue);
  display: flex;
  align-items: center;
  gap: 4px;
}

.book-action-btn:hover {
  color: var(--gold-dark);
}

/* ==========================================================================
   CAREER SECTION (WE'RE HIRING & COUNSELING)
   ========================================================================== */
.career-banner-section {
  padding: 70px 0;
  background: var(--blue-gradient);
  color: #FFF;
  position: relative;
  overflow: hidden;
}

.career-banner-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.2) 0%, transparent 70%);
}

.career-inner-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.career-text h2 {
  font-size: 2.2rem;
  color: #FFF;
  margin-bottom: 12px;
}

.career-text p {
  font-size: 1.05rem;
  color: #CBD5E1;
  max-width: 600px;
}

.career-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

/* ==========================================================================
   ABOUT US & PEDAGOGY
   ========================================================================== */
.about-section {
  padding: 90px 0;
  background: #FFF;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-content .section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy-subtle);
  background: rgba(22, 58, 117, 0.08);
  padding: 5px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.about-content h2 {
  font-size: 2.4rem;
  margin-bottom: 18px;
  color: var(--primary-navy);
}

.about-content p {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 30px;
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pillar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.pillar-text h4 {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 2px;
}

.pillar-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.about-visual {
  position: relative;
}

.about-card-banner {
  background: var(--blue-gradient);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #FFF;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 20px 45px rgba(11, 30, 63, 0.2);
}

.about-card-banner h3 {
  color: var(--gold-light);
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.about-quote {
  font-size: 1.08rem;
  font-style: italic;
  color: #E2E8F0;
  margin-bottom: 24px;
  line-height: 1.6;
}

.about-founder-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 16px;
}

.founder-info h5 {
  color: #FFF;
  font-size: 1rem;
}

.founder-info span {
  font-size: 0.82rem;
  color: var(--gold-light);
}

/* ==========================================================================
   CONSULTATION / CTA FORM
   ========================================================================== */
.cta-form-section {
  padding: 80px 0;
  background: #F8FAFC;
}

.cta-form-wrapper {
  background: #FFF;
  border-radius: var(--radius-lg);
  padding: 45px;
  box-shadow: 0 20px 40px rgba(11, 30, 63, 0.08);
  border: 1px solid var(--card-border);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.cta-info h3 {
  font-size: 2rem;
  color: var(--primary-navy);
  margin-bottom: 12px;
}

.cta-info p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.98rem;
}

.cta-support-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-body);
}

.cta-support-bullets li i {
  color: var(--gold-dark);
}

.cta-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group.full {
  grid-column: span 2;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: #F8FAFC;
  font-size: 0.9rem;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
  background: #FFF;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* ==========================================================================
   FOOTER SECTION
   Brand Colors, Logo, Social Icons, Contact Email: admin@brilliantlearning.in
   ========================================================================== */
.site-footer {
  background: var(--primary-dark);
  color: #94A3B8;
  padding-top: 75px;
  border-top: 2px solid rgba(212, 175, 55, 0.3);
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.footer-logo-img {
  height: 90px;
  max-height: 96px;
  width: auto;
  object-fit: contain;
  background: #FFFFFF;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: var(--transition);
}

.footer-logo-wrap:hover .footer-logo-img {
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(212, 175, 55, 0.35);
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94A3B8;
  margin-bottom: 22px;
}

/* Social icons with hover effects */
.footer-social-icons {
  display: flex;
  gap: 10px;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition);
}

.social-icon-btn:hover {
  background: var(--gold-gradient);
  color: #051224;
  border-color: var(--gold-primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px var(--gold-glow);
}

.footer-column h4 {
  color: #FFF;
  font-size: 1.05rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--gold-primary);
}

.footer-links li {
  margin-bottom: 11px;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold-light);
  transform: translateX(4px);
}


.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: #CBD5E1;
}

.footer-contact-item i {
  color: var(--gold-primary);
  font-size: 1.1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-item a {
  color: #CBD5E1;
}

.footer-contact-item a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding: 24px 0;
  font-size: 0.84rem;
  color: #64748B;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

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

/* ==========================================================================
   LOGIN MODAL DIALOG
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 14, 31, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition);
}

.modal-backdrop.active,
#loginModal.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  display: flex !important;
}

.login-modal-box {
  background: #FFF;
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.3);
  overflow: hidden;
  transform: scale(0.95);
  transition: var(--transition);
}

.modal-backdrop.active .login-modal-box,
#loginModal.active .login-modal-box {
  transform: scale(1) !important;
}

.login-modal-header {
  background: var(--blue-gradient);
  padding: 26px 24px;
  text-align: center;
  position: relative;
  color: #FFF;
}

.login-modal-logo {
  height: 60px;
  width: auto;
  margin: 0 auto 12px;
  background: #FFFFFF;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  object-fit: contain;
}

.login-modal-header h3 {
  color: #FFF;
  font-size: 1.4rem;
}

.login-modal-header p {
  color: #CBD5E1;
  font-size: 0.85rem;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #FFF;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Tabs: Student vs Tutor (Removed - Student Only) */
.login-tabs-nav {
  display: none !important;
}

.login-modal-body {
  padding: 24px;
}

.login-form-group {
  margin-bottom: 16px;
}

.login-form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

.login-input-wrap {
  position: relative;
}

.login-input-wrap i.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 0.95rem;
}

.login-input-wrap input {
  width: 100%;
  padding: 11px 40px 11px 40px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 0.92rem;
  transition: var(--transition);
}

.login-input-wrap input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.login-pwd-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
}

.login-extra-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  margin-bottom: 20px;
}

.login-extra-row a {
  color: var(--royal-blue);
  font-weight: 600;
}

.login-submit-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--blue-gradient);
  color: #FFF;
  border: 1px solid rgba(212, 175, 55, 0.4);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.login-submit-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 18px rgba(11, 30, 63, 0.3);
}

/* 2-Column Responsive Row in Login/Access Modal */
.login-form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .login-form-row-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Custom Styled Select for Modal */
.login-select {
  width: 100%;
  padding: 11px 36px 11px 40px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 0.88rem;
  background-color: #FFFFFF;
  color: #1E293B;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748B' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: var(--transition);
}

.login-select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* Access Request Information Alert Banner */
.access-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(30, 86, 160, 0.06);
  border: 1px solid rgba(30, 86, 160, 0.18);
  border-left: 4px solid #1E56A0;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.83rem;
  color: #1E3A8A;
  line-height: 1.45;
}

.access-info-banner i {
  color: #1E56A0;
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Access Submit Button Enhancement */
.access-submit-btn {
  background: linear-gradient(135deg, #0B1E3F 0%, #1E56A0 100%);
  border: 1px solid #D4AF37;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.access-submit-btn:hover {
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Persistent Quick WhatsApp Desk inside Modal */
.login-quick-whatsapp-desk {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #F0FDF4 0%, #F8FAFC 100%);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(37, 211, 102, 0.35);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.08);
}

.quick-whatsapp-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-whatsapp-icon {
  font-size: 1.6rem;
  color: #25D366;
  flex-shrink: 0;
}

.quick-whatsapp-text strong {
  display: block;
  font-size: 0.84rem;
  color: #0B1E3F;
  font-weight: 700;
  line-height: 1.25;
}

.quick-whatsapp-text small {
  display: block;
  font-size: 0.76rem;
  color: #64748B;
  line-height: 1.35;
  margin-top: 2px;
}

.quick-whatsapp-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25D366;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.80rem;
  padding: 7px 12px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
}

.quick-whatsapp-action-btn:hover {
  background: #1EBE5D;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

@media (max-width: 480px) {
  .login-quick-whatsapp-desk {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 8px;
  }
  .quick-whatsapp-left {
    justify-content: center;
  }
  .quick-whatsapp-action-btn {
    justify-content: center;
  }
}

/* ==========================================================================
   SCROLL REVEAL & SMOOTH FADE-IN ANIMATION
   ========================================================================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

/* Scroll Reveal & Smooth Simple Fade-In (Clean, No-Blink) */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in-on-scroll.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   MOBILE OFF-CANVAS DRAWER
   ========================================================================== */
.mobile-nav-drawer,
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #FFF;
  z-index: 2500;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  transition: right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
}

.mobile-nav-drawer.active,
.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--card-border);
}

.mobile-drawer-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.mobile-drawer-close {
  background: #F1F5F9;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.mobile-drawer-close:hover {
  background: #E2E8F0;
  color: var(--text-dark);
}

/* Mobile Drawer Top Actions (Login & Search) */
.mobile-drawer-actions {
  padding: 16px 20px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-drawer-login-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  cursor: pointer;
  border: none;
}

.mobile-login-btn-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-drawer-search-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: #FFFFFF;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.mobile-drawer-search-bar:hover {
  border-color: var(--gold-primary);
  color: var(--primary-navy);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.15);
}

.mobile-drawer-search-bar i {
  color: var(--gold-primary);
  font-size: 1rem;
}

.mobile-login-link {
  background: rgba(212, 175, 55, 0.12) !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
  color: #8C6615 !important;
  font-weight: 700 !important;
  margin-top: 14px;
}

.mobile-drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.mobile-nav-links li {
  margin-bottom: 8px;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-navy);
  border-radius: var(--radius-sm);
}

.mobile-nav-links a:hover {
  background: rgba(30, 86, 160, 0.08);
  color: var(--royal-blue);
}

.mobile-nav-links a.active {
  background: rgba(212, 175, 55, 0.12);
  color: var(--primary-navy);
  border-left: 3px solid var(--gold-primary);
  font-weight: 700;
}

.mobile-sublinks {
  padding-left: 12px;
  margin-top: 2px;
  margin-bottom: 4px;
  display: none;
  border-left: 2px solid rgba(212, 175, 55, 0.3);
}

.mobile-sublinks.open {
  display: block;
}

.mobile-sublinks li {
  margin-bottom: 2px;
}

.mobile-sublinks li a {
  font-size: 0.86rem;
  font-weight: 500;
  color: #475569;
  padding: 6px 10px;
}

.mobile-sublinks li a:hover {
  color: var(--royal-blue);
  background: rgba(30, 86, 160, 0.05);
}

/* Level 2 & 3 nested */
.mobile-sublinks .mobile-sublinks {
  border-left-color: rgba(30, 86, 160, 0.25);
  padding-left: 10px;
}

.mobile-sublinks .mobile-sublinks li a {
  font-size: 0.82rem;
  color: #64748B;
  padding: 5px 8px;
}

.mobile-drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--card-border);
  background: #F8FAFC;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2400;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1100px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  /* Hide desktop navbar */
  .main-nav {
    display: none;
  }

  /* LOGIN SHOULD GO IN MENU: Hide login button from header bar on mobile */
  .header-actions .btn-login {
    display: none !important;
  }

  /* SEARCH IN MOBILE: Convert wide search button into sleek circular icon button */
  .search-trigger-btn .search-btn-label,
  .search-trigger-btn .search-btn-kbd,
  .search-wrapper kbd {
    display: none !important;
  }

  .search-trigger-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F1F5F9;
    border: 1.5px solid #E2E8F0;
    color: var(--primary-navy);
    font-size: 1.15rem;
    cursor: pointer;
    transition: var(--transition);
  }

  .search-trigger-btn:hover {
    background: #FFF;
    border-color: var(--gold-primary);
    color: var(--gold-dark);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
  }

  .navbar-container {
    gap: 12px;
  }

  .header-actions {
    gap: 10px;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .hero-slider-section {
    height: 580px;
  }
  .slide-title {
    font-size: 2.5rem;
  }
  .modes-grid, .courses-cards-grid {
    grid-template-columns: 1fr;
  }
  .about-grid, .cta-form-wrapper {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 20px;
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .career-inner-box {
    flex-direction: column;
    text-align: center;
  }
  .career-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .top-bar-notice {
    display: none;
  }
  .hero-slider-section {
    height: 520px;
  }
  .slide-title {
    font-size: 2rem;
  }
  .slide-desc {
    font-size: 0.95rem;
  }
  .slide-btns {
    flex-direction: column;
    align-items: stretch;
  }
  .slider-arrow {
    display: none;
  }

  /* Full Screen Mobile Search Modal Experience */
  .search-modal-backdrop {
    padding: 0;
    align-items: stretch;
    background: rgba(5, 14, 31, 0.92);
  }

  .search-modal-box {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: column;
    transform: none;
    box-shadow: none;
  }

  .search-header-bar {
    padding: 14px 16px;
    gap: 12px;
    position: sticky;
    top: 0;
    background: #FFF;
    z-index: 10;
    border-bottom: 1px solid var(--card-border);
  }

  .search-input-field {
    font-size: 1.02rem;
  }

  .search-close-btn {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .search-quick-tags {
    padding: 10px 16px;
    gap: 8px;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .search-quick-tags::-webkit-scrollbar {
    display: none;
  }

  .quick-tag-chip {
    padding: 6px 14px;
    font-size: 0.8rem;
    flex-shrink: 0;
  }

  .search-results-container {
    flex: 1;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 16px;
  }

  .search-item {
    padding: 12px;
    gap: 12px;
    border-radius: var(--radius-sm);
  }

  .search-footer-info {
    padding: 12px 16px;
    background: #FFF;
    border-top: 1px solid var(--card-border);
  }

  /* Papers Section Mobile Toolbar & Swipable Year Chips */
  .papers-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 24px;
  }

  .paper-year-filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 12px 14px;
  }

  .year-filter-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  .paper-year-chips {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .paper-year-chips::-webkit-scrollbar {
    display: none;
  }

  .year-chip {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .papers-quick-search {
    width: 100%;
  }

  .papers-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .paper-item-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
  }

  .paper-download-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 0.88rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
  .cta-form {
    grid-template-columns: 1fr;
  }
  .form-group.full {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 76px;
  }

  .brand-logo-img {
    height: 52px;
    max-height: 56px;
  }

  .search-trigger-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .mobile-nav-toggle {
    width: 38px;
    height: 38px;
  }

  .top-bar-left {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

  .top-bar-divider {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 14px;
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .section-header h2 {
    font-size: 1.7rem;
  }
}

/* ==========================================================================
   ABOUT US PAGE STYLES
   ========================================================================== */

/* Page Hero Banner */
.page-hero {
  background: linear-gradient(135deg, #050E1F 0%, #0B1E3F 55%, #163A75 100%);
  padding: 60px 0 70px;
  position: relative;
  overflow: hidden;
  color: #FFF;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(212, 175, 55, 0.12), transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.08), transparent 45%);
  pointer-events: none;
}

/* Contact, About, Career, Legal & PYP Page Specific Hero with Luxury Background Image */
.page-hero.contact-page-hero,
.page-hero.about-page-hero,
.page-hero.career-page-hero,
.page-hero.legal-page-hero,
.page-hero.pyp-page-hero {
  background: 
    linear-gradient(135deg, rgba(5, 14, 31, 0.88) 0%, rgba(11, 30, 63, 0.82) 55%, rgba(22, 58, 117, 0.85) 100%),
    url('../assets/images/contact-hero-bg.jpg') center center / cover no-repeat;
  padding: 85px 0 95px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: inset 0 -30px 50px -15px rgba(5, 14, 31, 0.75);
  text-align: center;
}

.page-hero.contact-page-hero::before,
.page-hero.about-page-hero::before,
.page-hero.career-page-hero::before,
.page-hero.legal-page-hero::before,
.page-hero.pyp-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 40%, rgba(212, 175, 55, 0.16), transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.12), transparent 50%);
  pointer-events: none;
}

.page-hero.contact-page-hero .page-hero-inner,
.page-hero.about-page-hero .page-hero-inner,
.page-hero.career-page-hero .page-hero-inner,
.page-hero.legal-page-hero .page-hero-inner,
.page-hero.pyp-page-hero .page-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.page-hero.contact-page-hero h1,
.page-hero.about-page-hero h1,
.page-hero.career-page-hero h1,
.page-hero.legal-page-hero h1,
.page-hero.pyp-page-hero h1 {
  font-size: 3rem;
  line-height: 1.25;
  margin-bottom: 20px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.7);
  text-align: center;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero.contact-page-hero .page-hero-desc,
.page-hero.about-page-hero .page-hero-desc,
.page-hero.career-page-hero .page-hero-desc,
.page-hero.legal-page-hero .page-hero-desc,
.page-hero.pyp-page-hero .page-hero-desc {
  margin-bottom: 0;
  max-width: 860px;
  font-size: 1.16rem;
  line-height: 1.75;
  color: #F1F5F9;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 992px) {
  .page-hero.contact-page-hero,
  .page-hero.about-page-hero,
  .page-hero.career-page-hero,
  .page-hero.legal-page-hero,
  .page-hero.pyp-page-hero {
    padding: 70px 0 75px;
  }
  .page-hero.contact-page-hero h1,
  .page-hero.about-page-hero h1,
  .page-hero.career-page-hero h1,
  .page-hero.legal-page-hero h1,
  .page-hero.pyp-page-hero h1 {
    font-size: 2.3rem;
  }
}

@media (max-width: 600px) {
  .page-hero.contact-page-hero,
  .page-hero.about-page-hero,
  .page-hero.career-page-hero,
  .page-hero.legal-page-hero,
  .page-hero.pyp-page-hero {
    padding: 55px 0 60px;
    background-position: center top;
  }
  .page-hero.contact-page-hero h1,
  .page-hero.about-page-hero h1,
  .page-hero.career-page-hero h1,
  .page-hero.legal-page-hero h1,
  .page-hero.pyp-page-hero h1 {
    font-size: 1.85rem;
  }
  .page-hero.contact-page-hero .page-hero-desc,
  .page-hero.about-page-hero .page-hero-desc,
  .page-hero.career-page-hero .page-hero-desc,
  .page-hero.legal-page-hero .page-hero-desc,
  .page-hero.pyp-page-hero .page-hero-desc {
    font-size: 0.98rem;
  }
}

.page-hero-inner {
  position: relative;
  z-index: 2;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.breadcrumb-nav ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-nav li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb-nav a {
  color: #94A3B8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.breadcrumb-nav a:hover {
  color: var(--gold-light);
}

.breadcrumb-nav i {
  font-size: 0.7rem;
  color: var(--gold-primary);
}

.breadcrumb-nav span {
  color: var(--gold-primary);
  font-weight: 600;
}

/* ==========================================================================
   STANDALONE LIGHT BREADCRUMB BAR (For Internal Pages like ib.html)
   ========================================================================== */
.breadcrumb-bar {
  background: #F8FAFC;
  border-bottom: 1px solid rgba(11, 30, 63, 0.08);
  padding: 8px 0;
  font-size: 0.8rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.breadcrumb-item a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #64748B;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.breadcrumb-item a:hover {
  color: var(--royal-blue);
}

.breadcrumb-item a i.fa-house {
  color: #B78727;
  font-size: 0.75rem;
}

.breadcrumb-separator {
  display: inline-flex;
  align-items: center;
  color: #94A3B8;
  font-size: 0.58rem;
  margin: 0 3px;
}

.breadcrumb-item.active span,
.breadcrumb-item span[aria-current="page"] {
  color: var(--primary-navy);
  font-weight: 700;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-full);
  color: var(--gold-light);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.page-hero h1 {
  color: #FFFFFF !important;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
  max-width: 920px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.page-hero-desc {
  font-size: 1.12rem;
  line-height: 1.7;
  color: #E2E8F0;
  max-width: 820px;
  margin-bottom: 35px;
}

.page-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-stat-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 20px;
  border-radius: var(--radius-md);
}

.hero-stat-badge i {
  font-size: 1.3rem;
  color: var(--gold-primary);
}

.hero-stat-badge div strong {
  display: block;
  font-size: 1.15rem;
  color: #FFF;
  font-weight: 800;
}

.hero-stat-badge div span {
  font-size: 0.78rem;
  color: #94A3B8;
}

/* About Story Section */
.about-story-section {
  padding: 90px 0;
  background: #FFF;
}

.about-story-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 50px;
  align-items: center;
}

.story-content h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 18px;
  line-height: 1.3;
}

.story-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 16px;
}

.story-content p strong {
  color: var(--primary-navy);
}

.story-quote-card {
  margin: 24px 0;
  padding: 20px 24px;
  background: rgba(212, 175, 55, 0.08);
  border-left: 4px solid var(--gold-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: #1E293B;
  font-size: 0.98rem;
  line-height: 1.65;
}

.story-mission-box {
  background: linear-gradient(135deg, #0B1E3F 0%, #163A75 100%);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  color: #FFF;
  box-shadow: 0 15px 40px rgba(11, 30, 63, 0.18);
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  position: relative;
}

.story-mission-box h4 {
  font-size: 1.4rem;
  color: #FFF;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-mission-box h4 i {
  color: var(--gold-primary);
}

.story-mission-box p {
  font-size: 0.94rem;
  line-height: 1.7;
  color: #E2E8F0;
  margin-bottom: 24px;
}

.mission-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mission-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: #CBD5E1;
  line-height: 1.5;
}

.mission-checklist li i {
  color: var(--gold-primary);
  font-size: 0.95rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Core Pillars */
.about-pillars-section {
  padding: 85px 0;
  background: var(--bg-slate);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.pillar-card {
  background: #FFF;
  border-radius: var(--radius-md);
  padding: 30px 24px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: var(--card-hover-shadow);
}

.pillar-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.12);
  color: #B78727;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.pillar-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 12px;
}

.pillar-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  flex: 1;
}

/* 4-Step Methodology */
.about-methodology-section {
  padding: 90px 0;
  background: #FFF;
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 45px;
  position: relative;
}

.method-card {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 30px 22px;
  border: 1px solid var(--card-border);
  position: relative;
  transition: var(--transition);
}

.method-card:hover {
  background: #FFF;
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}

.method-step-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(212, 175, 55, 0.28);
  margin-bottom: 10px;
  font-family: monospace;
}

.method-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 10px;
}

.method-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-body);
}

/* Faculty Network */
.about-faculty-section {
  padding: 85px 0;
  background: #F8FAFC;
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.faculty-card {
  background: #FFF;
  border-radius: var(--radius-md);
  padding: 26px 22px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: var(--transition);
}

.faculty-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}

.faculty-avatar-box {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0B1E3F 0%, #1D5BBF 100%);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
  border: 2px solid var(--gold-primary);
}

.faculty-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.faculty-role-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #B78727;
  background: rgba(212, 175, 55, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

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

/* Curricula Archives Covered Section */
.about-curricula-section {
  padding: 85px 0;
  background: #FFF;
}

.curricula-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.curricula-card {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  border: 1px solid var(--card-border);
  transition: var(--transition);
  text-decoration: none;
  display: block;
}

.curricula-card:hover {
  background: #FFF;
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}

.curricula-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.curricula-card h4 i {
  color: var(--gold-primary);
  font-size: 0.85rem;
}

.curricula-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}

.curricula-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--royal-blue);
}

/* About CTA Section */
.about-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #050E1F 0%, #0B1E3F 100%);
  color: #FFF;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-cta-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.about-cta-inner h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 16px;
}

.about-cta-inner p {
  font-size: 1.05rem;
  color: #CBD5E1;
  line-height: 1.7;
  margin-bottom: 30px;
}

.about-cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* About Page Responsive Rules */
@media (max-width: 992px) {
  .page-hero h1 {
    font-size: 2.2rem;
  }
  .about-story-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .methodology-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .faculty-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .curricula-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .page-hero {
    padding: 45px 0 50px;
  }
  .page-hero h1 {
    font-size: 1.75rem;
  }
  .page-hero-desc {
    font-size: 0.95rem;
  }
  .page-hero-stats {
    flex-direction: column;
    gap: 10px;
  }
  .hero-stat-badge {
    width: 100%;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .methodology-grid {
    grid-template-columns: 1fr;
  }
  .faculty-grid {
    grid-template-columns: 1fr;
  }
  .curricula-grid {
    grid-template-columns: 1fr;
  }
  .about-cta-inner h2 {
    font-size: 1.8rem;
  }
  .about-cta-btns {
    flex-direction: column;
    width: 100%;
  }
  .about-cta-btns .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   IB PAGE (ib.html) STYLES
   ========================================================================== */

/* 1. IB Programmes Grid (PYP, MYP, DP) */
.ib-programs-section {
  padding: 60px 0 85px;
  background: #FFFFFF;
}

.ib-programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ib-program-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--card-border);
  box-shadow: 0 4px 20px rgba(11, 30, 63, 0.05);
  padding: 38px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.ib-program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-primary), var(--royal-blue));
  opacity: 0.85;
  transition: var(--transition);
}

.ib-program-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 16px 36px rgba(11, 30, 63, 0.12);
}

.ib-program-card:hover::before {
  opacity: 1;
  height: 5px;
}

.ib-program-card h3 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}

.ib-program-card .btn-program {
  width: 100%;
  max-width: 250px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  background: var(--blue-gradient);
  color: #FFFFFF;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 14px rgba(11, 30, 63, 0.18);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.ib-program-card .btn-program:hover {
  background: var(--gold-gradient);
  color: #061224;
  border-color: #D4AF37;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.4);
}

.ib-program-card .btn-program i {
  font-size: 0.84rem;
  transition: transform 0.25s ease;
}

.ib-program-card .btn-program:hover i {
  transform: translateX(4px);
}

/* 2. What is IB Section */
.ib-about-section {
  padding: 90px 0;
  background: var(--bg-slate);
}

.ib-about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.ib-about-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 20px;
  line-height: 1.25;
}

.ib-about-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 16px;
}

.ib-learner-profile-card {
  margin-top: 24px;
  padding: 24px 26px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

.ib-learner-profile-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ib-learner-profile-card h4 i {
  color: var(--gold-primary);
}

.ib-learner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ib-learner-chip {
  background: rgba(11, 30, 63, 0.05);
  border: 1px solid rgba(11, 30, 63, 0.12);
  color: var(--primary-navy);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.ib-facts-card {
  background: linear-gradient(135deg, #0B1E3F 0%, #163A75 100%);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  color: #FFFFFF;
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 15px 40px rgba(11, 30, 63, 0.18);
}

.ib-facts-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ib-facts-card h3 i {
  color: var(--gold-primary);
}

.ib-fact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ib-fact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ib-fact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.ib-fact-item strong {
  display: block;
  font-size: 1.05rem;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.ib-fact-item span {
  font-size: 0.88rem;
  color: #CBD5E1;
  line-height: 1.5;
}

/* 3. Advantages of IB Section */
.ib-advantages-section {
  padding: 90px 0;
  background: #FFFFFF;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 45px;
}

.advantage-card {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.advantage-card:hover {
  transform: translateY(-6px);
  background: #FFFFFF;
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: var(--card-hover-shadow);
}

.advantage-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.12);
  color: #B78727;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 20px;
}

.advantage-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 12px;
  line-height: 1.35;
}

.advantage-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Responsive Rules for IB Page */
@media (max-width: 992px) {
  .ib-programs-grid {
    grid-template-columns: 1fr;
  }
  .ib-about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .advantages-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PYP PAPERS PAGE (pyp.html) STYLES
   ========================================================================== */
.pyp-papers-section {
  padding: 50px 0 85px;
  background: #FFFFFF;
}

.pyp-intro-header {
  margin-bottom: 40px;
}

.pyp-papers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pyp-paper-card {
  background: var(--bg-page);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--card-border);
  box-shadow: 0 4px 18px rgba(11, 30, 63, 0.05);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pyp-paper-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-primary), var(--royal-blue));
  opacity: 0.85;
  transition: var(--transition);
}

.pyp-paper-card:hover {
  transform: translateY(-4px);
  background: #FFFFFF;
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 16px 36px rgba(11, 30, 63, 0.1);
}

.pyp-paper-card:hover::before {
  opacity: 1;
  height: 5px;
}

.pyp-card-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.pyp-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.12);
  color: #B78727;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.pyp-card-meta {
  flex: 1;
}

.pyp-card-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.pyp-code-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--royal-blue);
  background: rgba(14, 165, 233, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.pyp-level-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748B;
}

.pyp-card-meta h3 {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 4px;
  line-height: 1.35;
}

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

.pyp-download-box,
.pyp-view-box {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--card-border);
}

.pyp-download-label,
.pyp-view-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.pyp-download-label i,
.pyp-view-label i {
  color: #B78727;
}

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

.btn-paper-download,
.btn-paper-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 10px;
  background: #FFFFFF;
  border: 1.5px solid rgba(11, 30, 63, 0.16);
  border-radius: var(--radius-md);
  color: var(--primary-navy);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-paper-download i.fa-file-pdf,
.btn-paper-view i.fa-file-pdf {
  color: #DC2626;
  font-size: 0.95rem;
}

.btn-paper-download i.fa-download,
.btn-paper-view i.fa-eye {
  color: var(--royal-blue);
  font-size: 0.82rem;
  transition: transform 0.25s ease, color 0.2s ease;
}

.btn-paper-download:hover,
.btn-paper-view:hover {
  background: var(--blue-gradient);
  color: #FFFFFF;
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 30, 63, 0.22);
}

.btn-paper-download:hover i.fa-file-pdf,
.btn-paper-view:hover i.fa-file-pdf {
  color: var(--gold-light);
}

.btn-paper-download:hover i.fa-download,
.btn-paper-view:hover i.fa-eye {
  color: #FFFFFF;
  transform: scale(1.2);
}

/* ==========================================================================
   PYP YEAR-FIRST LAYOUT & RESPONSIVE GRID STYLES
   ========================================================================== */
.pyp-year-nav-wrap {
  position: sticky;
  top: var(--site-header-height, var(--header-height, 98px));
  z-index: 950;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 0 16px;
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(11, 30, 63, 0.08);
  box-shadow: 0 6px 20px rgba(11, 30, 63, 0.05);
}

.pyp-year-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 2px;
}

.pyp-year-nav::-webkit-scrollbar {
  display: none;
}

.pyp-year-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #F1F5F9;
  color: #334155;
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.22s ease;
}

.pyp-year-pill i {
  color: var(--royal-blue);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.pyp-year-pill:hover {
  background: #E2E8F0;
  color: var(--primary-navy);
  transform: translateY(-1px);
}

.pyp-year-pill.active {
  background: var(--primary-navy);
  color: #FFFFFF;
  border-color: var(--gold-primary);
  box-shadow: 0 4px 14px rgba(11, 30, 63, 0.2);
}

.pyp-year-pill.active i {
  color: var(--gold-light);
}

.pyp-pill-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--primary-navy);
  background: var(--gold-primary);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.pyp-pill-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748B;
  background: #E2E8F0;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.pyp-year-pill.active .pyp-pill-count {
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.16);
}

/* Year Section Block */
.pyp-year-block {
  margin-bottom: 44px;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--card-border);
  padding: 30px 28px;
  box-shadow: 0 4px 20px rgba(11, 30, 63, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.pyp-year-block:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 10px 30px rgba(11, 30, 63, 0.08);
}

.pyp-year-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 2px solid #F1F5F9;
  flex-wrap: wrap;
  gap: 16px;
}

.pyp-year-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pyp-year-badge-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--royal-blue), var(--primary-navy));
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(11, 30, 63, 0.16);
}

.pyp-year-tag-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pyp-year-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-navy);
  line-height: 1;
  letter-spacing: -0.5px;
}

.pyp-status-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.pyp-status-tag.latest {
  background: rgba(212, 175, 55, 0.15);
  color: #B78727;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.pyp-status-tag.archive {
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid #E2E8F0;
}

.pyp-year-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 5px 0 0 0;
  line-height: 1.45;
}

.pyp-papers-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--royal-blue);
  background: rgba(30, 64, 175, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Category Tab Controls within Year Header */
.pyp-category-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F1F5F9;
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid #E2E8F0;
}

.pyp-cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748B;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
  font-family: inherit;
}

.pyp-cat-tab:hover {
  color: var(--primary-navy);
}

.pyp-cat-tab.active {
  background: #FFFFFF;
  color: var(--primary-navy);
  box-shadow: 0 2px 8px rgba(11, 30, 63, 0.1);
}

.pyp-cat-tab .pyp-cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 10px;
  background: rgba(11, 30, 63, 0.08);
  color: #475569;
}

.pyp-cat-tab.active .pyp-cat-count {
  background: rgba(212, 175, 55, 0.2);
  color: #8E6D12;
}

/* 4 Papers Grid under Year */
.pyp-papers-year-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Paper Item Card */
.pyp-paper-item-card {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--card-border);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.pyp-paper-item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, var(--gold-primary), var(--royal-blue));
  opacity: 0.75;
  transition: opacity 0.25s, height 0.25s;
}

.pyp-paper-item-card:hover {
  background: #FFFFFF;
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(11, 30, 63, 0.1);
}

.pyp-paper-item-card:hover::before {
  opacity: 1;
  height: 4.5px;
}

.pyp-paper-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.pyp-paper-pill {
  background: linear-gradient(135deg, var(--primary-navy), var(--royal-blue));
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.pyp-paper-code {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748B;
  background: #F1F5F9;
  padding: 2px 8px;
  border-radius: 4px;
}

.pyp-paper-title-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  min-height: 44px;
  flex-grow: 1;
}

.pyp-paper-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.12);
  color: #B78727;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.pyp-paper-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin: 0;
  line-height: 1.35;
}

.pyp-paper-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 14px 0;
  flex-grow: 1;
}

.pyp-paper-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--card-border);
}

.pyp-spec-chip {
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFFFFF;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #E2E8F0;
}

.pyp-spec-chip i {
  color: var(--royal-blue);
  font-size: 0.72rem;
}

.btn-paper-view-full {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  background: #FFFFFF;
  border: 1.5px solid rgba(11, 30, 63, 0.18);
  border-radius: var(--radius-md);
  color: var(--primary-navy);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  text-decoration: none;
}

.btn-paper-view-full i.fa-file-pdf {
  color: #DC2626;
  font-size: 0.95rem;
}

.btn-paper-view-full i.fa-eye {
  color: var(--royal-blue);
  font-size: 0.82rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.btn-paper-view-full:hover {
  background: var(--blue-gradient);
  color: #FFFFFF;
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 30, 63, 0.2);
}

.btn-paper-view-full:hover i.fa-file-pdf {
  color: var(--gold-light);
}

.btn-paper-view-full:hover i.fa-eye {
  color: #FFFFFF;
  transform: scale(1.15);
}

/* ==========================================================================
   SECURE PAPER VIEWER MODAL & ANIMATED LOADING
   ========================================================================== */
.paper-viewer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 14, 31, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.paper-viewer-backdrop.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  display: flex !important;
}

.paper-viewer-dialog {
  background: #0B192C;
  width: 100%;
  max-width: 1060px;
  height: 90vh;
  max-height: 920px;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.paper-viewer-backdrop.active .paper-viewer-dialog {
  transform: scale(1);
}

/* Viewer Header */
.paper-viewer-header {
  background: linear-gradient(135deg, #07152B 0%, #0F2A56 100%);
  padding: 16px 24px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.viewer-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.viewer-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.viewer-badge-code {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  letter-spacing: 0.5px;
}

.viewer-badge-year {
  font-size: 0.72rem;
  font-weight: 700;
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.viewer-badge-secure {
  font-size: 0.72rem;
  font-weight: 700;
  color: #34D399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.viewer-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.viewer-zoom-controls {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 2px;
}

.viewer-tool-btn {
  background: transparent;
  border: none;
  color: #CBD5E1;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: var(--transition);
}

.viewer-tool-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.viewer-zoom-level {
  font-size: 0.76rem;
  font-weight: 700;
  color: #E2E8F0;
  padding: 0 8px;
  min-width: 44px;
  text-align: center;
}

.viewer-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
}

/* Viewer Body */
.paper-viewer-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: #0F172A;
}

/* 1. Realistic Animated Loading State */
.paper-viewer-loading {
  position: absolute;
  inset: 0;
  background: #0F172A;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  transition: opacity 0.35s ease;
}

.viewer-spinner-box {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
}

.viewer-spinner-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid rgba(212, 175, 55, 0.15);
  border-top-color: var(--gold-primary);
  border-right-color: #0EA5E9;
  animation: spinViewer 0.8s linear infinite;
}

@keyframes spinViewer {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold-light);
  font-size: 1.5rem;
}

.loading-heading {
  color: #FFFFFF;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.loading-sub {
  color: #94A3B8;
  font-size: 0.9rem;
  margin-bottom: 22px;
  min-height: 22px;
}

.loading-progress-track {
  width: 260px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
  position: relative;
}

.loading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #D4AF37, #0EA5E9);
  border-radius: 10px;
  transition: width 0.25s ease-out;
}

.loading-meta-info {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: #64748B;
}

/* 2. Paper Document Reader Content */
.paper-viewer-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 36px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  scroll-behavior: smooth;
  width: 100%;
}

.paper-sheet {
  background: #FFFFFF;
  width: 100%;
  max-width: 820px;
  min-height: 1080px;
  padding: 56px 64px;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  color: #1E293B;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Times New Roman", serif;
  transform-origin: top center;
  transition: transform 0.2s ease;
}

.paper-watermark-diag {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-32deg);
  font-size: 2.1rem;
  font-weight: 900;
  color: rgba(11, 30, 63, 0.045);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: 4px;
}

/* Sheet Header */
.sheet-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #0B1E3F;
  padding-bottom: 8px;
  margin-bottom: 24px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #0B1E3F;
  letter-spacing: 0.5px;
}

.sheet-title-box {
  margin-bottom: 28px;
}

.sheet-subject-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: #0B1E3F;
  margin: 0 0 10px 0;
  line-height: 1.25;
}

.sheet-paper-info {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  padding-bottom: 14px;
  border-bottom: 1px solid #E2E8F0;
}

.sheet-rules-box {
  background: #F8FAFC;
  border-left: 4px solid var(--gold-primary);
  border-radius: 0 6px 6px 0;
  padding: 16px 18px;
  margin-bottom: 36px;
  font-size: 0.84rem;
  color: #334155;
  line-height: 1.6;
}

.sheet-rule-item {
  margin-bottom: 6px;
}

.sheet-rule-item:last-child {
  margin-bottom: 0;
}

/* Question Items */
.question-item {
  margin-bottom: 34px;
  padding-bottom: 28px;
  border-bottom: 1px dashed #CBD5E1;
}

.question-item:last-child {
  border-bottom: none;
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.question-num {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0B1E3F;
}

.question-marks {
  font-size: 0.82rem;
  font-weight: 700;
  color: #B78727;
  background: rgba(212, 175, 55, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

.question-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #1E293B;
  margin-bottom: 14px;
}

.question-passage {
  background: #F1F5F9;
  border-left: 3px solid #0EA5E9;
  padding: 14px 18px;
  margin-bottom: 16px;
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #334155;
}

.question-math-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
  text-align: center;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.05rem;
  color: #0B1E3F;
  font-weight: 700;
}

.question-answer-lines {
  height: 70px;
  border: 1px dashed #CBD5E1;
  background: repeating-linear-gradient(
    transparent,
    transparent 24px,
    #E2E8F0 24px,
    #E2E8F0 25px
  );
  border-radius: 4px;
  position: relative;
}

.question-answer-lines::after {
  content: 'Candidate Working Area (Online View Only)';
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 0.72rem;
  font-style: italic;
  color: #94A3B8;
}

/* Paper Sheet Footer */
.paper-sheet-footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #94A3B8;
}

/* Viewer Footer */
.paper-viewer-footer {
  background: #07152B;
  padding: 12px 24px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.protection-notice {
  font-size: 0.8rem;
  color: #F87171;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.viewer-page-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-page-nav {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #E2E8F0;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-page-nav:hover:not(:disabled) {
  background: var(--gold-gradient);
  color: #051224;
  border-color: var(--gold-primary);
}

.btn-page-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-indicator {
  font-size: 0.82rem;
  font-weight: 700;
  color: #CBD5E1;
}

@media (max-width: 1200px) {
  .pyp-papers-year-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .pyp-papers-grid {
    grid-template-columns: 1fr;
  }
  .paper-viewer-dialog {
    height: 96vh;
    max-height: 96vh;
  }
  .paper-sheet {
    padding: 32px 24px;
  }
}

@media (max-width: 768px) {
  .pyp-year-nav-wrap {
    top: var(--site-header-height, var(--header-height, 76px));
    padding: 10px 0 12px;
    margin-bottom: 24px;
  }
  .pyp-year-block {
    padding: 20px 16px;
    margin-bottom: 28px;
    border-radius: var(--radius-md);
  }
  .pyp-year-header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 16px;
  }
  .pyp-category-tabs {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 3px;
  }
  .pyp-category-tabs::-webkit-scrollbar {
    display: none;
  }
  .pyp-cat-tab {
    flex: 1;
    justify-content: center;
    padding: 7px 10px;
    font-size: 0.78rem;
  }
  .pyp-year-badge-icon {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
    border-radius: 10px;
  }
  .pyp-year-number {
    font-size: 1.4rem;
  }
  /* 2 Columns on Mobile - Strict Requirement */
  .pyp-papers-year-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .pyp-paper-item-card {
    padding: 14px 11px !important;
    gap: 12px !important;
    border-radius: var(--radius-sm) !important;
  }
  .pyp-paper-title-row {
    min-height: 40px !important;
    margin-bottom: 4px !important;
  }
  .pyp-paper-name {
    font-size: 0.84rem !important;
    line-height: 1.3 !important;
    word-break: break-word;
  }
  .btn-paper-view-full {
    padding: 9px 8px !important;
    font-size: 0.78rem !important;
    min-height: 38px !important;
    gap: 6px !important;
  }
  .btn-paper-view-full i {
    font-size: 0.78rem !important;
  }
  .paper-viewer-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .viewer-header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .paper-viewer-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .pyp-papers-year-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .pyp-paper-item-card {
    padding: 12px 9px !important;
    gap: 10px !important;
  }
  .pyp-paper-title-row {
    min-height: 38px !important;
  }
  .pyp-paper-name {
    font-size: 0.8rem !important;
    line-height: 1.25 !important;
  }
  .btn-paper-view-full {
    padding: 8px 6px !important;
    font-size: 0.74rem !important;
    min-height: 36px !important;
    gap: 4px !important;
  }
  .btn-paper-view-full i {
    font-size: 0.72rem !important;
  }
  .pyp-buttons-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .pyp-year-tag-line {
    gap: 8px;
  }
  .pyp-status-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
  }
}

/* ==========================================================================
   OFFICIAL STICKY WHATSAPP FLOATING BUTTON & TOOLTIP
   ========================================================================== */
.whatsapp-sticky-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.22);
  z-index: 990;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-sticky-btn:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.58), 0 4px 12px rgba(0, 0, 0, 0.28);
  color: #FFFFFF !important;
}

.whatsapp-sticky-btn i {
  color: #FFFFFF;
  line-height: 1;
}

/* Glowing pulse ring */
.whatsapp-sticky-pulse {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.8;
  animation: whatsappPulseRing 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

@keyframes whatsappPulseRing {
  0% {
    transform: scale(0.95);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.24);
    opacity: 0.15;
  }
  100% {
    transform: scale(1.38);
    opacity: 0;
  }
}

/* Tooltip on hover */
.whatsapp-sticky-tooltip {
  position: absolute;
  right: 70px;
  white-space: nowrap;
  background: #0F172A;
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.25s ease;
  pointer-events: none;
}

.whatsapp-sticky-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent #0F172A;
}

.whatsapp-sticky-btn:hover .whatsapp-sticky-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .whatsapp-sticky-btn {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    font-size: 28px;
  }
  .whatsapp-sticky-tooltip {
    display: none;
  }
}

/* ==========================================================================
   FOOTER EMAIL BADGE
   ========================================================================== */
.footer-email-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-email-badge:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold-primary);
}

.footer-email-badge i {
  color: var(--gold-primary);
  font-size: 0.95rem;
}

.footer-email-badge a {
  color: #E2E8F0;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.footer-email-badge a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   CONTACT US PAGE STYLES
   ========================================================================== */
.contact-cards-section {
  padding: 60px 0 20px;
  background: #F8FAFC;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.contact-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(11, 30, 63, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(11, 30, 63, 0.08);
  border-color: #CBD5E1;
}

.contact-card:hover::before {
  background: var(--gold-primary);
}

.contact-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.contact-icon-box.icon-email {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-dark);
}

.contact-icon-box.icon-phone {
  background: rgba(30, 58, 138, 0.1);
  color: #1E3A8A;
}

.contact-icon-box.icon-whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: #128C7E;
}

.contact-icon-box.icon-location {
  background: rgba(14, 165, 233, 0.12);
  color: #0284C7;
}

.contact-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

.contact-card-sub {
  font-size: 0.84rem;
  color: #64748B;
  margin-bottom: 14px;
  line-height: 1.45;
}

.contact-card-val {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary-navy);
  text-decoration: none;
  margin-top: auto;
  transition: var(--transition);
  word-break: break-word;
}

.contact-card-val:hover {
  color: var(--gold-dark);
}

.contact-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 10px;
  background: #F1F5F9;
  color: #475569;
  width: fit-content;
}

.contact-card-badge.badge-fast {
  background: #ECFDF5;
  color: #059669;
}

/* Main Contact Layout: Form + Info Sidebar */
.contact-main-section {
  padding: 40px 0 80px;
  background: #F8FAFC;
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 36px;
  align-items: start;
}

.contact-form-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  padding: 38px 36px;
  box-shadow: 0 12px 34px rgba(11, 30, 63, 0.05);
}

.contact-form-box h2 {
  font-size: 1.65rem;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.contact-form-box p.form-lead {
  font-size: 0.92rem;
  color: #64748B;
  margin-bottom: 26px;
}

.contact-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-fields-grid .field-full {
  grid-column: span 2;
}

.contact-form-group {
  display: flex;
  flex-direction: column;
}

.contact-form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

.contact-form-group input,
.contact-form-group select,
.contact-form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  background: #F8FAFC;
  font-size: 0.9rem;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}

.contact-form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-form-group input:focus,
.contact-form-group select:focus,
.contact-form-group textarea:focus {
  background: #FFFFFF;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.contact-form-actions {
  margin-top: 22px;
}

.contact-form-actions .btn-submit-contact {
  width: 100%;
  padding: 13px 24px;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 8px;
}

/* Sidebar Info Card */
.contact-sidebar-card {
  background: linear-gradient(150deg, #0B1E3F 0%, #061021 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 16px 40px rgba(11, 30, 63, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.25);
  position: sticky;
  top: 90px;
}

.contact-sidebar-card h3 {
  font-size: 1.38rem;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.contact-sidebar-card p {
  font-size: 0.9rem;
  color: #94A3B8;
  line-height: 1.55;
  margin-bottom: 24px;
}

.sidebar-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: #E2E8F0;
  line-height: 1.45;
}

.sidebar-features-list li i {
  color: var(--gold-primary);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.sidebar-quick-connect {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-quick-connect h4 {
  font-size: 0.95rem;
  color: var(--gold-primary);
  margin-bottom: 4px;
}

.sidebar-connect-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  transition: var(--transition);
}

.sidebar-connect-link:hover {
  background: var(--gold-primary);
  color: var(--primary-navy);
}

.sidebar-connect-link.link-whatsapp:hover {
  background: #25D366;
  color: #FFFFFF;
}

/* Contact Card Action Buttons & Badges */
.contact-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  background: #F1F5F9;
  color: var(--primary-navy);
  margin-top: 14px;
  transition: var(--transition);
  border: 1px solid #E2E8F0;
}

.contact-card-btn:hover {
  background: var(--gold-gradient);
  color: #051224;
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--gold-glow);
}

.contact-card-btn.btn-wa {
  background: #E8F8F0;
  color: #128C7E;
  border-color: rgba(37, 211, 102, 0.3);
}

.contact-card-btn.btn-wa:hover {
  background: #25D366;
  color: #FFFFFF;
  border-color: #25D366;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.contact-card-btn.btn-outline {
  background: transparent;
  border-color: #CBD5E1;
  color: var(--primary-navy);
}

.contact-card-btn.btn-outline:hover {
  background: var(--primary-navy);
  color: #FFFFFF;
  border-color: var(--primary-navy);
}

.contact-card-badge.badge-wa {
  background: #ECFDF5;
  color: #059669;
}

.contact-card-badge.badge-wa i {
  color: #10B981;
  font-size: 0.55rem;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

/* Input with icon */
.input-with-icon {
  position: relative;
  width: 100%;
}

.input-with-icon i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 0.95rem;
  pointer-events: none;
}

.input-with-icon input,
.input-with-icon select {
  padding-left: 42px !important;
}

/* FAQ Accordion Sections (Homepage & Contact Page) */
.contact-faq-section,
.home-faq-section {
  padding: 85px 0 90px;
  background: #FFFFFF;
  position: relative;
}

.home-faq-section {
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.contact-faq-section .section-header,
.home-faq-section .section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.faq-accordion {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: #F8FAFC;
}

.faq-item:hover {
  border-color: rgba(212, 175, 55, 0.4);
  background: #FFFFFF;
  box-shadow: 0 4px 16px rgba(11, 30, 63, 0.04);
}

.faq-item.active {
  border-color: rgba(212, 175, 55, 0.6);
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(11, 30, 63, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 26px;
  background: transparent;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: color 0.25s ease;
}

.faq-question:hover,
.faq-item.active .faq-question {
  color: var(--gold-dark);
}

.faq-chevron {
  font-size: 0.92rem;
  color: var(--gold-dark);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.35s ease;
  padding: 0 26px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
  padding: 0 26px 24px 26px;
}

.faq-answer p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.75;
  margin: 0;
}

/* Pre-footer Urgent Help CTA Banner */
.contact-cta-banner {
  padding: 0 0 70px;
  background: #FFFFFF;
}

.cta-banner-card {
  background: linear-gradient(135deg, #050E1F 0%, #0B1E3F 60%, #163A75 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 16px 40px rgba(11, 30, 63, 0.16);
  position: relative;
  overflow: hidden;
}

.cta-banner-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 50%, rgba(212, 175, 55, 0.15), transparent 50%);
  pointer-events: none;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.cta-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.15);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.cta-banner-content h2 {
  font-size: 1.68rem;
  color: #FFFFFF;
  margin-bottom: 10px;
  font-weight: 800;
}

.cta-banner-content p {
  font-size: 0.95rem;
  color: #CBD5E1;
  line-height: 1.55;
  margin: 0;
}

.cta-banner-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.btn-whatsapp-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #FFFFFF;
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-banner:hover {
  background: #1EBE5D;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn-outline-white:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.05);
}

/* Footer Contact Item Refinement */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: #CBD5E1;
}

.footer-contact-item i {
  color: var(--gold-primary);
  font-size: 1.05rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-item i.fa-whatsapp {
  color: #25D366;
}

.footer-contact-item strong {
  display: block;
  font-size: 0.76rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.footer-contact-item a {
  color: #F8FAFC;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-contact-item a:hover {
  color: var(--gold-light);
}

/* Responsive queries for Contact page */
@media (max-width: 1024px) {
  .contact-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-layout-grid {
    grid-template-columns: 1fr;
  }
  .contact-sidebar-card {
    position: static;
  }
}

@media (max-width: 900px) {
  .cta-banner-card {
    flex-direction: column;
    text-align: center;
    padding: 34px 24px;
  }
  .cta-banner-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-whatsapp-banner,
  .btn-outline-white {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .contact-cards-grid {
    grid-template-columns: 1fr;
  }
  .contact-fields-grid {
    grid-template-columns: 1fr;
  }
  .contact-fields-grid .field-full {
    grid-column: span 1;
  }
  .contact-form-box {
    padding: 26px 20px;
  }
  .faq-question {
    padding: 16px 18px;
    font-size: 0.98rem;
  }
  .faq-answer {
    padding: 0 18px;
  }
  .faq-item.active .faq-answer {
    padding: 0 18px 18px 18px;
  }
}

/* ==========================================================================
   CAREER PAGE (Openings Grid & Application Form)
   ========================================================================== */
.career-openings-section {
  padding: 85px 0 70px;
  background: #FFFFFF;
}

.career-section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.career-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.12);
  color: #926A0E;
  border: 1px solid rgba(212, 175, 55, 0.35);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 14px;
}

.career-section-header h2 {
  font-size: 2.3rem;
  color: var(--primary-navy);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.career-section-header p {
  font-size: 1.05rem;
  color: #64748B;
  line-height: 1.65;
}

.career-openings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.career-job-card {
  background: #FFFFFF;
  border: 1px solid rgba(11, 30, 63, 0.1);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: 0 4px 20px rgba(11, 30, 63, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.career-job-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-primary), #0EA5E9);
  opacity: 0.6;
  transition: opacity 0.25s ease;
}

.career-job-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 16px 36px rgba(11, 30, 63, 0.1);
}

.career-job-card:hover::before {
  opacity: 1;
}

.career-card-top {
  margin-bottom: 20px;
}

.career-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.career-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: #F1F5F9;
  color: #475569;
}

.career-badge.badge-remote {
  background: rgba(14, 165, 233, 0.1);
  color: #0284C7;
}

.career-badge.badge-type {
  background: rgba(212, 175, 55, 0.12);
  color: #926A0E;
}

.career-badge.badge-board {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.career-job-card h3 {
  font-size: 1.35rem;
  color: var(--primary-navy);
  margin-bottom: 10px;
  font-weight: 700;
}

.career-job-card p.career-role-desc {
  font-size: 0.94rem;
  color: #64748B;
  line-height: 1.6;
  margin-bottom: 18px;
}

.career-spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.career-spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: #334155;
  margin-bottom: 8px;
  line-height: 1.45;
}

.career-spec-list li i {
  color: #10B981;
  font-size: 0.85rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.career-req-box {
  background: #F8FAFC;
  border-left: 3px solid var(--royal-blue);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 0.84rem;
  color: #475569;
  margin-bottom: 24px;
}

.career-req-box strong {
  color: var(--primary-navy);
}

.btn-apply-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-primary), #F59E0B);
  color: #050E1F;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-apply-role:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.35);
  color: #050E1F;
}

/* Career Application Form Section */
.career-apply-section {
  padding: 85px 0 100px;
  background: #F8FAFC;
  border-top: 1px solid rgba(11, 30, 63, 0.08);
}

.career-form-container {
  max-width: 860px;
  margin: 0 auto;
}

.career-form-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  padding: 44px 40px;
  box-shadow: 0 16px 40px rgba(11, 30, 63, 0.06);
}

.career-form-header {
  text-align: center;
  margin-bottom: 34px;
}

.career-form-header h2 {
  font-size: 1.9rem;
  color: var(--primary-navy);
  margin-bottom: 10px;
}

.career-form-header p {
  color: #64748B;
  font-size: 0.96rem;
  max-width: 650px;
  margin: 0 auto;
}

.curriculum-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.curriculum-pill-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 99px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: var(--transition);
}

.curriculum-pill-label input {
  accent-color: var(--gold-primary);
  width: auto;
  margin: 0;
}

.curriculum-pill-label:hover {
  border-color: var(--gold-primary);
  background: #FEF9C3;
  color: #854D0E;
}

.career-success-state {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.career-success-state.active {
  display: block;
}

.career-success-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.career-success-state h3 {
  font-size: 1.6rem;
  color: var(--primary-navy);
  margin-bottom: 10px;
}

.career-success-state p {
  color: #64748B;
  font-size: 1rem;
  max-width: 580px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .career-openings-grid {
    grid-template-columns: 1fr;
  }
  .career-form-card {
    padding: 32px 24px;
  }
}

/* ==========================================================================
   LEGAL & POLICY PAGES (Privacy, Terms, Student Guidelines)
   ========================================================================== */
.legal-content-section {
  padding: 70px 0 100px;
  background: #F8FAFC;
}

.legal-layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 100px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  padding: 24px 20px;
  box-shadow: 0 4px 20px rgba(11, 30, 63, 0.04);
}

.legal-sidebar-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(11, 30, 63, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-nav-list li {
  margin-bottom: 8px;
}

.legal-nav-list a {
  display: block;
  font-size: 0.88rem;
  color: #64748B;
  padding: 8px 12px;
  border-radius: 6px;
  transition: var(--transition);
  line-height: 1.4;
  text-decoration: none;
}

.legal-nav-list a:hover,
.legal-nav-list a.active {
  background: #F1F5F9;
  color: var(--primary-navy);
  font-weight: 600;
  padding-left: 16px;
  border-left: 3px solid var(--gold-primary);
}

.legal-body-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  padding: 46px 44px;
  box-shadow: 0 10px 30px rgba(11, 30, 63, 0.04);
}

.legal-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.12);
  color: #854D0E;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 24px;
}

.legal-article-section {
  margin-bottom: 40px;
  scroll-margin-top: 110px;
}

.legal-article-section:last-child {
  margin-bottom: 0;
}

.legal-article-section h2 {
  font-size: 1.5rem;
  color: var(--primary-navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(11, 30, 63, 0.08);
}

.legal-article-section h3 {
  font-size: 1.15rem;
  color: #1E293B;
  margin: 20px 0 10px;
}

.legal-article-section p {
  color: #475569;
  font-size: 0.96rem;
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-article-section ul,
.legal-article-section ol {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-article-section li {
  margin-bottom: 8px;
}

.legal-callout-box {
  background: #F8FAFC;
  border-left: 4px solid var(--gold-primary);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .legal-layout-grid {
    grid-template-columns: 1fr;
  }
  .legal-sidebar {
    position: static;
  }
  .legal-body-card {
    padding: 30px 22px;
  }
}




