/* ==========================================================================
   JCA ACADEMY — MASTER STYLESHEET
   --------------------------------------------------------------------------
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {

  /* ============================================================
     BRAND COLORS — Premium Gold / Navy Theme
  ============================================================ */

  --clr-primary: #ff9500;
  --clr-primary-dark: #ea9c14;
  --clr-primary-light: #ffb300;
--clr-secondary: #2B3A55;
--clr-secondary-soft: #3B4D6A;

  /* ============================================================
     STATUS COLORS
  ============================================================ */

  --clr-success: #1F9D55;
  --clr-success-dark: #177A42;

  --clr-danger: #D64545;
  --clr-danger-dark: #B83232;

  --clr-info: #2878C8;

  /* ============================================================
     NEUTRAL PALETTE
  ============================================================ */

  --clr-white: #FFFFFF;

  --clr-bg: #F7F8FA;
  --clr-surface: #FFFFFF;

  --clr-border: #E4E7EC;
  --clr-divider: #EEF0F3;

  /* ============================================================
     TEXT COLORS
  ============================================================ */

  --clr-text: #151D2E;
  --clr-text-muted: #687386;
  --clr-text-on-dark: #D7DCE5;

   
  /* Alpha tints (kept centralised for easy retheming) */
  --tint-primary-8: rgba(230, 126, 34, 0.08);
  --tint-primary-10: rgba(230, 126, 34, 0.1);
  --tint-primary-12: rgba(230, 126, 34, 0.12);
  --tint-primary-20: rgba(230, 126, 34, 0.2);
  --tint-success-10: rgba(39, 174, 96, 0.1);
  --tint-overlay-06: rgba(255, 255, 255, 0.06);
  --tint-overlay-12: rgba(255, 255, 255, 0.12);

  /* Elevation */
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-primary: 0 8px 25px rgba(230, 126, 34, 0.35);
  --shadow-primary-hover: 0 12px 35px rgba(230, 126, 34, 0.45);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 50px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-15: 60px;

  /* Container */
  --container-max: 1200px;
  --container-pad: 24px;

  /* Motion */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur-fast: 0.2s;
  --dur-base: 0.3s;
  --dur-slow: 0.4s;
  --transition: all var(--dur-slow) var(--ease-smooth);

  /* Z-index stack */
  --z-header: 1000;
  --z-overlay: 1500;
  --z-toast: 9999;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
   -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.loading {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul,
ol {
  list-style: none;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}
button,
a,
ul,
li,
img {
  -webkit-tap-highlight-color: transparent;
}


/* ==========================================================================
   Lenis css code
   ========================================================================== */

html.lenis,
html.lenis body {
  height: auto;
}
t
.lenis-smooh {
  scroll-behavior: auto !important;
}

.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis-stopped {
  overflow: hidden;
}

.lenis-scrolling iframe {
  pointer-events: none;
}

/* ============================================================
   CUSTOM SCROLLBAR — JCA Academy (Simple Orange)
   ============================================================ */

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #353332 transparent;
}

/* Chrome, Edge, Safari, Opera */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:active {
  background-clip: padding-box;
}

/* ==========================================================================
   18. PRELOADER — Refined & Professional
   ========================================================================== */

#preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition:
    opacity 0.9s cubic-bezier(0.65, 0, 0.35, 1),
    visibility 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Soft ambient glow — golden, subtle, premium */
#preloader::before {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.10) 0%,
    rgba(212, 175, 55, 0.04) 35%,
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 50%;
  z-index: 0;
  animation: glowPulse 4s ease-in-out infinite;
}

/* Very subtle moving grain / shimmer (optional, removes flatness) */
#preloader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  animation: shimmer 5s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

/* ------------------------- Logo ------------------------- */
.logo-container {
  opacity: 0;
  transform: scale(0.94) translateY(24px);
  animation: revealLogo 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
  z-index: 2;
  display: flex;
  justify-content: center;
  will-change: transform, opacity;
}

.logo-container img {
  width: 300px;
  height: auto;
  border-radius: 10px;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.10));
}

/* --------------------- Welcome text --------------------- */
.welcome-text {
  text-align: center;
  margin-top: 36px;
  z-index: 2;
  opacity: 0;
  transform: translateY(22px);
  animation: fadeInUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
  will-change: transform, opacity;
}

.welcome-text span {
  display: block;
  color: #8a8a8a;
  font-size: 0.8rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}

.welcome-text h1 {
  color: #0f0f0f;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-transform: uppercase;
  margin: 0;
}

.welcome-text h1::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #d4af37, #f39c12);
  margin: 20px auto 0;
  border-radius: 3px;
  animation: lineGrow 1s cubic-bezier(0.65, 0, 0.35, 1) 1.6s forwards;
}

/* ----------------------- Proverb ------------------------ */
.proverb {
  margin-top: 40px;
  text-align: center;
  max-width: 520px;
  padding: 0 24px;
  z-index: 2;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeInUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) 1.7s forwards;
  will-change: transform, opacity;
}

.proverb p {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  color: #4a4a4a;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  letter-spacing: 0.01em;
  margin: 0;
}

/* ---------------------- Loading bar --------------------- */
.loading-bar {
  position: absolute;
  bottom: 14%;
  width: 260px;
  height: 3px;
  background: #ececec;
  border-radius: 999px;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.6s ease-out 1.1s forwards;
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.loading-bar .progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #d4af37 0%, #f39c12 100%);
  border-radius: inherit;
  animation: loadProgress 3.2s cubic-bezier(0.65, 0, 0.35, 1) 1.1s forwards;
  position: relative;
}

/* Moving highlight inside the bar */
.loading-bar .progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 100%
  );
  animation: barShine 1.6s linear infinite;
}

