/* ============================================================
   KERALA SHAREEATH ACADEMY — DESIGN TOKENS
   ============================================================ */
:root {
  /* Color */
  --forest-deep:   #0a2e1f;   /* darkest ink-green, footer / dark bands */
  --brand-green:   #0b8b4b;   /* mandated brand green */
  --brand-green-d: #076b3a;   /* hover / pressed state */
  --gold:          #c9a227;   /* Islamic ornament / accent */
  --sand:          #f5f4ef;   /* cool off-white section background */
  --ink:           #17211c;   /* primary body text */
  --ink-soft:      #4d5951;   /* secondary body text */
  --white:         #ffffff;

  /* Type */
  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;

  /* Layout */
  --max-width: 1200px;
  --radius: 10px;
  --transition-fast: 0.25s ease;
  --transition-slow: 1.4s ease;
  --nav-height: 72px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* Page transition wrapper */
.page-enter { opacity: 0; transform: translateY(8px); }
.page-enter-active { opacity: 1; transform: translateY(0); transition: opacity 420ms ease, transform 420ms ease; }
.page-exit { opacity: 1; }
.page-exit-active { opacity: 0; transition: opacity 300ms ease; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--forest-deep);
}
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

/* Slideshow layers - desktop/tablet */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity var(--transition-slow);
  will-change: opacity;
}
.hero-slide.is-active { opacity: 1; }

/* Static image - mobile only (hidden by default) */
.hero-static {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  background-image: url('IMAGES/KSA1.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.45),
    rgba(0,0,0,0.65)
  );
}

/* Signature geometric motif, faint, top-right of hero */
.hero-lattice {
  position: absolute;
  top: 6%;
  right: 4%;
  width: 140px;
  height: 140px;
  color: rgba(255,255,255,0.35);
  z-index: 1;
  pointer-events: none;
}
.hero-lattice rect,
.hero-lattice pattern { fill: none; }

/* Content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 900px;
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 18px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--white);
  text-shadow: 0 3px 20px rgba(0,0,0,0.45);
}
.hero-subtitle {
  margin-top: 22px;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* Bottom CTA buttons */
.hero-actions {
  position: absolute;
  z-index: 2;
  bottom: 8%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 26px rgba(0,0,0,0.3);
}

.btn-primary {
  background: var(--brand-green);
  color: var(--white);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-green-d);
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255,255,255,0.2);
  border-color: var(--white);
}

/* Scroll cue */
.hero-scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 2.4%;
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 12px;
}
.hero-scroll-cue span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollcue 1.8s ease infinite;
}
@keyframes scrollcue {
  0%   { opacity: 1; top: 6px; }
  70%  { opacity: 0.2; top: 18px; }
  100% { opacity: 0; top: 18px; }
}

/* ============================================================
   SHARED SECTION HELPERS
   ============================================================ */
main { overflow: visible; }

html { scroll-padding-top: var(--nav-height); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.page-gallery main,
.page-about main,
.page-contact main {
  padding-top: calc(var(--nav-height) + 40px);
}

.page-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(10,46,31,0.08);
  padding: 40px 32px;
  margin-bottom: 40px;
}

.feature-grid,
.gallery-grid,
.contact-grid {
  display: grid;
  gap: 24px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.gallery-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 18px;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}
.gallery-grid img:hover {
  transform: translateY(-6px);
  filter: saturate(1.12) brightness(1.02);
}

.contact-grid {
  grid-template-columns: 1fr 1fr;
}

.card {
  background: var(--sand);
  padding: 28px 24px;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(10,46,31,0.08);
}

.card h3 {
  margin-bottom: 14px;
}

.card p,
.card li {
  color: var(--ink-soft);
  line-height: 1.8;
}
.eyebrow--dark { color: var(--brand-green-d); }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

/* ============================================================
   WELCOME / ABOUT
   ============================================================ */
.welcome {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}
.welcome-copy h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 22px;
}
.welcome-copy p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 54ch;
}
.link-arrow {
  display: inline-block;
  margin-top: 24px;
  font-weight: 600;
  color: var(--brand-green-d);
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition-fast);
}
.link-arrow:hover { border-color: var(--brand-green-d); }

.welcome-motif {
  display: flex;
  align-items: center;
  justify-content: center;
}
.motif-svg {
  width: 100%;
  max-width: 280px;
  color: var(--gold);
  opacity: 0.85;
}

/* ============================================================
   INSTITUTIONS
   ============================================================ */
.institutions {
  background: var(--white);
  padding: 96px 24px;
}
.institutions-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.inst-card {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: left;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: 1px solid rgba(10,46,31,0.06);
}
.inst-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(10,46,31,0.1);
}
.inst-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.inst-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.inst-card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* ============================================================
   STATS BAND
   ============================================================ */
.stats {
  background: var(--forest-deep);
  padding: 64px 24px;
}
.stats-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--gold);
}
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
}

/* ============================================================
   ADMISSIONS CALLOUT
   ============================================================ */
.admissions {
  background: var(--sand);
  padding: 96px 24px;
  text-align: center;
}
.admissions-inner {
  max-width: 560px;
  margin: 0 auto;
}
.admissions-inner h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 16px;
}
.admissions-inner p {
  color: var(--ink-soft);
  margin-bottom: 30px;
}
.admissions .btn-primary {
  box-shadow: 0 8px 22px rgba(11,139,75,0.25);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .institutions-grid { grid-template-columns: repeat(2, 1fr); }
  .welcome { grid-template-columns: 1fr; }
  .welcome-motif { order: -1; max-width: 220px; margin: 0 auto; }
}

/* ============================================================
   RESPONSIVE — MOBILE (< 768px)
   ============================================================ */
/* ============================================================
   MOBILE — COMPLETE HERO REDESIGN
   ============================================================ */

@media (max-width: 768px) {

  /* --------------------------------
     HERO
     -------------------------------- */

  .hero {
    width: 100%;
    height: 100svh;
    min-height: 680px;

    display: flex;
    flex-direction: column;

    justify-content: flex-end;

    padding: 0;

    overflow: hidden;
  }


  /* --------------------------------
     Mobile background
     -------------------------------- */

  .hero-slides {
    display: block;
  }

  .hero-slide {
    background-position: center center;
    background-size: cover;
  }

  .hero-static {
    display: none;
  }


  /* --------------------------------
     Darker mobile overlay
     -------------------------------- */

  .hero-overlay {
    background:
      linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.20) 30%,
        rgba(0,0,0,0.70) 72%,
        rgba(0,0,0,0.92) 100%
      );
  }


  /* --------------------------------
     Hide decorative lattice
     -------------------------------- */

  .hero-lattice {
    display: none;
  }


  /* --------------------------------
     Hero content
     -------------------------------- */

  .hero-content {
    position: relative;

    width: 100%;

    padding: 0 24px;

    margin-bottom: 25px;

    text-align: center;

    z-index: 2;
  }


  .hero-eyebrow {
    font-size: 0.68rem;

    line-height: 1.5;

    letter-spacing: 0.14em;

    margin-bottom: 12px;

    color: var(--gold);
  }


  .hero-title {
    font-size: clamp(2.25rem, 11vw, 3.2rem);

    line-height: 1.08;

    letter-spacing: -0.02em;

    text-shadow:
      0 3px 18px rgba(0,0,0,0.55);
  }


  .hero-subtitle {
    margin-top: 16px;

    max-width: 340px;

    margin-left: auto;
    margin-right: auto;

    font-size: 0.98rem;

    line-height: 1.6;

    color: rgba(255,255,255,0.92);
  }


  /* --------------------------------
     MOBILE BUTTONS
     -------------------------------- */

  .hero-actions {

    position: relative;

    width: 100%;

    left: auto;
    right: auto;
    bottom: auto;

    z-index: 3;

    display: flex;

    flex-direction: column;

    gap: 11px;

    padding: 0 24px 34px;
  }


  .btn {

    width: 100%;

    min-height: 52px;

    padding: 14px 20px;

    border-radius: 14px;

    font-size: 0.92rem;

    white-space: normal;

    text-align: center;
  }


  .btn-primary {
    box-shadow:
      0 8px 24px rgba(0,0,0,0.25);
  }


  .btn-secondary {
    background: rgba(255,255,255,0.12);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }


  /* --------------------------------
     Hide scroll indicator
     -------------------------------- */

  .hero-scroll-cue {
    display: none;
  }
}


