/* ==========================================================================
   S.R. Educational Institute of Law — Global Stylesheet
   ========================================================================== */

:root {
  --navy: #1B2A4A;
  --burgundy: #6B1D2A;
  --gold: #C5962C;
  --white: #FFFFFF;
  --light-bg: #F5F5F0;
  --text: #2D2D2D;
  --text-light: #666666;
  --border: rgba(45, 45, 45, 0.15);
  --overlay-dark: rgba(0, 0, 0, 0.18);
  --on-dark-1: rgba(255, 255, 255, 0.9);
  --on-dark-2: rgba(255, 255, 255, 0.72);
  --on-dark-3: rgba(255, 255, 255, 0.55);
  --on-dark-border: rgba(255, 255, 255, 0.22);

  --font-heading: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;

  --max-width: 1200px;
  --section-padding: 80px 0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; color: inherit; }

body {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
small, .caption { font-size: 0.875rem; }

a { transition: color var(--transition); }

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

/* ---- Sections ---- */
.section { padding: var(--section-padding); }
.section-alt { padding: var(--section-padding); background: var(--light-bg); }
.section-navy { padding: var(--section-padding); background: var(--navy); color: var(--white); }
.section-burgundy { padding: var(--section-padding); background: var(--burgundy); color: var(--white); }
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4,
.section-burgundy h1, .section-burgundy h2, .section-burgundy h3, .section-burgundy h4 { color: var(--white); }

.section-header { margin-bottom: 40px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-light); max-width: 700px; }
.section-navy .section-header p { color: var(--on-dark-2); }

.gold-divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  border: none;
  margin: 14px 0 0;
}
.gold-divider.center { margin: 14px auto 0; }

/* ---- Buttons ---- */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 13px 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}
.btn-primary:hover { background: linear-gradient(var(--overlay-dark), var(--overlay-dark)), var(--burgundy); }

.btn-secondary {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy);
}
.btn-secondary:hover { background: var(--burgundy); color: var(--white); }

.section-navy .btn-secondary, .section-burgundy .btn-secondary {
  color: var(--white);
  border-color: var(--white);
}
.section-navy .btn-secondary:hover, .section-burgundy .btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
}
.section-burgundy .btn-primary {
  background: var(--white);
  color: var(--burgundy);
  border-color: var(--white);
}
.section-burgundy .btn-primary:hover { background: var(--light-bg); }

/* ---- Load animation ---- */
.animate-on-load {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Header
   ========================================================================== */

.topbar {
  background: linear-gradient(var(--overlay-dark), var(--overlay-dark)), var(--navy);
  color: var(--white);
  height: 36px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.ticker-wrap {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
}
.ticker {
  display: inline-block;
  font-size: 0.8rem;
  padding-left: 100%;
  animation: ticker-scroll 28s linear infinite;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.topbar-links {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  white-space: nowrap;
  padding-left: 24px;
}
.topbar-links a:hover { color: var(--gold); }
.lang-toggle {
  background: transparent;
  border: none;
  border-left: 1px solid rgba(255,255,255,0.3);
  margin-left: 4px;
  padding-left: 16px;
  color: var(--white);
  font-size: 0.78rem;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.lang-toggle:hover { color: var(--gold); }

.main-nav {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}
.main-nav.is-scrolled { box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img { height: 60px; width: 60px; object-fit: contain; }
.brand-text .brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.25;
}
.brand-text .brand-sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links li a {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}
.nav-links li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition), left var(--transition);
}
.nav-links li a:hover::after { width: 100%; left: 0; }
.nav-links li a.active {
  border-bottom: 2px solid var(--gold);
}
.nav-links li a.active::after { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  border: none;
  background: transparent;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle { display: none; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--navy); color: var(--on-dark-1); }
.footer-main { padding: 60px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.4fr 1.1fr;
  gap: 40px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-about .brand { margin-bottom: 14px; }
.footer-about .brand-text .brand-name { color: var(--white); }
.footer-about .brand-text .brand-sub { color: var(--on-dark-3); }
.footer-about p { font-size: 0.9rem; color: var(--on-dark-2); margin-bottom: 10px; }
.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.footer-links-grid h5 {
  color: var(--on-dark-1);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  font-family: var(--font-body);
}
.footer-links-grid li { margin-bottom: 9px; font-size: 0.9rem; }
.footer-links-grid a:hover { color: var(--gold); }
.footer-contact li { margin-bottom: 10px; font-size: 0.9rem; display: flex; gap: 8px; }
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
  background: linear-gradient(var(--overlay-dark), var(--overlay-dark)), var(--navy);
  padding: 18px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--on-dark-3); }
.social-icons { display: flex; gap: 14px; }
.social-icons a {
  width: 32px;
  height: 32px;
  border: 1px solid var(--on-dark-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), background var(--transition);
}
.social-icons a svg { width: 15px; height: 15px; fill: var(--on-dark-1); }
.social-icons a:hover { background: var(--gold); border-color: var(--gold); }
.social-icons a:hover svg { fill: var(--navy); }

/* ==========================================================================
   Page header / breadcrumb (interior pages)
   ========================================================================== */

.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 34px 0;
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--on-dark-2);
  margin-bottom: 8px;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--white); font-weight: 600; }
