/* ============================================================
   EZSTAR ACADEMY — GLOBAL DESIGN SYSTEM & LAYOUT
   ============================================================ */
:root,
[data-theme="light"] {
  --bg: #FFFFFF;
  --surface: #F8F9FA;
  --surface-alt: #F1F3F5;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --text: #111827;
  --text-mid: #4B5563;
  --text-dim: #6B7280;
  --accent: #E61C24;
  --accent-hover: #C4141B;
  --accent-soft: rgba(230, 28, 36, 0.08);
  --dark-bg: #0B0F19;
  --dark-surface: #131926;
  --dark-text: #F9FAFB;
  --dark-muted: #9CA3AF;
  --skeleton-base: #E5E7EB;
  --skeleton-shine: #F9FAFB;

  --display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 3px;
  --shadow: 0 10px 30px rgba(11, 15, 25, 0.06);
  --shadow-lg: 0 20px 50px rgba(11, 15, 25, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #0B0F19;
  --surface: #131926;
  --surface-alt: #1C2536;
  --border: #2A364D;
  --border-strong: #475569;
  --text: #FFFFFF;
  --text-mid: #E5E7EB;
  --text-dim: #CBD5E1;
  --accent: #E61C24;
  --accent-hover: #FF2A32;
  --accent-soft: rgba(230, 28, 36, 0.16);
  --dark-bg: #070A11;
  --dark-surface: #111724;
  --dark-text: #FFFFFF;
  --dark-muted: #CBD5E1;
  --skeleton-base: #192234;
  --skeleton-shine: #27344E;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.form-control::placeholder {
  color: var(--text-dim);
  opacity: 1;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text-mid);
  line-height: 1.7;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 250ms ease, color 250ms ease;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   SKELETON LOADING STATES
   ============================================================ */
@keyframes ez-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--skeleton-base) 25%,
    var(--skeleton-shine) 50%,
    var(--skeleton-base) 75%
  );
  background-size: 200% 100%;
  animation: ez-shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius);
}

.img-skeleton-wrap {
  position: relative;
  overflow: hidden;
  background: var(--skeleton-base);
}

.img-skeleton-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.16) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: ez-shimmer 1.5s ease-in-out infinite;
  pointer-events: none;
  opacity: 1;
  transition: opacity 280ms ease;
}

.img-skeleton-wrap.is-loaded::after {
  opacity: 0;
  animation: none;
}

.img-skeleton-wrap img {
  opacity: 0;
  transition: opacity 320ms var(--ease);
}

.img-skeleton-wrap.is-loaded img {
  opacity: 1;
}

.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.skeleton-line {
  height: 14px;
  margin-top: 12px;
}

.skeleton-line.lg {
  height: 30px;
  width: 55%;
  margin-top: 0;
}

.skeleton-line.sm {
  width: 75%;
}

/* ============================================================
   THEME LOGOS & TOGGLE
   ============================================================ */
.logo-light { display: block; }
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

.brand-logo-img {
  height: 54px;
  max-width: 190px;
  width: auto;
  object-fit: contain;
}
.drawer-logo-img {
  height: 112px;
  max-width: 210px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}