@media (max-width: 400px) {
  .hero-title { font-size: 1.9rem; }
}
@media (max-width: 400px) {

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding: 0 20px;
    margin-bottom: 20px;
  }

  .hero-eyebrow {
    font-size: 0.62rem;
  }

  .hero-title {
    font-size: 2.05rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .hero-actions {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 24px;
  }

  .btn {
    min-height: 50px;
  }
}
/* ============ NAVBAR ============ */
/* ============================================================
   RESPONSIVE NAVBAR
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 1000;

  background: rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  color: var(--white);
}

.site-header .nav-inner {
  position: relative;

  max-width: var(--max-width);
  width: 100%;
  height: 100%;

  margin: 0 auto;
  padding: 0 24px;

  display: flex;
  align-items: center;
  justify-content: center;
}


/* =========================
   LOGO
   ========================= */

.nav-logo-link {
  position: absolute;
  left: 24px;
  top: 50%;

  transform: translateY(-50%);

  display: flex;
  align-items: center;

  z-index: 1002;
}

.nav-logo {
  width: 58px;
  height: 58px;

  object-fit: contain;

  display: block;
}


/* =========================
   DESKTOP NAVIGATION
   ========================= */

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;
}

.site-nav a {
  display: block;

  color: rgba(255,255,255,0.95);

  padding: 10px 16px;

  border-radius: 12px;

  font-weight: 600;
  font-size: 0.95rem;

  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255,255,255,0.15);
  color: var(--white);

  transform: translateY(-1px);
}


/* =========================
   HAMBURGER
   ========================= */

.nav-toggle {
  display: none;

  position: absolute;
  right: 20px;
  top: 50%;

  transform: translateY(-50%);

  width: 44px;
  height: 44px;

  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.10);

  color: var(--white);

  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 10px;

  font-size: 1.5rem;
  line-height: 1;

  cursor: pointer;

  z-index: 1002;
}


/* =========================
   INNER PAGE HEADER
   ========================= */

.site-header--sub {
  background: rgba(255,255,255,0.96);

  color: var(--ink);

  box-shadow: 0 12px 30px rgba(10,46,31,0.10);
}

.site-header--sub .site-nav a {
  color: var(--ink);
}

.site-header--sub .nav-toggle {
  color: var(--ink);

  background: rgba(10,46,31,0.06);
  border-color: rgba(10,46,31,0.15);
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1024px) {

  .site-header .nav-inner {
    padding: 0 20px;
  }

  .nav-logo-link {
    left: 20px;
  }

  .nav-logo {
    width: 54px;
    height: 54px;
  }

  .site-nav ul {
    gap: 4px;
  }

  .site-nav a {
    padding: 9px 12px;
    font-size: 0.9rem;
  }
}


/* ============================================================
   MOBILE NAVBAR
   ============================================================ */

@media (max-width: 768px) {

  .site-header {
    height: 64px;
  }

  .site-header .nav-inner {
    padding: 0 16px;
    justify-content: center;
  }

  .nav-logo-link {
    left: 16px;
  }

  .nav-logo {
    width: 48px;
    height: 48px;
  }

  /* Hamburger visible */
  .nav-toggle {
    display: inline-flex;
  }

  /* Closed menu */
  .site-nav {
    display: none;

    position: fixed;

    top: 74px;
    left: 16px;
    right: 16px;

    width: auto;

    padding: 12px;

    background: rgba(255,255,255,0.98);

    border: 1px solid rgba(10,46,31,0.08);

    border-radius: 18px;

    box-shadow:
      0 20px 50px rgba(0,0,0,0.20);

    z-index: 1001;
  }

  /* OPEN menu */
  .site-nav.show {
    display: block;
  }

  .site-nav ul {
    display: flex;
    flex-direction: column;

    width: 100%;

    gap: 4px;
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav a {
    width: 100%;

    padding: 14px 16px;

    color: var(--forest-deep);

    border-radius: 12px;

    font-size: 1rem;
    font-weight: 600;

    text-align: center;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(11,139,75,0.10);

    color: var(--brand-green-d);

    transform: none;
  }

  .site-header--sub .site-nav a {
    color: var(--forest-deep);
  }
}


/* ============================================================
   SMALL PHONES
   ============================================================ */

@media (max-width: 400px) {

  .site-header {
    height: 60px;
  }

  .nav-logo {
    width: 44px;
    height: 44px;
  }

  .nav-toggle {
    right: 14px;

    width: 42px;
    height: 42px;
  }

  .site-nav {
    top: 70px;
    left: 12px;
    right: 12px;
  }
}
/* ============================================================
   KSA INSTITUTIONS PAGE
   ============================================================ */

.page-gallery {
  background: var(--sand);
}


/* ============================================================
   PAGE INTRO
   ============================================================ */

.institutions-page {
  width: 100%;
  overflow: hidden;
}

.institutions-intro {
  min-height: 38vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding:
    calc(var(--nav-height) + 45px)
    24px
    55px;

  background:
    linear-gradient(
      135deg,
      var(--forest-deep),
      #0b5032
    );

  color: var(--white);

  text-align: center;

  position: relative;
  isolation: isolate;
}


/* subtle gold decorative circle */

.institutions-intro::before {
  content: "";

  position: absolute;

  width: 320px;
  height: 320px;

  border: 1px solid rgba(201,162,39,0.22);
  border-radius: 50%;

  top: -170px;
  right: -100px;

  z-index: -1;
}


.institutions-intro::after {
  content: "";

  position: absolute;

  width: 220px;
  height: 220px;

  border: 1px solid rgba(201,162,39,0.15);
  border-radius: 50%;

  bottom: -130px;
  left: -80px;

  z-index: -1;
}


.institutions-intro-inner {
  max-width: 760px;
  margin: 0 auto;
}


.institution-eyebrow {
  display: inline-block;

  margin-bottom: 14px;

  font-family: var(--font-body);

  font-size: 0.75rem;

  font-weight: 700;

  letter-spacing: 0.20em;

  color: var(--gold);
}


.institutions-intro h1 {
  color: var(--white);

  font-size: clamp(
    2rem,
    5vw,
    3.5rem
  );

  line-height: 1.15;

  margin-bottom: 18px;
}


.institutions-intro p {
  max-width: 650px;

  margin: 0 auto;

  color: rgba(255,255,255,0.82);

  font-size: 1rem;

  line-height: 1.8;
}


/* ============================================================
   INSTITUTION SHOWCASE
   ============================================================ */

.institution-showcase {
  padding: 0px 24px 50px;

  background:
    linear-gradient(
      to bottom,
      var(--sand),
      #ffffff
    );
}


.institution-cards {
  max-width: 1200px;

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 28px;

  align-items: stretch;
}


/* ============================================================
   INSTITUTION CARD
   ============================================================ */

.institution-card {

  background: var(--white);

  border-radius: 22px;

  overflow: hidden;

  border: 1px solid rgba(10,46,31,0.07);

  box-shadow:
    0 18px 45px rgba(10,46,31,0.09);

  display: flex;

  flex-direction: column;

  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}


@media (min-width: 1025px) {

  .institution-card:not(.is-expanded):hover {

    transform: translateY(-8px);

    box-shadow:
      0 25px 55px rgba(10,46,31,0.13);
  }

}



/* ============================================================
   INSTITUTION IMAGE
   ============================================================ */

.institution-image {

  position: relative;

  width: 100%;

  height: 250px;

  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      #0a2e1f,
      #0b8b4b
    );
}