/* ---------------------- Animations ---------------------- */
@keyframes revealLogo {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(24px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes lineGrow {
  to {
    width: 64px;
  }
}

@keyframes loadProgress {
  0%   { width: 0%; }
  30%  { width: 42%; }
  60%  { width: 72%; }
  85%  { width: 92%; }
  100% { width: 100%; }
}

@keyframes glowPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.75;
  }
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); opacity: 0; }
  40%  { opacity: 0.6; }
  100% { transform: translateX(100%); opacity: 0; }
}

@keyframes barShine {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* -------------------- Hide Preloader -------------------- */
.preloader-hidden {
  opacity: 0;
  visibility: hidden;
}

/* -------------------- Reduced motion ------------------- */
@media (prefers-reduced-motion: reduce) {
  #preloader *,
  #preloader *::before,
  #preloader *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .welcome-text h1::after { width: 64px; }
}


/* ============================================================
   PROFESSIONAL WHITE PAGE TRANSITION LOADER
============================================================ */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;

  opacity: 1;
  visibility: visible;
  pointer-events: all;

  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.35s ease;
}


/* ------------------------------------------------------------
   HIDDEN STATE
------------------------------------------------------------ */

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


/* ------------------------------------------------------------
   LOADER CONTENT
------------------------------------------------------------ */

.page-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 18px;

  opacity: 1;
  transform: translateY(0) scale(1);

  transition:
    opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}


/* Exit animation */

.page-loader.is-hidden .page-loader-content {
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
}


/* ============================================================
   SPINNER
============================================================ */

.spinner {
  position: relative;

  display: inline-block;

  width: 30px;
  height: 30px;
}


/* Spinner blades */

.spinner .spinner-blade {
  position: absolute;

  left: 50%;
  bottom: 50%;

  width: 3px;
  height: 8px;

  border-radius: 10px;

  background-color: transparent;

  transform-origin: 50% calc(100% + 7px);
  
  animation: spinner-fade 1s infinite linear;
}


/* ============================================================
   BLADE POSITIONS
============================================================ */

.spinner .spinner-blade:nth-child(1) {
  animation-delay: 0s;
  transform: translateX(-50%) rotate(0deg);
}

.spinner .spinner-blade:nth-child(2) {
  animation-delay: 0.083s;
  transform: translateX(-50%) rotate(30deg);
}

.spinner .spinner-blade:nth-child(3) {
  animation-delay: 0.166s;
  transform: translateX(-50%) rotate(60deg);
}

.spinner .spinner-blade:nth-child(4) {
  animation-delay: 0.249s;
  transform: translateX(-50%) rotate(90deg);
}

.spinner .spinner-blade:nth-child(5) {
  animation-delay: 0.332s;
  transform: translateX(-50%) rotate(120deg);
}

.spinner .spinner-blade:nth-child(6) {
  animation-delay: 0.415s;
  transform: translateX(-50%) rotate(150deg);
}

.spinner .spinner-blade:nth-child(7) {
  animation-delay: 0.498s;
  transform: translateX(-50%) rotate(180deg);
}

.spinner .spinner-blade:nth-child(8) {
  animation-delay: 0.581s;
  transform: translateX(-50%) rotate(210deg);
}

.spinner .spinner-blade:nth-child(9) {
  animation-delay: 0.664s;
  transform: translateX(-50%) rotate(240deg);
}

.spinner .spinner-blade:nth-child(10) {
  animation-delay: 0.747s;
  transform: translateX(-50%) rotate(270deg);
}

.spinner .spinner-blade:nth-child(11) {
  animation-delay: 0.83s;
  transform: translateX(-50%) rotate(300deg);
}

.spinner .spinner-blade:nth-child(12) {
  animation-delay: 0.913s;
  transform: translateX(-50%) rotate(330deg);
}


/* ============================================================
   SPINNER ANIMATION
============================================================ */

@keyframes spinner-fade {

  0% {
    background-color: #20242a;
  }

  100% {
    background-color: transparent;
  }

}


/* ============================================================
   LOADING TEXT
============================================================ */

.loader-text {
  font-size: 10px;
  font-weight: 600;

  letter-spacing: 0.24em;
  text-transform: uppercase;

  color: #777b82;

  animation: loading-pulse 1.2s ease-in-out infinite;
}


@keyframes loading-pulse {

  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }

}


/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

  .page-loader,
  .page-loader-content {
    transition: none;
  }

  .spinner .spinner-blade,
  .loader-text {
    animation: none;
  }

}

/* ============================================
   RESULT ANNOUNCEMENT POPUP
   File: result-popup.css
   ============================================ */

/* ---------- OVERLAY ---------- */
.result-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.result-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ---------- CARD ---------- */
.result-card {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  border-radius: 18px;
  padding: 40px 32px 34px;
  box-shadow: 0 25px 60px rgba(2, 6, 23, 0.28);
  text-align: center;

  transform: translateY(24px) scale(0.96);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.35s ease;
}

.result-overlay.active .result-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Top accent line */
.result-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, var(--clr-primary-dark), var(--clr-primary-light), var(--clr-primary-light));
}

/* ---------- CLOSE BUTTON ---------- */
.result-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #475569;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.22s ease;
}

.result-close:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg);
}

/* ---------- ICON ---------- */
.result-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fef6db, #fef2bf);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: resultPulseGlow 2.4s ease-in-out infinite;
}

.result-icon svg {
  width: 38px;
  height: 38px;
}

@keyframes resultPulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(221, 246, 59, 0.35); }
  50%      { box-shadow: 0 0 0 12px rgba(59, 130, 246, 0); }
}

/* ---------- TEXT ---------- */
.result-badge {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 30px;
  margin-bottom: 14px;
}

.result-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.35;
}

.result-card h2 span {
  color: var(--clr-primary-dark);
}

.result-card p.result-text {
  font-size: 14.5px;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 24px;
}

