/* ===================================================================
   CEMS University of Mumbai — Revamped Homepage
   Classic academic: navy + crest green + brass gold, Cormorant Garamond / Source Sans 3
   Header lockup fonts preserved exactly as per original site
   =================================================================== */

:root {
  /* crest green + brass gold accents (navigation bar, course-at-a-glance box) */
  --green: #3f7016;
  --green-deep: #23400b;
  --green-light: #5f9428;
  --green-soft: #eff4e3;
  --leaf: #b2d37c;
  --navy: #0b2a5b;
  --navy-deep: #071c3e;
  --navy-light: #14397a;
  --gold: #c9a227;
  --gold-dark: #a8841a;
  --ivory: #faf8f3;
  --cream: #f3efe4;
  --text: #33383f;
  --muted: #6b7280;
  --white: #ffffff;
  --shadow: 0 6px 24px rgba(11, 42, 91, 0.10);
  --shadow-lg: 0 14px 40px rgba(11, 42, 91, 0.16);
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--ivory);
}

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.2;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-dark); }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-dark); color: var(--white); transform: translateY(-2px); }
.btn-outline { border-color: rgba(255,255,255,0.75); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-outline-dark { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); color: var(--white); transform: translateY(-2px); }

.text-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  color: var(--gold-dark);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}
.text-link:hover { color: var(--navy); border-color: var(--navy); }
.text-link i { margin-left: 6px; font-size: 13px; transition: transform 0.2s; }
.text-link:hover i { transform: translateX(4px); }

/* ---------- Section headings ---------- */
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 8px;
}
.section-eyebrow.light { color: var(--gold); }
.section-eyebrow.center, .section-title.center, .section-sub.center { text-align: center; }
.section-title { font-size: clamp(30px, 4vw, 42px); font-weight: 700; margin-bottom: 12px; }
.section-sub { max-width: 720px; margin: 0 auto 40px; color: var(--muted); font-size: 17px; }

/* ===================================================================
   HEADER — crest medallion + brass rule lockup
   Brand fonts & #006 colour preserved from the original site
   =================================================================== */
.site-header {
  background: linear-gradient(180deg, #ffffff 0%, #fdfbf5 100%);
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 18px rgba(11,42,91,0.08);
}
.site-header::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #23400b 0%, #3f7016 30%, var(--leaf) 55%, var(--gold) 80%, #c9a227 100%);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
  flex-wrap: nowrap;
}

/* ---------- Brand lockup ---------- */
.brand { display: flex; align-items: center; text-decoration: none; min-width: 0; }

.brand-medallion {
  flex: 0 0 auto;
  width: 74px; height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(201,162,39,0.65);
  box-shadow: 0 0 0 4px rgba(201,162,39,0.10), 0 4px 14px rgba(11,42,91,0.10);
  padding: 6px;
}
.brand-logo { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }

.brand-rule {
  width: 1px; height: 48px;
  margin: 0 20px;
  background: linear-gradient(180deg, rgba(201,162,39,0) 0%, rgba(201,162,39,0.9) 20%, rgba(201,162,39,0.9) 80%, rgba(201,162,39,0) 100%);
  flex: 0 0 auto;
}

.brand-text { display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-width: 0; }
.brand-line { font-weight: 700; }

.brand-university {
  /* original: "Old English Text MT","Times New Roman", Times, serif */
  font-family: "Old English Text MT", "Times New Roman", Times, serif;
  font-size: clamp(23px, 2.6vw, 31px);
  font-weight: bold;
  color: #000066;
  line-height: 1.02;
  white-space: nowrap;
}
.brand-hairline {
  display: block;
  width: 54px; height: 2px;
  margin: 5px 0 6px;
  background: linear-gradient(90deg, var(--gold), rgba(201,162,39,0.15));
  border-radius: 2px;
}
.brand-ems {
  /* original: Arial bold, #006 */
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(14px, 1.4vw, 16.5px);
  font-weight: 800;
  color: #000066;
  line-height: 1.18;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-dept {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(10.5px, 1.05vw, 12px);
  font-weight: 700;
  color: #000066;
  letter-spacing: 3.2px;
  margin-top: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-university.small { font-size: 18px; }
.brand-ems.small { font-size: 12px; color: rgba(255,255,255,0.88); letter-spacing: 0.5px; }
.footer-brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-brand-text { min-width: 0; }
.footer-brand-text .brand-line { display: block; white-space: normal; }
.footer-brand img { width: 72px; height: auto; }

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  flex-shrink: 0;
}
.header-follow {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #8a8577;
}
.social-icons { display: flex; gap: 9px; }
.social-icons a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(11,42,91,0.18);
  color: #0b2a5b;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: all 0.25s;
}
.social-icons a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-2px);
}