.institution-image::after {

  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      to bottom,
      transparent 45%,
      rgba(0,0,0,0.45)
    );

  pointer-events: none;
}


.institution-image img {

  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;

  transition:
    transform 0.6s ease;
}


@media (min-width: 1025px) {

  .institution-card:not(.is-expanded):hover {
    transform: translateY(-8px);

    box-shadow:
      0 25px 55px rgba(10,46,31,0.13);
  }

}

.institution-image img {

  transform: scale(1.06);
}


/* Image number */

.institution-number {

  position: absolute;

  left: 18px;
  bottom: 16px;

  z-index: 2;

  width: 42px;
  height: 42px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--gold);

  color: var(--forest-deep);

  font-family: var(--font-display);

  font-weight: 800;

  font-size: 0.9rem;
}


/* ============================================================
   CARD CONTENT
   ============================================================ */

.institution-content {

  padding: 30px 26px 28px;

  display: flex;

  flex-direction: column;

  flex: 1;
}


.institution-label {

  display: block;

  margin-bottom: 10px;

  color: var(--brand-green-d);

  font-size: 0.68rem;

  font-weight: 700;

  letter-spacing: 0.14em;
}


.institution-content h2 {

  font-size: 1.35rem;

  line-height: 1.3;

  margin-bottom: 14px;

  color: var(--forest-deep);
}


.institution-content p {

  color: var(--ink-soft);

  font-size: 0.93rem;

  line-height: 1.75;

  margin-bottom: 24px;

  flex: 1;
}


/* ============================================================
   KNOW MORE BUTTON
   ============================================================ */

.institution-btn {

  align-self: flex-start;

  display: inline-flex;

  align-items: center;

  gap: 10px;

  padding: 11px 18px;

  border-radius: 999px;

  background: var(--brand-green);

  color: var(--white);

  font-size: 0.88rem;

  font-weight: 600;

  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}


.institution-btn span {

  font-size: 1.1rem;

  line-height: 1;

  transition:
    transform var(--transition-fast);
}


.institution-btn:hover {

  background: var(--brand-green-d);

  transform: translateY(-2px);

  box-shadow:
    0 8px 20px rgba(11,139,75,0.25);
}


.institution-btn:hover span {

  transform: translateX(4px);
}


/* ============================================================
   BOTTOM MESSAGE
   ============================================================ */

.institution-footer {

  background: var(--forest-deep);

  color: var(--white);

  text-align: center;

  padding: 70px 24px;
}


.institution-footer > div {

  max-width: 700px;

  margin: 0 auto;
}


.institution-footer h2 {

  color: var(--white);

  font-size: clamp(
    1.7rem,
    4vw,
    2.5rem
  );

  line-height: 1.2;

  margin-bottom: 16px;
}


.institution-footer p {

  color: rgba(255,255,255,0.75);

  max-width: 620px;

  margin: 0 auto;

  line-height: 1.8;
}

/* ============================================================
   MORPH-STYLE INSTITUTION EXPANSION
   ============================================================ */

.institution-cards {
  position: relative;
}




/* ------------------------------------------------------------
   DESKTOP MORPH EFFECT
   ------------------------------------------------------------ */





/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1024px) {

  .institutions-intro {

    min-height: 35vh;

    padding:
      calc(var(--nav-height) + 40px)
      24px
      50px;
  }


  .institution-showcase {

    padding:
      55px 22px
      70px;
  }


  .institution-cards {

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 22px;
  }


  .institution-card:last-child {

    grid-column:
      1 / -1;

    max-width: 500px;

    width: 100%;

    margin: 0 auto;
  }


  .institution-image {

    height: 230px;
  }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 768px) {

  .institutions-intro {

    min-height: auto;

    padding:
      105px 22px
      55px;
  }


  .institutions-intro h1 {

    font-size: 2rem;

    line-height: 1.15;
  }


  .institutions-intro p {

    font-size: 0.9rem;

    line-height: 1.7;
  }


  .institution-showcase {

    padding:
      40px 18px
      55px;
  }


  .institution-cards {

    display: flex;

    flex-direction: column;

    gap: 22px;
  }


  .institution-card {

    width: 100%;

    border-radius: 18px;
  }


  .institution-card:last-child {

    max-width: none;

    margin: 0;
  }


  .institution-image {

    height: 220px;
  }


  .institution-content {

    padding: 25px 22px 24px;
  }


  .institution-content h2 {

    font-size: 1.25rem;
  }


  .institution-content p {

    font-size: 0.9rem;

    line-height: 1.7;
  }


  .institution-btn {

    width: 100%;

    justify-content: center;

    padding: 12px 18px;
  }


  .institution-footer {

    padding:
      55px 22px;
  }
}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 400px) {

  .institutions-intro {

    padding:
      95px 18px
      45px;
  }


  .institutions-intro h1 {

    font-size: 1.8rem;
  }


  .institution-showcase {

    padding:
      30px 14px
      45px;
  }


  .institution-image {

    height: 200px;
  }


  .institution-content {

    padding:
      22px 19px;
  }


  .institution-content h2 {

    font-size: 1.15rem;
  }
}



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

.page-about {
  background: var(--sand);
}

.about-page {
  width: 100%;
  overflow: hidden;
}

/* ============================================================
   ABOUT INTRO — COMPACT HERO
   ============================================================ */

.about-intro {
  min-height: 30vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding:
    calc(var(--nav-height) + 30px)
    24px
    35px;

  text-align: center;

  color: var(--white);

  background:
    linear-gradient(
      135deg,
      var(--forest-deep),
      #0b5032
    );

  position: relative;
  isolation: isolate;
}

.about-intro-inner {
  max-width: 800px;
  margin: 0 auto;
}

.about-intro h1 {
  color: var(--white);

  font-size:
    clamp(2rem, 4vw, 3.2rem);

  line-height: 1.08;
  margin-bottom: 14px;
}

.about-intro p {
  max-width: 680px;
  margin: 0 auto;

  color: rgba(255,255,255,0.82);

  font-size: 0.9rem;
  line-height: 1.65;
}

/* ============================================================
   VISION — COMPACT DESKTOP
   ============================================================ */

.about-vision {
  padding: 55px 24px;
  background: var(--white);
}

.about-vision-inner {
  max-width: 1100px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 0.28fr 1fr;
  gap: 55px;
  align-items: center;
}