.page-header h1 { color: var(--white); font-size: clamp(1.6rem, 3.5vw, 2.4rem); }

/* ==========================================================================
   Homepage — Hero
   ========================================================================== */

.hero {
  padding: 60px 0 70px;
}
.hero .container {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 50px;
  align-items: center;
}
.hero-eyebrow {
  color: var(--burgundy);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  margin-bottom: 14px;
}
.hero h1 { margin-bottom: 10px; }
.hero-sub {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--burgundy);
  font-weight: 600;
  margin-bottom: 16px;
}
.hero p.hero-desc {
  color: var(--text-light);
  margin-bottom: 26px;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-media img {
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

/* ---- Trust bar ---- */
.trust-bar { background: var(--light-bg); padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-bar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  flex: 1 1 220px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.trust-badge .badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light-bg);
  border: 1px solid var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-badge .badge-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }
.trust-badge a { color: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.trust-badge a:hover { color: var(--burgundy); }

/* ---- Director message (brief) ---- */
.director-brief .container {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
}
.director-photo img {
  border-radius: 50%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border: 4px solid var(--light-bg);
}
.director-name { color: var(--burgundy); font-weight: 600; margin: 6px 0 14px; font-family: var(--font-body); }
.link-arrow { color: var(--burgundy); font-weight: 600; font-size: 0.9rem; }
.link-arrow:hover { color: var(--navy); }

/* ---- Programs tabs ---- */
.tabs-nav { display: flex; gap: 6px; border-bottom: 2px solid var(--border); margin-bottom: 0; }
.tab-btn {
  background: transparent;
  border: none;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-light);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.tab-btn.active { color: var(--burgundy); border-bottom-color: var(--burgundy); }
.tab-panel { display: none; padding-top: 24px; }
.tab-panel.active { display: block; }
.program-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.program-row:last-child { border-bottom: none; }
.program-row-main { flex: 1; }
.program-row-main h3 { display: inline; }
.program-duration {
  font-size: 0.78rem;
  color: var(--burgundy);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-left: 10px;
}
.program-row-main p { color: var(--text-light); margin-top: 6px; font-size: 0.92rem; }
.program-row a { color: var(--burgundy); font-weight: 600; font-size: 0.88rem; white-space: nowrap; }
.program-row a:hover { color: var(--navy); }
.tabs-note { margin-top: 20px; font-size: 0.85rem; color: var(--text-light); }

/* ---- Why SREI ---- */
.why-grid {
  display: grid;
  grid-template-columns: 40fr 60fr;
  gap: 50px;
  align-items: center;
}
.why-list li {
  border-left: 3px solid var(--gold);
  padding: 10px 0 10px 18px;
  margin-bottom: 16px;
  font-size: 0.98rem;
}
.why-list li:last-child { margin-bottom: 0; }
.why-media img { border-radius: var(--radius-md); aspect-ratio: 4/3; object-fit: cover; }

/* ---- News preview / grid cards ---- */
.news-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.news-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
.news-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.news-card-body { padding: 18px; }
.news-card h3 { font-size: 1rem; margin-bottom: 8px; }
.news-source { font-size: 0.78rem; color: var(--text-light); margin-bottom: 10px; }
.section-footer-link { margin-top: 32px; text-align: center; }
.section-footer-link a { color: var(--burgundy); font-weight: 600; }
.section-footer-link a:hover { color: var(--navy); }

/* ---- Media clipping treatment (news-media page) ---- */
.clipping-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.clipping-card {
  border: 1px solid var(--border);
  background: var(--white);
  padding: 14px;
  border-radius: var(--radius-lg);
}
.clipping-card img {
  filter: contrast(1.1) brightness(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.clipping-meta { padding-top: 14px; }
.clipping-meta h3 { font-size: 1.05rem; margin-bottom: 6px; }
.clipping-meta .news-source { margin-bottom: 0; }

/* ---- Gallery masonry ---- */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 130px;
  gap: 14px;
}
.gallery-masonry .g-item { overflow: hidden; border-radius: var(--radius-md); position: relative; }
.gallery-masonry .g-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-masonry .g-item:hover img { transform: scale(1.05); }
.gallery-masonry .g-tall { grid-row: span 2; }
.gallery-masonry .g-wide { grid-column: span 2; }

.gallery-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-grid-3 .g-item { position: relative; overflow: hidden; border-radius: var(--radius-md); aspect-ratio: 4/3; }
.gallery-grid-3 .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-grid-3 .g-item:hover img { transform: scale(1.05); }
.g-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: var(--white);
  font-size: 0.82rem;
  padding: 24px 12px 10px;
}


/* ==========================================================================
   About page
   ========================================================================== */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.two-col.reverse { grid-template-columns: 0.9fr 1.1fr; }
.two-col.reverse .two-col-media { order: -1; }
.two-col-media img { border-radius: var(--radius-md); aspect-ratio: 4/3; object-fit: cover; }
.two-col-text p { margin-bottom: 16px; color: var(--text); }
.two-col-text p:last-child { margin-bottom: 0; }

.director-full { display: grid; grid-template-columns: 260px 1fr; gap: 46px; }
.director-full-photo img { border-radius: var(--radius-md); aspect-ratio: 3/4; object-fit: cover; }
.director-full-text p { margin-bottom: 16px; }
.signature { font-family: var(--font-heading); font-style: italic; color: var(--navy); margin-top: 10px; }

.leader-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.leader-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.leader-card img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.leader-card-text h3 { font-size: 1rem; margin-bottom: 2px; }
.leader-card-text .leader-title { font-size: 0.78rem; color: var(--burgundy); font-weight: 600; margin-bottom: 10px; }
.leader-card-text p { font-size: 0.88rem; color: var(--text-light); font-style: italic; }

.dignitary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.dignitary-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
.dignitary-card img { aspect-ratio: 4/3; object-fit: cover; object-position: top; width: 100%; }
.dignitary-card-body { padding: 20px; }
.dignitary-card-body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.dignitary-card-body .news-source { font-size: 0.78rem; color: var(--burgundy); font-weight: 600; margin-bottom: 14px; }
.dignitary-card-body blockquote {
  font-size: 0.88rem;
  color: var(--text-light);
  font-style: italic;
  border-left: 2px solid var(--gold);
  padding-left: 14px;
  margin: 0;
}

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.vm-block { background: var(--white); border: 1px solid var(--border); border-top: 4px solid var(--gold); padding: 30px; border-radius: var(--radius-lg); }
.vm-block h3 { margin-bottom: 14px; }
.vm-block ul li { margin-bottom: 10px; padding-left: 18px; position: relative; }
.vm-block ul li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }

.values-row { margin-top: 40px; text-align: center; }
.values-row h3 { margin-bottom: 18px; }
.values-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.values-list li {
  background: var(--white);
  border: 1px solid var(--gold);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 9px 18px;
  border-radius: 999px;
}

.affil-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.affil-card { text-align: center; padding: 30px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.affil-card img { height: 70px; margin: 0 auto 16px; object-fit: contain; }
.affil-card h3 { margin-bottom: 8px; font-size: 1rem; }
.affil-card p { font-size: 0.85rem; color: var(--text-light); }
.affil-link { display: inline-block; margin-top: 12px; font-size: 0.85rem; font-weight: 600; color: var(--burgundy); }
.affil-link:hover { color: var(--navy); }

/* ==========================================================================
   Courses page
   ========================================================================== */
.syllabus-note {
  background: var(--light-bg);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 10px;
}
.syllabus-note a { color: var(--burgundy); font-weight: 600; }
.syllabus-note a:hover { color: var(--navy); }

.program-detail { padding: 46px 0; border-bottom: 1px solid var(--border); }
.program-detail:last-child { border-bottom: none; }
.program-detail-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.program-tagline { color: var(--text-light); font-size: 0.9rem; margin-bottom: 4px; }
.program-affil { font-size: 0.82rem; color: var(--burgundy); font-weight: 600; margin-bottom: 18px; }
.program-desc { max-width: 780px; margin-bottom: 24px; }
.program-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 26px; }
.program-meta-grid h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.4px; color: var(--navy); margin-bottom: 10px; font-family: var(--font-body); font-weight: 700; }
.program-meta-grid ul li { font-size: 0.92rem; margin-bottom: 6px; color: var(--text); }
.program-meta-grid ul li::before { content: "• "; color: var(--gold); font-weight: 700; }