/* ---------- Nav ---------- */
.main-nav {
  background: linear-gradient(90deg, #23400b 0%, #3f7016 38%, #4d8020 62%, #2c5310 100%);
  border-top: 1px solid rgba(255,255,255,0.16);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 120;
  box-shadow: 0 4px 14px rgba(11,42,91,0.22);
}
.nav-container { position: relative; }

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--white);
  border: none;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 0;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.3px;
}
.nav-toggle i { margin-right: 10px; }
.nav-list { list-style: none; display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 0; }
.nav-list > li { position: relative; flex: 0 1 auto; text-align: center; white-space: nowrap; }
.nav-list > li > a,
.dropbtn {
  display: block;
  width: 100%;
  padding: 12px 14px;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.2px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-list > li > a:hover,
.dropbtn:hover,
.nav-list > li > a.active,
.nav-list > li.active-item > .dropbtn { background: var(--gold); color: var(--navy-deep); }
.dropbtn i { font-size: 10px; margin-left: 6px; }

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 280px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 8px 8px;
  z-index: 50;
  padding: 6px 0;
  text-align: left;
}
.dropdown-content.wide { min-width: 320px; }
.dropdown-content a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
}
.dropdown-content a:hover { background: var(--green-soft); color: var(--navy-deep); }
.nav-list > li:hover .dropdown-content { display: block; }

/* nav: highlighted parent for active dropdown item */
.nav-list > li.active-item > .dropbtn { background: var(--gold); color: var(--navy-deep); }

/* Keep every nav item on a single line on smaller desktops */
@media (max-width: 1200px) {
  .nav-list > li > a,
  .dropbtn { font-size: 14px; padding: 12px 10px; letter-spacing: 0; }
  .dropbtn i { margin-left: 4px; }
}
@media (max-width: 1080px) {
  .nav-list > li > a,
  .dropbtn { font-size: 13.5px; padding: 12px 7px; }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-list { display: none; flex-direction: column; text-align: left; }
  .nav-list.open { display: flex; }
  .nav-list > li { flex: 1 1 100%; text-align: left; }
  .nav-list > li > a,
  .dropbtn { text-align: left; padding: 14px 0; }
  .dropdown-content { position: static; box-shadow: none; border-top: none; background: rgba(255,255,255,0.04); }
  .dropdown-content a { color: var(--white); padding: 10px 16px; }
  .dropdown-content a:hover { background: rgba(201,162,39,0.25); color: var(--white); }
  .dropdown-content a.active { background: var(--gold); color: var(--navy-deep); }
  .nav-list > li .dropdown-content { display: none; }
  .nav-list > li.open .dropdown-content { display: block; }
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative;
  background: url("../images/hero-campus.jpg") center/cover no-repeat;
  padding: 110px 0 90px;
  color: var(--white);
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(7,28,62,0.94) 30%, rgba(11,42,91,0.75) 65%, rgba(20,57,122,0.55));
}
.hero-content { position: relative; z-index: 2; max-width: 780px; }
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 20px;
}
.hero h1 em { color: var(--gold); font-style: italic; }
.hero-lead { font-size: 19px; color: rgba(255,255,255,0.9); max-width: 640px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 36px; }
.hero-badges {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 12px 28px;
}
.hero-badges li { font-weight: 600; font-size: 15px; color: rgba(255,255,255,0.92); }
.hero-badges i { color: var(--gold); margin-right: 8px; }

/* ===================================================================
   ABOUT STRIP
   =================================================================== */
.about-strip { padding: 80px 0; background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-text h2 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 18px; }
.about-text .gold { color: var(--gold-dark); }
.about-text p { margin-bottom: 14px; color: var(--text); }

