/* ============================================================
   STTMTC — St Theresa Medical Training College
   Stylesheet v3.0 | Crafted by Infranova Systems
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand Colors */
  --brand:        #416AE0;
  --brand-dark:   #4269E2;
  --brand-2:      #B58E2F;
  --brand-light:  #F8F4E8;
  --accent:       #050A30;
  --accent-light: #EEF4FF;

  /* Status */
  --success: #10B981;
  --urgent:  #ef4444;
  --warning: #f59e0b;

  /* Neutrals */
  --bg:           #ffffff;
  --bg-soft:      #F5F8FC;
  --text-main:    #0F172A;
  --text-body:    #334155;
  --muted:        #64748B;
  --border:       #D1E1F5;
  --border-light: #F1F5F9;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(11,79,138,0.08);
  --shadow:    0 4px 12px rgba(11,79,138,0.10);
  --shadow-md: 0 8px 24px rgba(11,79,138,0.12);
  --shadow-lg: 0 20px 40px rgba(11,79,138,0.15);
  --shadow-xl: 0 35px 70px rgba(0,0,0,0.15);

  /* Geometry */
  --radius:    10px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  /* Typography */
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s var(--ease);
}

ul { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text-main);
  line-height: 1.15;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }

p { color: var(--text-body); }
.lead { font-size: 1.1rem; line-height: 1.75; color: var(--text-body); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: min(1200px, 95vw);
  margin-inline: auto;
  padding-inline: 1rem;
}

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

/* Grid stacking: 4-col → 2-col → 1-col */
@media (max-width: 1060px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 0.875rem;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
}

.topbar__left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar__left a { color: rgba(255,255,255,0.9); }
.topbar__left a:hover { color: #fff; }
.topbar .ico { font-style: normal; }

@media (max-width: 600px) {
  .topbar__right { display: none; }
  .topbar__left { gap: 8px; font-size: 0.75rem; }
}

/* ============================================================
   HEADER & NAV
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border);
  transition: all 0.3s var(--ease);
}

.header--scrolled {
  box-shadow: var(--shadow-lg);
  padding: 2px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  gap: 0;
  flex-wrap: nowrap;
  overflow: visible;
}

/* Header uses full viewport width — logo sits 1px from the left edge */
.header .container {
  max-width: 100%;
  width: 100%;
  padding-left: 1px;
  padding-right: 10px;
}

/* ---- Brand — 1px from left ---- */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 6px;
}
.brand img {
  height: 62px;
  width: auto;
  object-fit: contain;
}
.brand__text { display: flex; flex-direction: column; gap: 0; }
.brand__name {
  font-weight: 800;
  color: var(--brand);
  display: block;
  line-height: 1.2;
  font-size: 0.92rem;
  white-space: nowrap;
}
.brand__tag {
  font-size: 0.68rem;
  color: var(--brand-2);
  font-style: italic;
  display: block;
  max-width: 240px;
  line-height: 1.3;
}

/* ---- Nav — single row, no wrap ---- */
.nav {
  display: flex;
  gap: 1px;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.nav a {
  padding: 0.48rem 0.65rem;
  font-weight: 600;
  color: var(--brand);
  border-radius: var(--radius);
  font-size: 0.86rem;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
}
.nav a:hover,
.nav a.nav-active {
  background: var(--brand-2);
  color: #fff;
}

/* Student Portal outline link */
.portal-link {
  color: var(--brand) !important;
  font-weight: 700 !important;
  border: 1px solid var(--border) !important;
  margin-right: 3px;
}
.portal-link:hover {
  background: var(--bg-soft) !important;
  color: var(--brand-2) !important;
}

/* ---- Hamburger toggle ---- */
.nav-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--brand);
  cursor: pointer;
  padding: 5px 8px;
  z-index: 1100;
  line-height: 1;
  flex-shrink: 0;
}

/* ---- Responsive breakpoints ----
   1: hide tagline, compress nav slightly
   2: shrink logo
   3: hamburger                           */
@media (max-width: 1200px) {
  .brand__tag { display: none; }
  .nav a { padding: 0.44rem 0.55rem; font-size: 0.82rem; }
  .nav .btn--small { padding: 0.44rem 1rem; font-size: 0.8rem; }
}

@media (max-width: 1060px) {
  .brand img { height: 50px; }
  .brand__name { font-size: 0.85rem; }
  .nav a { padding: 0.4rem 0.45rem; font-size: 0.78rem; }
  .nav .btn--small { padding: 0.4rem 0.85rem; font-size: 0.76rem; }
}

@media (max-width: 992px) {
  .nav-toggle { display: block; }
  .header .container { padding-left: 8px; padding-right: 8px; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    border-bottom: 4px solid var(--brand);
    box-shadow: var(--shadow-xl);
    gap: 0;
    z-index: 1050;
  }
  .nav.is-active, .nav.open {
    display: flex !important;
    animation: slideIn 0.3s ease-out;
  }
  @keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .nav a {
    width: 100%;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    border-radius: 0;
    font-size: 0.95rem;
    color: var(--brand);
  }
  .nav .btn--small {
    margin-top: 12px;
    width: 100%;
    text-align: center;
    border-radius: var(--radius) !important;
    background: var(--brand) !important;
    color: #fff !important;
  }
  .brand img { height: 50px; }
  .brand__name { font-size: 0.9rem; white-space: normal; max-width: 200px; }
}

/* ============================================================
 /* ============================================================
   HERO (Matched Exactly to Slide Caption Elements)
   ============================================================ */
.hero {
  position: relative;
  padding: 120px 0 80px;
  color: #fff;
  text-align: left;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 480px;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg, 
    rgba(7,55,105,0.75) 0%, 
    rgba(11,79,138,0.50) 60%, 
    rgba(47,125,209,0.25) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px; /* Matches max-width of .slide-title */
  margin: 0;
}

/* Matched to .slide-tag */
.hero .kicker,
.hero-tag { 
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 5px;
}

/* Matched to .slide-title */
.hero h1 { 
  font-family: var(--font-head);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 5px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  max-width: 600px;
}

/* Matched to .slide-desc */
.hero .sub { 
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.90);
  line-height: 1.70;
  max-width: 520px;
  margin-bottom: 5px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* Actions & Buttons */
.hero__actions { 
  display: flex; 
  gap: 12px; 
  justify-content: flex-start;
  flex-wrap: wrap; 
  margin-top: 18px; 
}