.about-section-label {
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-section-label span {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--gold);
  color: var(--forest-deep);

  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
}

.about-section-label p {
  color: var(--brand-green-d);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.about-vision-content {
  max-width: 780px;
}

.about-vision-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 17px;
  color: var(--forest-deep);
}

.about-vision-content p {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 12px;
}

.about-vision-content .vision-main {
  font-size: 0.98rem;
  color: var(--ink);
  font-weight: 500;
}

/* ============================================================
   MISSION — DARK ACADEMY THEME
   ============================================================ */

.about-mission {
  padding: 70px 24px 75px;
  background: var(--forest-deep);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative circles */

.about-mission::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(201,162,39,0.15);
  border-radius: 50%;
  right: -180px;
  top: -220px;
}

.about-mission::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(201,162,39,0.10);
  border-radius: 50%;
  left: -160px;
  bottom: -190px;
}

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


/* ============================================================
   MISSION HEADING
   ============================================================ */

.mission-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.mission-heading .about-eyebrow.dark {
  color: var(--gold);
}

.mission-heading h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  line-height: 1.15;
  margin-bottom: 14px;
}

.mission-heading p {
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  font-size: 0.92rem;
}


/* ============================================================
   MISSION CARDS
   ============================================================ */

.mission-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.mission-card {
  position: relative;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 15px;
  padding: 22px 20px;

  transition:
    transform var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast);
}

.mission-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.09);
  border-color: rgba(201,162,39,0.40);
}

.mission-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;

  margin-bottom: 13px;

  border-radius: 50%;

  background: var(--gold);
  color: var(--forest-deep);

  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
}

.mission-card h3 {
  color: var(--white);
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 9px;
}

.mission-card p {
  color: rgba(255,255,255,0.68);
  font-size: 0.82rem;
  line-height: 1.6;
}


/* Mission 7 */

.mission-card-wide {
  grid-column: span 2;
}


/* ============================================================
   ABOUT FOOTER
   ============================================================ */

.about-footer {

  padding: 75px 24px;

  background:
    linear-gradient(
      135deg,
      #f5f4ef,
      #ffffff
    );

  text-align: center;
}


.about-footer > div {

  max-width: 720px;

  margin: 0 auto;
}


.about-footer h2 {

  font-size:
    clamp(1.8rem, 4vw, 2.5rem);

  line-height: 1.2;

  margin-bottom: 17px;
}


.about-footer p {

  color: var(--ink-soft);

  line-height: 1.8;

  max-width: 650px;

  margin: 0 auto;
}

/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1024px) {

  .about-vision {
    padding: 60px 24px;
  }

  .about-vision-inner {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .about-section-label {
    justify-content: center;
  }

  .about-vision-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
  }

  .mission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mission-card-wide {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 768px) {

  .about-intro {
    min-height: auto;

    padding:
      105px 22px
      50px;
  }

  .about-intro h1 {
    font-size: 2rem;
  }

  .about-intro p {
    font-size: 0.88rem;
    line-height: 1.7;
  }


  /* =========================
     VISION
     ========================= */

  .about-vision {
    padding: 50px 20px;
  }

  .about-section-label {
    justify-content: flex-start;
    margin-bottom: 22px;
  }

  .about-vision-content {
    text-align: left;
  }

  .about-vision-content h2 {
    font-size: 1.75rem;
  }

  .about-vision-content p {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .about-vision-content .vision-main {
    font-size: 0.98rem;
  }


  /* =========================
     MISSION
     ========================= */

  .about-mission {
    padding: 55px 18px 60px;
  }

  .mission-heading {
    margin-bottom: 32px;
    text-align: left;
  }

  .mission-heading h2 {
    font-size: 1.8rem;
  }

  .mission-heading p {
    font-size: 0.88rem;
  }

  .mission-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .mission-card {
    padding: 22px 20px;
  }

  .mission-card-wide {
    max-width: none;
  }

  .mission-card h3 {
    font-size: 1rem;
  }

  .mission-card p {
    font-size: 0.84rem;
  }
}

/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 400px) {

  .about-intro {

    padding:
      95px 18px
      45px;
  }


  .about-intro h1 {

    font-size: 1.8rem;
  }


  .about-vision {

    padding:
      45px 18px;
  }


  .about-vision-content h2 {

    font-size: 1.6rem;
  }


  .mission-card {

    padding:
      21px 18px;
  }


  .mission-card h3 {

    font-size: 1.05rem;
  }


  .philosophy-item {

    gap: 12px;

    padding: 17px;
  }

}


/* ============================================================
   CONTACT PAGE
   ============================================================ */

.page-contact {
  background: var(--sand);
}

.contact-page {
  width: 100%;
  overflow: hidden;
}


/* ============================================================
   CONTACT INTRO
   ============================================================ */

.contact-intro {

  min-height: 38vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding:
    calc(var(--nav-height) + 50px)
    24px
    55px;

  text-align: center;

  color: var(--white);

  background:
    linear-gradient(
      135deg,
      var(--forest-deep),
      #0b5032
    );

  position: relative;

  isolation: isolate;
}


.contact-intro::before {

  content: "";

  position: absolute;

  width: 350px;
  height: 350px;

  border:
    1px solid
    rgba(201,162,39,0.20);

  border-radius: 50%;

  right: -130px;
  top: -190px;

  z-index: -1;
}


.contact-intro::after {

  content: "";

  position: absolute;

  width: 240px;
  height: 240px;

  border:
    1px solid
    rgba(201,162,39,0.14);

  border-radius: 50%;

  left: -100px;
  bottom: -140px;

  z-index: -1;
}


.contact-intro-inner {

  max-width: 760px;

  margin: 0 auto;
}


.contact-eyebrow {

  display: inline-block;

  margin-bottom: 14px;

  color: var(--gold);

  font-size: 0.72rem;

  font-weight: 700;

  letter-spacing: 0.20em;
}


.contact-eyebrow.dark {

  color: var(--brand-green-d);
}


.contact-intro h1 {

  color: var(--white);

  font-size:
    clamp(2.1rem, 5vw, 3.5rem);

  line-height: 1.12;

  margin-bottom: 18px;
}


.contact-intro p {

  max-width: 650px;

  margin: 0 auto;

  color:
    rgba(255,255,255,0.82);

  font-size: 1rem;

  line-height: 1.8;
}


/* ============================================================
   CONTACT INFORMATION CARDS
   ============================================================ */

.contact-information {

  padding: 70px 24px;

  background: var(--white);
}


.contact-information-inner {

  max-width: 1100px;

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 22px;
}


.contact-card {

  display: flex;

  align-items: flex-start;

  gap: 17px;

  padding: 28px 24px;

  background: var(--sand);

  border:
    1px solid
    rgba(10,46,31,0.07);

  border-radius: 18px;

  color: inherit;

  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}


.contact-card:hover {

  transform: translateY(-6px);

  box-shadow:
    0 18px 40px
    rgba(10,46,31,0.10);

  border-color:
    rgba(11,139,75,0.22);
}


.contact-card-whatsapp {

  background:
    linear-gradient(
      135deg,
      #f5f4ef,
      #eef8f2
    );
}


.contact-icon {

  flex-shrink: 0;

  width: 46px;
  height: 46px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--brand-green);

  color: var(--white);

  font-family: var(--font-display);

  font-weight: 700;

  font-size: 1rem;
}