.about-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.point-card {
  background: var(--ivory);
  border: 1px solid var(--cream);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: all 0.25s;
}
.point-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.point-card i { font-size: 24px; color: var(--gold-dark); margin-bottom: 12px; display: block; }
.point-card h3 { font-size: 21px; margin-bottom: 6px; }
.point-card p { font-size: 15px; color: var(--muted); line-height: 1.5; }

/* ===================================================================
   COURSES
   =================================================================== */
.courses-section { padding: 80px 0; background: var(--ivory); }
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 24px;
}
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
  position: relative;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--navy);
  color: var(--text);
}
.card-icon {
  width: 58px; height: 58px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
  transition: all 0.25s;
}
.course-card:hover .card-icon { background: var(--navy); color: var(--gold); }
.course-card h3 { font-size: 23px; margin-bottom: 10px; }
.course-card p { font-size: 15px; color: var(--muted); flex-grow: 1; margin-bottom: 16px; }
.card-link { font-weight: 700; font-size: 14px; color: var(--gold-dark); text-transform: uppercase; letter-spacing: 1px; }
.card-link i { font-size: 12px; margin-left: 5px; transition: transform 0.2s; }
.course-card:hover .card-link i, .vacation-card:hover .card-link i { transform: translateX(4px); }

/* ===================================================================
   MA BANNER
   =================================================================== */
.ma-banner {
  background: linear-gradient(115deg, var(--navy-deep), var(--navy) 55%, var(--navy-light));
  color: var(--white);
  padding: 80px 0;
}
.ma-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
.ma-text h2 { color: var(--white); font-size: clamp(30px, 4vw, 42px); margin-bottom: 16px; }
.ma-text p { color: rgba(255,255,255,0.88); margin-bottom: 26px; }

.ma-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stat {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}
.stat-label { font-size: 14px; color: rgba(255,255,255,0.85); text-transform: uppercase; letter-spacing: 1.5px; }

/* ===================================================================
   VACATION COURSES
   =================================================================== */
.vacation-section { padding: 80px 0; background: var(--white); }
.vacation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.vacation-card {
  background: var(--ivory);
  border: 2px solid var(--cream);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  transition: all 0.25s;
}
.vacation-card:hover { border-color: var(--gold); transform: translateY(-6px); box-shadow: var(--shadow); color: var(--text); }
.vacation-card i { font-size: 34px; color: var(--gold-dark); margin-bottom: 16px; }
.vacation-card h3 { font-size: 24px; margin-bottom: 10px; }
.vacation-card p { font-size: 15px; color: var(--muted); margin-bottom: 16px; }

/* ===================================================================
   RURAL STRIP
   =================================================================== */
.rural-strip {
  background: var(--cream);
  border-top: 1px solid #e5ddc5;
  border-bottom: 1px solid #e5ddc5;
  padding: 64px 0;
}
.rural-inner {
  display: grid;
  grid-template-columns: 1.6fr auto;
  gap: 40px;
  align-items: center;
}
.rural-inner h2 { font-size: clamp(28px, 3.5vw, 38px); margin-bottom: 12px; }
.rural-inner p { color: var(--text); max-width: 760px; }

/* ===================================================================
   INTERNAL PAGE HERO (used on gallery.html and future inner pages)
   =================================================================== */.page-hero {
  background: linear-gradient(115deg, var(--navy-deep), var(--navy) 60%, var(--navy-light));
  color: var(--white);
  padding: 64px 0;
  border-bottom: 4px solid var(--gold);
}
.page-hero h1 { color: var(--white); font-size: clamp(34px, 5vw, 48px); margin-bottom: 10px; }
.page-hero .hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}
.page-hero-lead { color: rgba(255,255,255,0.85); font-size: 18px; max-width: 640px; }

/* ===================================================================
   GALLERY
   =================================================================== */
