/* ==========================================================================
   Sushrutha Institute of Pharmacy — Stylesheet
   Design tokens
   ========================================================================== */

:root {
  /* Color */
  --ink: #2A2522;
  --teal-deep: #0E3B36;
  --teal-mid: #1F6F5C;
  --teal-soft: #E4EEEA;
  --parchment: #F6F1E4;
  --parchment-dim: #EFE8D6;
  --amber: #C97A3D;
  --amber-dark: #A85F2A;
  --line: #DED4B8;
  --white: #FFFFFF;
  --shadow: 0 10px 30px -12px rgba(14, 59, 54, 0.25);

  /* Type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 10px;
  --radius-lg: 18px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--teal-deep);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.lede {
  font-size: 1.15rem;
  color: #4A463F;
  max-width: 60ch;
}

/* Eyebrow — prescription-label style tag */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-dark);
  padding: 6px 14px;
  border: 1px solid var(--amber);
  border-radius: 999px;
  background: rgba(201, 122, 61, 0.08);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

/* Rx-style section divider */
.rx-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 auto 40px;
  max-width: 280px;
}
.rx-divider .rx-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--teal-mid);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--teal-mid);
  flex-shrink: 0;
}
.rx-divider .rx-line {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px);
}
.rx-divider.is-centered { justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber);
  color: var(--white);
}
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline {
  border-color: var(--teal-deep);
  color: var(--teal-deep);
  background: transparent;
}
.btn-outline:hover { background: var(--teal-deep); color: var(--white); }
.btn-ghost-light {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.15); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

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

.topbar {
  background: var(--teal-deep);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-left { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar a:hover { color: var(--amber); }
.topbar-badge {
  background: rgba(255,255,255,0.12);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  min-width: 0;
}
.brand img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.brand-text { min-width: 0; overflow: hidden; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--teal-deep);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.brand-tag {
  font-size: 0.75rem;
  color: #6B6657;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}
.nav-links > li { position: relative; flex-shrink: 0; }
.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  padding: 9px 11px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  border-radius: 8px;
}
.nav-links > li > a:hover,
.nav-links > li.is-open > a { color: var(--teal-mid); background: var(--teal-soft); }
.nav-links .chev { width: 13px; height: 13px; transition: transform 0.2s ease; }
.nav-links > li.is-open .chev { transform: rotate(180deg); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 28px; height: 28px; color: var(--teal-deep); }

/* Dropdown mega panels */
.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
  min-width: 300px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 50;
}
.nav-links > li.is-open .mega,
.nav-links > li:hover .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega.mega-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; min-width: 480px; }
.mega-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 10px;
}
.mega-item {
  display: flex;
  gap: 12px;
  padding: 9px 8px;
  border-radius: 8px;
  align-items: flex-start;
}
.mega-item:hover { background: var(--parchment); }
.mega-item .ico {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal-mid);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mega-item .ico svg { width: 17px; height: 17px; }
.mega-item-title { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.mega-item-sub { font-size: 0.78rem; color: #807A68; margin-top: 1px; }
.mega-divider { height: 1px; background: var(--line); margin: 14px 0; grid-column: 1 / -1; }

/* ==========================================================================
   News ticker
   ========================================================================== */
.ticker-wrap {
  background: var(--amber);
  color: var(--white);
  overflow: hidden;
  white-space: nowrap;
  padding: 9px 0;
  position: relative;
  width: 100%;
}
.ticker-track {
  display: inline-flex;
  gap: 60px;
  animation: ticker 32s linear infinite;
  will-change: transform;
  white-space: nowrap;
}
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.ticker-item svg { width: 14px; height: 14px; flex-shrink: 0; }
@keyframes ticker {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,59,54,0.35) 0%, rgba(14,59,54,0.65) 60%, rgba(14,59,54,0.88) 100%),
    linear-gradient(90deg, rgba(14,59,54,0.45) 0%, rgba(14,59,54,0.05) 60%);
}
.hero-content { position: relative; z-index: 2; padding: 90px 0 60px; }
.hero .eyebrow { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); color: var(--white); }
.hero .eyebrow::before { background: var(--amber); }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .lede { color: rgba(255,255,255,0.88); margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 50px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.82rem;
}
.hero-badge strong { font-family: var(--font-display); font-size: 1.05rem; display: block; }

/* ==========================================================================
   Split hero layout (homepage only)
   ========================================================================== */