/* Stats bar (Left-aligned & compact to fit small text) */
.hero .stats {
  display: flex;
  justify-content: flex-start;
  gap: 32px;
  margin-top: 24px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-wrap: wrap;
  max-width: fit-content;
  margin-inline: 0;
}

.stat { 
  text-align: left; 
}

.stat strong { 
  display: block; 
  font-family: var(--font-head); 
  font-size: 1.5rem; 
  font-weight: 800; 
  color: #fff; 
  line-height: 1; 
}

.stat span { 
  font-size: 0.72rem; 
  color: rgba(255, 255, 255, 0.85); 
  text-transform: uppercase; 
  letter-spacing: 0.08em; 
  margin-top: 4px; 
  display: block; 
}

/* Inner sub-page variant */
.hero--small { 
  padding: 90px 0 50px; 
  min-height: 300px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }

.section__head { text-align: center; margin-bottom: 56px; }
.section__head h2 { margin-bottom: 14px; }
.section__head .lead { max-width: 600px; margin: 0 auto; }

/* ============================================================
   KICKER
   ============================================================ */
.kicker {
  display: inline-block;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-2);
  margin-bottom: 12px;
  padding: 4px 12px;
  background: var(--brand-light);
  border-radius: 100px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card__body { padding: 24px; flex: 1; }
.card__body h3 { margin: 10px 0 8px; }
.card__body p { font-size: 0.94rem; color: var(--text-body); }
.card__cta { padding: 0 24px 24px; }

/* Feature cards */
.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--brand-2);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);

  /* Box sizing */
  box-sizing: border-box;
  text-align: center;
}

/* Center bullet list items and keep bullets aligned cleanly */
.feature-card .list {
  display: inline-block;
  text-align: left; /* Keeps bullet points aligned neatly together */
  margin: 8px auto 0 auto;
}

.feature-card:hover { 
  transform: translateY(-4px); 
  box-shadow: var(--shadow-md); 
}

.feature-card .icon { 
  font-size: 2.2rem; 
  margin-bottom: 14px; 
}

.feature-card h3 { 
  margin-bottom: 8px; 
  font-size: 1.15rem; 
}