.gallery-section { padding: 80px 0; background: var(--ivory); }
.gallery-block { margin-bottom: 56px; }
.gallery-block:last-of-type { margin-bottom: 32px; }
.gallery-album-title { font-size: clamp(24px, 3vw, 30px); margin-bottom: 22px; padding-bottom: 12px; border-bottom: 2px solid var(--cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.gallery-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, var(--cream) 0 12px, #ece5d0 12px 24px);
  border: 1px solid #e0d7bd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s;
  overflow: hidden;
}
.gallery-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.gallery-tile i { font-size: 28px; color: var(--gold-dark); opacity: 0.8; }
.gallery-tile figcaption {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
}
.gallery-note {
  text-align: center;
  margin-top: 28px;
  color: var(--muted);
  font-size: 15px;
}
.gallery-note i { color: var(--gold-dark); margin-right: 6px; }

/* ===================================================================
   ADMISSION STRIP
   =================================================================== */
.admission-strip { background: var(--white); padding: 70px 0; border-top: 4px solid var(--gold); }
.admission-inner {
  display: grid;
  grid-template-columns: 1.6fr auto;
  gap: 40px;
  align-items: center;
}
.admission-text h2 { font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 12px; }
.admission-text h2 i { color: var(--gold-dark); margin-right: 10px; }
.admission-text p { margin-bottom: 10px; }
.admission-address { font-size: 15px; color: var(--muted); }
.admission-address i { color: var(--gold-dark); margin-right: 5px; }
.admission-address a { color: var(--navy); font-weight: 600; }
.admission-actions { display: flex; flex-direction: column; gap: 14px; }

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.8); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 60px 0 44px;
}
.footer-col h4 {
  color: var(--gold);
  font-size: 19px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.footer-col a { display: block; color: rgba(255,255,255,0.8); font-size: 15px; padding: 4px 0; }
.footer-col a:hover { color: var(--gold); }
.footer-col p { font-size: 15px; margin-bottom: 10px; }
.footer-col p i { color: var(--gold); margin-right: 8px; width: 16px; }
.footer-col p a { display: inline; padding: 0; }

.footer-brand img { width: 72px; margin-bottom: 12px; border-radius: 6px; }
.footer-brand span { display: block; line-height: 1.4; }

.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.footer-social a:hover { background: var(--gold); color: var(--navy-deep); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0;
  text-align: center;
  font-size: 14px;
}

/* ===================================================================
   INTERNAL PAGE BODY (migrated content on inner pages)
   =================================================================== */
.page-body-section { background: var(--white); padding: 70px 0 80px; }
.page-body { max-width: 900px; }

.page-body h2 { font-size: clamp(24px, 3vw, 30px); margin: 30px 0 12px; }
.page-body h3 { font-size: 22px; margin: 26px 0 10px; }
.page-body p { margin-bottom: 14px; }
.page-body b, .page-body strong { color: var(--navy); }

.page-body ul, .page-body ol { margin: 0 0 16px 24px; }
.page-body li { margin-bottom: 7px; }

/* legacy class names used in original content */
.page-body .paraheading {
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 15px;
  margin: 26px 0 12px;
}
.page-body .paraheadingsmall {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  border-left: 4px solid var(--gold);
  padding-left: 14px;
  margin: 30px 0 16px;
}
.page-body a { color: var(--gold-dark); text-decoration: underline; }
.page-body a:hover { color: var(--navy); }

/* info block: first <p> run with bold labels on course pages renders nicely */
.page-body table { border-collapse: collapse; width: 100%; margin-bottom: 20px; }
.page-body td, .page-body th { border: 1px solid var(--cream); padding: 10px 14px; text-align: left; }

/* Marathi (Devanagari) course page */
.lang-mr .page-body { font-family: "Noto Sans Devanagari", "Nirmala UI", "Mangal", sans-serif; }

/* nav: highlighted parent for active dropdown item */
.nav-list > li.active-item > .dropbtn { background: var(--gold); color: var(--navy-deep); }

/* ===================================================================
   ENQUIRY FORM
   =================================================================== */
.enquiry-section { background: var(--ivory); padding: 70px 0 84px; }
.enquiry-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}

.enquiry-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 42px 44px;
  border-top: 4px solid var(--gold);
}