/* ---------- ACTION BUTTON ---------- */
.result-check-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px;
  font-size: 15.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--clr-primary-dark), var(--clr-primary-light));
  border: none;
  border-radius: 11px;
  cursor: pointer;
  text-decoration: none;
  transition: 0.25s ease;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.28);
}

.result-check-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.35);
  color: #fff;
}

.result-check-btn:active {
  transform: translateY(0);
}

.result-check-btn svg {
  width: 18px;
  height: 18px;
}

.result-note {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 16px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 480px) {
  .result-card {
    padding: 34px 22px 26px;
    border-radius: 16px;
  }
  .result-card h2 { font-size: 19px; }
  .result-icon { width: 66px; height: 66px; }
  .result-icon svg { width: 32px; height: 32px; }
  .result-check-btn { font-size: 14.5px; padding: 14px; }
}

/* ==========================================================================
   3. TYPOGRAPHY & SECTION HEADINGS
   ========================================================================== */
.section-badge {
  display: inline-block;
  padding: var(--space-1) 18px;
  background: var(--tint-primary-12);
  color: var(--clr-primary);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.section-title span {
  color: var(--clr-primary);
  position: relative;
}

.section-title span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 6px;
  background: var(--tint-primary-20);
  border-radius: 10px;
  z-index: -1;
}

.section-subtitle {
  max-width: 600px;
  margin: 0 auto var(--space-10);
  color: var(--clr-text-muted);
  font-size: 18px;
  text-align: center;
}

/* ==========================================================================
   4. LAYOUT UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

section {
  padding: 80px 0;
}

.section-light {
  background: var(--clr-white);
}

.section-gray {
  background: var(--clr-white);
}

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn i {
  font-size: 16px;
}

.btn:focus-visible {
  outline: 3px solid var(--clr-primary-light);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--clr-primary);
  color: var(--clr-white);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-primary-hover);
}

.btn-secondary {
  background: var(--clr-secondary);
  color: var(--clr-white);
  box-shadow: 0 8px 25px rgba(44, 62, 80, 0.3);
}

.btn-secondary:hover {
  background: var(--clr-secondary-soft);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(44, 62, 80, 0.4);
}

.btn-success {
  background: var(--clr-success);
  color: var(--clr-white);
}

.btn-success:hover {
  background: var(--clr-success-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(39, 174, 96, 0.4);
}

.btn-danger {
  background: var(--clr-danger);
  color: var(--clr-white);
}

.btn-danger:hover {
  background: var(--clr-danger-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--clr-primary);
  border: 2px solid var(--clr-primary);
}

.btn-outline:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Ghost button —
   -------------------------------------------------------------------------- */
.btn-outline-light {
  background: transparent;
  color: var(--clr-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  background: var(--clr-white);
  color: var(--clr-primary);
  border-color: var(--clr-white);
  transform: translateY(-3px);
}

/* ==========================================================================
   6. HEADER / NAVIGATION
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-sm);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  gap: var(--space-5);
}

/* ---- Logo ---- */
.logo,
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.logo-img:hover {
  transform: scale(1.05);
}

.logo-text {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--clr-secondary);
}

.logo-text span {
  color: var(--clr-primary);
}

.logo-text small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

.logo-text[hidden] {
  display: none;
}

/* ---- Nav links ---- */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-links li a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--clr-secondary);
  transition: var(--transition);
}

.nav-links li a:hover {
  color: var(--clr-primary);
  background: var(--tint-primary-8);
}

.nav-links li a.active {
  color: var(--clr-white);
  background: var(--clr-primary);
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.nav-links li a.active:hover {
  background: var(--clr-primary-dark);
  transform: translateY(-2px);
}

/* ---- Hamburger ---- */
.hamburger {
  display: none;
  padding: var(--space-1) var(--space-2);
  font-size: 28px;
  color: var(--clr-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.hamburger:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   7. HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
  color: var(--clr-white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("jca-img-2.webp");
  content: "";
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(44, 62, 80, 0.85) 0%,
    rgba(52, 73, 94, 0.75) 100%
  );
}

/* Ambient glow accents. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(230, 126, 34, 0.15) 0%,
    transparent 70%
  );
}

.hero::after {
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(243, 156, 18, 0.1) 0%,
    transparent 70%
  );
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 650px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  margin-bottom: var(--space-5);
  background: var(--tint-overlay-12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-5);
}

.hero h1 span {
  color: var(--clr-primary-light);
}

.hero p {
  max-width: 500px;
  margin-bottom: var(--space-8);
  font-size: 18px;
  line-height: 1.8;
  opacity: 0.85;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-10);
  margin-top: 50px;
  padding-top: var(--space-10);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stats .stat-item h3 {
  font-size: 32px;
  font-weight: 800;
}

.hero-stats .stat-item p {
  margin: 0;
  font-size: 14px;
  opacity: 0.7;
}

/* ==========================================================================
   8. PAGE HEADER (inner pages)
   ========================================================================== */
.page-header {
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
  color: var(--clr-text);
  background-color: var(--clr-white);
  text-align: center;
}

.page-header h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
}

.page-header p {
  max-width: 500px;
  margin: var(--space-3) auto 0;
  opacity: 0.8;
}

/* ==========================================================================
   9. SECTIONS & CARDS
   ========================================================================== */
.card {
  padding: 30px;
  background: var(--clr-white);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-lg);
  /* box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px; */
  /* box-shadow: var(--shadow-md); */
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   10. ABOUT PAGE
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-15);
  align-items: center;
}

.about-image {
  position: relative;
  overflow: hidden;
  padding: var(--space-15) var(--space-10);
  background: linear-gradient(
    135deg,
    var(--clr-primary),
    var(--clr-primary-dark)
  );
  border-radius: var(--radius-lg);
  color: var(--clr-white);
  text-align: center;
}