.contact-card-label {

  display: block;

  margin-bottom: 5px;

  color: var(--brand-green-d);

  font-size: 0.65rem;

  font-weight: 700;

  letter-spacing: 0.14em;
}


.contact-card h2 {

  color: var(--forest-deep);

  font-size: 1.05rem;

  line-height: 1.4;

  overflow-wrap: anywhere;

  margin-bottom: 6px;
}


.contact-card p {

  color: var(--ink-soft);

  font-size: 0.82rem;

  line-height: 1.55;
}


/* ============================================================
   LOCATION / MAP
   ============================================================ */

.contact-location {

  padding: 80px 24px 90px;

  background:
    linear-gradient(
      to bottom,
      var(--sand),
      #ffffff
    );
}


.contact-location-inner {

  max-width: 1200px;

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    1.2fr 0.8fr;

  gap: 45px;

  align-items: stretch;
}


/* Google map */

.map-container {

  min-height: 480px;

  overflow: hidden;

  border-radius: 22px;

  box-shadow:
    0 18px 45px
    rgba(10,46,31,0.12);

  background: #ddd;
}


.map-container iframe {

  width: 100%;

  height: 100%;

  min-height: 480px;

  display: block;

  border: 0;
}


/* Location content */

.location-content {

  padding: 35px 10px;

  display: flex;

  flex-direction: column;

  justify-content: center;
}


.location-content h2 {

  font-size:
    clamp(1.8rem, 3vw, 2.5rem);

  line-height: 1.2;

  margin-bottom: 17px;
}


.location-content > p {

  color: var(--ink-soft);

  line-height: 1.8;

  margin-bottom: 28px;
}


.location-detail {

  display: flex;

  align-items: flex-start;

  gap: 14px;

  margin-bottom: 20px;
}


.location-detail-icon {

  width: 40px;
  height: 40px;

  flex-shrink: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background:
    rgba(201,162,39,0.18);

  font-size: 0.95rem;
}


.location-detail strong {

  display: block;

  color: var(--forest-deep);

  font-size: 0.9rem;

  margin-bottom: 2px;
}


.location-detail p {

  color: var(--ink-soft);

  font-size: 0.88rem;

  line-height: 1.5;
}


/* Google Maps button */

.map-button {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  align-self: flex-start;

  margin-top: 8px;

  padding: 12px 20px;

  border-radius: 999px;

  background: var(--brand-green);

  color: var(--white);

  font-size: 0.88rem;

  font-weight: 600;

  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}


.map-button span {

  transition:
    transform var(--transition-fast);
}


.map-button:hover {

  background: var(--brand-green-d);

  transform: translateY(-2px);

  box-shadow:
    0 8px 20px
    rgba(11,139,75,0.25);
}


.map-button:hover span {

  transform: translateX(4px);
}


/* ============================================================
   HELP SECTION
   ============================================================ */

.contact-help {

  padding: 85px 24px;

  background: var(--white);

  text-align: center;
}


.contact-help-inner {

  max-width: 720px;

  margin: 0 auto;
}


.contact-help h2 {

  font-size:
    clamp(1.9rem, 4vw, 2.7rem);

  line-height: 1.2;

  margin-bottom: 15px;
}


.contact-help p {

  color: var(--ink-soft);

  line-height: 1.8;

  max-width: 650px;

  margin: 0 auto;
}


.contact-help-actions {

  display: flex;

  justify-content: center;

  align-items: center;

  gap: 13px;

  margin-top: 30px;
}


.contact-primary-button,
.contact-secondary-button {

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 10px;

  min-height: 48px;

  padding: 12px 22px;

  border-radius: 999px;

  font-size: 0.88rem;

  font-weight: 600;

  transition:
    transform var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast);
}


.contact-primary-button {

  background: var(--brand-green);

  color: var(--white);
}


.contact-secondary-button {

  border:
    2px solid
    var(--brand-green);

  color: var(--brand-green-d);

  background: transparent;
}


.contact-primary-button:hover,
.contact-secondary-button:hover {

  transform: translateY(-3px);
}


.contact-primary-button:hover {

  background: var(--brand-green-d);

  box-shadow:
    0 9px 22px
    rgba(11,139,75,0.22);
}


.contact-secondary-button:hover {

  background: rgba(11,139,75,0.07);
}


/* ============================================================
   CONTACT FOOTER
   ============================================================ */

.contact-footer {

  padding: 70px 24px;

  background: var(--forest-deep);

  text-align: center;

  color: var(--white);
}


.contact-footer > div {

  max-width: 700px;

  margin: 0 auto;
}


.contact-footer h2 {

  color: var(--white);

  font-size:
    clamp(1.8rem, 4vw, 2.5rem);

  line-height: 1.2;

  margin-bottom: 15px;
}


.contact-footer p {

  color:
    rgba(255,255,255,0.72);

  line-height: 1.8;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1024px) {

  .contact-information {

    padding:
      60px 22px;
  }


  .contact-information-inner {

    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  .contact-card:last-child {

    grid-column:
      1 / -1;

    max-width: 500px;

    width: 100%;

    margin: 0 auto;
  }


  .contact-location {

    padding:
      65px 22px
      75px;
  }


  .contact-location-inner {

    grid-template-columns:
      1fr;

    gap: 40px;
  }


  .map-container {

    min-height: 420px;
  }


  .map-container iframe {

    min-height: 420px;
  }


  .location-content {

    padding:
      10px 0;
  }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 768px) {

  .contact-intro {

    min-height: auto;

    padding:
      105px 22px
      55px;
  }


  .contact-intro h1 {

    font-size: 2rem;
  }


  .contact-intro p {

    font-size: 0.9rem;

    line-height: 1.7;
  }


  .contact-information {

    padding:
      40px 18px
      50px;
  }


  .contact-information-inner {

    display: flex;

    flex-direction: column;

    gap: 15px;
  }


  .contact-card {

    width: 100%;

    padding:
      22px 19px;

    border-radius: 16px;
  }


  .contact-card:last-child {

    max-width: none;

    margin: 0;
  }


  .contact-card h2 {

    font-size: 0.98rem;
  }


  .contact-location {

    padding:
      45px 18px
      60px;
  }


  .contact-location-inner {

    gap: 30px;
  }


  .map-container {

    min-height: 340px;

    border-radius: 18px;
  }


  .map-container iframe {

    min-height: 340px;
  }


  .location-content {

    padding: 0;
  }


  .location-content h2 {

    font-size: 1.8rem;
  }


  .location-content > p {

    font-size: 0.9rem;

    line-height: 1.7;
  }


  .map-button {

    width: 100%;
  }


  .contact-help {

    padding:
      55px 20px;
  }


  .contact-help h2 {

    font-size: 1.8rem;
  }


  .contact-help p {

    font-size: 0.9rem;
  }


  .contact-help-actions {

    flex-direction: column;

    width: 100%;
  }


  .contact-primary-button,
  .contact-secondary-button {

    width: 100%;
  }


  .contact-footer {

    padding:
      55px 20px;
  }


  .contact-footer h2 {

    font-size: 1.8rem;
  }

}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 400px) {

  .contact-intro {

    padding:
      95px 18px
      45px;
  }


  .contact-intro h1 {

    font-size: 1.8rem;
  }


  .contact-information {

    padding:
      30px 14px
      40px;
  }


  .contact-card {

    padding:
      19px 16px;
  }


  .contact-icon {

    width: 42px;
    height: 42px;
  }


  .map-container {

    min-height: 300px;
  }


  .map-container iframe {

    min-height: 300px;
  }

}