/* Overlay cards (facilities) */
.overlay-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 380px;
  box-shadow: var(--shadow-md);
}
.overlay-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.overlay-card:hover img { transform: scale(1.07); }
.overlay-card__body {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,55,105,0.92) 0%, rgba(7,55,105,0.45) 40%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: #fff;
  overflow: hidden;
}
.overlay-card__body h3 { color: #fff; font-size: 1.3rem; margin-bottom: 8px; }
.overlay-card__body p  { font-size: 0.92rem; opacity: 0.88; line-height: 1.55;color: var(--brand-2) }
/* Hide description text on very small overlay cards — title only */
@media (max-width: 479px) {
  .overlay-card__body p { display: none; }
  .overlay-card__body h3 { font-size: 1.05rem; margin-bottom: 0; }
  .overlay-card__body { padding: 16px; }
  /* Feature cards — single column on very small phones (too cramped at 2-col) */
  .grid--4.feature-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PILL / BADGE
   ============================================================ */
.pill {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--brand-light);
  color: var(--brand);
}
.pill--urgent { background: #FEE2E2; color: var(--urgent); }
.pill--success { background: #D1FAE5; color: #065F46; }

/* Meta line */
.meta { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0; font-size: 0.82rem; color: var(--muted); font-weight: 500; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.82rem 1.9rem;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  font-family: var(--font-body);
}
.btn:hover {
  background: var(--brand-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn--small { padding: 0.55rem 1.3rem; font-size: 0.85rem; }
.btn--light {
  background: #fff !important;
  color: var(--brand) !important;
  border: 2px solid var(--border) !important;
}
.btn--light:hover {
  background: var(--brand-light) !important;
  border-color: var(--brand-2) !important;
}
.btn--ghost {
  background: transparent !important;
  color: var(--brand) !important;
  border: 2px solid var(--brand) !important;
}
.btn--ghost:hover {
  background: var(--brand) !important;
  color: #fff !important;
}

/* ============================================================
   LIST
   ============================================================ */
.list { list-style: none; padding: 0; }
.list li {
  padding: 7px 0 7px 22px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-light);
}
.list li:last-child { border-bottom: none; }
.list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-2);
  font-weight: 700;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gallery-caption {
  position: absolute;
  inset: 0;
background: linear-gradient(to top,rgba(7, 55, 105, 0.1) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-caption span { color: #fff; font-size: 0.88rem; font-weight: 600; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9000;
  inset: 0;
  background: rgba(0,0,0,0.93);
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  animation: lbIn 0.3s var(--ease);
}
@keyframes lbIn { from { opacity:0; transform:scale(0.92); } to { opacity:1; transform:scale(1); } }
.lightbox__close {
  position: absolute;
  top: 24px; right: 32px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox__close:hover { opacity: 1; }

/* ============================================================
   NEWS SLIDER  — 5 slides
   ============================================================ */
.news-slider {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.slides {
  display: flex;
  width: 500%;   /* 5 slides × 100% */
  height: 100%;
  animation: slideAnim 24s infinite;
}
.slides img {
  flex-shrink: 0;
  width: 20%;    /* 1/5 of 500% = 100% viewport of container */
  height: 100%;
  object-fit: cover;
}
@keyframes slideAnim {
  0%,18%  { transform: translateX(0); }
  22%,38% { transform: translateX(-20%); }
  42%,58% { transform: translateX(-40%); }
  62%,78% { transform: translateX(-60%); }
  82%,98% { transform: translateX(-80%); }
  100%    { transform: translateX(0); }
}

/* ============================================================
   ACCREDITATION BAR
   ============================================================ */
.accreditation-bar {
  background: var(--brand-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.accreditation-bar .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand);
  color: #fff;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: linear-gradient(130deg, var(--brand-dark) 0%, var(--brand) 50%, var(--brand-2) 100%);
  padding: 72px 0;
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.88); font-size: 1.08rem; margin-bottom: 32px; max-width: 560px; margin-inline: auto; }

/* ============================================================
   CONTACT CARD
   ============================================================ */
.contact-card {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-card h2, .contact-card h3 { color: #fff; }
.contact-card a { color: rgba(255,255,255,0.9); }
.contact-card a:hover { color: #fff; text-decoration: underline; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-row .ico { font-size: 1.2rem; margin-top: 2px; flex-shrink: 0; }

/* ============================================================
   PORTAL BAR
   ============================================================ */
.portal-bar {
  background: var(--brand-light);
  border-bottom: 2px solid var(--border);
  padding: 10px 0;
}
.portal-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   LOGIN CARD
   ============================================================ */
.login-card {
  max-width: 460px;
  margin: 60px auto;
  padding: 44px 40px;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}
.login-card h2 { text-align: center; margin-bottom: 6px; }
.login-card > p { text-align: center; color: var(--muted); margin-bottom: 32px; font-size: 0.92rem; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 7px; color: var(--text-main); }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--bg-soft);
  transition: border-color 0.25s;
}
.form-control:focus {
  outline: none;
  border-color: var(--brand-2);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47,125,209,0.12);
}

/* ============================================================
   SUCCESS CARD
   ============================================================ */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-soft);
  padding: 60px 0;
}
.success-card {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 52px 44px;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}
.check-icon {
  width: 84px; height: 84px;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 28px;
  box-shadow: 0 8px 24px rgba(16,185,129,0.3);
}
.next-steps {
  text-align: left;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}
.next-steps li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.96rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.next-steps li:last-child { border-bottom: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.82);
  padding: 80px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
}

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

.footer h3 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
}
.footer p { font-size: 0.92rem; line-height: 1.7; color: rgb(181, 142, 47);}
.footer ul li { margin-bottom: 10px; }
.footer a { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer a:hover { color: #fff; padding-left: 4px; }

.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer__brand img { height: 50px; width: auto;  opacity: 0.9; }
.footer__brand-name { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.7);
  padding: 22px 0;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer__bottom small { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.developer-credit { font-size: 0.78rem; color: rgba(255,255,255,0.4); }
.developer-credit a { color: rgba(255,255,255,0.7); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.developer-credit a:hover { color: #fff; }
@media (max-width: 600px) { .footer__bottom-inner { flex-direction: column; text-align: center; } }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
  color: #fff;
  font-size: 1.65rem;
  text-decoration: none;
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s;
  overflow: visible;
}
/* Legacy: also style inner <a> if old structure is used */
.wa-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
  color: #fff;
  font-size: 1.65rem;
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s;
}
.wa-float:hover,
.wa-float a:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 28px rgba(37,211,102,0.55);
}
.wa-float .wa-pulse,
.wa-float::before {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37,211,102,0.3);
  animation: waPulse 2.2s ease-out infinite;
  content: '';
  pointer-events: none;
}
/* Only show ::before pseudo-pulse when no .wa-pulse child exists */
.wa-float:not(:has(.wa-pulse))::before { display: block; }
.wa-float:has(.wa-pulse)::before { display: none; }
@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.75); opacity: 0; }
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-top {
  position: fixed;
  bottom: 98px;
  right: 28px;
  z-index: 5000;
  width: 44px; height: 44px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.3s var(--ease);
  pointer-events: none;
}
.back-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-top:hover { background: var(--brand-2); transform: translateY(-3px); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   FORMS
   ============================================================ */
.form-field {
  margin-bottom: 18px;
}
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--text-main);
}
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--bg-soft);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-input:focus {
  outline: none;
  border-color: var(--brand-2);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47,125,209,0.12);
}
.form-input.error { border-color: var(--urgent); }
.form-error { font-size: 0.78rem; color: var(--urgent); margin-top: 4px; display: none; }
.form-error.visible { display: block; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-white { color: #fff !important; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 28px; }
.mt-lg { margin-top: 48px; }
.mb-md { margin-bottom: 28px; }
.gap-sm { gap: 12px; }
.w-full { width: 100%; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px)  { .two-col { gap: 32px; } }
@media (max-width: 767px)  { .two-col { grid-template-columns: 1fr; gap: 28px; } }

.img-rounded {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  object-fit: cover;
}

/* Apply form wrapper */
.apply-wrapper {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  padding: 44px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 767px) { .apply-wrapper { padding: 24px 20px; border-radius: var(--radius-lg); } }
@media (max-width: 479px) { .apply-wrapper { padding: 20px 16px; } }

/* ============================================================
   INFO BLOCK (Hospital Integration)
   ============================================================ */
.info-block {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 56px;
}
.info-block h2 { color: #fff; }
.info-block p { color: rgba(255,255,255,0.88); }
.info-block .list li { color: rgba(255,255,255,0.9); border-bottom-color: rgba(255,255,255,0.12); }
.info-block .list li::before { color: rgba(255,255,255,0.7); }
.info-block img { border-radius: var(--radius-lg); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
@media (max-width: 768px) { .info-block { grid-template-columns: 1fr; padding: 32px; margin-top: 28px; } }
@media (max-width: 479px)  { .info-block { padding: 24px 16px; margin-top: 20px; }
  .info-block img { max-height: 240px; object-fit: cover; width: 100%; } }

/* ============================================================
   COMPREHENSIVE RESPONSIVE SYSTEM
   Breakpoints:
     xs  : 320px  – very small phones
     sm  : 480px  – phones / landscape
     md  : 640px  – large phones / phablets
     lg  : 768px  – tablets portrait
     xl  : 900px  – tablets landscape
     2xl : 1060px – small laptops
     3xl : 1200px – desktops
     4xl : 1440px – large desktops
     5xl : 1920px – 4K / wide screens
   ============================================================ */

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
details summary { user-select: none; }
details summary::-webkit-details-marker { display: none; }
details[open] summary span:last-child { transform: rotate(45deg); display: inline-block; }
details[open] { box-shadow: var(--shadow-md) !important; }
details[open] summary { background: var(--brand-light); color: var(--brand); }

/* ============================================================
   TABLES
   ============================================================ */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; }

/* ============================================================
   MILESTONE TIMELINE — mobile fix
   ============================================================ */
@media (max-width: 479px) {
  .milestone-item > div:first-child { width: 46px; height: 46px; font-size: 0.7rem; }
}

/* ── Hero fallback bg when image not yet loaded ── */
.hero { background-color: var(--brand-dark); }
.hero--small { background-color: var(--brand); }

/* Broken / loading image placeholder */
img {
  background: var(--bg-soft);
  color: transparent;
}
img[src=""],
img:not([src]) {
  visibility: hidden;
}

/* ── 4K / ULTRA WIDE (≥ 1920px) ─────────────────────────────
   Constrain max width so content doesn't stretch too wide    */
@media (min-width: 1920px) {
  .container { width: min(1400px, 90vw); }
  .section { padding: 112px 0; }
  h1 { font-size: 4.5rem; }
  h2 { font-size: 3rem; }
  .hero { padding: 180px 0 140px; }
  .hero .sub { font-size: 1.3rem; max-width: 760px; }
  .stat strong { font-size: 2.2rem; }
  .hero .stats { max-width: 860px; gap: 60px; }
}

/* ── LARGE DESKTOPS (1440px – 1919px) ───────────────────────*/
@media (min-width: 1440px) and (max-width: 1919px) {
  .container { width: min(1320px, 92vw); }
  .hero { padding: 160px 0 120px; }
}

/* ── DESKTOPS (1200px – 1439px) — baseline ──────────────────
   This is the primary design target; no changes needed        */

/* ── SMALL LAPTOPS (1060px – 1199px) ────────────────────────*/
@media (max-width: 1199px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .two-col { gap: 32px; }
  .info-block { padding: 40px; gap: 28px; }
}

/* ── TABLETS LANDSCAPE / SMALL LAPTOP (900px – 1059px) ──────*/
@media (max-width: 1059px) {
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 44px; }
  .hero { padding: 110px 0 80px; }
  .hero--small { padding: 80px 0 60px; }
  .cta-band { padding: 60px 0; }
  .footer { padding-top: 64px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ── TABLETS PORTRAIT (768px – 899px) ────────────────────────*/
@media (max-width: 899px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .overlay-card { height: 320px; }
  .info-block { grid-template-columns: 1fr; padding: 36px; gap: 28px; margin-top: 40px; }
  .info-block img { max-height: 280px; object-fit: cover; width: 100%; }
  /* News span-2 card — collapse on tablets */
  .grid--3 > [style*="grid-column: span 2"],
  .grid--3 > article[style*="span 2"] { grid-column: span 2; }
}

/* ── LARGE PHONES / SMALL TABLET (640px – 767px) ────────────*/
@media (max-width: 767px) {
  /* Typography */
  h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  h2 { font-size: clamp(1.5rem, 5.5vw, 2rem); }
  h3 { font-size: 1.2rem; }
  .lead { font-size: 1rem; }

  /* Layout */
  .container { padding-inline: 1.25rem; }
  .section { padding: 56px 0; }
  .section__head { margin-bottom: 36px; }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  /* Flip image order so text comes first on mobile */
  .two-col > *:first-child { order: 2; }
  .two-col > *:last-child  { order: 1; }

  /* Hero */
  .hero { padding: 80px 0 60px; }
  .hero--small { padding: 70px 0 50px; }
  .hero .stats {
    gap: 16px;
    padding: 16px 20px;
    margin-top: 36px;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 100%;
  }
  .stat strong { font-size: 1.4rem; }
  .stat span { font-size: 0.7rem; }
  .hero__actions { flex-direction: column; align-items: center; gap: 10px; }
  .hero__actions .btn { width: 100%; max-width: 320px; }

  /* Sections */
  .cta-band { padding: 48px 0; }
  .cta-band p { margin-bottom: 24px; }

  /* Cards */
  .card:hover { transform: none; } /* disable hover lift on touch */
  .feature-card { padding: 24px 20px; }
  .feature-card .icon { font-size: 1.8rem; margin-bottom: 10px; }
  .overlay-card { height: 280px; }
  .card__img { height: 180px; }

  /* Grids */
  .grid--2 { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  /* Feature cards — 2-col down to 480px, then 1-col on tiny phones */
  .grid--4.feature-grid { grid-template-columns: repeat(2, 1fr); }

  /* Overlay card taller on full-width 1-col mobile */
  .overlay-card { height: 300px; }

  /* News: span-2 collapse */
  .grid--3 > [style*="grid-column: span 2"],
  .grid--3 > article[style*="span 2"] { grid-column: span 1; }

  /* Horizontal event cards — stack vertically */
  .card[style*="flex-direction:row"],
  .card[style*="flex-direction: row"] {
    flex-direction: column !important;
  }
  .card[style*="flex-direction:row"] img,
  .card[style*="flex-direction: row"] img {
    width: 100% !important;
    height: 180px !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
  }

  /* Course horizontal articles */
  [id="community-health-nursing"] > div,
  [id="medical-lab"] > div,
  [id="health-records"] > div {
    grid-template-columns: 1fr !important;
  }
  [id="community-health-nursing"] img,
  [id="medical-lab"] img,
  [id="health-records"] img {
    height: 220px !important;
    width: 100% !important;
  }
  [id="medical-lab"] > div > div { padding: 24px !important; }
  [id="health-records"] > div > div { padding: 24px !important; }

  /* Contact page 2-col */
  .section .container[style*="grid-template-columns:1fr 1.4fr"],
  .section .container[style*="grid-template-columns: 1fr 1.4fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Accreditation bar */
  .accreditation-bar { padding: 14px 18px; gap: 10px; }
  .accreditation-bar .badge { font-size: 0.72rem; padding: 5px 12px; }

  /* Footer */
  .footer { padding-top: 48px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 40px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }

  /* Forms */
  .apply-wrapper { padding: 24px 20px; border-radius: var(--radius-lg); }
  .success-card { padding: 36px 24px; }

  /* Login */
  .login-card { margin: 30px auto; padding: 32px 24px; }

  /* Info block */
  .info-block { padding: 28px 20px; }

  /* Floating buttons */
  .wa-float { bottom: 18px; right: 16px; }
  .wa-float a { width: 50px; height: 50px; font-size: 1.35rem; }
  .back-top { bottom: 82px; right: 16px; width: 40px; height: 40px; font-size: 1rem; }

  /* Portal notice items */
  .card[style*="flex-direction:row"][style*="align-items:center"] {
    flex-direction: column !important;
  }
  .card[style*="flex-direction:row"][style*="align-items:center"] img {
    width: 100% !important;
    height: 160px !important;
  }
}

/* ── PHONES (480px – 639px) ──────────────────────────────────*/
@media (max-width: 639px) {
  .section { padding: 48px 0; }
  .hero { padding: 72px 0 52px; }
  .hero--small { padding: 60px 0 44px; }
  .grid--4 { grid-template-columns: 1fr; }
  .topbar__left { gap: 10px; font-size: 0.8rem; }
  .topbar__right { display: none; }
  .btn { font-size: 0.88rem; }
}

/* ── SMALL PHONES (≤ 479px) ──────────────────────────────────*/
@media (max-width: 479px) {
  /* Typography — tight clamp for tiny screens */
  h1 { font-size: clamp(1.65rem, 8.5vw, 2.1rem); line-height: 1.18; }
  h2 { font-size: clamp(1.3rem, 6.5vw, 1.75rem); }
  h3 { font-size: 1.08rem; }
  .lead { font-size: 0.96rem; line-height: 1.7; }
  body { font-size: 0.95rem; }

  /* Container — full bleed with small padding */
  .container { padding-inline: 1rem; }

  /* Hero */
  .hero { padding: 64px 0 48px; }
  .hero--small { padding: 52px 0 38px; }
  .hero .sub { font-size: 0.96rem; }
  .hero .stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 24px;
    padding: 14px 16px;
    margin-top: 28px;
  }
  .stat { flex: 0 0 calc(50% - 12px); }
  .stat strong { font-size: 1.25rem; }

  /* Buttons */
  .btn { padding: 0.72rem 1.3rem; font-size: 0.86rem; }
  .btn--small { padding: 0.5rem 1rem; font-size: 0.8rem; }
  .hero__actions .btn { max-width: 100%; }

  /* Gallery — single column on very small phones */
  .gallery-grid { grid-template-columns: 1fr; }

  /* Cards */
  .card__body { padding: 18px; }
  .card__cta { padding: 0 18px 18px; }
  .card__img { height: 160px; }

  /* Feature cards */
  .feature-card { padding: 20px 16px; }

  /* Sections */
  .section { padding: 40px 0; }
  .section__head { margin-bottom: 28px; }
  .cta-band { padding: 40px 0; }
  .cta-band p { font-size: 0.94rem; }

  /* Apply form grid — force single col */
  .apply-wrapper .grid--2 { grid-template-columns: 1fr !important; }

  /* Success card */
  .success-card { padding: 28px 16px; border-radius: var(--radius-lg); }
  .check-icon { width: 70px; height: 70px; font-size: 1.8rem; }

  /* Forms */
  .apply-wrapper { padding: 20px 16px; }
  .form-input { font-size: 0.9rem; padding: 10px 12px; }

  /* Footer */
  .footer { padding-top: 40px; }
  .footer__grid { gap: 22px; padding-bottom: 32px; }
  .footer h3 { margin-bottom: 14px; }
  .footer__brand img { height: 40px; }

  /* News slider */
  .news-slider { height: 180px; }

  /* Overlay cards */
  .overlay-card { height: 240px; }
  .overlay-card__body { padding: 18px; }
  .overlay-card__body h3 { font-size: 1.1rem; }

  /* Info block */
  .info-block { padding: 24px 16px; }

  /* WhatsApp / back-top */
  .wa-float { bottom: 14px; right: 12px; }
  .wa-float a { width: 46px; height: 46px; font-size: 1.2rem; }
  .back-top { bottom: 74px; right: 12px; width: 38px; height: 38px; }

  /* Login */
  .login-card { margin: 20px auto; padding: 28px 18px; }

  /* Topbar */
  .topbar { font-size: 0.75rem; }
  .topbar__inner { padding: 0.45rem 0; }
  .topbar__right { display: none; }
}

/* ── VERY SMALL (≤ 359px — iPhone SE 1st gen, old budget phones) */
@media (max-width: 359px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  .container { padding-inline: 0.75rem; }
  .hero { padding: 52px 0 38px; }
  .hero--small { padding: 44px 0 30px; }
  .stat { flex: 0 0 100%; }
  .btn { padding: 0.65rem 1.1rem; font-size: 0.82rem; }
  .card__body { padding: 14px; }
  .section { padding: 32px 0; }
  .feature-card { padding: 16px 14px; }
  .overlay-card { height: 200px; }
}

/* ── TOUCH DEVICES — disable hover animations ────────────────*/
@media (hover: none) and (pointer: coarse) {
  .card:hover { transform: none; box-shadow: var(--shadow); }
  .feature-card:hover { transform: none; box-shadow: var(--shadow); }
  .btn:hover { transform: none; }
  .footer a:hover { padding-left: 0; }
  .gallery-item .gallery-caption { opacity: 1; } /* always show on touch */
}

/* ── LANDSCAPE PHONE (max-height: 500px, touch) ─────────────*/
@media (max-height: 500px) and (orientation: landscape) and (max-width: 900px) {
  .hero { padding: 48px 0 36px; }
  .hero--small { padding: 40px 0 28px; }
  .hero .stats { margin-top: 20px; }
  .nav { max-height: 85vh; overflow-y: auto; }
}

/* ── REDUCED MOTION ──────────────────────────────────────────*/
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .wa-float .wa-pulse { animation: none; }
}

/* ── HIGH CONTRAST ───────────────────────────────────────────*/
@media (prefers-contrast: high) {
  .topbar { background: var(--brand-dark); }
  .btn { border: 2px solid currentColor; }
  .card { border: 1px solid var(--border); }
}

/* ============================================================
   PRINT
   ============================================================ */

@media print {
  .topbar, .header, .wa-float, .back-top,
  .hero__actions, .cta-band, footer { display: none; }
  body { color: #000; font-size: 12pt; }
  .hero { padding: 20px 0; min-height: auto; background: none !important; color: #000; }
  .hero h1, .hero .sub, .hero .kicker { color: #000; text-shadow: none; }
  .hero::after { display: none; }
  .card { box-shadow: none; border: 1px solid #ccc; }
  a { color: #000; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.75em; }
}


/* ============================================================
   ENHANCEMENTS — Dropdown Nav, Clean Hero, Campus Tour,
   Downloads, About Text-First, Footer Logo Fix
   (These were previously incorrectly placed inside @media print)
   ============================================================ */


/* ── DROPDOWN NAV ──────────────────────────────────────────── */
.nav-item {
  position: relative;
}

/* Arrow indicator — only on desktop */
@media (min-width: 993px) {
  .nav-item > a::after {
    content: ' ▾';
    font-size: 0.6rem;
    vertical-align: middle;
    opacity: 0.65;
  }
}

/* Dropdown panel */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(11,79,138,.15);
  border: 1px solid var(--border);
  min-width: 240px;
  z-index: 2000;
  padding: 8px 0;
  animation: dropIn 0.2s var(--ease);
}

@keyframes dropIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Show on hover & focus — desktop only */
@media (min-width: 993px) {
  .nav-item:hover .nav-dropdown,
  .nav-item:focus-within .nav-dropdown {
    display: block;
  }
}

.nav-dropdown a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 20px !important;
  font-size: 0.86rem !important;
  font-weight: 500 !important;
  color: var(--text-main) !important;
  border-radius: 0 !important;
  border-bottom: none !important;
  white-space: nowrap;
  transition: background 0.15s, padding-left 0.15s;
  background: transparent !important;
}
.nav-dropdown a:hover {
  background: var(--brand-light) !important;
  color: var(--brand) !important;
  padding-left: 26px !important;
}
.dd-icon {
  font-size: 1rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.dd-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 12px;
}
.dd-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 8px 20px 2px;
  pointer-events: none;
}

/* Mobile: dropdowns show as nested flat list */
@media (max-width: 992px) {
  .nav-item > a::after { display: none; }
  .nav-dropdown {
    display: block !important;
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(0,0,0,0.04);
    padding: 0;
    animation: none;
    border-left: 3px solid var(--brand-2);
    margin-left: 16px;
    margin-bottom: 4px;
    min-width: auto;
    width: auto;
  }
  .nav-dropdown a {
    padding: 9px 14px !important;
    font-size: 0.84rem !important;
    border-bottom: 1px solid var(--border) !important;
    white-space: normal;
  }
  .dd-label { padding: 6px 14px 2px; }
  .dd-divider { margin: 4px 10px; }
}


/* ── HERO — CLEAN (image breathes, caption bottom-left) ────── */
.hero--clean {
  padding: 0;
  height: 88vh;
  min-height: 520px;
  max-height: 820px;
  align-items: flex-end;            /* push caption to bottom */
  padding-bottom: 0;
}

/* Much lighter overlay so image is clearly visible */
.hero--clean::after {
  background: linear-gradient(
    to top,
    rgba(7, 55, 105, 0.72) 0%,
    rgba(7, 55, 105, 0.12) 45%,
    transparent 72%
  ) !important;
}

/* Caption sits at bottom-left of hero */
.hero-caption {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  padding: 0 28px;
  z-index: 3;
  text-align: left;
}
.hero-caption__tag {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.hero-caption__title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.18;
  margin-bottom: 8px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
  max-width: 560px;
}
.hero-caption__desc {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.65;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
  margin-bottom: 18px;
  max-width: 480px;
}
.hero-caption__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero--clean { height: 68vh; min-height: 420px; }
  .hero-caption { bottom: 22px; padding: 0 20px; }
  .hero-caption__title { font-size: 1.5rem; max-width: 100%; }
  .hero-caption__desc { font-size: 0.84rem; }
}
@media (max-width: 480px) {
  .hero--clean { height: 60vh; }
}


/* ── ABOUT PAGE — TEXT-FIRST LANDING ──────────────────────── */
.about-intro {
  padding: 72px 0 56px;
  background: #fff;
}
.about-intro__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 52px;
  align-items: center;
}
.about-intro__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-2);
  margin-bottom: 10px;
}
.about-intro__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
  margin-bottom: 22px;
}
.about-intro__title em {
  font-style: italic;
  color: var(--brand);
}
.about-intro__body p {
  font-size: 0.96rem;
  line-height: 1.82;
  color: var(--text-body);
  margin-bottom: 14px;
}
.about-intro__img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.about-intro__img img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}
.about-intro__badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-intro__badge strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.about-intro__badge span {
  font-size: 0.72rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.about-mvv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.about-mvv__card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 20px;
  border-top: 3px solid var(--brand);
}
.about-mvv__card h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brand);
  margin-bottom: 8px;
}
.about-mvv__card p {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text-body);
}
@media (max-width: 900px) {
  .about-intro__inner { grid-template-columns: 1fr; }
  .about-intro__img { order: -1; }
  .about-intro__img img { height: 280px; }
  .about-mvv { grid-template-columns: 1fr; gap: 10px; }
}