.about-image i {
  font-size: 80px;
  margin-bottom: var(--space-5);
  opacity: 0.9;
}

.about-image h3 {
  font-size: 28px;
  font-weight: 700;
}

.about-image p {
  margin-top: var(--space-2);
  opacity: 0.85;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: 30px;
}

.stat-box {
  padding: 25px 20px;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
}

.stat-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-box h3 {
  font-size: 30px;
  font-weight: 800;
  color: var(--clr-primary);
}

.stat-box p {
  margin-top: var(--space-1);
  font-size: 14px;
  color: var(--clr-text-muted);
}

/* ==========================================================================
   11. PROGRAMS PAGE
   ========================================================================== */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.program-card {
  position: relative;
  overflow: hidden;
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.program-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--clr-primary),
    var(--clr-primary-light)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.program-card:hover::before {
  transform: scaleX(1);
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.icon-wrapper img {
  width: 100%;
  height: auto;
}
.program-card h3 {
  margin-bottom: var(--space-3);
  font-size: 20px;
  margin-top: var(--space-3);
  font-weight: 700;
}
.program-card .icon-wrapper i {
  font-size: 32px;
  margin-top: 20px;
  color: var(--clr-primary);
}

.program-card p {
  font-size: 14px;
  margin: 1px 15px;
  color: var(--clr-text-muted);
}

.program-card .program-tag {
  display: inline-block;
  margin-top: var(--space-3);
  padding: var(--space-1) 14px;
  background: var(--tint-success-10);
  color: var(--clr-success);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: var(--space-5);
}

/* ==========================================================================
   12. RESULTS PAGE
   ========================================================================== */

/* ---- Tabs ---- */
.result-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

.result-tabs button {
  padding: var(--space-3) 30px;
  background: var(--clr-white);
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  color: var(--clr-text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.result-tabs button:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

.result-tabs button.active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-white);
  box-shadow: var(--shadow-primary);
}

/* ---- Panels ---- */
.result-panel {
  display: none;
}

.result-panel.active {
  display: block;
  animation: fadeUp var(--dur-slow) ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Search / filter ---- */
.search-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 30px;
}

.search-box input,
.search-box select {
  min-width: 200px;
  padding: var(--space-3) 20px;
  background: var(--clr-white);
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-pill);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus,
.search-box select:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 4px var(--tint-primary-10);
}

/* ---- Table ---- */
.result-table-wrapper {
  overflow-x: auto;
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.result-table th {
  padding: var(--space-4) var(--space-5);
  background: var(--clr-secondary);
  color: var(--clr-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.result-table td {
  padding: 14px var(--space-5);
  border-bottom: 1px solid var(--clr-divider);
}

.result-table tbody tr:hover {
  background: var(--clr-surface);
}

.result-table tbody tr:last-child td {
  border-bottom: none;
}

/* Grade pills — keys match `toClassToken()` in the JS ("A+" → "a-plus"). */
.result-table [class^="grade-"],
.result-table [class*=" grade-"] {
  font-weight: 700;
}

.grade-a-plus {
  color: var(--clr-success);
}

.grade-a {
  color: var(--clr-success);
}

.grade-b {
  color: var(--clr-info);
}

.grade-c {
  color: var(--clr-primary-light);
}

.grade-d {
  color: var(--clr-primary);
}

.grade-f {
  color: var(--clr-danger);
}

/* ---- Empty state ---- */
.no-result {
  padding: 50px;
  color: var(--clr-text-muted);
  text-align: center;
}

.no-result i {
  display: block;
  margin-bottom: var(--space-4);
  font-size: 48px;
  opacity: 0.3;
}

/* ---- Admin form ---- */
.admin-form {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-10);
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.admin-form h3 {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  font-size: 24px;
}

.admin-form .form-group {
  margin-bottom: 18px;
}

.admin-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--clr-secondary);
}

.admin-form input,
.admin-form select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--clr-surface);
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

.admin-form input:focus,
.admin-form select:focus {
  background: var(--clr-white);
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 4px var(--tint-primary-8);
}

.admin-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.admin-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

/* ==========================================================================
   13. FACULTY PAGE
   ========================================================================== */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
}

.faculty-card {
  padding: 20px 25px;
  background: var(--clr-white);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
}

.faculty-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.faculty-card h4 {
  font-size: 18px;
  font-weight: 700;
}

.faculty-card .designation {
  font-size: 14px;
  font-weight: 500;
  color: var(--clr-primary);
}

.faculty-card p {
  margin-top: var(--space-1);
  font-size: 13px;
  color: var(--clr-text-muted);
}

/* ==========================================================================
   14. CONTACT PAGE
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

.contact-item .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--tint-primary-10);
  border-radius: var(--radius-md);
}

.contact-item .icon i {
  font-size: 20px;
  color: var(--clr-primary);
}

.contact-item h4 {
  font-size: 16px;
  font-weight: 600;
}

.contact-item p {
  font-size: 14px;
  color: var(--clr-text-muted);
}

.contact-form-wrapper {
  padding: var(--space-10);
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form-wrapper h3 {
  margin-bottom: var(--space-5);
  font-size: 24px;
}

.contact-form .form-group {
  margin-bottom: var(--space-4);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--clr-surface);
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: var(--clr-white);
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 4px var(--tint-primary-8);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* ==========================================================================
   15. FOOTER
   ========================================================================== */
footer {
  padding-top: var(--space-15);
  background: var(--clr-secondary);
  color: var(--clr-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-10);
  padding-bottom: var(--space-10);
}

.footer-grid h3 {
  margin-bottom: var(--space-4);
  font-size: 18px;
  font-weight: 700;
}

.footer-grid p,
.footer-grid a {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--clr-text-on-dark);
  font-size: 14px;
  transition: var(--transition);
}