.footer-logo-img {
  height: 78px;
  max-width: 220px;
  width: auto;
  margin-bottom: 14px;
  object-fit: contain;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 180ms ease;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline-block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline-block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ============================================================
   TYPOGRAPHY & BUTTONS
   ============================================================ */
.editorial-title {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.editorial-sub {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 200ms var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230, 28, 36, 0.28);
}
.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-sm {
  padding: 10px 20px;
  font-size: 12px;
}
.btn-block { width: 100%; }

/* ============================================================
   TOP NAVIGATION BAR
   ============================================================ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 400;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 250ms ease, padding 250ms ease, box-shadow 250ms ease;
}
.topbar.scrolled,
.topbar.solid {
  background: var(--dark-bg);
  padding: 14px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.menu-trigger {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.menu-trigger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #FFFFFF;
  transition: transform 200ms ease, width 200ms ease;
}
.menu-trigger span:last-child { width: 16px; }
.menu-trigger:hover span:last-child { width: 24px; }

.topbar-brand,
.topbar-logo-wrap {
  display: none;
  align-items: center;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}
.topbar.scrolled .topbar-brand,
.topbar.solid .topbar-brand,
.topbar.scrolled .topbar-logo-wrap,
.topbar.solid .topbar-logo-wrap {
  display: inline-flex;
}

/* ============================================================
   LEFT SLIDE-OUT DRAWER
   ============================================================ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 25, 0.65);
  backdrop-filter: blur(3px);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 310px;
  max-width: 85vw;
  background: var(--bg);
  color: var(--text);
  z-index: 950;
  transform: translateX(-100%);
  transition: transform 350ms var(--ease), background-color 250ms ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 28px 40px;
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}
.drawer.open {
  transform: translateX(0);
}

.drawer-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  font-size: 24px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}
.drawer-close:hover { color: var(--accent); }

.drawer-crest {
  text-align: center;
  padding-top: 12px;
}
.drawer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin: 36px 0;
}
.drawer-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 180ms ease;
}
.drawer-links a:hover,
.drawer-links a.active {
  color: var(--accent);
}

.drawer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.drawer-social a {
  width: 38px;
  height: 38px;
  background: var(--surface-alt);
  color: var(--text);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 180ms ease;
}
.drawer-social a:hover {
  background: var(--accent);
  color: #FFFFFF;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 86vh;
  background-color: var(--dark-bg);
  background-image:
    linear-gradient(rgba(11, 15, 25, 0.72), rgba(11, 15, 25, 0.88)),
    url('../img/grad.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  color: #FFFFFF;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.hero-kicker {
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
  color: #E5E7EB;
  margin-bottom: 8px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 14px;
}
.hero-tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  color: #D1D5DB;
  margin-bottom: 8px;
}
.hero-sub {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9CA3AF;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-actions .btn-outline {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
}
.hero-actions .btn-outline:hover {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}
.pp-subfilters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  margin-top: -6px;
  margin-bottom: 32px;
}

/* ============================================================
   OFFSET EDITORIAL SPLIT SECTIONS
   ============================================================ */
.editorial-section {
  padding: 110px 0;
}
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}
.split-row + .split-row {
  margin-top: 120px;
}
.split-copy h2 {
  font-family: var(--display);
  font-size: clamp(30px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.split-copy p {
  color: var(--text-mid);
  margin-bottom: 18px;
  font-size: 15px;
}
.split-copy .btn {
  margin-top: 10px;
}

.offset-media {
  position: relative;
  z-index: 1;
}
.offset-media::before {
  content: '';
  position: absolute;
  width: 85%;
  height: 88%;
  background: var(--surface);
  z-index: -1;
}
.offset-media.offset-tr::before {
  top: -36px;
  right: -36px;
}
.offset-media.offset-tl::before {
  top: -36px;
  left: -36px;
}
.offset-media img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

/* ============================================================
   SUBJECT CATALOG SPLIT CARD
   ============================================================ */
.catalog-section {
  padding: 80px 0 110px;
}
.catalog-header {
  text-align: center;
  margin-bottom: 36px;
}
.board-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.board-tab {
  padding: 10px 22px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-mid);
  transition: all 180ms ease;
}
.board-tab:hover { border-color: var(--accent); color: var(--accent); }
.board-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.catalog-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  max-width: 1020px;
  margin: 0 auto;
}
.catalog-list-panel {
  background: var(--surface);
  padding: 56px 52px;
  position: relative;
  z-index: 2;
}
.catalog-list-panel h3 {
  font-family: var(--display);
  font-size: 28px;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.catalog-list-panel > p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 32px;
}
.subject-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: transform 180ms ease;
}
.subject-item:last-child { border-bottom: none; }
.subject-item:hover { transform: translateX(4px); }
.subject-item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.subject-name {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.subject-item:hover .subject-name { color: var(--accent); }
.subject-code {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.subject-desc {
  font-size: 13.5px;
  color: var(--text-dim);
}
.catalog-visual {
  margin-left: -32px;
  z-index: 1;
}
.catalog-visual img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   STUDENT SPOTLIGHT / TESTIMONIAL
   ============================================================ */
.spotlight-section {
  padding: 115px 0;
}
.spotlight-wrap {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px 1fr;
  align-items: center;
  gap: 76px;
}
.spotlight-photo {
  position: relative;
  z-index: 1;
}
.spotlight-photo::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -40px;
  width: 320px;
  height: 320px;
  background: var(--surface);
  z-index: -1;
}
.spotlight-photo img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  object-position: top center;
  box-shadow: var(--shadow-lg);
}
.spotlight-quote h4 {
  font-family: var(--display);
  font-size: 26px;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.spotlight-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.spotlight-quote p {
  font-size: 17.5px;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 28px;
}
.spotlight-dots {
  display: flex;
  gap: 10px;
}
.spotlight-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: all 200ms ease;
}
.spotlight-dot.active {
  background: var(--accent);
  width: 28px;
  border-radius: 5px;
}