.addl-courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.addl-card { background: var(--white); border: 1px solid var(--border); padding: 24px; border-radius: var(--radius-lg); }
.addl-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.addl-card p { font-size: 0.9rem; color: var(--text-light); }

/* ==========================================================================
   Admissions page
   ========================================================================== */
.steps-list { counter-reset: step; max-width: 760px; }
.steps-list li {
  counter-increment: step;
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.steps-list li:last-child { border-bottom: none; }
.steps-list li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
}
.steps-list .step-text { padding-top: 6px; }

table.fee-table { width: 100%; border-collapse: collapse; }
table.fee-table th, table.fee-table td {
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--border);
  font-size: 0.92rem;
}
table.fee-table thead th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
}
table.fee-table tbody tr:nth-child(even) { background: var(--light-bg); }
.fee-note { margin-top: 16px; font-size: 0.88rem; color: var(--text-light); }

.doc-checklist { columns: 2; gap: 40px; max-width: 760px; }
.doc-checklist li {
  break-inside: avoid;
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.94rem;
}
.doc-checklist li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

.admission-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.admission-phones { display: flex; flex-direction: column; gap: 10px; }
.admission-phones a { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.admission-phones a:hover { color: var(--burgundy); }

/* ==========================================================================
   Campus page
   ========================================================================== */
.infra-list { max-width: 820px; }
.infra-item { padding: 26px 0; border-bottom: 1px solid var(--border); }
.infra-item:last-child { border-bottom: none; }
.infra-item h3 { margin-bottom: 8px; }
.infra-item p { color: var(--text-light); }

.activity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.activity-card { padding: 26px; background: var(--white); border-left: 3px solid var(--burgundy); box-shadow: 0 1px 4px rgba(0,0,0,0.06); border-radius: var(--radius-md); }
.activity-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.activity-card p { font-size: 0.9rem; color: var(--text-light); }

/* ==========================================================================
   News & Media page — timeline
   ========================================================================== */
.timeline { position: relative; max-width: 820px; padding-left: 30px; border-left: 2px solid var(--border); }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gold);
}
.timeline-date { font-size: 0.8rem; color: var(--burgundy); font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px; }
.timeline-item h3 { margin-bottom: 8px; }
.timeline-item p { color: var(--text-light); font-size: 0.94rem; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-hero-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--gold); }
.contact-hero-grid { display: grid; grid-template-columns: 1fr 0.92fr; gap: 64px; align-items: start; }