/* ============================================================
   FULLSCREEN MORPH INSTITUTION VIEW
   ============================================================ */

@media (min-width: 1025px) {

  .institution-cards {
    position: relative;
  }

  /* Normal cards */
  .institution-card {
    position: relative;
    overflow: hidden;
    transition:
      opacity 1.2s ease,
      transform 1.8s cubic-bezier(0.16, 1, 0.3, 1),
      filter 1.2s ease;
  }


  /* ----------------------------------------------------------
     SELECTED CARD
     ---------------------------------------------------------- */

  .institution-card.is-expanded {

    position: fixed;

    top: var(--nav-height);
    left: 50%;

    width: min(1180px, calc(100vw - 70px));

    height: calc(100vh - var(--nav-height) - 35px);

    transform:
      translateX(-50%)
      scale(1);

    z-index: 100;

    display: grid;

    grid-template-columns: 1fr 1fr;

    background: var(--white);

    border-radius: 24px;

    overflow: hidden;

    box-shadow:
      0 35px 100px rgba(0,0,0,0.28);

    animation:
      institutionMorph 1.8s
      cubic-bezier(0.16, 1, 0.3, 1)
      both;
  }


  /* ----------------------------------------------------------
     OTHER CARDS DISAPPEAR
     ---------------------------------------------------------- */

  .institution-cards.is-expanded
  .institution-card:not(.is-expanded) {

    opacity: 0;

    transform:
      scale(0.75)
      translateY(-20px);

    filter: blur(5px);

    pointer-events: none;

  }


  /* ----------------------------------------------------------
     IMAGE SIDE
     ---------------------------------------------------------- */

  .institution-card.is-expanded
  .institution-image {

    position: relative;

    width: 100%;
    height: 100%;

    min-height: 0;

    overflow: hidden;

    border-radius: 0;
  }


  .institution-card.is-expanded
  .institution-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
      transform 2s
      cubic-bezier(0.16, 1, 0.3, 1);

    transform: scale(1.05);
  }


  /* Beautiful image overlay */

  .institution-card.is-expanded
  .institution-image::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
      linear-gradient(
        135deg,
        rgba(10,46,31,0.10),
        rgba(10,46,31,0.45)
      );

    pointer-events: none;
  }


  /* Number becomes a floating badge */

  .institution-card.is-expanded
  .institution-number {

    position: absolute;

    left: 30px;
    bottom: 30px;

    z-index: 3;

    width: 58px;
    height: 58px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--gold);

    color: var(--forest-deep);

    font-size: 0.9rem;

    box-shadow:
      0 10px 30px rgba(0,0,0,0.25);
  }


  /* ----------------------------------------------------------
     CONTENT SIDE
     ---------------------------------------------------------- */

  .institution-card.is-expanded
  .institution-content {

    height: 100%;

    padding:
      55px 55px 35px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    background:
      linear-gradient(
        145deg,
        #ffffff,
        var(--sand)
      );
  }


  .institution-card.is-expanded
  .institution-label {

    margin-bottom: 15px;

    font-size: 0.72rem;

    letter-spacing: 0.18em;
  }


  .institution-card.is-expanded
  .institution-content h2 {

    font-size:
      clamp(2rem, 3.2vw, 3rem);

    line-height: 1.12;

    margin-bottom: 22px;

    max-width: 500px;
  }


  .institution-card.is-expanded
  .institution-content p {

    font-size: 1rem;

    line-height: 1.85;

    max-width: 500px;

    margin-bottom: 28px;
  }


  /* ----------------------------------------------------------
     DETAILS
     ---------------------------------------------------------- */

  .institution-card.is-expanded
  .institution-details {

    display: flex;

    flex-direction: column;

    gap: 25px;

    margin-top: auto;

    padding-top: 25px;

    border-top:
      1px solid rgba(10,46,31,0.10);

    animation:
      detailsReveal 1.2s
      ease 0.7s
      both;
  }


  .institution-contact {

    color: var(--ink-soft);

    font-size: 0.9rem;

    line-height: 1.7;
  }


  .institution-contact strong {

    display: block;

    color: var(--forest-deep);

    font-family: var(--font-display);

    margin-bottom: 4px;
  }


  /* Buttons */

  .institution-detail-actions {

    display: flex;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;
  }


  .prospectus-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 13px 22px;

    border-radius: 999px;

    background: var(--brand-green);

    color: var(--white);

    font-size: 0.88rem;

    font-weight: 600;

    transition:
      transform 250ms ease,
      background 250ms ease,
      box-shadow 250ms ease;
  }


  .prospectus-btn:hover {

    background: var(--brand-green-d);

    transform: translateY(-2px);

    box-shadow:
      0 10px 25px
      rgba(11,139,75,0.25);
  }


  .institution-close {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 12px 20px;

    border-radius: 999px;

    border:
      1px solid
      rgba(10,46,31,0.15);

    background: transparent;

    color: var(--forest-deep);

    font-family: var(--font-body);

    font-size: 0.88rem;

    font-weight: 600;

    cursor: pointer;

    transition:
      background 250ms ease,
      color 250ms ease,
      transform 250ms ease;
  }


  .institution-close:hover {

    background: var(--forest-deep);

    color: var(--white);

    transform: translateY(-2px);
  }

}


/* ============================================================
   MORPH ENTRANCE
   ============================================================ */

@keyframes institutionMorph {

  0% {

    opacity: 0;

    transform:
      translateX(-50%)
      scale(0.55);

    border-radius: 50px;

  }

  45% {

    opacity: 1;

    transform:
      translateX(-50%)
      scale(1.02);

    border-radius: 30px;

  }

  100% {

    opacity: 1;

    transform:
      translateX(-50%)
      scale(1);

    border-radius: 24px;

  }

}
/* ============================================================
   INSTITUTION ADVERTISING DETAILS
   ============================================================ */

.details-header {
  max-width: 650px;
  margin-bottom: 35px;
}

.details-eyebrow {
  display: inline-block;

  color: var(--gold);

  font-size: 0.68rem;
  font-weight: 700;

  letter-spacing: 0.18em;
  text-transform: uppercase;

  margin-bottom: 12px;
}


.details-header h3 {
  color: var(--white);

  font-family: var(--font-display);

  font-size: clamp(1.8rem, 3vw, 2.7rem);

  line-height: 1.15;

  margin-bottom: 15px;
}


.details-header p {
  max-width: 600px;

  color: rgba(255,255,255,0.72);

  font-size: 0.92rem;

  line-height: 1.75;

  margin: 0;
}


/* ============================================================
   STATISTICS
   ============================================================ */

.institution-stats {

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 15px;

  margin-bottom: 35px;
}


.stat-item {
  position: relative;

  padding: 24px 20px;

  border-radius: 18px;

  background:
    rgba(255,255,255,0.055);

  border:
    1px solid
    rgba(255,255,255,0.12);

  backdrop-filter: blur(8px);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06);

  transition:
    transform 300ms ease,
    background 300ms ease,
    border-color 300ms ease;
}


.stat-item:hover {
  transform: translateY(-5px);

  background:
    rgba(255,255,255,0.09);

  border-color:
    rgba(201,162,39,0.35);
}

/* ICON */