.form-alert {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 8px;
  margin-bottom: 26px;
  font-size: 15.5px;
}
.form-alert[hidden] { display: none; }
.form-alert i { font-size: 22px; margin-top: 2px; }
.form-alert.success { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.form-alert.error { background: #fdecea; color: #922b21; border: 1px solid #f5b7b1; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-field { margin-bottom: 22px; }
.form-field label {
  display: block;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--navy);
  margin-bottom: 7px;
  letter-spacing: 0.3px;
}
.req { color: #c0392b; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid #d8d4c6;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 42, 91, 0.12);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field .invalid { border-color: #c0392b; }
.form-field .invalid:focus { box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12); }

.field-error {
  display: none;
  color: #c0392b;
  font-size: 13.5px;
  margin-top: 6px;
  font-weight: 600;
}
.field-error.show { display: block; }

/* honeypot — visually hidden */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.submit-btn { border: none; width: auto; }
.submit-btn:hover { transform: translateY(-2px); }
.form-note { font-size: 13.5px; color: var(--muted); margin-top: 16px; }
.form-note i { color: var(--gold-dark); margin-right: 6px; }

/* aside cards */
.enquiry-aside { display: grid; gap: 22px; }
.aside-card {
  background: var(--white);
  border: 1px solid var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 24px 26px;
}
.aside-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.aside-card h3 i { color: var(--gold-dark); font-size: 16px; }
.aside-card h3 + h3 { margin-top: 18px; }
.aside-card p { font-size: 15px; color: var(--text); margin-bottom: 8px; }
.aside-card a { color: var(--navy); font-weight: 600; text-decoration: underline; }
.aside-hours i { color: var(--gold-dark); margin-right: 8px; }

/* CTA bar at the bottom of course pages */
.course-cta {
  margin-top: 44px;
  background: linear-gradient(115deg, var(--navy-deep), var(--navy));
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.course-cta h3 { color: var(--white); font-size: 25px; margin-bottom: 6px; }
.course-cta p { color: rgba(255,255,255,0.85); font-size: 15.5px; }

@media (max-width: 992px) {
  .enquiry-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .enquiry-form-wrap { padding: 28px 22px; }
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 992px) {
  .about-grid, .ma-inner, .rural-inner, .admission-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admission-actions { flex-direction: row; }
}

@media (max-width: 860px) {
  .brand-medallion { width: 70px; height: 70px; padding: 6px; }
  .brand-rule { height: 48px; margin: 0 15px; }
  .brand-university { font-size: 22px; }
  .brand-ems { font-size: 13px; letter-spacing: 1px; }
  .brand-dept { font-size: 10px; letter-spacing: 2.4px; }
  .hero { padding: 70px 0 60px; }
}

@media (max-width: 560px) {
  .header-inner { gap: 12px; padding: 12px 0; }
  .header-follow { display: none; }
  .brand-medallion { width: 62px; height: 62px; padding: 5px; box-shadow: 0 0 0 4px rgba(201,162,39,0.10); }
  .brand-rule { display: none; }
  .brand-university { font-size: 21px; }
  .brand-hairline { width: 40px; margin: 5px 0 6px; }
  .brand-ems { font-size: 11.5px; letter-spacing: 0.7px; }
  .brand-dept { font-size: 9px; letter-spacing: 1.7px; margin-top: 4px; }
  .social-icons { display: none; }
  .footer-brand img { width: 56px; }
  .brand-ems.small { font-size: 10.5px; letter-spacing: 0.3px; }
  .brand-university.small { font-size: 16px; }
  .about-points, .ma-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .admission-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

/* ===================================================================
   HOME PAGE — REFERENCE HEADER, MENU & BANNER
   Scoped to body.home so the inner pages keep their current styling.
   =================================================================== */
.home {
  --home-blue: #1d398d;
  --home-ember: #903c00;
  --home-rust: #963c00;
  --home-gold: #e5b336;
}

/* ---------- Utility top strip ---------- */
.home .top-strip .container { width: min(1400px, 94%); }
.home .top-strip {
  background: linear-gradient(90deg, #1d398d 0%, #26365f 28%, #2c2b33 52%, #5c341e 78%, #903c00 100%);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}
.home .top-strip-inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  flex-wrap: wrap;
}
.home .top-strip-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.35px;
  color: rgba(255, 255, 255, 0.92);
}
.home .top-strip-title i { color: var(--home-gold); font-size: 13px; }
.home .top-strip-title .sep { opacity: 0.6; }
.home .top-strip-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  transition: color 0.2s, border-color 0.2s;
}
.home .top-strip-cta:hover { color: var(--home-gold); border-color: var(--home-gold); }
.home .top-strip-cta i { font-size: 10px; transition: transform 0.2s; }
.home .top-strip-cta:hover i { transform: translateX(3px); }

/* ---------- Header / brand ---------- */
.home .site-header {
  background: #fff;
  box-shadow: 0 6px 26px rgba(11, 42, 91, 0.10);
  position: relative;
  z-index: 100;
}
.home .site-header::before { display: none; }

.home .home-header-inner {
  width: min(1400px, 94%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 13px 0;
  flex-wrap: nowrap;
  position: relative;
}
.home .home-brand { gap: 0; flex: 0 0 auto; }
.home .home-brand .brand-medallion {
  width: 72px;
  height: 72px;
  padding: 6px;
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.12), 0 5px 15px rgba(11, 42, 91, 0.12);
}
.home .home-brand-text { gap: 0; }
.home .home-brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 2.5px;
  line-height: 1;
  color: var(--navy);
}
.home .home-brand-sub {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.3px;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--navy);
  margin-top: 4px;
}
.home .home-brand-sub-alt {
  font-size: 9px;
  letter-spacing: 2.1px;
  color: #8a8577;
  margin-top: 1px;
}