.footer-grid a:hover {
  color: var(--clr-primary-light);
  transform: translateX(4px);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--tint-overlay-06);
  border-radius: 50%;
  font-size: 18px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
  transform: translateY(-4px);
}

.footer-bottom {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--tint-overlay-06);
  color: var(--clr-text-on-dark);
  font-size: 14px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Footer brand block
   -------------------------------------------------------------------------- */
.footer-brand-title {
  font-size: 24px;
}

.footer-brand-title span {
  color: var(--clr-primary);
}

.footer-brand-tagline {
  margin-top: var(--space-2);
}

/* --------------------------------------------------------------------------
   Footer contact items — icon column alignment
   -------------------------------------------------------------------------- */
.footer-contact-item i {
  display: inline-block;
  width: 20px;
  margin-right: 4px;
  color: var(--clr-primary);
}

/* --------------------------------------------------------------------------
   Footer subscribe form
   -------------------------------------------------------------------------- */
.subscribe-form {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.subscribe-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--tint-overlay-06);
  color: var(--clr-white);
  outline: none;
  transition: var(--transition);
}

.subscribe-form input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.subscribe-form input:focus {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.35);
}

/* ==========================================================================
   16. TOAST NOTIFICATIONS
   ========================================================================== */
.toast {
  position: fixed;
  right: 30px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) 28px;
  background: var(--clr-success);
  color: var(--clr-white);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  font-weight: 500;
  z-index: var(--z-toast);
  animation: slideIn var(--dur-slow) ease both;
}

.toast.error {
  background: var(--clr-danger);
}

.toast.success {
  background: var(--clr-success);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================================================================
   17. ACCESSIBILITY & MOTION PREFERENCES
   ========================================================================== */
:focus-visible {
  outline: 3px solid var(--clr-primary-light);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   19. SHOWCASE / QUICK-LINKS SECTION
   ========================================================================== */
#showcase-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  color: black;
  text-align: center;
  gap: 20px;
  margin: 4rem 0;
  text-align: center;
  background-color: var(--clr-bg);
}
#showcase-section h2 {
  font-size: clamp(30px, 4vw, 45px);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  margin-bottom: 5px;
}
h2 span {
  color: var(--clr-primary-light);
}
.section-subtitle {
  color: rgb(41, 40, 40);
  margin-bottom: 2rem;
}

.quick-links {
  padding: var(--space-10) 0;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-5);
  text-align: center;
}

.quick-link-card {
  padding: 35px;
  background: var(--clr-white);
  border-radius: var(--radius-md);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.08),
    0 15px 35px rgba(0, 0, 0, 0.12);

  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow;
}

.quick-link-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.1),
    0 25px 50px rgba(0, 0, 0, 0.18);
  background-color: var(--clr-primary-light);
  color: var(--clr-white) !important;
}

.quick-link-card i {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 32px;
  color: var(--clr-primary);
  transition:
    color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-link-card:hover i {
  color: var(--clr-white);
  transform: scale(1.08);
}

.quick-link-card span {
  font-weight: 600;
}
.links-section-btn {
  background-color: var(--clr-primary);
  padding: 12px 20px;
  color: white;
  border-radius: 25px;
  margin-top: var(--space-8);
  border: none;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}
.links-section-btn:hover {
  background-color: var(--clr-primary-light);
}
.links-section-btn:active {
  transform: scale(0.94);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   20. ACADEMY COMMUNITY SECTION
   ========================================================= */

.academy-community {
  padding: 90px 70px;
  background: var(--clr-bg);
  color: #0f1319;
  font-family:
    "Inter",
    "Segoe UI",
    system-ui,
    -apple-system,
    "Helvetica Neue",
    Arial,
    sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.academy-community *,
.academy-community *::before,
.academy-community *::after {
  box-sizing: border-box;
}

.academy-community img {
  display: block;
  max-width: 100%;
}

.academy-community__container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.academy-community__inner {
  display: grid;
  grid-template-columns: minmax(250px, 380px) 1fr;
  gap: 70px;
  align-items: center;
}

/* =========================================================
   LEFT COLUMN — TEXT
   ========================================================= */

.academy-community__title {
  margin: 0 0 20px;
  max-width: 13ch;
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: #0a0a0a;
}

.academy-community__accent {
  color: var(--clr-primary);
}

.academy-community__lead {
  margin: 0 0 30px;
  max-width: 38ch;
  font-size: 1rem;
  color: #5d6675;
}

/* ---------- Button ---------- */
.academy-community__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--clr-primary);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 10px 24px -14px rgba(15, 19, 25, 0.75);
  transition:
    background 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    color 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.academy-community__btn:hover,
.academy-community__btn:focus-visible {
  background: var(--clr-primary-light);
  color: #0f1319;
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -14px rgba(37, 37, 37, 0.75);
}

.academy-community__btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.academy-community__btn:hover svg,
.academy-community__btn:focus-visible svg {
  transform: translateX(3px);
}

/* =========================================================
   RIGHT COLUMN — BENTO GALLERY
   ========================================================= */

.academy-community__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 16px;
  aspect-ratio: 660 / 478;
}

/* ---------- Tile ---------- */
.academy-tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #e9ecf1;
  box-shadow:
    0 1px 2px rgba(15, 19, 25, 0.04),
    0 12px 28px -20px rgba(15, 19, 25, 0.45);
  transition:
    transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.academy-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition:
    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
      box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;

}

/* ---------- Caption ---------- */
.academy-tile__caption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 54px 18px 16px;
  color: #ffffff;
  background: linear-gradient(
    to top,
    rgba(8, 12, 20, 0.9) 0%,
    rgba(8, 12, 20, 0.48) 48%,
    rgba(8, 12, 20, 0) 100%
  );
}

.academy-tile__caption-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.academy-tile__caption-text {
  font-size: 0.75rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.76);
}