.stat-icon {
  width: 48px;
  height: 48px;

  display: flex;

  align-items: center;
  justify-content: center;

  margin-bottom: 16px;

  border-radius: 50%;

  background:
    rgba(201,162,39,0.14);

  border:
    1px solid
    rgba(201,162,39,0.25);

  color: var(--gold);

  font-size: 1.2rem;
}


.stat-icon svg {

  width: 21px;
  height: 21px;

  fill: none;

  stroke: var(--gold);

  stroke-width: 1.6;

  stroke-linecap: round;
  stroke-linejoin: round;
}


/* NUMBER */

.stat-number {

  display: inline-block;

  color: var(--white);

  font-family: var(--font-display);

  font-size: 2rem;

  font-weight: 800;

  line-height: 1;
}


.stat-suffix {

  color: var(--gold);

  font-family: var(--font-display);

  font-size: 1.4rem;

  font-weight: 800;

  margin-left: 2px;
}


.stat-item small {

  display: block;

  margin-top: 8px;

  color:
    rgba(255,255,255,0.55);

  font-size: 0.72rem;

  font-weight: 500;

  letter-spacing: 0.04em;
}


/* ============================================================
   DETAILS FOOTER
   ============================================================ */

.institution-detail-footer {

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 25px;

  padding-top: 25px;

  border-top:
    1px solid
    rgba(255,255,255,0.10);
}


.institution-contact-mini {

  display: flex;

  flex-direction: column;

  gap: 5px;
}


.institution-contact-mini span {

  color: var(--gold);

  font-size: 0.62rem;

  font-weight: 700;

  letter-spacing: 0.16em;
}


.institution-contact-mini strong {

  color:
    rgba(255,255,255,0.78);

  font-size: 0.78rem;

  font-weight: 500;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.institution-detail-footer
.institution-detail-actions {

  display: flex;

  align-items: center;

  gap: 10px;

  flex-shrink: 0;
}


.institution-detail-footer
.prospectus-btn {

  background: var(--gold);

  color: var(--forest-deep);

  border-radius: 999px;

  padding: 12px 18px;

  font-size: 0.78rem;

  transition:
    transform 250ms ease,
    box-shadow 250ms ease;
}


.institution-detail-footer
.prospectus-btn:hover {

  transform: translateY(-2px);

  box-shadow:
    0 10px 25px
    rgba(201,162,39,0.22);
}


.institution-detail-footer
.institution-close {

  border:
    1px solid
    rgba(255,255,255,0.22);

  border-radius: 999px;

  color: var(--white);

  padding: 11px 17px;

  font-size: 0.78rem;

  background: transparent;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 768px) {

  .institution-stats {

    grid-template-columns:
      1fr 1fr 1fr;

    gap: 8px;
  }


  .stat-item {

    padding: 15px 10px;

    border-radius: 13px;
  }


  .stat-icon {

    width: 35px;
    height: 35px;
  }


  .stat-icon svg {

    width: 18px;
    height: 18px;
  }


  .stat-number {

    font-size: 1.5rem;
  }


  .stat-suffix {

    font-size: 1rem;
  }


  .stat-item small {

    font-size: 0.62rem;
  }


  .institution-detail-footer {

    align-items: flex-start;

    flex-direction: column;
  }


  .institution-detail-footer
  .institution-detail-actions {

    width: 100%;
  }


  .institution-detail-footer
  .prospectus-btn,
  .institution-detail-footer
  .institution-close {

    flex: 1;
  }

}


/* ============================================================
   INSTITUTION DETAILS — ADVERTISING SECTION
   ============================================================ */

.institution-detail-header {
  max-width: 650px;
  margin-bottom: 35px;
}

.institution-detail-header h3 {
  margin: 10px 0 14px;

  color: var(--white);

  font-size: clamp(1.7rem, 3vw, 2.5rem);

  line-height: 1.2;
}

.institution-detail-header p {
  max-width: 600px;

  color: var(--ink-soft);

  font-size: 0.95rem;

  line-height: 1.8;
}


/* ============================================================
   STATISTICS
   ============================================================ */

.institution-stats {

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 18px;

  margin-bottom: 35px;
}


.stat-item {

  display: flex;

  align-items: center;

  gap: 15px;

  padding: 20px;

  background: rgba(201,162,39,0.08);

  border: 1px solid rgba(201,162,39,0.18);

  border-radius: 16px;

  transition:
    transform 0.3s ease,
    background 0.3s ease;
}


.stat-item:hover {

  transform: translateY(-4px);

  background:
    rgba(201,162,39,0.13);
}


/* ICON */

.stat-icon {

  width: 48px;
  height: 48px;

  flex-shrink: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--forest-deep);

  color: var(--gold);

  font-size: 1.2rem;
}


/* NUMBER */

.stat-content {

  display: flex;

  align-items: baseline;

  flex-wrap: wrap;

  column-gap: 3px;
}


.stat-number {
  color: var(--white);

  font-family: var(--font-display);

  font-size:
    clamp(2rem, 3.5vw, 3rem);

  font-weight: 800;

  line-height: 1;

  letter-spacing: -0.03em;

  text-shadow:
    0 4px 20px rgba(0,0,0,0.18);
}


.stat-plus {

  color: var(--gold);

  font-size: 1.2rem;

  font-weight: 800;
}


.stat-content p {

  width: 100%;

  margin-top: 6px;

  color: var(--ink-soft);

  font-size: 0.78rem;

  line-height: 1.3;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 768px) {

  .institution-stats {

    grid-template-columns: 1fr;

    gap: 12px;
  }


  .stat-item {

    padding: 16px;
  }


  .stat-icon {

    width: 43px;
    height: 43px;
  }


  .stat-number {

    font-size: 1.7rem;
  }

}

/* ============================================================
   DETAILS REVEAL
   ============================================================ */

@keyframes detailsReveal {

  from {

    opacity: 0;

    transform:
      translateY(30px);

  }

  to {

    opacity: 1;

    transform:
      translateY(0);

  }

}


/* ============================================================
   MOBILE / TABLET
   ============================================================ */

@media (max-width: 1024px) {

  .institution-details {
    display: none;
  }

}
/* ============================================================
   INSTITUTION DETAILS — HIDDEN UNTIL CARD OPENS
   ============================================================ */

.institution-details {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: clamp(30px, 5vw, 65px);

  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(201,162,39,0.14),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      var(--forest-deep),
      #073b26
    );

  color: var(--white);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(35px) scale(0.98);

  transition:
    opacity 0.9s cubic-bezier(.22,1,.36,1),
    transform 1s cubic-bezier(.22,1,.36,1),
    visibility 0.9s ease;

  z-index: 5;

  overflow: hidden;
}

/* Show details only when card is opened */

.institution-card.is-expanded .institution-details {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateY(0);
}

.institution-contact {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.8);
  margin-bottom: 30px;
}

.institution-contact strong {
  display: block;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.institution-detail-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.prospectus-btn,
.institution-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 13px 20px;

  border-radius: 8px;

  font-family: var(--font-display);
  font-weight: 600;

  text-decoration: none;

  cursor: pointer;
}

.prospectus-btn {
  background: var(--gold);
  color: var(--forest-deep);
}

.institution-close {
  background: transparent;
  color: var(--white);

  border: 1px solid rgba(255,255,255,0.25);
}

.institution-details::before {
  content: "";

  position: absolute;

  width: 380px;
  height: 380px;

  border: 1px solid rgba(201,162,39,0.16);

  border-radius: 50%;

  right: -170px;
  top: -170px;

  pointer-events: none;
}