/* ---------- Inline menu ---------- */
.home .home-nav { margin-left: auto; }
.home .home-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}
.home .home-nav-list > li { position: relative; display: flex; align-items: center; }
.home .home-nav-list > li > a,
.home .home-nav-list > li > .dropbtn {
  display: block;
  max-width: 112px;
  padding: 11px 9px;
  background: none;
  border: 0;
  color: #3f3f3f;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.15px;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.home .home-nav-list > li > a::after,
.home .home-nav-list > li > .dropbtn::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width 0.22s ease;
}
.home .home-nav-list > li > a:hover::after,
.home .home-nav-list > li > .dropbtn:hover::after,
.home .home-nav-list > li > a.active::after { width: 22px; }
.home .home-nav-list > li > a:hover,
.home .home-nav-list > li > .dropbtn:hover { color: var(--navy); }
.home .home-nav-list > li > a.active { color: #2b357a; font-weight: 700; }
.home .home-nav-list .dropbtn i {
  font-size: 8px;
  color: var(--gold-dark);
  opacity: 0.75;
  margin-left: 4px;
}

/* ---------- Dropdowns on the white header ---------- */
.home .home-nav .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  padding: 8px 0;
  background: #fff;
  border-top: 3px solid var(--gold);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 18px 44px rgba(11, 42, 91, 0.18);
  text-align: left;
  z-index: 60;
}
.home .home-nav .dropdown-content.wide { min-width: 330px; }
.home .home-nav .dropdown-content a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.home .home-nav .dropdown-content a:hover { background: var(--green-soft); color: var(--navy-deep); }
.home .home-nav-list > li:hover .dropdown-content { display: block; }