.hero-split {
  min-height: 94vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  color: var(--white);
  padding: 0 !important;
  margin: 0;
}
.hero-split-text {
  background: linear-gradient(160deg, var(--teal-deep) 0%, #134B44 100%);
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 56px 80px 48px;
}
.hero-split-img {
  flex: 0 0 50%;
  overflow: hidden;
}
.hero-split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}
.hero-eyebrow { background: rgba(255,255,255,0.12) !important; border-color: rgba(255,255,255,0.4) !important; color: var(--white) !important; margin-bottom: 20px; }
.hero-eyebrow::before { background: var(--amber) !important; }
.hero-split h1 { color: var(--white); max-width: 16ch; margin-bottom: 16px; }
.hero-lede { color: rgba(255,255,255,0.85); margin-bottom: 32px; max-width: 42ch; }
.hero-split .hero-actions { margin-bottom: 36px; }
.hero-split .hero-badges { flex-wrap: wrap; gap: 10px; }
.hero-split .hero-badge { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); padding: 8px 14px; border-radius: 10px; font-size: 0.8rem; }
.hero-split .hero-badge strong { font-family: var(--font-display); font-size: 0.95rem; display: block; }

@media (max-width: 860px) {
  .hero-split { flex-direction: column; min-height: auto; }
  .hero-split-img { flex: none; height: 260px; order: -1; }
  .hero-split-img img { object-position: center 35%; }
  .hero-split-text { flex: none; padding: 44px 20px 48px; text-align: center; align-items: center; }
  .hero-split h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); max-width: 100%; }
  .hero-lede { font-size: 0.95rem; max-width: 100%; }
  .hero-split .hero-actions { flex-direction: column; width: 100%; align-items: center; }
  .hero-split .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
  .hero-split .hero-badges { justify-content: center; }
}