/* ---------- Desktop placement ---------- */
.academy-tile--1 {
  grid-column: 1;
  grid-row: 1 / 3;
}
.academy-tile--2 {
  grid-column: 2;
  grid-row: 1;
}
.academy-tile--3 {
  grid-column: 3;
  grid-row: 1;
}
.academy-tile--4 {
  grid-column: 2 / 4;
  grid-row: 2;
}
.academy-tile--5 {
  grid-column: 1 / 3;
  grid-row: 3;
}
.academy-tile--6 {
  grid-column: 3;
  grid-row: 3;
}

/* =========================================================
   HOVER (fine pointers only)
   ========================================================= */
@media (hover: hover) and (pointer: fine) {
  .academy-tile__caption {
    opacity: 0;
    transform: translateY(12px);
    transition:
      opacity 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
      transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .academy-tile:hover,
  .academy-tile:focus-within {
    z-index: 2;
    transform: translateY(-4px);
    box-shadow:
      0 2px 6px rgba(15, 19, 25, 0.06),
      0 30px 55px -28px rgba(15, 19, 25, 0.6);
  }

  .academy-tile:hover img,
  .academy-tile:focus-within img {
    transform: scale(1.06);
    filter: brightness(0.9) saturate(1.05);
  }

  .academy-tile:hover .academy-tile__caption,
  .academy-tile:focus-within .academy-tile__caption {
    opacity: 1;
    transform: translateY(0);
  }
}

.academy-tile:focus-within {
  outline: 3px solid #f2b705;
  outline-offset: 3px;
}

/* =========================================================
   ACADEMY COMMUNITY — RESPONSIVE
   ========================================================= */

/* Tablet  (≤ 1024px) */
@media (max-width: 1024px) {
  .academy-community {
    padding: 70px 28px;
  }

  .academy-community__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .academy-community__title {
    max-width: 20ch;
    font-size: 2.5rem;
  }

  .academy-community__lead {
    max-width: 52ch;
  }

  .academy-community__gallery {
    aspect-ratio: 3 / 2;
  }
}

/* Mobile  (≤ 640px) */
@media (max-width: 640px) {
  .academy-community {
    padding: 56px 20px;
  }

  .academy-community__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    aspect-ratio: auto;
    gap: 12px;
  }

  .academy-tile {
    aspect-ratio: 1 / 1;
    border-radius: 14px;
  }

  .academy-tile--1 {
    grid-column: 1;
    grid-row: 1 / 3;
    aspect-ratio: auto;
  }
  .academy-tile--2 {
    grid-column: 2;
    grid-row: 1;
  }
  .academy-tile--3 {
    grid-column: 2;
    grid-row: 2;
  }
  .academy-tile--4 {
    grid-column: 1 / 3;
    grid-row: 3;
    aspect-ratio: 16 / 9;
  }
  .academy-tile--5 {
    grid-column: 1;
    grid-row: 4;
  }
  .academy-tile--6 {
    grid-column: 2;
    grid-row: 4;
  }

  .academy-tile__caption {
    padding: 44px 14px 12px;
  }

  .academy-tile__caption-text {
    display: none;
  }
}