/* ---------- Banner ---------- */
.home .hero {
  position: relative;
  min-height: 610px;
  display: flex;
  align-items: center;
  padding: 92px 0 100px;
  background: url("../images/hero-campus.jpg") center 38%/cover no-repeat;
  overflow: hidden;
  color: var(--white);
}
.home .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 86% 20%, rgba(144, 60, 0, 0.34), transparent 45%),
    linear-gradient(100deg, rgba(5, 12, 26, 0.95) 0%, rgba(7, 16, 36, 0.87) 45%, rgba(12, 20, 38, 0.70) 74%, rgba(18, 20, 26, 0.58) 100%);
}
.home .hero-content { position: relative; z-index: 2; max-width: none; }
.home .hero .container { width: min(1400px, 94%); }
.home .hero-eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  font-weight: 700;
  color: var(--home-gold);
  margin-bottom: 18px;
}
.home .hero h1 {
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.3px;
  font-weight: 700;
  max-width: 780px;
  margin-bottom: 22px;
}
.home .hero h1 em { color: var(--home-gold); }
.home .hero-lead {
  font-size: 19px;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.84);
  max-width: 690px;
  margin-bottom: 34px;
}
.home .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 0; }
.home .hero .btn {
  border-radius: 5px;
  padding: 12px 28px;
  font-size: 15px;
  letter-spacing: 0.25px;
}
.home .btn-rust { background: var(--home-rust); color: #fff; }
.home .btn-rust:hover { background: #7c3000; color: #fff; transform: translateY(-2px); }
.home .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.home .btn-ghost:hover { background: #fff; border-color: #fff; color: var(--navy-deep); transform: translateY(-2px); }

/* ---------- Home header responsive ---------- */
@media (max-width: 1400px) {
  .home .home-header-inner { gap: 18px; }
  .home .brand-rule { display: none; }
  .home .home-brand { gap: 14px; }
  .home .home-brand-name { font-size: 27px; }
  .home .home-brand-sub { font-size: 10.5px; letter-spacing: 1.1px; }
  .home .home-brand-sub-alt { font-size: 8.5px; letter-spacing: 1.8px; }
  .home .home-nav-list > li > a,
  .home .home-nav-list > li > .dropbtn { font-size: 12.5px; padding: 10px 7px; max-width: 96px; }
}

@media (max-width: 1200px) {
  .home .home-header-inner { flex-wrap: wrap; gap: 0; padding: 12px 0; }
  .home .home-nav { margin-left: auto; }
  .home .home-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 10px 16px;
    border: 1px solid rgba(11, 42, 91, 0.22);
    border-radius: 6px;
    color: var(--navy);
    background: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  }
  .home .home-nav-toggle i { font-size: 14px; margin: 0; }
  .home .home-nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-top: 1px solid var(--cream);
    box-shadow: 0 22px 40px rgba(11, 42, 91, 0.16);
    padding: 8px 0 12px;
    z-index: 200;
  }
  .home .home-nav-list.open { display: flex; }
  .home .home-nav-list > li { display: block; }
  .home .home-nav-list > li > a,
  .home .home-nav-list > li > .dropbtn {
    display: flex;
    max-width: none;
    width: 100%;
    justify-content: space-between;
    text-align: left;
    padding: 13px 18px;
    font-size: 14.5px;
  }
  .home .home-nav-list > li > a::after,
  .home .home-nav-list > li > .dropbtn::after { display: none; }
  .home .home-nav-list .dropbtn i { margin-left: 8px; }
  .home .home-nav .dropdown-content,
  .home .home-nav .dropdown-content.wide {
    display: none;
    position: static;
    min-width: 0;
    padding: 0 0 6px;
    border-top: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--green-soft);
  }
  .home .home-nav-list > li:hover .dropdown-content { display: none; }
  .home .home-nav-list > li.open > .dropdown-content { display: block; }
  .home .home-nav .dropdown-content a { padding: 10px 34px; color: var(--navy); }
  .home .home-nav .dropdown-content a:hover { background: var(--cream); color: var(--navy-deep); }
}

@media (max-width: 860px) {
  .home .hero { min-height: 0; padding: 70px 0 76px; background-position: center; }
  .home .hero h1 { font-size: clamp(38px, 9vw, 52px); }
  .home .hero-lead { font-size: 17.5px; }
}

@media (max-width: 700px) {
  .home .top-strip-inner { justify-content: center; gap: 4px; padding: 8px 0; }
  .home .top-strip-title { font-size: 10.5px; letter-spacing: 0.2px; justify-content: center; text-align: center; }
  .home .ts-extra { display: none; }
  .home .top-strip-cta { font-size: 11px; }
}

@media (max-width: 560px) {
  .home .hero { padding: 56px 0 62px; }
  .home .hero h1 { font-size: 38px; }
  .home .hero-actions { gap: 10px; }
  .home .hero .btn { width: 100%; justify-content: center; text-align: center; }
  .home .home-nav-toggle { gap: 0; padding: 11px 13px; font-size: 0; }
  .home .home-nav-toggle i { font-size: 16px; }
  .home .home-brand { gap: 12px; }
  .home .home-brand .brand-medallion { width: 60px; height: 60px; padding: 5px; }
  .home .home-brand-name { font-size: 23px; }
  .home .home-brand-sub { font-size: 9px; letter-spacing: 0.7px; }
  .home .home-brand-sub-alt { font-size: 7.5px; letter-spacing: 1.4px; }
}
