/* =========================================================
   DST GROUP OF INSTITUTIONS — DESIGN SYSTEM
   ========================================================= */

:root {
  /* Color system (derived from the official DST logo — green/teal) */
  --color-primary: #1f7a3d;
  --color-primary-dark: #145429;
  --color-primary-light: #e7f4ea;
  --color-secondary: #14808c;
  --color-accent: #f2a71b;
  --color-bg: #ffffff;
  --color-bg-alt: #ECF5EC;
  --color-bg-dark: #0e2a17;
  --color-text: #1a2620;
  --color-text-muted: #56685c;
  --color-text-on-dark: #eaf3ec;
  --color-border: #e0e9e2;
  --color-white: #ffffff;

  /* Typography */
  --font-heading: Georgia, "Times New Roman", Times, serif;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;

  /* Radius & shadow */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(14, 42, 23, 0.08);
  --shadow-md: 0 8px 24px rgba(14, 42, 23, 0.10);
  --shadow-lg: 0 20px 48px rgba(14, 42, 23, 0.14);

  --container-width: 1200px;
  --header-height: 100px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-bg-dark);
  line-height: 1.25;
  margin: 0 0 var(--space-3);
  font-weight: 700;
}
p { margin: 0 0 var(--space-3); color: var(--color-text-muted); font-size: 15px; }
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--color-primary-dark);
  color: var(--color-text-on-dark);
  font-size: 0.85rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: var(--space-4);
}
.topbar-contacts {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.topbar-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-on-dark);
  opacity: 0.92;
  font-size: 0.85rem;
  white-space: nowrap;
}
.topbar-contacts a:hover { opacity: 1; text-decoration: underline; }
.topbar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.9;
}
.topbar-icon svg { width: 100%; height: 100%; }
.topbar-social {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.topbar-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--color-text-on-dark);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.topbar-social a:hover { opacity: 1; }
.topbar-social a svg { width: 15px; height: 15px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: var(--space-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.brand img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 0;
}
.brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-bg-dark);
  line-height: 1.2;
}
.brand-text span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand-subtitle {
  font-weight: 600 !important;
  font-size: 0.98rem !important;
  color: #000 !important;
  letter-spacing: 0.03em !important;
}
.brand-tagline {
  font-family: var(--font-heading) !important;
  font-style: italic;
  font-weight: 600 !important;
  font-size: 0.72rem !important;
  color: var(--color-primary) !important;
  letter-spacing: 0.06em !important;
  text-transform: none !important;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.nav-link:hover, .nav-link:focus-visible {
  color: var(--color-primary);
  background: var(--color-primary-light);
}
.nav-item.is-active > .nav-link {
  color: var(--color-primary);
  background: var(--color-primary-light);
}
.nav-caret {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.2s ease;
}
.nav-item.is-open .nav-caret,
.nav-item:hover .nav-caret { transform: rotate(225deg); margin-top: 3px; }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 300px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1100;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.nav-item.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* invisible bridge so the dropdown doesn't vanish moving from item to menu */
.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--color-text);
}
.dropdown a:hover { background: var(--color-primary-light); color: var(--color-primary-dark); }
.dropdown a .dd-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.nav-cta {
  background: var(--color-primary);
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
  border: none;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--color-primary-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary-light); }
.btn-light { background: #fff; color: var(--color-primary-dark); }
.btn-on-dark { background: var(--color-accent); color: var(--color-bg-dark); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--color-primary-light) 0%, #ffffff 55%);
  padding: var(--space-7) 0 var(--space-8);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-6);
  align-items: center;
}
.pill-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.pill {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: var(--space-4);
}
.hero p.lead {
  font-size: 15px;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
  flex-wrap: wrap;
}
.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Placeholder media block (used until real photo is added) ---------- */
.media-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 220px;
  padding: var(--space-4);
}
.media-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18) 0, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.14) 0, transparent 45%);
}
.media-placeholder .mp-label {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.media-placeholder .mp-icon {
  position: relative;
  width: 46px;
  height: 46px;
  margin: 0 auto var(--space-2);
  opacity: 0.9;
}

/* ---------- Sections ---------- */
.section { padding: var(--space-6) 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(234,243,236,0.78); }

.section-head {
  max-width: 720px;
  margin: 0 auto var(--space-6);
  text-align: center;
}
.eyebrow {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: var(--space-2);
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: var(--space-4);
}
.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-6 { grid-template-columns: repeat(6, 1fr); }

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { font-size: 1.1rem; margin-bottom: var(--space-2); }
.card .icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  color: var(--color-primary);
  font-size: 1.4rem;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}