.contact-hero-left h2 { margin-bottom: 0; }
.contact-hero-intro { margin-top: 18px; font-size: 1.02rem; color: var(--text-light); max-width: 46ch; }
.contact-hero-media {
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.contact-hero-media img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.contact-hero-left .btn-secondary { margin-top: 22px; }

.contact-details-panel {
  background: var(--light-bg);
  border-top: 3px solid var(--gold);
  padding: 38px 36px;
}
.cdp-eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 22px;
}

.contact-info-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-list li:first-child { padding-top: 0; }
.contact-info-list li:last-child { border-bottom: none; padding-bottom: 0; }
.contact-info-list .ci-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.78rem; letter-spacing: 0.5px; text-transform: uppercase;
  font-weight: 700; color: var(--navy); margin-bottom: 8px;
}
.contact-info-list .ci-icon {
  width: 17px; height: 17px; color: var(--gold);
  display: inline-flex; flex-shrink: 0;
}
.contact-info-list .ci-icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; }
.contact-info-list .ci-value { font-size: 0.96rem; color: var(--text); }
.contact-info-list .ci-value a { color: var(--text); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.contact-info-list .ci-value a:hover { color: var(--burgundy); }
.contact-info-list .ci-phones a { display: block; margin-bottom: 4px; }
.contact-info-list .ci-phones a:last-child { margin-bottom: 0; }

.admissions-callout {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.admissions-callout p { font-size: 0.92rem; font-weight: 600; color: var(--navy); max-width: 24ch; }

.enquiry-form { max-width: 640px; margin: 0 auto; background: var(--white); padding: 34px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  min-height: 44px;
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--burgundy);
}
.form-note { font-size: 0.8rem; color: var(--text-light); margin-top: 12px; }

.map-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.map-wrap iframe { width: 100%; height: 400px; border: 0; display: block; }
.map-footer { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.map-caption { font-size: 0.9rem; color: var(--text-light); }

.whatsapp-block {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: var(--radius-lg);
}
/* WhatsApp green is a deliberate exception: a recognisable platform color for a WhatsApp link, not a departure from the SREI palette used elsewhere. */
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25913f;
  color: var(--white);
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}
.btn-whatsapp:hover { background: #1f7a35; }
.btn-whatsapp svg { width: 18px; height: 18px; fill: var(--white); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .hero .container { gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .gallery-masonry { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-padding: 56px 0; }

  .topbar-links a:not(:first-child) { display: none; }
  .topbar .container { gap: 10px; }

  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 30px;
    gap: 22px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 1001;
  }
  .nav-toggle:checked ~ .nav-links { transform: translateX(0); }
  .nav-links li { width: 100%; }
  .nav-links li a { display: block; padding: 8px 0; }

  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16/10; }

  .trust-bar .container { display: grid; grid-template-columns: 1fr 1fr; }

  .director-brief .container { grid-template-columns: 1fr; text-align: center; }
  .director-photo img { width: 140px; margin: 0 auto; }

  .why-grid { grid-template-columns: 1fr; }
  .why-media { order: -1; }

  .news-grid-3 { grid-template-columns: 1fr; }
  .clipping-grid { grid-template-columns: 1fr; }

  .gallery-masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery-grid-3 { grid-template-columns: 1fr 1fr; }

  .two-col, .two-col.reverse { grid-template-columns: 1fr; }
  .two-col.reverse .two-col-media { order: 0; }
  .director-full { grid-template-columns: 1fr; }
  .director-full-photo img { max-width: 220px; margin: 0 auto; }
  .leader-grid { grid-template-columns: 1fr; }
  .leader-card { flex-direction: column; text-align: center; align-items: center; }
  .dignitary-grid { grid-template-columns: 1fr; }
  .vm-grid { grid-template-columns: 1fr; }
  .affil-row { grid-template-columns: 1fr; }

  .program-meta-grid { grid-template-columns: 1fr; }
  .addl-courses-grid { grid-template-columns: 1fr; }

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

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

  .contact-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-details-panel { padding: 30px 26px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .gallery-grid-3 { grid-template-columns: 1fr; }
  .gallery-masonry { grid-template-columns: 1fr 1fr; }
}