/* Small Mobile  (≤ 420px) */
@media (max-width: 420px) {
  .academy-community {
    padding: 44px 16px;
  }

  .academy-community__title {
    font-size: 1.7rem;
  }

  .academy-community__btn {
    padding: 12px 22px;
    font-size: 0.85rem;
  }

  .academy-tile__caption {
    padding: 34px 11px 10px;
  }

  .academy-tile__caption-title {
    font-size: 0.78rem;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .academy-community *,
  .academy-community *::before,
  .academy-community *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   21. DIRECTOR ABOUT SECTION
   ========================================================================== */

#director-about-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 30px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 75px;
}

/* =========================================
   DIRECTOR IMAGE
========================================= */

.director-about-section-part-1 {
  flex: 0 1 440px;
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
}

/* Decorative frame */

.director-about-section-part-1::before {
  content: "";

  position: absolute;

  width: 88%;
  height: 88%;

  top: 7%;
  left: -20px;

  border: 2px solid var(--clr-primary, #f5c542);
  border-radius: 22px;

  z-index: 0;
}

/* Image */

.director-about-section-part-1 img {
  position: relative;
  z-index: 1;

  display: block;

  width: 100%;
  max-width: 430px;
  height: 500px;
  object-fit: cover;
  object-position: center top;

  border-radius: 22px;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.director-about-section-part-1:hover img {
  transform: translateY(-6px);

  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

/* =========================================
   CONTENT
========================================= */

.director-about-section-part-2 {
  flex: 1;
  max-width: 580px;
}

/* Yellow line */

.director-about-section-part-2::before {
  content: "";

  display: block;

  width: 55px;
  height: 4px;

  margin-bottom: 22px;

  border-radius: 20px;

  background: var(--clr-primary, #f5c542);
}

/* Heading */

.director-about-h2 {
  margin: 0 0 12px;

  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;

  font-weight: 700;
  letter-spacing: -1px;

  color: var(--clr-text, #1b1a1a);
}

/* Position */

.director-about-h3 {
  margin: 0 0 10px;

  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.5;

  font-weight: 600;

  color: var(--clr-primary, #f5c542);
}

/* Qualification */

.director-about-h4 {
  margin: 0 0 28px;

  font-size: 0.98rem;
  line-height: 1.6;

  font-weight: 400;

  color: var(--clr-text-secondary, #464545);
}

/* =========================================
   DIRECTOR MESSAGE
========================================= */

.director-about-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.director-about-content p {
  margin: 0;

  font-size: 0.98rem;
  line-height: 1.85;

  font-weight: 400;

  color: var(--clr-text-secondary, #292828);
}

/* =========================================
   DIRECTOR ABOUT — RESPONSIVE
========================================= */

/* Tablet */
@media (max-width: 900px) {
  #director-about-section {
    gap: 45px;
    padding: 80px 25px;
  }

  .director-about-section-part-1 {
    flex-basis: 370px;
  }

  .director-about-section-part-1 img {
    height: 440px;
  }

  .director-about-section-part-1::before {
    left: -15px;
  }

  .director-about-content p {
    font-size: 0.94rem;
    line-height: 1.8;
  }
}

/* Mobile */
@media (max-width: 700px) {
  #director-about-section {
    flex-direction: column;

    gap: 50px;

    padding: 70px 20px;
  }

  .director-about-section-part-1 {
    width: 90%;
    max-width: 430px;
    margin: 0 auto;
  }

  .director-about-section-part-1 img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;

    object-fit: cover;
    object-position: center top;
  }

  .director-about-section-part-1::before {
    left: -12px;
    top: 18px;
  }

  .director-about-section-part-2 {
    width: 100%;
    max-width: 600px;
  }

  .director-about-h2 {
    font-size: 2rem;
  }

  .director-about-h3 {
    font-size: 1.1rem;
  }

  .director-about-h4 {
    margin-bottom: 24px;
  }
}

/* Small Mobile */
@media (max-width: 450px) {
  #director-about-section {
    padding: 55px 16px;
    gap: 40px;
  }

  .director-about-section-part-1 {
    width: 88%;
  }

  .director-about-section-part-1 img {
    aspect-ratio: 4 / 5;
    border-radius: 17px;
  }

  .director-about-section-part-1::before {
    left: -9px;
    top: 13px;
    border-radius: 17px;
  }

  .director-about-h2 {
    font-size: 1.75rem;
    letter-spacing: -0.5px;
  }

  .director-about-h3 {
    font-size: 1rem;
  }

  .director-about-h4 {
    font-size: 0.9rem;
  }

  .director-about-content {
    gap: 15px;
  }

  .director-about-content p {
    font-size: 0.9rem;
    line-height: 1.75;
  }
}

/* ==========================================================================
   22. COLLABORATIONS SECTION
   ========================================================================== */

#collaburation-section {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 110px 32px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 22px;
  row-gap: 22px;
}

.collab-h2 {
  margin: 0;
  font-size: clamp(2.3rem, 4.3vw, 4rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -1.8px;
  text-align: center;
  color: var(--clr-text, #363434);
  grid-column: 1 / -1;
}

.collab-h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin: 22px auto 24px;
  border-radius: 50px;
  background: var(--clr-primary, #f5c542);
}

.collab-h4 {
  width: min(100%, 680px);
  margin: 0 auto 65px;
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: 0.1px;
  text-align: center;
  color: var(--clr-text-secondary, #242323);
  grid-column: 1 / -1;
}

.collab-1 {
  position: relative;
  grid-column: span 4;
  aspect-ratio: 4 / 3;
  max-height: 330px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.015)
  );
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.collab-1 img {
  width: 100%;
  height: 110%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 13px;
  transition: transform 0.5s ease;
}

.collab-1:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 197, 66, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.24);
}

.collab-1:hover img {
  transform: scale(1.025);
}

.collab-1::before {
  content: "";
  position: absolute;
  width: 55px;
  height: 55px;
  top: 0;
  right: 0;
  border-top: 2px solid var(--clr-primary, #f5c542);
  border-right: 2px solid var(--clr-primary, #f5c542);
  border-top-right-radius: 20px;
  opacity: 0.7;
  z-index: 2;
  pointer-events: none;
}

/* ============================================================
   COLLABORATIONS — RESPONSIVE
============================================================ */

@media (max-width: 1000px) {
  #collaburation-section {
    padding: 90px 26px;
    column-gap: 18px;
    row-gap: 18px;
  }

  .collab-1 {
    max-height: 290px;
    padding: 10px;
    border-radius: 17px;
  }

  .collab-1 img {
    border-radius: 11px;
  }
}

@media (max-width: 750px) {
  #collaburation-section {
    grid-template-columns: repeat(2, 1fr);
    padding: 75px 22px;
  }

  .collab-h4 {
    margin-bottom: 45px;
  }

  .collab-1 {
    grid-column: span 1;
    max-height: 280px;
  }

  .collab-1:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 9px);
    justify-self: center;
  }
}

@media (max-width: 560px) {
  #collaburation-section {
    display: flex;
    flex-direction: column;
    padding: 65px 18px;
  }

  .collab-h2 {
    font-size: 2.15rem;
    letter-spacing: -1px;
  }

  .collab-h2::after {
    width: 42px;
    height: 3px;
    margin-top: 17px;
    margin-bottom: 20px;
  }

  .collab-h4 {
    max-width: 500px;
    margin-bottom: 38px;
    font-size: 0.92rem;
    line-height: 1.75;
  }

  .collab-1,
  .collab-1:last-child {
    width: 100%;
    max-height: 270px;
    margin: 0;
  }
}

@media (max-width: 400px) {
  #collaburation-section {
    padding: 55px 15px;
  }

  .collab-h2 {
    font-size: 1.85rem;
  }

  .collab-h4 {
    font-size: 0.87rem;
  }

  .collab-1,
  .collab-1:last-child {
    max-height: 235px;
    padding: 8px;
    border-radius: 15px;
  }

  .collab-1 img {
    border-radius: 10px;
  }

  .collab-1::before {
    width: 42px;
    height: 42px;
    border-top-right-radius: 15px;
  }
}
/* ==========================================================================
   23. JCA GALLERY SECTION
   ========================================================================== */

#jca-gallery-section {
  --gallery-primary: var(--clr-primary, #f5c542);
  --gallery-text: #ffffff;
  --gallery-muted: #999999;
  text-align: center;
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 110px 30px;
  overflow: hidden;
}

.gallery-heading {
  max-width: 720px;
  margin: 0 auto 55px;
  text-align: center;
}