/* ── CAMPUS TOUR SECTION ───────────────────────────────────── */
.campus-tour { padding: 80px 0; background: var(--bg-soft); }

.campus-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 36px;
}
.campus-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.campus-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}
.campus-card__img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  flex-shrink: 0;
}
.campus-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
  display: block;
}
.campus-card:hover .campus-card__img-wrap img { transform: scale(1.06); }
.campus-card__num {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  z-index: 2;
}
.campus-card__cat {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 10px;
  border-radius: 100px;
  z-index: 2;
}
.campus-card__body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.campus-card__body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}
.campus-card__body p {
  font-size: 0.84rem;
  color: var(--text-body);
  line-height: 1.65;
  flex: 1;
}
.campus-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.campus-tags span {
  background: var(--brand-light);
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 100px;
}
.campus-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff;
  margin-bottom: 22px;
}
.campus-featured__img {
  height: 360px;
  overflow: hidden;
}
.campus-featured__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}
.campus-featured:hover .campus-featured__img img { transform: scale(1.04); }
.campus-featured__body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.campus-featured__body h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text-main);
}
.campus-featured__body p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 14px;
}
.campus-featured__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.campus-featured__list li {
  font-size: 0.85rem;
  color: var(--text-body);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.campus-featured__list li::before {
  content: '✓';
  color: var(--brand);
  font-weight: 700;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .campus-featured { grid-template-columns: 1fr; }
  .campus-featured__img { height: 230px; }
  .campus-featured__body { padding: 22px; }
  .campus-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .campus-strip { grid-template-columns: 1fr; }
}


/* ── DOWNLOADS SECTION ─────────────────────────────────────── */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.download-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
  border-left: 4px solid var(--brand);
}
.download-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.download-card__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.download-card__icon.pdf  { background: #FEE2E2; }
.download-card__icon.docx { background: #DBEAFE; }
.download-card__icon.xlsx { background: #D1FAE5; }
.download-card__body { flex: 1; min-width: 0; }
.download-card__title { font-weight: 700; font-size: 0.9rem; color: var(--text-main); margin-bottom: 4px; }
.download-card__desc  { font-size: 0.78rem; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.download-card__meta  { font-size: 0.7rem; color: var(--muted); display: flex; gap: 6px; margin-bottom: 10px; }
.download-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 100px;
  transition: background 0.18s, color 0.18s;
  text-decoration: none;
}
.download-card__btn:hover { background: var(--brand); color: #fff !important; }


/* ── FOOTER LOGO — WHITE ON DARK FOOTER ───────────────────── */
/* Apply class="footer__logo-white" to footer <img> */
.footer__logo-white {
  /* REMOVE filter: brightness(0) invert(1); */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); /* Adds subtle depth without hiding color */
  opacity: 1 !important;
  max-width: 160px;
  height: auto;
  display: block;
  margin-bottom: 12px;
}


/* ── HERO SMALL VARIANT ────────────────────────────────────── */
.hero--small .hero-caption {
  bottom: 20px;
}
.hero--small .hero-caption__title { font-size: 1.3rem; }

/* ── HERO CAPTION — SMALL VARIANT (bottom-left, compact) ─────
   Add class="hero-caption hero-caption--sm" to the caption div.
   Used on courses.html and faculty.html landing heroes.
   ──────────────────────────────────────────────────────────── */
.hero-caption--sm {
  max-width: 420px;          /* narrower than full caption */
}
.hero-caption--sm .hero-caption__tag {
  font-size: 0.65rem;
  padding: 3px 11px;
  margin-bottom: 7px;
  letter-spacing: 0.12em;
}
.hero-caption--sm .hero-caption__title {
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);  /* noticeably smaller */
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-caption--sm .hero-caption__desc {
  font-size: 0.80rem;
  line-height: 1.60;
  margin-bottom: 14px;
  max-width: 380px;
  opacity: 0.92;
}
.hero-caption--sm .hero-caption__actions {
  gap: 8px;
}

/* Small button variant — works inside hero-caption--sm */
.btn--sm {
  padding: 7px 16px;
  font-size: 0.78rem;
  border-radius: 8px;
}

@media (max-width: 600px) {
  .hero-caption--sm { max-width: calc(100% - 40px); }
  .hero-caption--sm .hero-caption__title { font-size: 1.1rem; }
  .hero-caption--sm .hero-caption__desc  { font-size: 0.76rem; }
}

/* ============================================================
   CAMPUS TOUR — extracted from index.html
   ============================================================ */
/* ── CAMPUS TOUR ─────────────────────────────────────────── */
  .tour-section{padding:88px 0;background:var(--bg-soft)}
  .tour-intro{text-align:center;max-width:640px;margin:0 auto 48px}
  .tour-featured{display:grid;grid-template-columns:1.15fr 1fr;border-radius:24px;overflow:hidden;box-shadow:0 20px 60px rgba(11,79,138,.15);background:#fff;margin-bottom:22px}
  .tour-featured__img{height:420px;overflow:hidden;position:relative;flex-shrink:0}
  .tour-featured__img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease}
  .tour-featured:hover .tour-featured__img img{transform:scale(1.04)}
  .tour-featured__badge{position:absolute;top:16px;left:16px;background:var(--brand);color:#fff;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;padding:4px 14px;border-radius:100px;z-index:2}
  .tour-featured__body{padding:38px 34px;display:flex;flex-direction:column;justify-content:center}
  .tour-featured__body .stop-tag{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--brand-2);margin-bottom:8px}
  .tour-featured__body h3{font-size:1.4rem;font-weight:800;line-height:1.2;margin-bottom:12px;color:var(--text-main)}
  .tour-featured__body p{font-size:.9rem;line-height:1.78;color:var(--text-body);margin-bottom:12px}
  .tour-featured__list{list-style:none;display:flex;flex-direction:column;gap:8px;margin-top:4px}
  .tour-featured__list li{font-size:.85rem;color:var(--text-body);display:flex;gap:9px;align-items:flex-start}
  .tour-featured__list li::before{content:'✓';color:var(--brand);font-weight:700;flex-shrink:0;margin-top:1px}
  .tour-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:22px}
  .tour-stop{border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 4px 18px rgba(11,79,138,.08);transition:transform .3s ease,box-shadow .3s ease;display:flex;flex-direction:column}
  .tour-stop:hover{transform:translateY(-5px);box-shadow:0 14px 40px rgba(11,79,138,.14)}
  .tour-stop__img{height:205px;overflow:hidden;position:relative;flex-shrink:0}
  .tour-stop__img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}
  .tour-stop:hover .tour-stop__img img{transform:scale(1.07)}
  .tour-stop__num{position:absolute;top:11px;left:11px;width:32px;height:32px;background:var(--brand);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:.82rem;z-index:2}
  .tour-stop__tag{position:absolute;bottom:10px;right:10px;background:rgba(255,255,255,.92);backdrop-filter:blur(4px);color:var(--brand);font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:.07em;padding:3px 10px;border-radius:100px;z-index:2}
  .tour-stop__body{padding:17px 20px 20px;flex:1;display:flex;flex-direction:column}
  .tour-stop__body h4{font-size:.94rem;font-weight:700;color:var(--text-main);margin-bottom:6px}
  .tour-stop__body p{font-size:.82rem;color:var(--text-body);line-height:1.65;flex:1}
  .tour-life{display:grid;grid-template-columns:1fr 1fr;gap:20px}
  .tour-life__item{border-radius:18px;overflow:hidden;position:relative;height:240px;box-shadow:0 4px 16px rgba(11,79,138,.08)}
  .tour-life__item img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}
  .tour-life__item:hover img{transform:scale(1.05)}
  .tour-life__caption{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(to top,rgba(7,55,105,.78),transparent);color:#fff;padding:22px 18px 14px}
  .tour-life__caption strong{display:block;font-size:.9rem;font-weight:700;margin-bottom:3px}
  .tour-life__caption span{font-size:.76rem;opacity:.88}
  @media(max-width:900px){
    .tour-featured{grid-template-columns:1fr}
    .tour-featured__img{height:260px}
    .tour-featured__body{padding:24px}
    .tour-grid{grid-template-columns:1fr 1fr}
    .tour-life{grid-template-columns:1fr}
  }
  @media(max-width:560px){
    .tour-grid{grid-template-columns:1fr}
    .tour-section{padding:56px 0}
  }

/* ============================================================
   HERO SLIDER — extracted from index.html
   ============================================================ */
/* ─── SLIDER CONTAINER ──────────────────────────────────────── */
.hero-slider {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 540px;
  max-height: 860px;
  overflow: hidden;
  background: var(--brand-dark);
}

/* ─── INDIVIDUAL SLIDES ─────────────────────────────────────── */
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}
.slide.active { opacity: 1; }