.institution-details::after {
  content: "";

  position: absolute;

  width: 220px;
  height: 220px;

  border: 1px solid rgba(255,255,255,0.06);

  border-radius: 50%;

  left: -120px;
  bottom: -120px;

  pointer-events: none;
}

/* ============================================================
   UNIFIED INSTITUTION POPUP THEME
   Makes all institution popups use the same Hifz-style theme
   ============================================================ */

.institution-card.is-expanded .institution-details {
  background:
    linear-gradient(
      135deg,
      var(--forest-deep),
      #0b5032
    );

  color: var(--white);
}


/* Contact text */

.institution-card.is-expanded .institution-contact {
  color: rgba(255, 255, 255, 0.82);
}


/* Contact heading */

.institution-card.is-expanded .institution-contact strong {
  color: var(--gold);
}


/* Buttons */

.institution-card.is-expanded .prospectus-btn {
  background: var(--gold);
  color: var(--forest-deep);
}

.institution-card.is-expanded .prospectus-btn:hover {
  background: #e0bd45;
  color: var(--forest-deep);
}


/* Back button */

.institution-card.is-expanded .institution-close {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.28);
}

.institution-card.is-expanded .institution-close:hover {
  background: rgba(255,255,255,0.10);
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}


/* Statistics */

.institution-card.is-expanded .stat-number {
  color: var(--white);
}

.institution-card.is-expanded .stat-content p {
  color: rgba(255,255,255,0.72);
}

.institution-card.is-expanded .stat-plus {
  color: var(--gold);
}


/* Statistic boxes */

.institution-card.is-expanded .stat-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}


/* Icons */

.institution-card.is-expanded .stat-icon {
  background: rgba(201,162,39,0.16);
  color: var(--gold);
}


/* Divider */

.institution-card.is-expanded .institution-details {
  border-color: rgba(255,255,255,0.12);
}


/* ============================================================
   MOBILE — INSTITUTION POPUP
   ============================================================ */

@media (max-width: 768px) {

  /* Expanded card fills the usable mobile screen */
  .institution-card.is-expanded {

    position: fixed;

    top: var(--nav-height, 72px);
    left: 12px;
    right: 12px;
    bottom: 12px;

    width: auto;
    height: auto;

    min-height: 0;

    z-index: 1000;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border-radius: 22px;

    transform: none !important;
  }


  /* ----------------------------------------------------------
     IMAGE
     ---------------------------------------------------------- */

  .institution-card.is-expanded .institution-image {

    flex: 0 0 35%;

    width: 100%;
    height: auto;

    min-height: 0;

    position: relative;

    overflow: hidden;
  }


  .institution-card.is-expanded .institution-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;
  }


  /* Dark overlay makes image more cinematic */

  .institution-card.is-expanded .institution-image::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
      linear-gradient(
        to bottom,
        rgba(0,0,0,0.02),
        rgba(10,46,31,0.55)
      );

    pointer-events: none;
  }


  /* Number */

  .institution-card.is-expanded .institution-number {

    z-index: 3;

    top: 18px;
    left: 18px;

    width: 42px;
    height: 42px;

    font-size: 0.75rem;
  }


  /* ----------------------------------------------------------
     MAIN CONTENT
     ---------------------------------------------------------- */

  .institution-card.is-expanded .institution-content {

    flex: 0 0 auto;

    width: 100%;

    padding: 22px 22px 10px;

    text-align: left;

    overflow: visible;
  }


  .institution-card.is-expanded .institution-label {

    font-size: 0.62rem;

    letter-spacing: 0.15em;

    margin-bottom: 7px;
  }


  .institution-card.is-expanded .institution-content h2 {

    font-size: 1.55rem;

    line-height: 1.15;

    margin-bottom: 9px;
  }


  .institution-card.is-expanded .institution-content p {

    font-size: 0.82rem;

    line-height: 1.55;

    margin-bottom: 12px;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
  }


  /* Hide Know More after expansion */

  .institution-card.is-expanded .institution-btn {

    display: none;
  }


  /* ----------------------------------------------------------
     DETAILS / STATISTICS
     ---------------------------------------------------------- */

  .institution-card.is-expanded .institution-details {

    flex: 1 1 auto;

    width: 100%;

    min-height: 0;

    padding: 15px 20px 20px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    overflow-y: auto;

    border-top:
      1px solid
      rgba(255,255,255,0.12);
  }


  /* Statistics grid */

  .institution-card.is-expanded .institution-stats {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 8px;

    width: 100%;
  }


  .institution-card.is-expanded .stat-item {

    min-width: 0;

    padding: 11px 6px;

    border-radius: 12px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;
  }


  .institution-card.is-expanded .stat-icon {

    width: 30px;
    height: 30px;

    margin-bottom: 5px;

    font-size: 0.75rem;
  }


  .institution-card.is-expanded .stat-number {

    font-size: 1.35rem;

    line-height: 1.1;
  }


  .institution-card.is-expanded .stat-plus {

    font-size: 0.85rem;
  }


  .institution-card.is-expanded .stat-content p {

    margin: 3px 0 0;

    font-size: 0.65rem;

    line-height: 1.25;

    display: block;
  }


  /* ----------------------------------------------------------
     CONTACT
     ---------------------------------------------------------- */

  .institution-card.is-expanded .institution-contact {

    margin: 12px 0 10px;

    font-size: 0.78rem;

    line-height: 1.5;
  }


  /* ----------------------------------------------------------
     BUTTONS
     ---------------------------------------------------------- */

  .institution-card.is-expanded
  .institution-detail-actions {

    display: grid;

    grid-template-columns: 1fr 0.7fr;

    gap: 9px;

    width: 100%;
  }


  .institution-card.is-expanded
  .prospectus-btn,

  .institution-card.is-expanded
  .institution-close {

    min-height: 42px;

    padding: 10px 12px;

    border-radius: 10px;

    font-size: 0.72rem;

    display: flex;

    align-items: center;

    justify-content: center;
  }


  /* ----------------------------------------------------------
     PREVENT BACKGROUND SCROLL
     ---------------------------------------------------------- */

  body.institution-open {

    overflow: hidden;
  }

}

@media (max-width: 400px) {

  .institution-card.is-expanded {

    top: 66px;
    left: 8px;
    right: 8px;
    bottom: 8px;

    border-radius: 18px;
  }


  .institution-card.is-expanded .institution-image {

    flex-basis: 30%;
  }


  .institution-card.is-expanded .institution-content {

    padding: 17px 17px 8px;
  }


  .institution-card.is-expanded .institution-content h2 {

    font-size: 1.3rem;
  }


  .institution-card.is-expanded .institution-content p {

    font-size: 0.76rem;

    -webkit-line-clamp: 2;
  }


  .institution-card.is-expanded .institution-details {

    padding: 10px 15px 15px;
  }


  .institution-card.is-expanded .institution-stats {

    gap: 6px;
  }


  .institution-card.is-expanded .stat-item {

    padding: 8px 4px;
  }


  .institution-card.is-expanded .stat-number {

    font-size: 1.15rem;
  }


  .institution-card.is-expanded
  .stat-content p {

    font-size: 0.58rem;
  }


  .institution-card.is-expanded
  .institution-detail-actions {

    grid-template-columns: 1fr 1fr;
  }

}