.gallery-h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: black;
}

.gallery-intro {
  max-width: 590px;
  margin: 18px auto 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--gallery-muted);
}

/* ── Wrapper — plain block (NOT flex) ───────────── */
.gallery-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

/* ── Viewport — clips off-screen slides ─────────── */
.gallery-viewport {
  position: relative;
  display: block;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  overflow: hidden;
  background: transparent;
  border-radius: 18px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
  /* safety for flex parents */
  min-width: 0;
}

/* ── Track — the sliding row ────────────────────── */
.images-cards {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  box-sizing: border-box;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.images-cards.dragging {
  cursor: grabbing;
  transition: none;
}

/* ── Each card = exactly viewport width ─────────── */
.gallery-card {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  background: transparent;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.gallery-card.is-clone {
  pointer-events: none;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 500px;
  object-fit: cover;
  object-position: center;
  border: none;
  outline: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-card.is-clone img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-card.active img {
  transform: scale(1.012);
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78),
    rgba(0, 0, 0, 0.2) 55%,
    transparent
  );
  pointer-events: none;
}

.gallery-caption {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 28px;
  z-index: 2;
  text-align: left;
}

.gallery-caption span {
  display: block;
  margin-bottom: 7px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gallery-primary);
}

.gallery-caption h4 {
  margin: 0;
  max-width: 600px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.4;
  font-weight: 500;
  color: #ffffff;
}

/* ── Bottom progress + dots ─────────────────────── */
.gallery-bottom {
  width: 100%;
  max-width: 920px;
  margin: 22px auto 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.gallery-progress {
  flex: 1;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.gallery-progress-bar {
  display: block;
  width: 20%;
  height: 100%;
  background: var(--gallery-primary);
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.gallery-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition:
    width 0.35s ease,
    background 0.35s ease,
    transform 0.35s ease;
}

.gallery-dot.active {
  width: 18px;
  border-radius: 10px;
  background: var(--gallery-primary);
}

/* =========================================================
   JCA GALLERY — RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  #jca-gallery-section {
    padding: 85px 25px;
  }

  .gallery-wrapper {
    gap: 10px;
  }

  .gallery-viewport {
    border-radius: 15px;
  }

  .gallery-card img {
    aspect-ratio: 16 / 10;
    max-height: 430px;
  }

  .gallery-arrow {
    width: 38px;
    height: 38px;
  }

  .gallery-arrow span {
    font-size: 1.3rem;
  }

  .gallery-caption {
    left: 26px;
    right: 26px;
    bottom: 24px;
  }
}

@media (max-width: 650px) {
  #jca-gallery-section {
    padding: 70px 16px;
  }

  .gallery-heading {
    margin-bottom: 35px;
  }

  .gallery-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 2.2px;
  }

  .gallery-h2 {
    font-size: 2.05rem;
    letter-spacing: -0.8px;
  }

  .gallery-intro {
    margin-top: 14px;
    font-size: 0.87rem;
    line-height: 1.7;
  }

  .gallery-wrapper {
    gap: 2px;
  }

  .gallery-viewport {
    border-radius: 13px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  }

  .gallery-card img {
    aspect-ratio: 4 / 3;
    max-height: 330px;
  }

  .gallery-caption {
    left: 20px;
    right: 20px;
    bottom: 19px;
  }

  .gallery-caption span {
    margin-bottom: 5px;
    font-size: 0.58rem;
  }

  .gallery-caption h4 {
    font-size: 0.94rem;
  }

  .gallery-arrow {
    width: 30px;
    height: 30px;
  }

  .gallery-arrow span {
    font-size: 1.15rem;
  }

  .gallery-bottom {
    margin-top: 17px;
    gap: 14px;
  }
}

@media (max-width: 400px) {
  #jca-gallery-section {
    padding: 60px 12px;
  }

  .gallery-h2 {
    font-size: 1.8rem;
  }

  .gallery-card img {
    aspect-ratio: 4 / 3;
    max-height: 270px;
  }

  .gallery-caption {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .gallery-caption h4 {
    font-size: 0.86rem;
  }

  .gallery-arrow {
    width: 26px;
    height: 26px;
  }

  .gallery-arrow span {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .images-cards,
  .gallery-progress-bar {
    transition: none !important;
  }
}

/* ==========================================================================
   24. GLOBAL RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* ---- Medium tablets: ≤ 992px ---- */
@media (max-width: 992px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

/* ---- Tablets & phones: ≤ 768px ---- */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--space-5) var(--container-pad);
    background: var(--clr-bg);
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li a {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-8);
    border-radius: var(--radius-md);
  }

  .hero {
    padding: var(--space-15) 0 50px;
  }

  .hero-stats {
    gap: var(--space-5);
    margin-top: var(--space-10);
    padding-top: var(--space-8);
  }

  .hero-stats .stat-item h3 {
    font-size: 24px;
  }

  .admin-form {
    padding: var(--space-6);
  }

  .admin-form .form-row {
    grid-template-columns: 1fr;
  }

  .result-tabs button {
    width: 100%;
    padding: 10px 20px;
    font-size: 13px;
  }

  .search-box input,
  .search-box select {
    min-width: 100%;
  }

  .contact-form-wrapper {
    padding: var(--space-6);
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .toast {
    right: var(--space-4);
    bottom: var(--space-4);
    left: var(--space-4);
    justify-content: center;
  }
}

/* ---- Small phones: ≤ 480px ---- */
@media (max-width: 480px) {
  :root {
    --container-pad: 18px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .admin-form .form-actions {
    flex-direction: column;
  }

  .admin-form .form-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .subscribe-form .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 530px) {
  .footer-quick-links {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Logo text fallback visibility
   -------------------------------------------------------------------------- */
.logo-text[hidden] {
  display: none;
}