/* Dark gradient — heavy at bottom for caption readability,
   very light at top so the image breathes */
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 30, 60, 0.82) 0%,
    rgba(5, 30, 60, 0.30) 40%,
    rgba(5, 30, 60, 0.08) 70%,
    transparent 100%
  );
  pointer-events: none;
}

/* ─── CAPTION — bottom-left ─────────────────────────────────── */
.slide-caption {
  position: absolute;
  bottom: 30px;           /* above dots */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  padding: 0 3px;
  z-index: 3;
  text-align: left;

  /* Animate in when slide becomes active */
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  transition: opacity 0.7s ease 0.4s, transform 0.7s ease 0.4s;
}
.slide.active .slide-caption {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.slide-tag {
  display: inline-block;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  font-size: 0.50rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 2px;
}
.slide-title {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 0.75;
  margin-bottom: 2px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
  max-width: 600px;
}
.slide-desc {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.90);
  line-height: 1.00;
  max-width: 520px;
  margin-bottom: 2px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}
.slide-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ─── ARROWS ────────────────────────────────────────────────── */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.slider-arrow:hover {
  background: rgba(255,255,255,0.28);
  transform: translateY(-50%) scale(1.08);
}
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* ─── DOTS ──────────────────────────────────────────────────── */
.slider-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.40);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.slider-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}
.slider-dot:hover { background: rgba(255,255,255,0.75); }

