/* ═══════════════════════════════════════════════════════════
   PES Pre-University College — Shared Design System
   Matches research.pes.edu design language exactly
═══════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  /* ── Brand colours ── */
  --brand-navy:       #00377B;
  --brand-orange:     #FF6C00;
  --brand-blue-light: #61B9F0;
  --brand-pale-blue:  #F2F8FD;
  --brand-soft-blue:  #E4F3FD;

  /* ── Gradients ── */
  --primary-gradient: linear-gradient(135deg, #00377B 0%, #0055B3 100%);
  --accent-gradient:  linear-gradient(135deg, #FF6C00 0%, #FF9240 100%);
  --subhead-gradient: linear-gradient(135deg, #61B9F0 0%, #00377B 100%);

  /* ── Semantic colour aliases ── */
  --primary:        #00377B;
  --primary-dark:   #00377B;
  --primary-mid:    #0055B3;
  --primary-light:  #F2F8FD;
  --accent:         #FF6C00;
  --accent-light:   #FF9240;
  --accent-hover:   #e55f00;
  --green:          #16a34a;
  --red:            #e11d48;
  --purple:         #9333ea;

  /* ── Text ── */
  --text-primary:   #0D1B2A;
  --text-secondary: #2E4A6B;
  --text-tertiary:  #7B9BBF;

  /* ── Backgrounds ── */
  --bg-primary:     #ffffff;
  --bg-secondary:   #F0F0ED;
  --bg-tertiary:    #F2F8FD;
  --bg-base:        #F0F0ED;
  --bg-surface:     #ffffff;

  /* ── Borders ── */
  --border-color:   #D3E4F2;
  --border-light:   #E4F3FD;

  /* ── Shadows ── */
  --shadow-xs:  0 1px 2px rgba(0,55,123,.06);
  --shadow-sm:  0 2px 8px rgba(0,55,123,.06);
  --shadow-md:  0 8px 24px rgba(0,55,123,.10);
  --shadow-lg:  0 16px 48px rgba(0,55,123,.14);
  --shadow-xl:  0 24px 64px rgba(0,55,123,.18);

  /* ── Radius ── */
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  /* ── Typography ── */
  --font-title: "Merriweather", serif;
  --font-body:  "Noto Sans", sans-serif;

  /* ── Layout ── */
  --topbar-h:   40px;
  --header-h:   74px;
  --nav-total:  calc(var(--topbar-h) + var(--header-h));
  --container:  1240px;

  /* ── Motion ── */
  --transition: all .3s ease;
  --blur-amount: 20px;
}

/* Dark theme */
[data-theme="dark"] {
  --primary-light:  #1e3a5f;
  --brand-pale-blue: #1e3a5f;
  --brand-soft-blue: #172d50;
  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary:  #64748b;
  --bg-primary:     #0f172a;
  --bg-secondary:   #141f35;
  --bg-tertiary:    #1e2d45;
  --bg-base:        #0f172a;
  --bg-surface:     #1e293b;
  --border-color:   #334155;
  --border-light:   #1e293b;
}

/* ══════════════════════════════════════════════════════
   DARK MODE — comprehensive component overrides
══════════════════════════════════════════════════════ */
[data-theme="dark"] body { background: var(--bg-base); color: var(--text-primary); }

/* Sections — alternate light/dark backgrounds for contrast */
[data-theme="dark"] .ix-section                { background: #0f172a; }
[data-theme="dark"] .ix-section:nth-child(even) { background: #141f35; }
[data-theme="dark"] .ix-section.alt-bg          { background: #141f35; }

/* Section headings */
[data-theme="dark"] .ix-section-title  { color: #e2e8f0; }
[data-theme="dark"] .ix-section-label  { color: #fbbf24; }

/* ── Explore cards ── */
[data-theme="dark"] .ix-explore-card {
  background: #1e2d45;
  border-color: #2d4060;
}
[data-theme="dark"] .ix-explore-card:hover { border-color: #4a7ab5; }
[data-theme="dark"] .ix-explore-card.featured { border-color: #4a7ab5; }
[data-theme="dark"] .ix-explore-icon {
  background: var(--primary-gradient);
  border: 1px solid #2d4060;
}
[data-theme="dark"] .ix-explore-icon i    { color: #fff; }
[data-theme="dark"] .ix-explore-title     { color: #e2e8f0; }
[data-theme="dark"] .ix-explore-desc      { color: #94a3b8; }
[data-theme="dark"] .ix-explore-link      { color: #61afef; }
[data-theme="dark"] .ix-explore-link:hover { color: #fbbf24; }
[data-theme="dark"] .ix-explore-links a   { color: #61afef; }
[data-theme="dark"] .ix-explore-links a:hover { color: #fbbf24; }

/* ── News cards ── */
[data-theme="dark"] .ix-news-card {
  background: #1e2d45;
  border-color: #2d4060;
}
[data-theme="dark"] .ix-news-card:hover  { border-color: #4a7ab5; }
[data-theme="dark"] .ix-news-title       { color: #e2e8f0; }
[data-theme="dark"] .ix-news-date        { color: #64748b; }
[data-theme="dark"] .ix-news-read        { color: #61afef; }
[data-theme="dark"] .ix-news-card:hover .ix-news-read { color: #fbbf24; }

/* ── Service cards (Quick Links section) ── */
[data-theme="dark"] .svc-card {
  background: #1e2d45;
  border-color: #2d4060;
}
[data-theme="dark"] .svc-card:hover  { border-color: #4a7ab5; }
[data-theme="dark"] .svc-icon        { background: var(--primary-gradient); color: #fff; }
[data-theme="dark"] .svc-title       { color: #e2e8f0; }
[data-theme="dark"] .svc-desc        { color: #94a3b8; }
[data-theme="dark"] .svc-link        { color: #61afef; }
[data-theme="dark"] .svc-link:hover  { color: #fbbf24; }

/* ── Inner page cards ── */
[data-theme="dark"] .pg-card,
[data-theme="dark"] .pg-sidebar       { background: #1e2d45; border-color: #2d4060; }
[data-theme="dark"] .pg-split         { background: #1e2d45; border-color: #2d4060; }
[data-theme="dark"] .pg-callout       { background: rgba(97,175,239,.08); border-color: #2d4060; border-left-color: #fbbf24; }
[data-theme="dark"] .pg-feature-list li { border-color: #2d4060; color: #94a3b8; }
[data-theme="dark"] .pg-hero          { background: linear-gradient(135deg, #001833 0%, #002d6b 100%); }
[data-theme="dark"] .pg-section-title { color: #e2e8f0; }
[data-theme="dark"] .pg-lead          { color: #94a3b8; }
[data-theme="dark"] .pg-sidebar-title { color: #e2e8f0; }
[data-theme="dark"] .pg-sidebar-nav a { color: #94a3b8; }
[data-theme="dark"] .pg-sidebar-nav a:hover,
[data-theme="dark"] .pg-sidebar-nav a.active { color: #61afef; background: rgba(97,175,239,.08); }

/* ── About band ── */
[data-theme="dark"] .ix-about-band { background: linear-gradient(135deg, #001428 0%, #001e4a 60%, #002966 100%); }

/* ── Mega menu ── */
[data-theme="dark"] .mega-wrap .mega-inner { background: #1a2640; border-color: #2d4060; box-shadow: 0 8px 40px rgba(0,0,0,.5); }
[data-theme="dark"] .mega-item:hover        { background: #22334f; }
[data-theme="dark"] .mega-item-name         { color: #e2e8f0; }
[data-theme="dark"] .mega-item-desc         { color: #64748b; }
[data-theme="dark"] .mega-label             { color: #61afef; border-bottom-color: #2d4060; }

/* ── Buttons ── */
[data-theme="dark"] .btn-outline { border-color: #4a7ab5; color: #90c6ff; }
[data-theme="dark"] .btn-outline:hover { background: #1e2d45; color: #fff; }
[data-theme="dark"] .btn-primary-solid { background: linear-gradient(135deg, #1a56db, #1e3a8a); }

/* ── Footer ── */
[data-theme="dark"] .ft-nav-link         { color: #7b96b4; }
[data-theme="dark"] .ft-nav-link:hover   { color: #fff; }
[data-theme="dark"] .ft-contact-list a   { color: #90c6ff; }
[data-theme="dark"] .ft-bottom-links a   { color: #7b96b4; }
[data-theme="dark"] .ft-bottom-links a:hover { color: #fff; }

/* ── Stats strip (on hero) ── */
[data-theme="dark"] .ix-stats-strip  { background: rgba(0,5,25,.6); }
[data-theme="dark"] .ix-tagline-bar  { background: rgba(0,20,60,.5); }

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── ANIMATED BACKGROUND ── */
.bg-elements {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .035;
  animation: blobFloat 20s ease-in-out infinite alternate;
}
.blob-1 { width: 700px; height: 700px; background: #3b82f6; top: -200px; left: -150px; }
.blob-2 { width: 500px; height: 500px; background: var(--accent); bottom: -100px; right: -100px; animation-delay: 7s; }
.blob-3 { width: 400px; height: 400px; background: #8b5cf6; top: 40%; left: 50%; animation-delay: 14s; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,55,123,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,55,123,.025) 1px, transparent 1px);
  background-size: 60px 60px;
}
@keyframes blobFloat {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(40px,30px) scale(1.06); }
}

/* ════════════════════════════════
   TOP BAR
════════════════════════════════ */
.site-topbar {
  position: sticky; top: 0; z-index: 600;
  background: var(--primary-dark);
  height: var(--topbar-h);
  transition: transform .35s ease;
}
.site-topbar-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 1.5rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.topbar-back {
  display: flex; align-items: center; gap: .35rem;
  font-size: .73rem; font-weight: 600; letter-spacing: .02em;
  color: rgba(255, 255, 255, .72); transition: color .2s;
}
.topbar-back:hover { color: #fff; }
.topbar-links { display: flex; align-items: center; gap: .2rem; }
.topbar-links a {
  display: flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 500; color: rgba(255,255,255,.65);
  padding: .22rem .65rem; border-radius: 4px; transition: var(--transition);
}
.topbar-links a:hover { color: #fff;  }
.topbar-sep { width: 1px; height: 14px; background: rgba(255,255,255,.2); margin: 0 .2rem; }
.topbar-cta {
  background: var(--accent) !important; color: #fff !important;
  padding: .25rem .9rem !important; border-radius: 20px !important;
  font-weight: 700 !important; font-size: .72rem !important; letter-spacing: .04em;
  gap: .35rem !important; transition: background .2s !important;
}
.topbar-cta:hover { background: var(--accent-hover) !important; }

/* ════════════════════════════════
   STICKY HEADER
════════════════════════════════ */
.light-header {
  position: sticky; top: var(--topbar-h); z-index: 590;
  background: rgba(255,255,255,.93); backdrop-filter: blur(16px) saturate(1.8);
  border-bottom: 1px solid var(--border-color);
  transition: transform .35s ease, box-shadow .3s;
}
[data-theme="dark"] .light-header { background: rgba(15,23,42,.93); }
.light-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; 
  height: var(--header-h); display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem;
}

/* Logo */
.logo-theme-wrapper { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.logo-anchor { display: block; }
.logo-anchor img { height: 54px; width: auto; }

/* ── Dual-logo: light / dark mode swap ── */
.hdr-logo--light  { display: block; }
.hdr-logo--dark   { display: none; }
[data-theme="dark"] .hdr-logo--light { display: none; }
[data-theme="dark"] .hdr-logo--dark  { display: block; }
.theme-toggle-btn {
  width: 44px; height: 44px; border-radius: var(--radius-md); cursor: pointer;
  background: rgba(255,255,255,.93); border: 2px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); transition: var(--transition);
}
.theme-toggle-btn:hover { background: var(--primary); color: #fff; }
.theme-icon { font-size: .85rem; }

/* Desktop nav */
.top-menu {
  display: flex; align-items: center; gap: .1rem;
  flex: 1; justify-content: center;
}
.menu-link {
  font-size: .875rem; font-weight: 600; color: var(--text-secondary);
  padding: .5rem 1rem; border-radius: var(--radius-sm);
  transition: var(--transition); letter-spacing: .01em; white-space: nowrap;
  position: relative;
}
.menu-link:hover { color: #ffffff; background: var(--primary-gradient); }
.menu-link.active {
  color: #fff; background: var(--primary-gradient);
}

/* ════ ABOUT DROPDOWN — clubs.pes.edu full-width banner style ════ */
.menu-has-dropdown { position: static; }
.menu-has-dropdown > .menu-link { display: flex; align-items: center; gap: .3rem; cursor: pointer; }
.menu-has-dropdown > .menu-link::after {
  content: ''; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .2s; display: inline-block; margin-left: 2px;
}
.menu-has-dropdown.open > .menu-link::after { transform: rotate(-135deg) translateY(-2px); }

/* Full-width panel — fixed below the sticky header, spans 100vw */
.mega-wrap {
  display: none;
  position: fixed;
  top: calc(var(--topbar-h, 40px) + var(--header-h, 74px));
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 6px 32px rgba(0,0,0,.10);
  margin-top: -40px;
}
.menu-has-dropdown.open .mega-wrap { display: block; animation: megaFade .18s ease; }
@keyframes megaFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Inner container — max-width centred, matches page layout */
.mega-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header row: orange icon + title + subtitle + close button */
.mega-panel-head {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.15rem 0 1rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}
.mega-panel-icon {
  width: 42px; height: 42px; border-radius: var(--radius-md);
  background: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mega-panel-icon i { color: #fff; font-size: 1.1rem; }
.mega-panel-title  { font-size: .67rem; font-weight: 700; color: var(--text-tertiary); letter-spacing: .14em; text-transform: uppercase; }
/* Close button ✕ */
.mega-close-btn {
  margin-left: auto;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: var(--bg-surface);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  color: var(--text-secondary);
  font-size: .85rem;
  transition: background .15s, color .15s;
}
.mega-close-btn:hover { background: var(--primary-light); color: var(--primary); }

/* Card grid — research.pes.edu style */
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  padding: .85rem 0 1.25rem;
}

/* Each card */
.mega-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .9rem 1rem;
  text-decoration: none;
  cursor: pointer;
}
.mega-item:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  border-radius: var(--radius-md, 10px);
  border: 1.5px solid var(--border-color);
}
.mega-item.active {
  background: var(--primary-light);
  border-color: var(--primary);
}

/* Colored square icon */
.mega-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mega-icon i { font-size: .95rem; }

/* Text */
.mega-item-name {
  font-size: .88rem; font-weight: 600;
  color: var(--text-primary); line-height: 1.3;
  margin-bottom: .15rem;
}
.mega-item-desc {
  display: block;
  font-size: .75rem; color: var(--text-secondary); line-height: 1.4;
}
.mega-item:hover .mega-item-name { color: var(--primary-mid); }

/* Dark mode */
[data-theme="dark"] .mega-wrap {
  background: var(--bg-surface);
  border-color: var(--border-color);
  box-shadow: 0 6px 32px rgba(0,0,0,.4);
}
[data-theme="dark"] .mega-item { border-color: var(--border-color); }
[data-theme="dark"] .mega-item:hover { background: rgba(0,55,123,.3); border-color: #00377B; }
[data-theme="dark"] .mega-item-name { color: #e2e8f0; }
[data-theme="dark"] .mega-item-desc { color: #64748b; }
[data-theme="dark"] .mega-close-btn { background: var(--bg-surface); }

/* Hamburger */
.mobile-menu-toggle {
  display: none; background: none; border: 1px solid var(--border-color);
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  cursor: pointer; align-items: center; justify-content: center;
  color: var(--text-primary); font-size: 1.15rem; flex-shrink: 0;
}

/* ════════════════════════════════
   MOBILE MENU — research.pes.edu card style
════════════════════════════════ */
.mobile-dropdown {
  display: none;
  position: fixed;
  top: calc(var(--topbar-h, 40px) + var(--header-h, 74px));
  left: 0; right: 0; bottom: 0;
  z-index: 580;
  background: var(--bg-base);
  border-top: 1px solid var(--border-color);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
  -webkit-overflow-scrolling: touch;
}
.mobile-dropdown.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Wrapper */
.mob-nav-wrap {
  padding: .9rem .9rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Top-level card ── */
.mob-nav-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  font-size: .97rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  width: 100%;
  text-align: left;
}
.mob-nav-card:hover,
.mob-nav-card:focus-visible {
  background: var(--primary-light);
  border-color: var(--primary-mid);
  color: var(--primary);
}
.mob-nav-card.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff !important;
  font-weight: 700;
}
.mob-nav-card--secondary {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
  font-size: .9rem;
  padding: .75rem 1.15rem;
}
.mob-nav-card--secondary:hover {
  background: var(--primary-light);
  border-color: var(--border-color);
  color: var(--primary);
}
.mob-nav-card-label { pointer-events: none; }

/* Dark mode cards */
[data-theme="dark"] .mob-nav-card {
  background: var(--bg-surface);
  border-color: var(--border-color);
}
[data-theme="dark"] .mob-nav-card:hover {
  background: rgba(0,55,123,.3);
  border-color: #00377B;
  color: #90c6ff;
}
[data-theme="dark"] .mob-nav-card.active {
  background: var(--primary);
  color: #fff !important;
}

/* ── Accordion block ── */
.mob-acc-block { display: flex; flex-direction: column; gap: 0; }

/* When expanded — trigger turns navy */
.mob-acc-trigger {
  border-radius: 14px;
  transition: background .2s, border-color .2s, color .2s, border-radius .2s;
}
.mob-acc-trigger[aria-expanded="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff !important;
  border-radius: 14px 14px 0 0;
}
.mob-acc-trigger[aria-expanded="true"] .mob-acc-caret {
  color: rgba(255,255,255,.7);
}

/* Caret */
.mob-acc-caret {
  font-size: .7rem;
  color: var(--text-tertiary);
  transition: transform .25s ease;
  flex-shrink: 0;
  pointer-events: none;
}
.mob-acc-trigger[aria-expanded="true"] .mob-acc-caret {
  transform: rotate(180deg);
}

/* ── Sub-panel (slides in) ── */
.mob-acc-panel {
  display: none;
  flex-direction: column;
  gap: 3px;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-top: none;
  border-radius: 0 0 14px 14px;
  padding: .55rem .55rem .65rem;
  overflow: hidden;
}
.mob-acc-panel.open { display: flex; }

/* Sub item row */
.mob-sub-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .75rem;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255,255,255,.88);
  font-size: .88rem;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.mob-sub-item:hover {
  background: rgba(255,255,255,.13);
  color: #fff;
}

/* Colored icon square (like mega menu) */
.mob-sub-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: .88rem;
}
.mob-sub-label { pointer-events: none; }

/* Divider */
.mob-divider {
  height: 1px;
  background: var(--border-color);
  margin: .4rem 0;
  border-radius: 1px;
}

/* Apply Now CTA */
.mob-apply-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--accent);
  color: #fff !important;
  padding: .95rem 1rem;
  border-radius: 14px;
  font-size: .95rem;
  font-weight: 700;
  margin-top: .5rem;
  text-decoration: none;
  transition: background .2s, transform .1s;
  letter-spacing: .01em;
}
.mob-apply-btn:hover {
  background: #b45309;
  transform: translateY(-1px);
}

/* Active page highlight for nav cards */
body[data-page="home"]        .mob-nav-card[data-page="home"],
body[data-page="programs"]    .mob-nav-card[data-page="programs"],
body[data-page="admissions"]  .mob-nav-card[data-page="admissions"],
body[data-page="campus-life"] .mob-nav-card[data-page="campus-life"],
body[data-page="contact"]     .mob-nav-card[data-page="contact"],
body[data-page="about"]       .mob-acc-trigger {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff !important;
  font-weight: 700;
}

/* ════════════════════════════════
   HERO (Home full slider)
════════════════════════════════ */
.ix-hero {
  position: relative; min-height: 700px;
  display: flex; flex-direction: column; overflow: hidden;
}
.ix-bg-slider { position: absolute; inset: 0; z-index: 0; }
.ix-bg-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.ix-bg-slide.active { opacity: 1; }
.ix-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(0,21,63,.85) 0%, rgba(0,55,123,.72) 55%, rgba(0,85,179,.55) 100%);
}
.ix-hero-content {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem 1.5rem 2rem;
}
.ix-hero-inner { max-width: var(--container); margin: 0 auto; width: 100%;  }
.ix-eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: .3rem 1rem; border-radius: 20px;
  font-size: .73rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: 1rem;
}
.ix-hero-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(2rem, 5.5vw, 3.6rem); font-weight: 900; line-height: 1.15;
  color: #fff; text-shadow: 0 2px 32px rgba(0,0,0,.4); margin-bottom: .85rem;
}
.ix-hero-desc {
  font-size: 1.1rem; color: rgba(255,255,255,.82);
  font-weight: 300; max-width: 540px; margin-bottom: 2rem; line-height: 1.7;
}
.ix-hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.ix-hero-btn-primary {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--accent); color: #fff;
  padding: .8rem 1.9rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .92rem; transition: var(--transition); border: 2px solid var(--accent);
}
.ix-hero-btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(217,119,6,.45); color: #fff; }
.ix-hero-btn-outline {
  display: inline-flex; align-items: center; gap: .45rem;
  background: transparent; color: #fff;
  padding: .8rem 1.9rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .92rem; transition: var(--transition);
  border: 2px solid rgba(255,255,255,.45);
}
.ix-hero-btn-outline:hover { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }

/* Slider dots */
.ix-dots { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: .55rem; align-items: center; }
.ix-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.35); border: none; cursor: pointer;
  transition: all .3s; padding: 0;
}
.ix-dot.active { background: #fff; transform: scale(1.3); }

/* Stats strip (research-style inside-hero bottom strip) */
.ix-stats-strip {
  position: relative; z-index: 3;
  background: rgba(0,22,64,.85); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.1);
}
.ix-stats-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; flex-wrap: wrap;
}
.ix-stat {
  display: flex; align-items: center; gap: .85rem;
  padding: 1.2rem 2rem; flex: 1; min-width: 160px;
  border-right: 1px solid rgba(255,255,255,.1); cursor: default;
  transition: background .2s;
}
.ix-stat:last-child { border-right: none; }
.ix-stat:hover { background: rgba(255,255,255,.06); }
.ix-stat a { text-decoration: none; display: flex; align-items: center; gap: .85rem; color: #fff; }
.ix-stat-icon { font-size: 1.5rem; color: rgba(255,255,255,.7); flex-shrink: 0; }
.ix-stat-num { font-family: 'Merriweather', serif; font-size: 1.6rem; font-weight: 900; color: var(--accent-light); line-height: 1; }
.ix-stat-lbl { font-size: .8rem; font-weight: 700; color: #fff; margin-top: .2rem; }
.ix-stat-sub { font-size: .7rem; color: rgba(255,255,255,.55); margin-top: .1rem; }
.ix-stat-divider { width: 1px; background: rgba(255,255,255,.1); align-self: stretch; }

/* Tagline bar */
.ix-tagline-bar {
  position: relative; z-index: 3;
  background: var(--primary-light); border-top: 1px solid rgba(0,55,123,.1);
  padding: .85rem 1.5rem;
}
[data-theme="dark"] .ix-tagline-bar { background: rgba(0,55,123,.2); }
.ix-tagline-inner { max-width: var(--container); margin: 0 auto; }
.ix-tagline-inner p { font-size: .9rem; color: var(--primary); font-weight: 500; text-align: center; }
.ix-highlight { color: var(--accent); font-weight: 700; }

/* ════════════════════════════════
   PAGE HERO (inner pages — research.pes.edu pg-hero style)
════════════════════════════════ */
.pg-hero {
  position: relative; padding: 3.5rem 1.5rem 2rem;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-mid) 100%);
  overflow: hidden;
  border-bottom: 5px solid var(--brand-orange);
  min-height: 250px;
  display: flex;
  align-items: center;
}
.pg-hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pg-hero-inner { position: relative; z-index: 2; max-width: var(--container); margin: 0 auto; width: 100%; }
.pg-eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: .65rem;
  background: rgba(255,255,255,.08); padding: .25rem .8rem; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.15);
}
.pg-hero-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.9rem, 3vw, 2.75rem); font-weight: 900; color: #fff;
  line-height: 1.18; margin-bottom: .4rem;
}
.pg-hero-subtitle { font-size: .95rem; color: rgba(255,255,255,.72); margin-bottom: .75rem; font-weight: 400; }
.pg-hero-line { width: 54px; height: 4px; background: var(--accent); border-radius: 2px; margin-top: .85rem; }
/* Decorative right icon */
.pg-hero-right-icon {
  position: absolute; right: 10%; top: 50%; transform: translateY(-50%);
  font-size: 8rem; color: rgba(255,255,255,.06); pointer-events: none;
  line-height: 1;
}

/* ── Breadcrumb ── */
.pg-breadcrumb {
  background: var(--bg-surface); border-bottom: 1px solid var(--border-color);
  padding: .6rem 1.5rem; position: relative; z-index: 1;
}
.pg-breadcrumb-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; gap: .5rem;
  font-size: .77rem; color: var(--text-secondary);
}
.pg-breadcrumb-inner a { color: var(--primary); font-weight: 600; }
.pg-breadcrumb-inner a:hover { text-decoration: underline; }
.pg-breadcrumb-inner i { font-size: .62rem; color: var(--text-tertiary); }

/* ════════════════════════════════
   SECTION CONTAINERS
════════════════════════════════ */
.ix-section { padding: 4.5rem 1.5rem; position: relative; z-index: 1; }
.ix-section.alt-bg { background: var(--primary-light); }
[data-theme="dark"] .ix-section.alt-bg { background: rgba(0,55,123,.1); }
.ix-container { max-width: var(--container); margin: 0 auto; width: 100%; }

/* Section heading */
.ix-section-head { margin-bottom: 2.5rem; }
.ix-section-label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); margin-bottom: .5rem;
}
.ix-section-label::before { content: ''; width: 20px; height: 3px; background: var(--accent); border-radius: 2px; }
.ix-section-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.65rem, 3.2vw, 2.2rem); font-weight: 700;
  color: var(--primary); line-height: 1.22;
}

/* ── Explore grid ── */
.ix-explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ix-explore-card {
  background: var(--bg-surface); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 2rem 1.85rem;
  transition: var(--transition); position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ix-explore-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--border-color); transition: background .3s;
}
.ix-explore-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.ix-explore-card:hover::before, .ix-explore-card.featured::before { background: var(--primary); }
.ix-explore-card.featured { border-top-color: var(--primary); border-color: rgba(0,55,123,.2); }
.ix-explore-icon {
  width: 54px; height: 54px; background: var(--primary-gradient); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
}
.ix-explore-icon i { font-size: 1.45rem; color: #fff; }
.ix-explore-title { font-family: 'Merriweather', serif; font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: .65rem; }
.ix-explore-desc { font-size: .88rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 1rem; }
.ix-explore-link { font-size: .83rem; font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: .25rem; transition: color .2s; }
.ix-explore-link:hover { color: var(--accent); }
.ix-explore-links { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.ix-explore-links a { font-size: .83rem; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: .3rem; transition: color .2s; }
.ix-explore-links a:hover { color: var(--accent); }

/* ── About band ── */
.ix-about-band {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 4rem 1.5rem; position: relative; z-index: 1; overflow: hidden;
}
.ix-about-bg { position: absolute; inset: 0; }
.hero-shape { position: absolute; border-radius: 50%; opacity: .06; }
.shape-1 { width: 700px; height: 700px; background: #fff; top: -250px; right: -200px; }
.shape-2 { width: 350px; height: 350px; background: var(--accent); bottom: -100px; left: 60px; }
.ix-about-inner { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 260px 1fr; gap: 3.5rem; align-items: center; position: relative; z-index: 1; }
.ix-about-eyebrow { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-light); display: flex; align-items: center; gap: .4rem; margin-bottom: .5rem; }
.ix-about-title { font-family: 'Merriweather', serif; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 900; color: #fff; margin-bottom: 1rem; }
.ix-about-line { width: 50px; height: 4px; background: var(--accent); border-radius: 2px; }
.ix-about-lead { font-size: 1.05rem; color: rgba(255,255,255,.92); line-height: 1.8; font-weight: 400; margin-bottom: .75rem; }
.ix-about-body { font-size: .9rem; color: rgba(255,255,255,.72); line-height: 1.8; margin-bottom: 1.5rem; }
.btn-primary-solid {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--accent); color: #fff;
  padding: .7rem 1.65rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .9rem; transition: var(--transition);
}
.btn-primary-solid:hover { background: var(--accent-hover); transform: translateX(3px); color: #fff; }

/* ── News grid ── */
.ix-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ix-news-card {
  background: var(--bg-surface); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); overflow: hidden; transition: var(--transition);
  box-shadow: var(--shadow-sm); display: block; color: inherit;
}
.ix-news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: rgba(0,55,123,.2); }
.ix-news-img-wrap { position: relative; height: 200px; overflow: hidden; }
.ix-news-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.ix-news-card:hover .ix-news-img { transform: scale(1.07); }
.ix-news-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,22,63,.45), transparent); }
.ix-news-body { padding: 1.15rem 1.3rem 1.35rem; }
.ix-news-date { font-size: .73rem; color: var(--text-tertiary); margin-bottom: .45rem; display: flex; align-items: center; gap: .35rem; }
.ix-news-title { font-family: 'Merriweather', serif; font-size: .9rem; font-weight: 700; color: var(--text-primary); line-height: 1.45; margin-bottom: .5rem; }
.ix-news-excerpt { font-size: .82rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: .75rem; }
.ix-news-read { font-size: .8rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: .2rem; }
.ix-news-footer { text-align: right; margin-top: 1.75rem; }

/* ── Buttons ── */
.btn-outline {
  display: inline-flex; align-items: center; gap: .45rem;
  background: transparent; color: var(--primary);
  padding: .65rem 1.5rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .87rem; transition: var(--transition);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ════════════════════════════════
   INNER PAGE CONTENT
════════════════════════════════ */
.pg-section { padding: 3.5rem 1.5rem; position: relative; z-index: 1; }
.pg-container { max-width: var(--container); margin: 0 auto; }

/* Content typography */
.pg-content-title {
  font-family: 'Merriweather', serif; font-size: 1.28rem; font-weight: 700;
  color: var(--primary); margin: 2.25rem 0 .8rem;
  display: flex; align-items: center; gap: .6rem;
}
.pg-content-title:first-child { margin-top: 0; }
.pg-body { font-size: .93rem; color: var(--text-secondary); line-height: 1.82; margin-bottom: 1.05rem; }

/* Callout */
.pg-callout {
  background: var(--primary-light); border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.15rem 1.35rem; display: flex; gap: 1rem; align-items: flex-start;
  margin: 1.35rem 0;
}
.pg-callout-icon { font-size: 1.4rem; color: var(--primary); flex-shrink: 0; margin-top: .1rem; }
.pg-callout-title { font-weight: 700; font-size: .93rem; color: var(--primary); margin-bottom: .3rem; }
.pg-callout-text { font-size: .86rem; color: var(--text-secondary); line-height: 1.7; }
.pg-callout-text a { color: var(--primary); font-weight: 600; }

/* Icon list */
.pg-icon-list { list-style: none; display: flex; flex-direction: column; gap: .75rem; margin: 1rem 0; }
.pg-icon-list li { display: flex; align-items: flex-start; gap: .75rem; font-size: .92rem; color: var(--text-secondary); line-height: 1.65; }
.pg-icon-list li i { color: var(--primary); font-size: 1rem; flex-shrink: 0; margin-top: .18rem; }

/* Two-column list */
.pg-list-2col { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 2rem; }

/* Sidebar */
.pg-sidebar {
  background: var(--bg-surface); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 1.6rem; box-shadow: var(--shadow-sm);
  position: sticky; top: calc(var(--nav-total) + 1.5rem);
}
.pg-sidebar-title { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: .8rem; }
.pg-sidebar-nav { list-style: none; display: flex; flex-direction: column; gap: .15rem; }
.pg-sidebar-nav a {
  display: flex; align-items: center; gap: .5rem;
  font-size: .84rem; font-weight: 500; color: var(--text-secondary);
  padding: .45rem .65rem; border-radius: var(--radius-sm); transition: var(--transition);
}
.pg-sidebar-nav a:hover, .pg-sidebar-nav a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.pg-sidebar-nav a i { font-size: .68rem; }
.pg-sidebar-divider { height: 1px; background: var(--border-color); margin: 1.1rem 0; }
.pg-sidebar-cta {
  display: flex; align-items: center; gap: .5rem; justify-content: center;
  background: var(--primary); color: #fff;
  padding: .65rem 1rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .85rem; transition: var(--transition); margin-bottom: .6rem;
}
.pg-sidebar-cta:hover { background: var(--primary-dark); color: #fff; }
.pg-sidebar-cta-outline {
  display: flex; align-items: center; gap: .5rem; justify-content: center;
  background: transparent; color: var(--primary);
  padding: .6rem 1rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .85rem; transition: var(--transition);
  border: 2px solid var(--primary);
}
.pg-sidebar-cta-outline:hover { background: var(--primary); color: #fff; }

/* Contact grid */
.pg-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.pg-contact-card {
  background: var(--bg-surface); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 1.85rem 1.5rem; text-align: center;
  transition: var(--transition); box-shadow: var(--shadow-sm);
}
.pg-contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pg-contact-icon {
  width: 54px; height: 54px; background: var(--primary-gradient); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: var(--bg-base); margin: 0 auto .95rem;
}
.pg-contact-title { font-weight: 700; font-size: 1rem; color: var(--text-primary); margin-bottom: .4rem; }
.pg-contact-desc { font-size: .84rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: .65rem; }
.pg-contact-value a { color: var(--primary); font-weight: 600; font-size: .9rem; }
.pg-contact-value a:hover { color: var(--accent); }

/* Map */
.pg-map-wrap { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); }
.pg-map-wrap iframe { width: 100%; height: 440px; display: block; border: none; }

/* ════════════════════════════════
   FACILITY SERVICE CARDS (Campus Life, Research)
════════════════════════════════ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.svc-card {
  background: var(--bg-surface); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 2.25rem 1.75rem; text-align: center;
  transition: var(--transition); box-shadow: var(--shadow-sm);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: rgba(0,55,123,.15); }
.svc-icon {
  width: 68px; height: 68px; border-radius: 50%; background: var(--primary-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: #fff; margin: 0 auto 1.35rem;
}
.svc-title { font-family: 'Merriweather', serif; font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: .6rem; }
.svc-desc { font-size: .87rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 1rem; }
.svc-link { font-size: .83rem; font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: .3rem; transition: color .2s; }
.svc-link:hover { color: var(--accent); }

/* Instruments grid */
.inst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.inst-item {
  background: var(--bg-surface); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); padding: .9rem 1.1rem;
  display: flex; align-items: center; gap: .75rem;
  font-size: .87rem; color: var(--text-secondary);
  transition: var(--transition); box-shadow: var(--shadow-xs);
}
.inst-item:hover { background: var(--primary-light); color: var(--primary); border-color: rgba(0,55,123,.2); }
.inst-item i { color: var(--primary); font-size: .9rem; flex-shrink: 0; }

/* ════════════════════════════════
   FOOTER — PT style (dark navy)
════════════════════════════════ */
.site-footer {
  background: linear-gradient(160deg, #001230 0%, #002060 55%, #001840 100%);
  color: rgba(255,255,255,.72);
  padding: 0;
}

/* ── Main body ── */
.ft-body { padding: 3.5rem 0 3rem; }
.ft-body-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 4rem;
  align-items: start;
}

/* ── Brand column ── */
.ft-col--brand .ft-logo-wrap { margin-bottom: 1rem; }
.ft-logo { height: 52px; width: auto; }
.ft-brand-tag {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  color: var(--brand-orange); text-transform: uppercase;
  margin-bottom: 1.1rem; line-height: 1.4;
}
.ft-addr {
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: .85rem; color: rgba(255,255,255,.65); margin-bottom: .75rem; line-height: 1.6;
}
.ft-addr i { color: var(--brand-orange); font-size: .85rem; margin-top: .2rem; flex-shrink: 0; }
.ft-addr a { color: rgba(255,255,255,.65); }
.ft-addr a:hover { color: #fff; }

/* Square social icons */
.ft-social-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.ft-social-row a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .88rem; color: rgba(255,255,255,.6);
  transition: var(--transition);
}
.ft-social-row a:hover { background: var(--brand-orange); color: #fff; border-color: var(--brand-orange); }

/* ── Column head with orange dot ── */
.ft-col-head {
  display: flex; align-items: center; gap: .55rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #fff; margin-bottom: 1.25rem;
}
.ft-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-orange); flex-shrink: 0;
}

/* ── Quick links nav ── */
.ft-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.ft-nav a {
  display: flex; align-items: center; gap: .5rem;
  font-size: .86rem; color: rgba(255,255,255,.6);
  transition: var(--transition); text-decoration: none;
}
.ft-sq {
  display: inline-block; width: 6px; height: 6px;
  background: var(--brand-blue-light); flex-shrink: 0;
  transition: background .18s;
}
.ft-nav a:hover { color: #fff; }
.ft-nav a:hover .ft-sq { background: var(--brand-orange); }

/* ── Contact list ── */
.ft-contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: .85rem; }
.ft-contact-list li { display: flex; align-items: center; gap: .85rem; }
.ft-ci-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; color: var(--brand-orange); flex-shrink: 0;
}
.ft-ci-icon--mail  { color: #e11d48; }
.ft-ci-icon--globe { color: var(--brand-blue-light); }
.ft-contact-list a { font-size: .86rem; color: rgba(255,255,255,.65); transition: var(--transition); }
.ft-contact-list a:hover { color: #fff; }

/* ── Get in Touch button ── */
.ft-touch-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent-gradient);
  color: #fff; font-size: .84rem; font-weight: 700;
  padding: .65rem 1.5rem; border-radius: 8px;
  transition: var(--transition); text-decoration: none;
}
.ft-touch-btn:hover { opacity: .9; transform: translateY(-1px); color: #fff; }

/* ── Tags bar ── */
.ft-tags-bar { border-top: 1px solid rgba(255,255,255,.08); padding: 1rem 0; }
.ft-tags-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.ft-tags-label {
  display: flex; align-items: center; gap: .5rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  color: rgba(255,255,255,.5); text-transform: uppercase; white-space: nowrap;
}
.ft-tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.ft-tags a {
  font-size: .72rem; color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  padding: .25rem .75rem; border-radius: 50px;
  transition: var(--transition); text-decoration: none;
}
.ft-tags a:hover { background: rgba(255,108,0,.2); color: #fff; border-color: var(--brand-orange); }

/* ── Copyright bar ── */
.ft-copy-bar { border-top: 1px solid rgba(255,255,255,.06); padding: .9rem 0; }
.ft-copy-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .75rem; color: rgba(255,255,255,.35); gap: 1rem; flex-wrap: wrap;
}
.ft-copy-links { display: flex; align-items: center; gap: .6rem; }
.ft-copy-links a { color: rgba(255,255,255,.45); transition: var(--transition); }
.ft-copy-links a:hover { color: rgba(255,255,255,.85); }
.ft-copy-links span { color: rgba(255,255,255,.2); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .ft-body-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .ft-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .ft-body-inner { grid-template-columns: 1fr; gap: 2rem; }
  .ft-copy-inner { flex-direction: column; align-items: flex-start; gap: .5rem; }
}

/* ════════════════════════════════
   BACK-TO-TOP
════════════════════════════════ */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 900;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; opacity: 0; transform: translateY(8px);
  transition: var(--transition); box-shadow: var(--shadow-md);
}
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ════════════════════════════════
   SCROLL ANIMATE
════════════════════════════════ */
[data-animate] { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
[data-animate].visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 1100px) {
  .ix-explore-grid { grid-template-columns: 1fr; }
  .ix-about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .inst-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
  .ix-news-grid { grid-template-columns: repeat(2, 1fr); }
  .pg-contact-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .ft-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .pg-list-2col { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .top-menu { display: none; }
  .mobile-menu-toggle { display: flex; }
  .ix-stats-inner { flex-wrap: wrap; }
  .ix-stat { min-width: 50%; flex: 0 0 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .ix-stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.1); }
  .ix-news-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .ft-inner { grid-template-columns: 1fr; }
  .inst-grid { grid-template-columns: 1fr; }
  .topbar-links a:not(.topbar-cta) { display: none !important; }
  .topbar-sep { display: none !important; }
  .ix-hero-title { font-size: 1.75rem; }
  .ix-hero-content { padding: 3.5rem 1.25rem 2rem; }
  .pg-list-2col { grid-template-columns: 1fr; }
  .mega-wrap { min-width: calc(100vw - 2rem); left: 50%; }
}
@media (max-width: 480px) {
  .ix-stat { min-width: 100%; border-right: none !important; }
  .ix-hero-title { font-size: 1.5rem; }
  .pg-hero-title { font-size: 1.65rem; }
}

/* ════════════════════════════════════════════════════════
   ABOUT SIDEBAR — PT Polytechnic style (right side)
════════════════════════════════════════════════════════ */
.pg-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 2.5rem;
  align-items: start;
}
.pg-about-content { min-width: 0; overflow: visible; }
.about-sidebar {
  position: sticky;
  top: calc(var(--nav-total) + 1.5rem);
  grid-column: 2;
  grid-row: 1;
}
.about-sidebar-inner {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,55,123,.08);
}
.about-sidebar-head {
  background: var(--primary-gradient);
  padding: .85rem 1.1rem;
}
.about-head-desktop {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
}
.about-sidebar-nav {
  padding: .4rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.about-nav-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .85rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.about-nav-link:hover { background: var(--primary-gradient); color: var(--bg-base); }
.about-nav-link.active {
  background: var(--primary-gradient);
  color: var(--bg-base);
  font-weight: 700;
}

/* ── Mobile pg-mobile-bar ── */
.pg-mobile-bar { display: none !important; }

@media (max-width: 900px) {
  .pg-with-sidebar { grid-template-columns: 1fr !important; gap: 0; }
  .about-sidebar   { display: none !important; }

  .pg-mobile-bar {
    display: block !important;
    background: var(--primary-gradient);
    position: sticky;
    top: var(--nav-total);
    z-index: 200;
    box-shadow: 0 3px 12px rgba(0,55,123,.25);
    border-bottom: 1px solid var(--bg-base);
  }
  .pg-mobile-bar-trigger {
    width: 100%; display: flex; align-items: center;
    justify-content: space-between;
    padding: .8rem 2rem;
    background: none; border: none; cursor: pointer; gap: .75rem;
  }
  .pg-mobile-bar-left { display: flex; align-items: center; gap: .75rem; }
  .pg-mobile-bar-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--primary-mid);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background .2s;
  }
  .pg-mobile-bar-trigger:hover .pg-mobile-bar-icon { background: #e55f00; }
  .pg-mobile-bar-icon i { font-size: .85rem; color: #fff; }
  .pg-mobile-bar-text { display: flex; flex-direction: column; gap: .05rem; text-align: left; }
  .pg-mobile-bar-title { font-size: .88rem; font-weight: 700; color: #fff; line-height: 1.2; }
  .pg-mobile-bar-sub   { font-size: .62rem; font-weight: 500; color: rgba(255,255,255,.6); letter-spacing: .06em; text-transform: uppercase; }
  .pg-mobile-bar-chevron { font-size: .9rem; color: rgba(255,255,255,.7); transition: transform .25s; flex-shrink: 0; }
  .pg-mobile-bar-trigger[aria-expanded="true"] .pg-mobile-bar-chevron { transform: rotate(180deg); }
  .pg-mobile-bar-panel { display: none; background: var(--bg-surface); border-top: 1px solid var(--border-color); padding: .3rem 1rem; }
  .pg-mobile-bar-panel.open { display: block; }
  .pg-mobile-nav-link {
    display: flex; align-items: center; gap: .75rem;
    padding: .78rem 2rem;
    font-size: .88rem; font-weight: 500; color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color); text-decoration: none;
    transition: background .15s, color .15s; position: relative;
  }
  .pg-mobile-nav-link:last-child { border-bottom: none; }
  .pg-mobile-nav-link::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%;
    background: #d1d5db; flex-shrink: 0; transition: background .15s;
  }
  .pg-mobile-nav-link:hover { background: var(--bg-base); color: var(--primary); }
  .pg-mobile-nav-link:hover::before { background: var(--primary); }
  .pg-mobile-nav-link.active {
    color: var(--accent,#FF6C00); font-weight: 700;
    background: #fff8f3;
    border-left: 3px solid var(--accent,#FF6C00);
  }
  .pg-mobile-nav-link.active::before { background: var(--accent,#FF6C00); }
}

/* pg-layout-wrap responsive (person pages) */
@media (max-width: 900px) {
  .pg-layout-wrap { grid-template-columns: 1fr !important; }
  .pg-person-wrap  { grid-template-columns: 1fr !important; }
}

/* Programs page inner grids — collapse on mobile */
@media (max-width: 640px) {
  .pg-main-content-inner > div > div[style*="grid-template-columns:1fr 1fr"],
  .pg-main-content-inner [style*="grid-template-columns:1fr 1fr"],
  .pg-main-content-inner [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

@media(max-width:640px){.pg-two-col{grid-template-columns:1fr!important;}}

/* ════════════════════════════════
   MOBILE IMAGE FIXES — all pages
════════════════════════════════ */
@media (max-width: 768px) {

  /* All inline grid image splits → single column */
  .pg-two-col,
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Images inside grids — full width, capped height */
  .pg-section img,
  .pg-container img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: unset !important;
  }

  /* Split image panels (programs/about) */
  [style*="display:grid"][style*="height:220px"],
  [style*="display:grid"][style*="height:260px"],
  [style*="display:grid"][style*="height:280px"] {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }

  [style*="display:grid"][style*="height:220px"] > div,
  [style*="display:grid"][style*="height:260px"] > div,
  [style*="display:grid"][style*="height:280px"] > div {
    height: 200px !important;
  }

  /* About page overlapping image montage */
  [style*="position:relative"][style*="height:420px"],
  [style*="position:relative"][style*="height:340px"] {
    height: 260px !important;
  }

  /* Mosaic grids */
  .cl-mosaic {
    grid-template-columns: 1fr !important;
    grid-template-rows: 240px 180px 180px !important;
  }
  .cl-mosaic-main { grid-row: 1 !important; }

  /* Person photo cards */
  .pg-person-wrap {
    grid-template-columns: 1fr !important;
  }
  .pg-person-wrap img {
    max-width: 240px !important;
    margin: 0 auto;
  }

  /* Home about grid */
  .home-about-grid {
    grid-template-columns: 1fr !important;
  }

  /* Admissions image banner */
  [style*="height:280px"] > img,
  [style*="height:260px"] > img {
    height: 220px !important;
    object-position: center top !important;
  }

  /* Strip grid → 2×2 on mobile */
  .adm-strip-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .adm-strip-grid > div {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .adm-strip-grid > div:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,.12) !important;
  }

  /* Library banner image */
  [style*="height:280px"] {
    height: auto !important;
    min-height: 200px;
  }

  /* Accommodation mosaic */
  [style*="grid-template-columns:3fr 2fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:3fr 2fr"] img {
    height: 200px !important;
  }
}

@media (max-width: 480px) {
  .adm-strip-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  /* Prevent overflow on very small screens */
  .pg-section img {
    border-radius: 10px !important;
  }
}

/* ════════════════════════════════
   HOME MOSAIC — mobile fix
════════════════════════════════ */
.home-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 12px;
  border-radius: 16px;
  overflow: hidden;
}
.home-mosaic-main {
  grid-row: 1 / 3;
  position: relative;
}
.home-mosaic-cell { position: relative; }

@media (max-width: 768px) {
  .home-mosaic {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 200px 160px 160px !important;
  }
  .home-mosaic-main {
    grid-column: 1 / 3 !important;
    grid-row: 1 !important;
  }
  .home-mosaic-cell {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

@media (max-width: 480px) {
  .home-mosaic {
    grid-template-columns: 1fr !important;
    grid-template-rows: 200px 140px 140px 140px 140px !important;
  }
  .home-mosaic-main {
    grid-column: 1 !important;
  }
}

/* ════════════════════════════════
   CAMPUS LIFE PHOTO GRID — mobile fix
════════════════════════════════ */
.cl-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.cl-photo-cell {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  height: 220px;
}
.cl-photo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .cl-photo-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .cl-photo-cell {
    height: 180px !important;
  }
}

@media (max-width: 480px) {
  .cl-photo-grid {
    grid-template-columns: 1fr !important;
  }
  .cl-photo-cell {
    height: 200px !important;
  }
}

/* ════════════════════════════════
   LIBRARY PAGE — mobile fix
════════════════════════════════ */
.lib-banner-img {
  width: 100%; height: 280px;
  object-fit: cover; display: block;
}
.lib-banner-text {
  position: absolute; top: 50%; left: 2rem;
  transform: translateY(-50%);
  color: #fff; max-width: 280px;
}
.lib-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem; margin: 1.5rem 0;
}

@media (max-width: 768px) {
  .lib-banner-img {
    height: 200px !important;
  }
  .lib-banner-text {
    top: auto !important;
    bottom: 1rem !important;
    left: 1rem !important;
    transform: none !important;
    max-width: 90% !important;
  }
  .lib-banner-text div:first-child { font-size: .62rem !important; }
  .lib-banner-text div:nth-child(2) { font-size: .95rem !important; }
  .lib-info-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .lib-info-grid > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .lib-banner-img { height: 180px !important; }
  .lib-info-grid { grid-template-columns: 1fr !important; }
  .lib-info-grid > div:last-child { grid-column: auto; }
}


/* ════════════════════════════════════════════════════
   SHARED — Page intro block
════════════════════════════════════════════════════ */
.pw-intro { margin-bottom: 2rem; }
.pw-main-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.5rem,3vw,2rem);
  font-weight: 900; color: var(--primary); margin-bottom: .6rem;
}
.pw-main-sub {
  font-size: 1rem; font-weight: 300;
  color: var(--primary); line-height: 1.7;
}
.pw-divider {
  height: 3px;
  background: linear-gradient(90deg, var(--brand-orange), transparent);
  border-radius: 2px; margin-top: 1.25rem;
}

/* ════════════════════════════════════════════════════
   THE PES WAY — Framework sections
════════════════════════════════════════════════════ */
.fw-section-head { margin-bottom: 1.5rem; }
.fw-section-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: .3rem .85rem;
  border-radius: 50px; margin-bottom: .75rem;
}
.fw-section-title {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem; font-weight: 900;
  color: var(--text-primary); margin-bottom: .65rem;
}
.fw-section-desc {
  font-size: .92rem; color: var(--text-secondary);
  line-height: 1.8; max-width: 680px;
}

/* Banner image */
.fw-banner-img {
  position: relative; border-radius: 14px;
  overflow: hidden; margin-bottom: 1.75rem;
  box-shadow: var(--shadow-md);
}
.fw-banner-img img { width: 100%; display: block; max-height: 280px; object-fit: cover; }
.fw-banner-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,25,70,.7) 0%, transparent 100%);
  padding: 1.25rem;
}
.fw-banner-label {
  font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.85);
  letter-spacing: .04em;
}

/* Spirit pillars 3×2 grid */
.fw-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem; margin-bottom: 2.5rem;
}
.fw-pillar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--pillar-color, var(--primary));
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: box-shadow .25s, transform .2s;
}
.fw-pillar:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.fw-pillar-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: color-mix(in srgb, var(--pillar-color, var(--primary)) 12%, transparent);
  color: var(--pillar-color, var(--primary));
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; margin-bottom: .85rem;
}
.fw-pillar h3 { font-size: .95rem; font-weight: 700; color: var(--text-primary); margin-bottom: .4rem; }
.fw-pillar p  { font-size: .82rem; color: var(--text-secondary); line-height: 1.65; margin: 0; }

/* Agile cards — horizontal row */
.fw-agile-grid { display: flex; flex-direction: column; gap: 1rem; }
.fw-agile-card {
  display: grid; grid-template-columns: 60px 1fr;
  gap: 1.25rem; align-items: start;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--ac, var(--primary));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.25rem;
  transition: box-shadow .2s;
}
.fw-agile-card:hover { box-shadow: var(--shadow-md); }
.fw-agile-num {
  font-size: 1.5rem; font-weight: 900;
  font-family: 'Merriweather', serif;
  color: var(--ac, var(--primary)); opacity: .3;
  line-height: 1;
}
.fw-agile-card h3 { font-size: .95rem; font-weight: 700; color: var(--text-primary); margin-bottom: .35rem; }
.fw-agile-card p  { font-size: .84rem; color: var(--text-secondary); line-height: 1.7; margin: 0; }

@media (max-width: 768px) {
  .fw-pillars-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 480px) {
  .fw-pillars-grid { grid-template-columns: 1fr !important; }
  .fw-agile-card { grid-template-columns: 1fr; }
  .fw-agile-num { font-size: 1rem; }
}

/* ════════════════════════════════════════════════════
   HISTORY — Alternating timeline (no images)
════════════════════════════════════════════════════ */
.hist-ni-timeline {
  position: relative;
  margin-bottom: 2.5rem;
}

/* Each row: card | connector | spacer  (left)
            spacer | connector | card   (right) */
.hist-ni-row {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  min-height: 100px;
}

/* Connector always in column 2 */
.hist-ni-connector {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hist-ni-vline {
  flex: 1;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--brand-orange));
  min-height: 16px;
}
.hist-ni-vline--hidden { opacity: 0; }

.hist-ni-dot {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px rgba(0,55,123,.12);
  z-index: 1;
}
.hist-ni-dot span {
  font-size: .58rem; font-weight: 800;
  color: #fff; text-align: center;
  line-height: 1.2; padding: 0 3px;
}
.hist-dot--orange {
  background: var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(255,108,0,.15);
}
.hist-dot--now {
  width: 58px; height: 58px;
  box-shadow: 0 0 0 6px rgba(255,108,0,.2), 0 6px 20px rgba(255,108,0,.25);
}

/* LEFT rows: card in col 1, spacer in col 3 */
.hist-ni-row--left .hist-ni-card    { grid-column: 1; padding: .85rem 1.25rem .85rem 0; }
.hist-ni-row--left .hist-ni-spacer  { grid-column: 3; }

/* RIGHT rows: spacer in col 1, card in col 3 */
.hist-ni-row--right .hist-ni-card   { grid-column: 3; padding: .85rem 0 .85rem 1.25rem; }
.hist-ni-row--right .hist-ni-spacer { grid-column: 1; }

/* Card styles */
.hist-ni-card {
  height: 100%;
  box-sizing: border-box;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  align-self: center;
  transition: box-shadow .25s, transform .2s;
}
.hist-ni-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.hist-ni-card--highlight {
  border-color: var(--brand-orange);
  border-width: 2px;
  background: linear-gradient(135deg, #fffbf5 0%, #fff 100%);
}

.hist-ni-tag {
  font-size: .66rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary); margin-bottom: .35rem;
}
.hist-ni-title {
  font-family: 'Merriweather', serif;
  font-size: .95rem; font-weight: 900;
  color: var(--text-primary); margin-bottom: .5rem; line-height: 1.35;
}
.hist-ni-text {
  font-size: .82rem; color: var(--text-secondary);
  line-height: 1.75; margin: 0;
}

/* Mobile — single column, connector on left */
/* Mobile — single column */
@media (max-width: 640px) {
  /* Override the inline grid styles on small screens */
  .hist-ni-timeline > div[style*="grid-template-columns"] {
    grid-template-columns: 52px 1fr !important;
  }
  /* Force connector to col 1, card to col 2, hide spacer */
  .hist-ni-timeline > div > div:first-child  { display: none !important; }
  .hist-ni-timeline > div > div:nth-child(2) { grid-column: 1 !important; grid-row: 1 !important; }
  .hist-ni-timeline > div > div:nth-child(3) { grid-column: 2 !important; grid-row: 1 !important; padding: .75rem 0 .75rem .85rem !important; }
  .hist-ni-dot    { width: 44px !important; height: 44px !important; }
  .hist-ni-dot span { font-size: .5rem !important; }
  .hist-dot--now  { width: 48px !important; height: 48px !important; }
}

/* ════════════════════════════════════════════════════
   LEADERSHIP
════════════════════════════════════════════════════ */
 .leader-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.75rem; }
    .leader-card { border-radius:16px; overflow:hidden; box-shadow:var(--shadow-md); background:var(--bg-surface); border:1px solid var(--border-color); transition:box-shadow .3s,transform .3s; display:flex; flex-direction:column; }
    .leader-card:hover { box-shadow:var(--shadow-xl); transform:translateY(-5px); }
    .leader-img-wrap { position:relative; height:280px; overflow:hidden; background:linear-gradient(135deg,#e8f0fb,#ccd9ef); }
    .leader-img { width:100%; height:100%; object-fit:cover; object-position:center top; display:block; transition:transform .5s ease; }
    .leader-card:hover .leader-img { transform:scale(1.05); }
    .leader-img-overlay { position:absolute; inset:0; background:linear-gradient(to bottom,transparent 40%,rgba(0,20,60,.72) 100%); }
    .leader-body { background:var(--primary); padding:1.4rem 1.5rem 1.25rem; flex:1; display:flex; flex-direction:column; position:relative; }
    .leader-body::before { content:''; position:absolute; bottom:0; left:0; right:0; height:4px; background:var(--accent-gradient); }
    .leader-name { font-family:"Merriweather",serif; font-size:1.05rem; font-weight:900; color:#fff; line-height:1.3; margin-bottom:.35rem; }
    .leader-role { font-size:.8rem; color:rgba(255,255,255,.7); font-weight:500; margin-bottom:1rem; flex:1; }
    .leader-arrow { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2); border-radius:50%; color:#fff; font-size:.9rem; transition:background .2s,transform .2s; text-decoration:none; }
    .leader-card:hover .leader-arrow { background:var(--accent); border-color:var(--accent); transform:translateX(3px); }
    @media(max-width:900px){.leader-grid{grid-template-columns:1fr 1fr;}}
    @media(max-width:560px){.leader-grid{grid-template-columns:1fr;}.leader-img-wrap{height:240px;}}

/* ════════════════════════════════════════════════════
   INFRASTRUCTURE — Campus Scroll + Facilities
════════════════════════════════════════════════════ */
.infra-section-head { margin-bottom: 1rem; }
.infra-section-title {
  font-family: 'Merriweather', serif;
  font-size: 1.25rem; font-weight: 900;
  color: var(--text-primary); margin-bottom: .5rem;
  display: flex; align-items: center; gap: .5rem;
}

/* Campus horizontal scroll */
.campus-scroll-wrap {
  position: relative;
  margin-bottom: 2.5rem;
  padding: 0 1.5rem;   /* space for arrow buttons */
}
.campus-scroll-track {
  display: flex; gap: 1.1rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding-bottom: .75rem;
  -ms-overflow-style: none; scrollbar-width: none;
  width: 100%;
}
.campus-scroll-track::-webkit-scrollbar { display: none; }

.campus-card {
  flex: 0 0 220px; scroll-snap-align: start;
  border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative; flex-shrink: 0;
  transition: transform .3s, box-shadow .3s;
  height: 260px;
  cursor: pointer;
}
.campus-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-lg); }
.campus-card-img { position: absolute; inset: 0; }
.campus-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.campus-card:hover .campus-card-img img { transform: scale(1.08); }
.campus-card-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,20,60,.85) 0%, rgba(0,20,60,.2) 55%, transparent 100%);
}
.campus-card-badge {
  position: absolute; top: .75rem; left: .75rem; z-index: 2;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: .62rem; font-weight: 700; padding: .2rem .65rem;
  border-radius: 50px; letter-spacing: .06em; text-transform: uppercase;
}
.campus-card-body {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 1rem 1.1rem .9rem;
}
.campus-card-body h3 { font-size: .88rem; font-weight: 800; color: #fff; margin-bottom: .15rem; line-height: 1.2; }
.campus-card-body p  { font-size: .72rem; color: rgba(255,255,255,.7); margin: 0 0 .5rem; }
.campus-card-link {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .7rem; font-weight: 700; color: var(--brand-orange);
  transition: gap .15s;
}
.campus-card-link:hover { gap: .5rem; }

/* Scroll arrows */
.campus-scroll-btn {
  position: absolute; top: 50%; transform: translateY(-60%);
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-surface); border: 1px solid var(--border-color);
  color: var(--primary); font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); cursor: pointer; z-index: 5;
  transition: background .2s, box-shadow .2s;
}
.campus-scroll-btn:hover { background: var(--primary); color: #fff; box-shadow: var(--shadow-md); }
.campus-scroll-btn--prev { left: 0; }
.campus-scroll-btn--next { right: 0; }

/* Facilities grid */
.infra-facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) {
  .infra-facilities-grid { grid-template-columns: 1fr 1fr !important; }
}
.infra-facility-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .2s;
}
.infra-facility-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.infra-facility-img { width: 100%; height: 160px; object-fit: cover; display: block; }
.infra-facility-body { padding: 1.1rem; }
.infra-facility-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; margin-bottom: .75rem;
}
.infra-facility-body h3 { font-size: .92rem; font-weight: 700; color: var(--text-primary); margin-bottom: .4rem; }
.infra-facility-body p  { font-size: .82rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: .75rem; }
.infra-facility-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 600; color: var(--primary);
  transition: gap .15s;
}
.infra-facility-link:hover { gap: .55rem; }

@media (max-width: 768px) {
  .infra-facilities-grid { grid-template-columns: 1fr !important; }
  .campus-scroll-btn { display: none; }
}

/* ════════════════════════════════════════════════════
   "YOU MAY ALSO BE INTERESTED IN" section
════════════════════════════════════════════════════ */
.also-interested-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-color); }
.also-interested-title {
  font-family: 'Merriweather', serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--primary); margin-bottom: 1.5rem;
}
.also-interested-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1.25rem;
}
.also-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .2s;
  display: flex; flex-direction: column;
}
.also-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.also-card-img { height: 160px; overflow: hidden; }
.also-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.also-card:hover .also-card-img img { transform: scale(1.06); }
.also-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.also-card-body h3 { font-size: .95rem; font-weight: 700; color: var(--primary); margin-bottom: .5rem; }
.also-card-body p  { font-size: .83rem; color: var(--text-secondary); line-height: 1.65; margin: 0; flex: 1; }
.also-card-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  font-size: .85rem; margin-top: 1rem; flex-shrink: 0;
  transition: background .2s, color .2s;
  align-self: flex-start;
}
.also-card:hover .also-card-link { background: var(--primary); color: #fff; }
.also-card-accent {
  height: 4px; background: var(--brand-orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.also-card:hover .also-card-accent { transform: scaleX(1); }

@media (max-width: 900px) {
  .also-interested-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 600px) {
  .also-interested-grid { grid-template-columns: 1fr !important; }
}