/* Stat strip overlapping hero bottom */
.stat-strip {
  position: relative;
  z-index: 3;
  margin-top: 0;
}
.stat-strip .container {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-cell {
  text-align: center;
  padding: 26px 14px;
  border-right: 1px solid var(--line);
}
.stat-cell:last-child { border-right: none; }
.stat-cell .num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--teal-deep);
  font-weight: 600;
}
.stat-cell .num .unit { font-size: 1.1rem; color: var(--amber); }
.stat-cell .lbl { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: #807A68; margin-top: 4px; }

/* ==========================================================================
   Sections
   ========================================================================== */
section { padding: 90px 0; width: 100%; max-width: 100%; overflow-x: hidden; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-head .lede { margin: 14px auto 0; }
.section-tinted { background: var(--teal-soft); }
.section-deep { background: var(--teal-deep); color: rgba(255,255,255,0.92); }
.section-deep h2 { color: var(--white); }
.section-deep .lede { color: rgba(255,255,255,0.75); }

/* About split */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-media { position: relative; }
.about-media img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 460px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.about-media-tag {
  position: absolute;
  bottom: -22px; left: -22px;
  background: var(--amber);
  color: var(--white);
  padding: 16px 22px;
  border-radius: 12px;
  font-family: var(--font-display);
  box-shadow: var(--shadow);
}
.about-media-tag .big { font-size: 1.6rem; display: block; }
.about-media-tag .small { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.about-points { margin-top: 24px; display: grid; gap: 14px; }
.about-point { display: flex; gap: 12px; align-items: flex-start; }
.about-point .tick {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal-mid); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.about-point .tick svg { width: 12px; height: 12px; }

/* Programme / course cards — "medicine box label" flip signature */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.prog-card {
  perspective: 1400px;
  height: 340px;
}
.prog-card-inner {
  position: relative;
  width: 100%; height: 100%;
  transition: transform 0.6s cubic-bezier(.2,.7,.3,1);
  transform-style: preserve-3d;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.prog-card:hover .prog-card-inner,
.prog-card.is-flipped .prog-card-inner { transform: rotateY(180deg); }
.prog-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
}
.prog-front {
  background: linear-gradient(160deg, var(--teal-deep), #134B44);
  color: var(--white);
  justify-content: space-between;
}
.prog-front .prog-duration {
  align-self: flex-start;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.15);
  padding: 6px 12px;
  border-radius: 999px;
}
.prog-front h3 { color: var(--white); font-size: 2rem; margin: 0; }
.prog-front .prog-sub { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.prog-front .prog-hint { font-size: 0.78rem; color: rgba(255,255,255,0.55); display: flex; align-items: center; gap: 6px; }
.prog-back {
  background: var(--white);
  border: 1.5px solid var(--line);
  transform: rotateY(180deg);
  justify-content: space-between;
}
.prog-back-list { display: grid; gap: 10px; font-size: 0.88rem; }
.prog-back-list li { display: flex; gap: 9px; align-items: flex-start; }
.prog-back-list svg { width: 15px; height: 15px; color: var(--teal-mid); flex-shrink: 0; margin-top: 3px; }
.prog-back .seats-row { display: flex; gap: 10px; }
.prog-back .seat-pill {
  flex: 1; text-align: center;
  background: var(--parchment);
  border-radius: 8px;
  padding: 10px 6px;
}
.prog-back .seat-pill .n { font-family: var(--font-display); font-size: 1.2rem; color: var(--teal-deep); }
.prog-back .seat-pill .l { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; color: #807A68; }

/* Feature / facility cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 280px;
}
.feature-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.feature-card:hover img { transform: scale(1.06); }
.feature-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14,59,54,0.92) 100%);
}
.feature-card-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px;
  z-index: 2;
  color: var(--white);
}
.feature-card-body h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 4px; }
.feature-card-body p { font-size: 0.82rem; color: rgba(255,255,255,0.78); margin: 0; }
.feature-card.no-tile { background: var(--white); border: 1.5px solid var(--line); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 24px; }
.feature-card.no-tile .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--teal-soft); color: var(--teal-mid); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-card.no-tile .ico svg { width: 26px; height: 26px; }
.feature-card.no-tile h3 { color: var(--teal-deep); }
.feature-card.no-tile p { color: #6B6657; font-size: 0.88rem; }

/* Messages (Secretary / Principal) */
.message-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.message-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 38px;
  position: relative;
}
.message-card .quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--amber);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: -10px;
}
.message-card p { color: #4A463F; font-size: 0.95rem; }
.message-signoff { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.message-signoff .av {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal-mid);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600;
}
.message-signoff .role { font-weight: 700; font-size: 0.9rem; color: var(--teal-deep); }
.message-signoff .org { font-size: 0.78rem; color: #807A68; }

/* Faculty */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 26px;
}
.faculty-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  text-align: center;
}
.faculty-card .photo {
  height: 220px;
  background: var(--teal-soft);
  overflow: hidden;
}
.faculty-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.faculty-card .body { padding: 18px; }
.faculty-card h3 { font-size: 1rem; margin-bottom: 2px; }
.faculty-card .desig { font-size: 0.8rem; color: var(--amber-dark); font-weight: 600; margin-bottom: 6px; }
.faculty-card .qual { font-size: 0.78rem; color: #807A68; }

/* Gallery */
.gallery-filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.gfilter {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: 0.84rem;
  font-weight: 600;
  background: var(--white);
  color: var(--ink);
}
.gfilter.is-active, .gfilter:hover { border-color: var(--teal-mid); color: var(--teal-mid); background: var(--teal-soft); }
.gallery-grid {
  columns: 3 220px;
  column-gap: 18px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item img { width: 100%; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(14,59,54,0.85));
  color: var(--white);
  font-size: 0.78rem;
  padding: 24px 12px 10px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-item:hover .gallery-cap { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(14,30,28,0.92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 24px; right: 30px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close svg { width: 18px; height: 18px; }

/* Admission highlight posters strip */
.poster-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.poster-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.poster-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }

/* Testimonial / student voices */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 30px;
}
.testimonial-card .stars { color: var(--amber); font-size: 0.9rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card p { font-size: 0.92rem; color: #4A463F; }
.testimonial-who { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.testimonial-who .av { width: 40px; height: 40px; border-radius: 50%; background: var(--teal-soft); }
.testimonial-who strong { font-size: 0.86rem; display: block; }
.testimonial-who span { font-size: 0.75rem; color: #807A68; }

/* Notices */
.notice-list { display: grid; gap: 12px; }
.notice-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.notice-row .ico { width: 38px; height: 38px; border-radius: 8px; background: var(--teal-soft); color: var(--teal-mid); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notice-row .ico svg { width: 18px; height: 18px; }
.notice-row .meta { flex: 1; min-width: 0; }
.notice-row .meta strong { display: block; font-size: 0.92rem; }
.notice-row .meta span { font-size: 0.76rem; color: #807A68; }
.notice-row .cat-tag { font-size: 0.7rem; background: var(--parchment-dim); padding: 4px 10px; border-radius: 999px; color: var(--amber-dark); font-weight: 700; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--teal-deep), #134B44);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.75); margin: 0; }

/* Map / contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.contact-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: none; }
.contact-row .ico { width: 38px; height: 38px; border-radius: 9px; background: var(--teal-soft); color: var(--teal-mid); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-row .ico svg { width: 18px; height: 18px; }
.contact-row strong { display: block; font-size: 0.88rem; }
.contact-row span, .contact-row a { font-size: 0.85rem; color: #6B6657; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); height: 100%; min-height: 400px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 400px; border: 0; }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-field label .req { color: var(--amber); }
.form-field input,
.form-field select,
.form-field textarea {
  border: 1.5px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--parchment);
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal-mid);
  background: var(--white);
}
.form-field textarea { resize: vertical; min-height: 90px; }
.form-error { color: #B23A2E; font-size: 0.78rem; }
.form-note { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: #807A68; margin-top: 18px; }
.form-note svg { width: 15px; height: 15px; flex-shrink: 0; }
.trust-row { display: flex; gap: 8px; flex-wrap: wrap; }
.trust-chip { font-size: 0.68rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-mid); }

/* Alert messages */
.alert { padding: 14px 18px; border-radius: 10px; font-size: 0.88rem; margin-bottom: 20px; }
.alert-success { background: #E3F3EC; color: #1F6F44; border: 1px solid #BFE3CF; }
.alert-error { background: #FBEAEA; color: #B23A2E; border: 1px solid #F0C9C9; }

/* Footer */
.footer { background: var(--teal-deep); color: rgba(255,255,255,0.7); padding-top: 70px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 46px; height: 46px; border-radius: 50%; }
.footer-brand-name { font-family: var(--font-display); color: var(--white); font-size: 1.1rem; }
.footer p { font-size: 0.86rem; color: rgba(255,255,255,0.6); }
.footer h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 18px; font-family: var(--font-body); }
.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.68); }
.footer-links a:hover { color: var(--amber); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.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;
}
.footer-social a:hover { background: var(--amber); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; font-size: 0.8rem; flex-wrap: wrap; gap: 10px;
}

/* Floating action buttons */
.fab-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 200;
}
.fab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--white);
}
.fab svg { width: 18px; height: 18px; }
.fab-whatsapp { background: #25D366; }
.fab-call { background: var(--teal-deep); }

/* Apply Now ribbon */
.apply-ribbon {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 150;
  background: var(--amber);
  color: var(--white);
  padding: 16px 8px;
  border-radius: 10px 0 0 10px;
  writing-mode: vertical-rl;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow);
}

/* Breadcrumb / page header (interior pages) */
.page-header {
  background: linear-gradient(160deg, var(--teal-deep), #134B44);
  color: var(--white);
  padding: 64px 0 50px;
}
.page-header .eyebrow { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); color: var(--white); }
.page-header h1 { color: var(--white); margin-bottom: 6px; }
.breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.6); display: flex; gap: 8px; align-items: center; }
.breadcrumb a:hover { color: var(--amber); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hide-mobile { display: inline-flex; }
.hide-mobile-sm { display: inline-flex; }

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

/* --- Tablet: hide tagline, shrink brand, tighten nav --- */
@media (max-width: 1300px) {
  .brand-tag { display: none; }
  .brand-name { font-size: 1.15rem; }
  .nav-links > li > a { padding: 9px 8px; font-size: 0.85rem; }
  .nav-cta .btn-outline { display: none; }
}

/* --- Tablet portrait: mobile drawer kicks in --- */
@media (max-width: 980px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .menu-toggle { display: block; }
  .hide-mobile-sm { display: none !important; }
  .about-split, .message-grid, .contact-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .feature-grid, .programs-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip .container { grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(2) { border-right: none; }
  .footer-grid { gap: 36px; }
  .gallery-grid { columns: 2 220px; }
  .hide-mobile { display: none !important; }
  .brand-tag { display: block; }
}

/* --- Mobile: 640px and below --- */
@media (max-width: 640px) {
  section { padding: 50px 0; }
  .container { padding: 0 16px; }

  /* Navbar */
  .topbar { font-size: 0.75rem; }
  .topbar .container { padding-top: 6px; padding-bottom: 6px; }
  .navbar .container { padding-top: 10px; padding-bottom: 10px; gap: 0; }
  .brand { gap: 10px; flex: 1; min-width: 0; }
  .brand img { width: 52px; height: 52px; }
  .brand-name { font-size: 1.1rem; }
  .brand-tag { display: none; }
  .nav-cta { flex-shrink: 0; gap: 0; }
  .hide-mobile-sm { display: none !important; }
  .menu-toggle { padding: 8px; flex-shrink: 0; }
  .menu-toggle svg { width: 28px; height: 28px; }

  /* Hero */
  .hero { min-height: 92vh; }
  .hero-bg {
    background-position: center 20%;
  }
  .hero-bg::after {
    background: linear-gradient(180deg, rgba(14,59,54,0.25) 0%, rgba(14,59,54,0.60) 55%, rgba(14,59,54,0.88) 100%);
  }
  .hero-content { padding: 80px 0 50px; text-align: center; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero .lede { font-size: 0.95rem; max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero .eyebrow { margin-left: auto; margin-right: auto; }
  .hero-actions { flex-direction: column; gap: 10px; align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; max-width: 320px; }
  .hero-badges { gap: 10px; justify-content: center; }
  .hero-badge { font-size: 0.78rem; padding: 8px 12px; }
  .hero-badge strong { font-size: 0.95rem; }
  .eyebrow { font-size: 0.68rem; }

  /* Stat strip */
  .stat-strip { margin-top: 0; }
  .stat-strip .container { grid-template-columns: 1fr 1fr; border-radius: 12px; }
  .stat-cell { padding: 18px 10px; border-right: none !important; border-bottom: 1px solid var(--line); }
  .stat-cell:nth-child(2) { border-right: 1px solid var(--line) !important; }
  .stat-cell:nth-child(3) { border-bottom: none; }
  .stat-cell:last-child { border-bottom: none; }
  .stat-cell .num { font-size: 1.7rem; }
  .stat-cell .lbl { font-size: 0.68rem; }

  /* About */
  .about-split { gap: 40px; }
  .about-split > div { text-align: center; }
  .about-split > div .eyebrow { margin-left: auto; margin-right: auto; }
  .about-split > div .btn { margin-left: auto; margin-right: auto; }
  .about-media img { height: 260px; }
  .about-media-tag { bottom: -14px; left: -10px; padding: 12px 16px; }
  .about-media-tag .big { font-size: 1.3rem; }

  /* Programs */
  .programs-grid { grid-template-columns: 1fr; gap: 18px; }
  .prog-card { height: 300px; }
  .prog-front h3 { font-size: 1.6rem; }

  /* Features */
  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { height: 220px; }

  /* Messages */
  .message-grid { grid-template-columns: 1fr; gap: 18px; }
  .message-card { padding: 24px; }
  .message-card .quote-mark { font-size: 3rem; }

  /* Gallery */
  .gallery-grid { columns: 1; }
  .gallery-filters { gap: 8px; }
  .gfilter { padding: 7px 14px; font-size: 0.8rem; }

  /* CTA band */
  .cta-band { padding: 28px 20px; flex-direction: column; text-align: center; gap: 20px; }
  .cta-band h2 { font-size: 1.4rem; }
  .cta-band .btn { width: 100%; justify-content: center; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .map-frame { min-height: 250px; }
  .map-frame iframe { min-height: 250px; }
  .form-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding-top: 44px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }

  /* Apply ribbon */
  .apply-ribbon { display: none; }

  /* FABs */
  .fab-stack { right: 14px; bottom: 14px; }
  .fab { padding: 11px 14px; font-size: 0.78rem; }
  .fab svg { width: 16px; height: 16px; }

  /* Notices */
  .notice-row { flex-wrap: wrap; gap: 10px; }

  /* Poster strip */
  .poster-strip { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* Faculty */
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .faculty-card .photo { height: 170px; }

  /* Headings */
  h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
  h3 { font-size: 1.1rem; }
  .lede { font-size: 1rem; }
  .section-head { margin-bottom: 34px; }

  /* Page headers (interior pages) */
  .page-header { padding: 48px 0 36px; text-align: center; }
  .page-header .eyebrow { margin-left: auto; margin-right: auto; }
  .breadcrumb { justify-content: center; }
}

/* --- Small mobile: 390px and below (iPhone SE, small Androids) --- */
@media (max-width: 390px) {
  .brand-name { font-size: 1rem; }
  .brand img { width: 46px; height: 46px; }
  .nav-cta .btn { padding: 8px 11px; font-size: 0.78rem; }
  .hero h1 { font-size: 1.7rem; }
  .poster-strip { grid-template-columns: 1fr; }
  .faculty-grid { grid-template-columns: 1fr; }
}

/* Mobile nav drawer */
.mobile-drawer {
  position: fixed; inset: 0;
  background: var(--white);
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 24px;
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mobile-drawer a.mlink { display: block; padding: 14px 4px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-drawer .submenu { padding-left: 14px; }
.mobile-drawer .submenu a { font-weight: 500; font-size: 0.9rem; color: #6B6657; padding: 10px 4px; }