/* ─── COUNTER ───────────────────────────────────────────────── */
.slider-counter {
  position: absolute;
  bottom: 26px;
  right: 28px;
  z-index: 10;
  color: rgba(255,255,255,0.65);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ─── PROGRESS BAR (auto-play indicator) ───────────────────── */
.slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: rgba(255,255,255,0.7);
  z-index: 10;
  transition: width linear;
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-slider { height: 72vh; min-height: 480px; }
  .slide-caption { bottom: 60px; padding: 0 20px; }
  .slide-title { font-size: clamp(1.4rem, 5vw, 1.9rem); max-width: 100%; }
  .slide-desc  { font-size: 0.84rem; }
  .slider-arrow { width: 38px; height: 38px; font-size: 1.3rem; }
  .slider-prev { left: 10px; }
  .slider-next { right: 10px; }
}
@media (max-width: 480px) {
  .hero-slider { height: 65vh; }
  .slide-desc  { display: none; }  /* hide desc on very small screens */
  .slide-actions .btn:last-child { display: none; } /* show only primary btn */
}

/* ============================================================
   14. NEWS PAGE — Cards, Events, Filter, Modal Slider
   ============================================================ */

/* ── CARD IMAGE (single image, no slider on landing) ──────── */
.card-img-wrap {
  flex-shrink: 0;
  overflow: hidden;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.news-card:hover .card-img-wrap img { transform: scale(1.04); }

/* Multi-photo badge shown on card */
.img-count-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-2, #2F7DD1);
  margin-right: 6px;
}