.split.reverse .split-media { order: 2; }

.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Divisions strip ---------- */
.division-card {
  text-align: center;
  padding: var(--space-5);
}
.division-card .icon-box {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto var(--space-3);
  font-size: 1.6rem;
}

/* ---------- Stats ---------- */
.stat-card {
  text-align: center;
  padding: var(--space-5) var(--space-3);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-primary);
}
.stat-label { display: none; }
.stat-desc { font-size: 15px; margin-top: 6px; }

/* Tighter spacing for the dark stats band specifically */
.section-dark .section-head { margin-bottom: 8px; }
.section-dark .stat-card { padding: 8px; }

/* ---------- Accordion (FAQ / course details) ---------- */
.accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
  background: var(--color-white);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-primary-light);
  border: none;
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary-dark);
}
.accordion-trigger .acc-icon {
  width: 22px; height: 22px; flex-shrink: 0;
  position: relative;
}
.accordion-trigger .acc-icon::before,
.accordion-trigger .acc-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.accordion-trigger .acc-icon::before { width: 14px; height: 2px; }
.accordion-trigger .acc-icon::after { width: 2px; height: 14px; transition: transform 0.2s ease; }
.accordion-item.is-open .acc-icon::after { transform: translate(-50%, -50%) rotate(90deg) scale(0); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-panel-inner { padding: var(--space-4); }
.accordion-item.is-open .accordion-panel { max-height: 4000px; }

.course-eligibility {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-3);
}
.course-eligibility h4 { font-size: 0.95rem; margin-bottom: 8px; color: var(--color-primary-dark); }
.course-tag {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-bg-dark);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: var(--space-2);
}

/* ---------- Program category tabs (program overview pages) ---------- */
.category-tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-6);
}
.category-tabs a {
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.88rem;
}
.category-tabs a.is-current,
.category-tabs a:hover { background: var(--color-primary); color: #fff; }

/* ---------- Table of contents (long policy pages) ---------- */
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: var(--space-4);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
}
.toc a {
  padding: 8px 16px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}