/* ============================================================
   SPLIT BOOKING / REGISTRATION CARD
   ============================================================ */
.booking-section {
  padding: 80px 0 120px;
}
.booking-wrap {
  max-width: 1020px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
}
.booking-photo {
  z-index: 2;
  margin-right: -36px;
}
.booking-photo img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.booking-card {
  background: var(--surface);
  padding: 56px 56px 56px 76px;
  z-index: 1;
}
.booking-card h3 {
  font-family: var(--display);
  font-size: 28px;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.booking-card > p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 28px;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  transition: border-color 180ms ease, background-color 250ms ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding-top: 4px;
}
.check-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 14px;
  color: var(--text-mid);
  cursor: pointer;
}
.check-row input { accent-color: var(--accent); }

/* ============================================================
   PAST PAPERS BROWSER
   ============================================================ */
.pp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.year-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.year-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 200ms ease;
}
.year-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.year-card .year-num {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.year-card:hover .year-num { color: var(--accent); }
.year-card .year-meta {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}
.year-card .year-action {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  justify-content: space-between;
}

/* ============================================================
   PAGE HEADER (Inner Pages)
   ============================================================ */
.page-hero {
  background: var(--dark-bg);
  color: #FFFFFF;
  padding: 130px 24px 70px;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.page-hero p {
  color: var(--dark-muted);
  max-width: 600px;
  margin: 0 auto;
}
.page-body {
  padding: 80px 0 110px;
}
.legal-prose {
  max-width: 760px;
  margin: 0 auto;
}
.legal-prose h2 {
  font-family: var(--display);
  font-size: 24px;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 32px 0 12px;
}
.legal-prose p, .legal-prose li {
  margin-bottom: 14px;
  font-size: 15px;
}
.legal-prose ul {
  list-style: disc;
  padding-left: 22px;
}

/* ============================================================
   MODALS
   ============================================================ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 25, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-panel {
  background: var(--bg);
  color: var(--text-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 24px;
  color: var(--text-dim);
}
.modal-close:hover { color: var(--accent); }
.modal-panel h3 {
  font-family: var(--display);
  font-size: 26px;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.modal-sub {
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

/* ============================================================
   UNIFIED HIGH-CONTRAST FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark-bg);
  color: #FFFFFF;
  border-top: 2px solid var(--accent);
  padding: 56px 0 36px;
  font-size: 13.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(150px, 1fr));
  gap: 36px 44px;
  align-items: start;
  padding-bottom: 40px;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 14px;
}

.footer-desc {
  max-width: 320px;
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}

.footer-col h4 {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
}

.footer-col a {
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-col a:hover,
.footer-legal-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-social-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social-inline a {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease;
}

.footer-social-inline a:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #FFFFFF;
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-legal-link {
  font-size: 0.88rem;
}

.site-footer,
.site-footer p,
.site-footer span,
.site-footer li,
.site-footer a,
.site-footer h4,
.footer-desc,
.footer-legal-link,
.footer-bottom span .accent {
  color: #FFFFFF;
  opacity: 1;
}

/* ============================================================
   BACK TO TOP BUTTON (FADE IN / OUT + SMOOTH)
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 450;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease), visibility 260ms ease, background-color 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
}
/* ============================================================
   COURSES & MATERIALS PAGES
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: transform 200ms var(--ease), border-color 180ms ease, box-shadow 200ms ease;
}
.info-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.info-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.info-card-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.info-card-code {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
}
.info-card h3 {
  font-family: var(--display);
  font-size: 21px;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.info-card p {
  font-size: 14.5px;
  color: var(--text-mid);
  margin-bottom: 14px;
}
.info-card-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.info-card-list li::before {
  content: '•';
  color: var(--accent);
  font-weight: 700;
  margin-right: 8px;
}
.info-card-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.info-card-note {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 960px) {
  .materials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .materials-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   COURSES & MATERIALS (CLEAN EDITORIAL LAYOUT)
   ============================================================ */
.editorial-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.editorial-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Courses: Clean 3-Column Editorial Rows (No Eyebrows) */
.course-band {
  display: grid;
  grid-template-columns: 120px 1.25fr 0.85fr;
  gap: 36px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.course-band:last-child {
  border-bottom: none;
}
.course-code-col {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dim);
  padding-top: 6px;
}
.course-band:hover .course-code-col {
  color: var(--accent);
}
.course-main h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 6px;
}
.course-subtitle-line {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.course-main p {
  font-size: 15px;
  color: var(--text-mid);
  max-width: 58ch;
  margin-bottom: 18px;
}
.course-syllabus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.course-syllabus-tags span {
  font-size: 12.5px;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: var(--radius);
}
.course-aside {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.course-aside-title {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.course-aside-meta {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* Materials: Book Cover Showcase (No Eyebrows) */
.books-editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 44px;
}
.book-showcase-item {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 26px;
  align-items: start;
}
.book-cover-stage {
  position: relative;
  z-index: 1;
}
.book-cover-stage::before {
  content: '';
  position: absolute;
  top: 10px;
  left: -10px;
  width: 100%;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  z-index: -1;
  transition: transform 220ms var(--ease), border-color 180ms ease;
}
.book-showcase-item:hover .book-cover-stage::before {
  transform: translate(-3px, 3px);
  border-color: var(--accent);
}
.book-cover-stage .img-skeleton-wrap,
.book-cover-stage img {
  width: 165px;
  height: 225px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.book-details-col {
  padding-top: 2px;
}
.book-details-col h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin-bottom: 6px;
}
.book-sub-info {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.book-details-col p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 16px;
}

@media (max-width: 960px) {
  .course-band {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .books-editorial-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}
@media (max-width: 540px) {
  .book-showcase-item {
    grid-template-columns: 125px 1fr;
    gap: 18px;
  }
  .book-cover-stage .img-skeleton-wrap,
  .book-cover-stage img {
    width: 125px;
    height: 172px;
  }
}
/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .split-row,
  .catalog-card,
  .booking-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .catalog-visual,
  .booking-photo {
    margin: 0;
  }
  .booking-card { padding: 36px 28px; }
  .spotlight-wrap {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .spotlight-photo { margin: 0 auto; }
  .spotlight-photo::before {
    top: -24px;
    left: -24px;
    width: 250px;
    height: 250px;
  }
  .spotlight-photo img {
    width: 250px;
    height: 250px;
  }
  .spotlight-dots { justify-content: center; }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .year-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .topbar { padding: 16px 20px; }
  .topbar.scrolled, .topbar.solid { padding: 12px 20px; }
  .catalog-list-panel { padding: 36px 24px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .year-grid { grid-template-columns: 1fr; }
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }
}