/* Read More link inside card footer */
.read-more-btn {
  font-size: 0.78rem;
  color: var(--brand-2, #2F7DD1);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* ── NEWS CARD BASE ─────────────────────────────────────────── */
.news-card {
  background: #fff;
  border-radius: var(--radius-xl, 20px);
  overflow: hidden;
  box-shadow: var(--shadow, 0 4px 16px rgba(11,79,138,.08));
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: pointer;
  animation: cardIn .4s ease both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 48px rgba(11,79,138,.16);
}
.news-card__body {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}
.news-card__cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-2, #2F7DD1);
}
.news-card__date { font-size: 0.74rem; color: var(--muted, #64748B); }
.news-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main, #0F172A);
  margin-bottom: 8px;
  line-height: 1.35;
}
.news-card__excerpt {
  font-size: 0.85rem;
  color: var(--text-body, #334155);
  line-height: 1.65;
  flex: 1;
}
.news-card__footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border, #E2E8F0);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.news-card__author { font-size: 0.76rem; color: var(--muted, #64748B); }

/* ── FEATURED CARD (spans full width, image left / text right) */
.news-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
}
.news-featured > .card-img-wrap {
  height: 420px;
}
.news-featured .news-card__title { font-size: 1.35rem; }
.news-featured .news-card__excerpt { font-size: 0.92rem; }

/* ── NEWS GRIDS ─────────────────────────────────────────────── */
.news-grid-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ── SKELETON LOADERS ───────────────────────────────────────── */
.news-skeleton {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.skeleton-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.skeleton-img {
  height: 200px;
  background: linear-gradient(90deg,#f0f4f9 25%,#e2e8f0 50%,#f0f4f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.skeleton-body { padding: 20px; }
.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg,#f0f4f9 25%,#e2e8f0 50%,#f0f4f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  margin-bottom: 10px;
}
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w80 { width: 80%; }
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── CATEGORY FILTER PILLS ──────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter-pill {
  padding: 7px 18px;
  border: 1.5px solid var(--border, #E2E8F0);
  border-radius: 100px;
  background: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted, #64748B);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-pill.active,
.filter-pill:hover {
  background: var(--brand, #0B4F8A);
  color: #fff;
  border-color: var(--brand, #0B4F8A);
}

/* ── MODAL SLIDER (only inside article modal) ───────────────── */
#modal-slider {
  position: relative;
  overflow: hidden;
  height: 360px;
  background: #0B4F8A;
}
#modal-slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Full image visible in modal — contain so nothing cropped */
#modal-slides img {
  min-width: 100%;
  height: 100%;
  object-fit: contain;
  background: #071e3d;
  flex-shrink: 0;
  display: block;
}
/* Modal slider arrows — always visible */
#modal-slider .ns-prev,
#modal-slider .ns-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
#modal-slider .ns-prev { left: 12px; }
#modal-slider .ns-next { right: 12px; }
/* Dots */
#modal-slider .ns-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 4;
}
#modal-slider .ns-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s;
}
#modal-slider .ns-dot.active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}
/* Counter */
#modal-slider .ns-counter {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  z-index: 4;
}

/* ── ARTICLE MODAL WRAPPER ──────────────────────────────────── */
.article-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.58);
  z-index: 800;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.article-modal.open { display: flex; }
.article-box {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 700px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  animation: fadeUp .3s ease;
  margin: auto;
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
.article-box__slider {
  position: relative;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}
.article-box__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0,0,0,.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.article-box__body { padding: 28px 32px 32px; }
.article-box__cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-2);
  margin-bottom: 8px;
}
.article-box__title {
  font-family: var(--font-head, 'Georgia', serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
}
.article-box__meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.article-box__content {
  font-size: 0.93rem;
  line-height: 1.85;
  color: var(--text-body, #334155);
}
.article-box__content p { margin-bottom: 14px; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .news-grid-main         { grid-template-columns: 1fr 1fr; }
  .news-featured          { grid-template-columns: 1fr; }
  .news-featured > .card-img-wrap { height: 280px; }
  .events-grid            { grid-template-columns: 1fr; }
  #modal-slider           { height: 280px; }
}
@media (max-width: 600px) {
  .news-grid-main  { grid-template-columns: 1fr; }
  .article-box__body { padding: 20px; }
  .article-box__title { font-size: 1.3rem; }
  #modal-slider    { height: 240px; }
}