.toc a:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ---------- Policy content blocks ---------- */
.policy-block { padding-top: var(--space-6); padding-bottom: var(--space-6); scroll-margin-top: 110px; }
.policy-block:not(:last-child) { border-bottom: 1px solid var(--color-border); }
.policy-block h2 { font-size: 1.6rem; }
.policy-block h4 { font-size: 1.02rem; color: var(--color-primary-dark); margin-top: var(--space-4); }
.policy-block ul { margin: var(--space-3) 0; padding-left: 0; }
.policy-block ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--color-text-muted);
}
.policy-block ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* ---------- Steps (admission procedure) ---------- */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}
.step:last-child { border-bottom: none; }
.step-number {
  counter-increment: step;
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
}
.step-number::before { content: counter(step); }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}
.contact-card {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}
.contact-card .icon-box { flex-shrink: 0; }
.icon-box svg { width: 24px; height: 24px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card a, .contact-card p { margin: 0; color: var(--color-text-muted); }
.contact-card a:hover { color: var(--color-primary); text-decoration: underline; }

.form-field { margin-bottom: var(--space-4); }
.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--color-bg-dark);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--color-bg-alt);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.field-error {
  display: none;
  color: #b3261e;
  font-size: 0.8rem;
  margin-top: 6px;
  font-weight: 600;
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea { border-color: #b3261e; }
.form-field.has-error .field-error { display: block; }
.form-success {
  display: none;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.form-success.is-visible { display: block; }
.form-success.is-error {
  background: #fdecea;
  color: #b3261e;
}
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(234,243,236,0.92);
  padding-top: var(--space-7);
}
.site-footer p {
  color: rgba(234,243,236,0.72);
}
.site-footer a {
  color: rgba(234,243,236,0.92);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-5);
  padding-bottom: var(--space-6);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: var(--space-3); }
.footer-brand img { width: 46px; height: 46px; border-radius: 50%; }
.footer-brand strong { color: #fff; font-family: var(--font-heading); }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: var(--space-3); }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul li a { color: rgba(234,243,236,0.78); }
.site-footer a:hover { color: var(--color-accent); text-decoration: underline; }
.footer-social { display: flex; gap: 12px; margin-top: var(--space-3); }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(234,243,236,0.3);
  display: flex; align-items: center; justify-content: center;
  color: rgba(234,243,236,0.85);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.footer-social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg-dark);
}
.footer-social a svg { width: 17px; height: 17px; }
.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-contact-list a { color: rgba(234,243,236,0.85); font-size: 0.92rem; }
.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(234,243,236,0.1);
  color: var(--color-accent);
}
.footer-icon svg { width: 15px; height: 15px; }
.footer-bottom {
  border-top: 1px solid rgba(234,243,236,0.14);
  padding: var(--space-4) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 0.82rem;
}
.footer-bottom p { color: rgba(234,243,236,0.72); margin: 0; }
.footer-campus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-campus .footer-icon { width: 22px; height: 22px; background: none; }
.footer-campus .footer-icon svg { width: 13px; height: 13px; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 900;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-primary-dark); }
.back-to-top .arrow { border-right: 2px solid #fff; border-top: 2px solid #fff; width: 9px; height: 9px; transform: rotate(-45deg); margin-top: 4px; }

/* ---------- Breadcrumb / page header ---------- */
.page-header {
  background: var(--color-primary-light);
  padding: var(--space-6) 0;
}
.page-header .eyebrow { margin-bottom: var(--space-2); }
.breadcrumb { font-size: 0.85rem; color: var(--color-text-muted); margin-top: var(--space-2); }
.breadcrumb a { color: var(--color-primary-dark); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Icon glyphs (CSS-only, no external icon font) ---------- */
.i-phone, .i-mail, .i-pin, .i-clock { position: relative; display: inline-block; width: 20px; height: 20px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Division logos (About / Home) ---------- */
.division-logo {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto var(--space-3);
}

/* ---------- Gallery slider (homepage + facilities) ---------- */
.gallery-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-bg-dark);
}
.gallery-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
}
.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}
.gallery-slide.is-active {
  opacity: 1;
  visibility: visible;
}
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 5;
}
.gallery-arrow:hover { background: #fff; }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.gallery-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}
.gallery-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.gallery-dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 14, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: var(--space-5);
}
.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox-figure {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.lightbox-caption {
  color: #fff;
  font-size: 15px;
  text-align: center;
  opacity: 0.85;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-arrow:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ---------- Chairman photo frame (circular, ring border) ---------- */
.chairman-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  width: 100%;
  min-height: 100%;
}
.chairman-frame .chairman-photo {
  box-sizing: border-box;
  display: block;
  width: min(420px, 90%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 12px solid var(--color-primary-dark);
  background: var(--color-primary-light);
  object-fit: contain;
  object-position: center;
  padding: 0;
  margin: 0 auto;
}
.chairman-caption {
  margin-top: var(--space-4);
  text-align: center;
  color: var(--color-bg-dark);
}
.chairman-caption strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-bg-dark);
  margin-bottom: 6px;
}
.chairman-caption span {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-text-muted);
}
@media (max-width: 600px) {
  .chairman-frame .chairman-photo {
    width: min(280px, 85%);
    border-width: 8px;
  }
}

/* ---------- Description text sizing (14px desktop, 12px mobile) ---------- */
@media (max-width: 600px) {
  p,
  .hero p.lead,
  .stat-desc,
  .lightbox-caption {
    font-size: 13px;
  }
}

/* ---------- Social links (light background, e.g. Contact page) ---------- */
.social-links-block { margin-top: var(--space-4); }
.social-links-block h3 { font-size: 1rem; margin-bottom: 10px; }
.social-links {
  display: flex;
  gap: 12px;
}
.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.social-links a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}
.social-links a svg { width: 19px; height: 19px; }

/* ---------- Why Choose Us (image-centered, checklist layout) ---------- */
.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}
.why-us-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.why-item {
  text-align: center;
}
.why-item-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto var(--space-3);
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.why-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.why-us-media {
  display: flex;
  justify-content: center;
}
.why-us-media img {
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 1024px) {
  .why-us-grid { grid-template-columns: 1fr; }
  .why-us-media { order: -1; margin-bottom: var(--space-5); }
  .why-us-col { flex-direction: row; flex-wrap: wrap; gap: var(--space-5); }
  .why-item { flex: 1 1 220px; }
}
