/* =========================================================
   Mangalore Independent PU College (MIPU) – single page site
   Palette
     --indigo  deep brand background (hero, footer, nav)
     --pink    primary action / accent
     --cyan    taken from the MIPU logo
     --lilac   soft section background
   Fonts: Sora (headings) + Mulish (body) – loaded in index.html
   ========================================================= */

:root {
  --indigo: #261a63;
  --indigo-2: #3a2a86;
  --pink: #38bdf8;
  --pink-dark: #0ea5e9;
  --cyan: #1fb5ea;
  --lilac: #efeafb;
  --paper: #faf9fd;
  --ink: #1c1738;
  --muted: #5d5a73;
  --line: #ddd7f0;
  --white: #fff;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 14px 40px rgba(38, 26, 99, .12);
  --head: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "Mulish", "Segoe UI", system-ui, sans-serif;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 10px); }
body {
  margin: 0; font-family: var(--body); font-size: 16.5px; line-height: 1.7;
  color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.section { padding: 40px 0; position: relative; }
.section--lilac { background: var(--lilac); }
.section--dark { background: var(--indigo); color: #fff; }

/* Section heading with the squiggle motif from the reference template */
.sec-head { max-width: 680px; margin: 0 auto 32px; text-align: center; }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; }
.sec-head p { color: var(--muted); margin: 0; }
.section--dark .sec-head p { color: #cfc8f2; }
.squiggle {
  display: block; width: 58px; height: 12px; margin: 0 auto 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='58' height='12' viewBox='0 0 58 12'%3E%3Cpath d='M1 10 8 2l7 8 7-8 7 8 7-8 7 8 7-8 6 7' fill='none' stroke='%2338bdf8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}
.squiggle.left { margin-left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em; padding: 14px 30px; border-radius: 999px;
  font-family: var(--head); font-weight: 700; font-size: .93rem; border: 2px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn--pink { background: var(--pink); color: #fff; }
.btn--pink:hover { background: var(--pink-dark); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--indigo); }
.btn--indigo { background: var(--indigo); color: #fff; }
.btn--indigo:hover { background: var(--indigo-2); transform: translateY(-2px); }
.btn--sm { padding: 10px 22px; font-size: .85rem; }

/* ---------- Top bar + header ---------- */
/* ── Announcement bar ── */
.announce-bar { background: #38bdf8; overflow: hidden; white-space: nowrap; padding: 7px 0; position: relative; z-index: 201; }
.announce-track { display: inline-flex; width: max-content; animation: marqueeScroll 30s linear infinite; will-change: transform; }
.announce-track span { display: inline-block; font-size: 12px; font-weight: 700; color: #1c1738; letter-spacing: .4px; }
.announce-track:hover { animation-play-state: paused; }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.topbar { background: #1b1250; color: #d8d2f5; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 20px; padding: 8px 0; flex-wrap: wrap; }
.topbar span { display: inline-flex; align-items: center; gap: 8px; margin-right: 22px; }
.topbar b { color: #fff; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.social-icons { display: flex; align-items: center; gap: 8px; }
.social-icons a {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; transition: background .2s;
}
.social-icons a:hover { background: var(--pink); }
.social-icons svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.social-icons--footer { margin-top: 16px; }
.social-icons--footer a { background: rgba(255,255,255,.1); }
.social-icons--footer a:hover { background: var(--pink); }

.header { background: var(--indigo); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 0 rgba(255, 255, 255, .06); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 16px; width: min(1400px, 96%); }
.logo { flex: none; }
.logo img { height: 44px; width: auto; max-width: none; }
.nav > ul { display: flex; align-items: center; gap: 2px; }
.nav > ul > li { position: relative; }
.nav a.link, .nav .sub-toggle {
  display: block; padding: 8px 8px; font-size: .82rem; font-weight: 700; color: #e6e1fa; border-radius: 999px;
  transition: color .2s, background .2s; white-space: nowrap;
}
.nav a.link:hover, .nav .sub-toggle:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.nav a.link.active, .nav .sub-toggle.active { color: #fff; background: var(--pink); }
.nav .sub-toggle { background: none; border: 0; font-family: inherit; cursor: pointer; line-height: inherit; }
.nav .sub-toggle .caret { display: inline-block; font-size: .7em; margin-left: 3px; transition: transform .2s; }
.has-sub.open > .sub-toggle .caret { transform: rotate(180deg); }

/* Dropdown (desktop) */
.submenu {
  position: absolute; left: 0; top: 100%; min-width: 220px; z-index: 70; display: none;
  border-top: 12px solid transparent; background: #fff; background-clip: padding-box; border-radius: 16px; padding: 8px;
  filter: drop-shadow(0 14px 26px rgba(18, 12, 55, .28));
}
.submenu a { display: block; padding: 11px 16px; border-radius: 10px; font-weight: 700; font-size: .9rem; color: var(--ink); white-space: nowrap; }
.submenu a:hover { background: var(--lilac); color: var(--pink-dark); }
.submenu a.active { background: var(--lilac); color: var(--pink-dark); }
.has-sub.open > .submenu { display: block; }
@media (hover: hover) and (min-width: 1101px) { .has-sub:hover > .submenu { display: block; } .has-sub:hover > .sub-toggle .caret { transform: rotate(180deg); } }
.nav a.link .ext { font-size: .75em; opacity: .8; }
.nav-cta { margin-left: 6px; }
.nav-cta .btn { white-space: nowrap; }
.enq-badge {
  display: inline-flex; align-items: center; gap: 7px; margin-left: 14px;
  padding: 7px 16px; border-radius: 999px; white-space: nowrap;
  background: var(--pink); color: #fff;
  font-family: var(--head); font-weight: 800; font-size: .78rem; letter-spacing: .06em;
  text-decoration: none; transition: background .2s, transform .2s;
  animation: enq-pulse 2.4s ease-in-out infinite;
}
.enq-badge:hover { background: var(--pink-dark); transform: translateY(-1px); }
.enq-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #fff; flex-shrink: 0;
  animation: enq-blink 1.2s ease-in-out infinite;
}
@keyframes enq-blink { 0%,100% { opacity: 1; } 50% { opacity: .2; } }
@keyframes enq-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(56,189,248,.5); } 60% { box-shadow: 0 0 0 8px rgba(56,189,248,0); } }
.burger { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; padding: 10px; }
.burger span { display: block; height: 3px; background: #fff; border-radius: 3px; margin: 5px 0; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: var(--indigo); color: #fff; padding: 70px 0 150px; overflow: hidden; position: relative; }
.hero::before { /* faint rings, echoing the template */
  content: ""; position: absolute; right: 8%; top: 40px; width: 560px; height: 560px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .08); box-shadow: 0 0 0 60px rgba(255, 255, 255, .025);
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; position: relative; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25);
  padding: 7px 18px; border-radius: 999px; font-size: .86rem; font-weight: 700; color: #38bdf8; margin-bottom: 22px;
}
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.hero h1 { font-size: clamp(1.5rem, 4.2vw, 2.8rem); font-weight: 800; margin-bottom: 14px; }
.hero .tagline { font-family: var(--head); font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; color: #38bdf8; margin-bottom: 18px; }
.hero p.lead { color: #d8d2f5; max-width: 560px; font-size: 1.05rem;text-align: justify; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art .arch {
  width: min(380px, 80%); aspect-ratio: 3/4; background: linear-gradient(180deg, #d9d1f7, #b9aef0);
  border-radius: 999px 999px 24px 24px; position: relative; display: flex; align-items: flex-end; justify-content: center; overflow: visible;
}
.hero-art .arch img { width: 112%; height: auto; max-width: none; flex: none; margin-bottom: -4px; position: relative; z-index: 2; }
.hero-art .chip {
  position: absolute; z-index: 3; background: #fff; color: var(--ink); border-radius: 16px; padding: 12px 18px;
  box-shadow: var(--shadow); font-family: var(--head); font-size: .85rem; font-weight: 700; line-height: 1.3;
}
.chip small { display: block; font-family: var(--body); font-weight: 600; color: var(--muted); font-size: .78rem; }
.chip--a { left: -4%; top: 22%; } .chip--b { right: -2%; bottom: 16%; }
.chip .dot { color: var(--pink); }
.zigzag {
  position: absolute; left: 3%; bottom: 120px; width: 90px; height: 40px; opacity: .8;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='40' viewBox='0 0 90 40'%3E%3Cg fill='none' stroke='%2338bdf8' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M2 8 12 2l10 6 10-6 10 6 10-6 10 6 10-6 10 6'/%3E%3Cpath d='M2 22 12 16l10 6 10-6 10 6 10-6 10 6 10-6 10 6'/%3E%3Cpath d='M2 36 12 30l10 6 10-6 10 6 10-6 10 6 10-6 10 6'/%3E%3C/g%3E%3C/svg%3E") no-repeat;
}

/* Quick stats bar overlapping hero */
.stats { margin-top: -78px; position: relative; z-index: 5; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 28px 24px; display: flex; gap: 16px; align-items: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .ico { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--lilac); display: grid; place-items: center; font-size: 1.4rem; }
.stat strong { display: block; font-family: var(--head); font-size: 1.25rem; line-height: 1.2; color: var(--indigo); }
.stat span { font-size: .85rem; color: var(--muted); line-height: 1.35; display: block; margin-top: 4px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-media { position: relative; padding-bottom: 60px; }
.about-media .main { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3.2; object-fit: cover; width: 100%; }
.about-media .float {
  position: absolute; right: -18px; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover; object-position: top;
  border-radius: var(--radius); border: 8px solid var(--paper); box-shadow: var(--shadow); background: var(--lilac);
}
.about-media .years {
  position: absolute; left: -16px; top: 26px; background: var(--pink); color: #fff; padding: 16px 22px; border-radius: 16px;
  font-family: var(--head); font-weight: 800; line-height: 1.15; box-shadow: var(--shadow); font-size: 1.05rem;
}
.about-media .about-cta {
  position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%);
  box-shadow: 0 8px 24px rgba(255, 62, 127, .45); white-space: nowrap;
}
.about-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; }
.about-copy p { color: var(--muted); text-align: justify; margin-bottom: 18px; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 28px 0 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.about-points > div { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.about-points .ic { flex: none; }
.about-points h4 { flex: 1; font-size: 1.02rem; margin: 0; white-space: nowrap; }
.about-points p { width: 100%; font-size: .92rem; margin: 4px 0 0; }
.about-points .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--lilac); display: grid; place-items: center; font-size: 1.25rem; }

.facilities { margin-top: 44px; }
.facilities h3 { text-align: center; font-size: 1.5rem; font-weight: 800; margin-bottom: 28px; }
.fac-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.fac { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 3/4; background: var(--lilac); }
.fac img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.fac:hover img { transform: scale(1.06); }
.fac figcaption {
  position: absolute; inset: auto 0 0 0; padding: 36px 14px 14px; color: #fff; font-family: var(--head); font-weight: 700; font-size: .92rem;
  background: linear-gradient(transparent, rgba(27, 18, 80, .9));
}
.fac { margin: 0; }

/* ---------- Principal ---------- */
.principal-card { display: grid; grid-template-columns: 340px 1fr; gap: 60px; align-items: center; }
.principal-photo { position: relative; }
.principal-photo .blob {
  background: linear-gradient(160deg, var(--pink), #ff8fb3); border-radius: 999px 999px 28px 28px; aspect-ratio: 4/5;
  overflow: hidden;
}
.principal-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.principal-photo .name {
  position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%); background: #fff; color: var(--ink); padding: 12px 24px;
  border-radius: 16px; text-align: center; box-shadow: var(--shadow); white-space: nowrap;
}
.principal-photo .name strong { display: block; font-family: var(--head); font-size: 1rem; }
.principal-photo .name span { color: var(--pink-dark); font-weight: 700; font-size: .85rem; }
.principal-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; }
.principal-copy blockquote {
  margin: 0; font-size: 1.18rem; line-height: 1.75; color: #e6e1fa; position: relative; padding-left: 34px;
  border-left: 4px solid var(--pink);
}
.principal-copy .sign { margin-top: 24px; font-family: var(--head); font-weight: 700; }
.principal-copy .sign span { display: block; color: #cfc8f2; font-family: var(--body); font-weight: 600; font-size: .92rem; }

/* ---------- Courses ---------- */
.tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; }
.tab {
  font-family: var(--head); font-weight: 700; font-size: .95rem; padding: 12px 30px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--line); background: #fff; color: var(--indigo); transition: all .2s;
}
.tab:hover { border-color: var(--indigo); }
.tab[aria-selected="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.panel[hidden] { display: none; }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.course {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 24px rgba(38, 26, 99, .08);
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.course:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.course .thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--lilac); }
.course .thumb img { width: 100%; height: 100%; object-fit: cover; }
.course .code {
  position: absolute; left: 16px; bottom: 14px; background: var(--pink); color: #fff; padding: 5px 16px; border-radius: 999px;
  font-family: var(--head); font-weight: 800; font-size: .95rem;
}
.course .body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.course h3 { font-size: 1.1rem; margin-bottom: 4px; }
.course .subjects { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.exams { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.exams span { background: var(--lilac); color: var(--indigo); font-weight: 800; font-size: .78rem; padding: 4px 12px; border-radius: 999px; }
.course ul { margin-bottom: 22px; flex: 1; }
.course li { position: relative; padding-left: 26px; font-size: .92rem; margin-bottom: 8px; color: #3b3752; line-height: 1.5; }
.course li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--pink); font-weight: 800; }
.course .btn { align-self: flex-start; }

.coaching { margin-top: 64px; background: var(--indigo); border-radius: 28px; padding: 44px 40px; color: #fff; text-align: center; }
.coaching h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.coaching > p { color: #cfc8f2; margin-bottom: 30px; }
.coach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.coach {
  border: 2px dashed rgba(255, 255, 255, .3); border-radius: 18px; padding: 24px 14px; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.coach .logo-box { height: 62px; display: grid; place-items: center; }
.coach .logo-box img { height: 62px; width: auto; max-width: 100%; object-fit: contain; background: #fff; border-radius: 10px; padding: 6px; }
.coach .logo-box b { width: 62px; height: 62px; border-radius: 50%; background: var(--pink); display: grid; place-items: center; font-family: var(--head); font-size: .95rem; }
.coach strong { font-family: var(--head); }
.coach span { color: #cfc8f2; font-size: .85rem; line-height: 1.3; }

/* ---------- Question paper strip ---------- */
.qp { padding: 0; }
.qp-box {
  background: linear-gradient(110deg, var(--pink) 0%, #ff6b9a 100%); border-radius: 28px; color: #fff;
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 44px 56px; position: relative; overflow: hidden;
}
.qp-box::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); }
.qp-box h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; margin-bottom: 6px; }
.qp-box p { margin: 0; max-width: 560px; }
.qp-box .btn { background: #fff; color: var(--pink-dark); position: relative; z-index: 2; }
.qp-box .btn:hover { background: var(--indigo); color: #fff; }

/* ---------- Activities gallery ---------- */
.gal-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; justify-content: center; }
.gal-btn {
  padding: 8px 18px; border-radius: 999px; border: 2px solid var(--line); background: #fff;
  font-family: var(--head); font-weight: 700; font-size: .85rem; color: var(--ink); cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.gal-btn:hover { border-color: var(--pink); color: var(--pink-dark); }
.gal-btn.active { background: var(--pink); border-color: var(--pink); color: #fff; }
.gal-count {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(38,26,99,.12); color: inherit;
  font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; margin-left: 6px;
}
.gal-btn.active .gal-count { background: rgba(255,255,255,.28); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery button {
  display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: var(--lilac);
  position: relative; aspect-ratio: 4/3;
}
.gallery .gal-item.hidden { display: none; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; }
.gallery button:hover img { transform: scale(1.05); }
.gallery button::before {
  content: attr(data-label); position: absolute; inset: auto auto 12px 12px; background: rgba(38,26,99,.8); color: #fff; font-family: var(--head); font-weight: 700;
  font-size: .75rem; padding: 4px 12px; border-radius: 999px; opacity: 0; transition: opacity .2s; z-index: 1;
}
.gallery button::after {
  content: "View"; position: absolute; inset: auto 12px 12px auto; background: var(--pink); color: #fff; font-family: var(--head); font-weight: 700;
  font-size: .75rem; padding: 4px 12px; border-radius: 999px; opacity: 0; transition: opacity .2s; z-index: 1;
}
.gallery button:hover::before, .gallery button:focus-visible::before { opacity: 1; }
.gallery button:hover::after, .gallery button:focus-visible::after { opacity: 1; }
.drive-link { text-align: center; margin-top: 30px; }

/* ---------- Faculty ---------- */
.faculty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.person { background: #fff; border-radius: var(--radius); overflow: hidden; text-align: center; box-shadow: 0 6px 24px rgba(38, 26, 99, .07); transition: transform .25s; }
.person:hover { transform: translateY(-5px); }
.person[hidden] { display: none; }
.person .pic { aspect-ratio: 1; background: linear-gradient(180deg, #e7e1fa, #d3c9f6); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.person .pic img { height: 100%; width: 100%; object-fit: cover; object-position: top center; transform: scale(1.12); transform-origin: 50% 0; }
.person .info { padding: 16px 14px 20px; }
.person h4 { font-size: 1rem; margin-bottom: 2px; }
.person p { margin: 0; color: var(--pink-dark); font-weight: 700; font-size: .84rem; line-height: 1.35; }
/* ---------- Achievers ---------- */
.achievers-frame { background: #fff; border-radius: 26px; padding: 14px; box-shadow: var(--shadow); overflow: hidden; }
.achievers-zoom { border-radius: 16px; overflow: hidden; }
.achievers-frame img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.achievers-zoom { cursor: none; position: relative; }
.achievers-lens {
  display: none; position: absolute; pointer-events: none; z-index: 10;
  width: 210px; height: 210px; border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(38,26,99,.2), 0 6px 28px rgba(38,26,99,.35);
  background-repeat: no-repeat;
  transition: opacity .15s;
}
.achievers-note { text-align: center; margin-top: 14px; color: var(--muted); font-size: .85rem; }

/* ---------- Alumni ---------- */
.alumni-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.talk { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.talk .pic { position: relative; aspect-ratio: 1; background: linear-gradient(180deg, #4a3a9a, #3a2a86); overflow: hidden; }
.talk .pic img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.talk .play {
  position: absolute; right: 14px; bottom: 14px; width: 54px; height: 54px; border-radius: 50%; background: var(--pink); color: #fff; border: 0; cursor: pointer;
  font-size: 1.1rem; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); transition: transform .2s;
}
.talk .play:hover { transform: scale(1.1); }
.talk .txt { padding: 20px 20px 24px; }
.talk h4 { font-size: 1.1rem; margin-bottom: 4px; }
.talk p { color: #d8d2f5; font-size: .92rem; margin: 0; line-height: 1.55; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: start; }
.info-cards { display: grid; gap: 16px; margin-bottom: 22px; }
.c-item {
  display: flex; gap: 16px; background: #fff; padding: 20px 22px; border-radius: 18px; box-shadow: 0 6px 20px rgba(38, 26, 99, .07); align-items: flex-start;
}
.c-item .ic { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--lilac); display: grid; place-items: center; font-size: 1.25rem; }
.c-item h4 { font-size: 1rem; margin-bottom: 2px; }
.c-item p, .c-item a { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.c-item a:hover { color: var(--pink-dark); }
.map { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); height: 320px; border: 0; width: 100%; display: block; background: var(--lilac); }
.map-link { display: inline-block; margin-top: 14px; font-weight: 800; color: var(--indigo); font-family: var(--head); font-size: .9rem; }
.map-link:hover { color: var(--pink-dark); }
.form-card { background: #fff; border-radius: 26px; padding: 40px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.6rem; font-weight: 800; }
.form-card > p { color: var(--muted); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(255, 62, 127, .15); }
.field textarea { resize: vertical; min-height: 96px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
.err { display: none; color: #c8123f; font-size: .8rem; font-weight: 700; margin-top: 5px; }
.field.invalid .err { display: block; }
.field.invalid input { border-color: #c8123f; background: #fff6f8; }
.field.invalid input:focus { box-shadow: 0 0 0 4px rgba(200, 18, 63, .15); }
.field.valid input { border-color: #1f9d55; }
.form-note.ok { color: #1f7a45; font-weight: 700; }

/* ---------- Footer ---------- */
.footer { background: #1b1250; color: #cfc8f2; padding: 70px 0 0; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer img { height: 48px; max-width: none; width: auto; margin-bottom: 16px; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer li { margin-bottom: 9px; }
.footer a:hover { color: #fff; }
.copy { border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px; font-size: .86rem; text-align: center; }
.copy a { color: var(--pink); }
.copy a:hover { color: var(--pink-dark); }

/* Floating WhatsApp */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28); transition: transform .2s;
}
.wa:hover { transform: scale(1.08); }
.wa svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Lightbox carousel + video modal ---------- */
body.locked { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(15, 10, 48, .97); display: none; flex-direction: column; }
.modal.open { display: flex; }
.modal .stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 64px 84px 8px; }
.modal figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; animation: fadein .3s ease; }
.modal figure img { max-width: 100%; max-height: calc(100vh - 230px); width: auto; height: auto; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); background: #fff; }
.modal figcaption { color: #e6e1fa; font-size: .95rem; margin-top: 14px; text-align: center; max-width: 720px; }
.modal .video { width: min(960px, 100%); aspect-ratio: 16/9; background: #000; border-radius: 14px; overflow: hidden; }
.modal iframe { width: 100%; height: 100%; border: 0; }
.modal .close, .modal .arrow {
  position: absolute; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; line-height: 1;
  display: grid; place-items: center; transition: background .2s, transform .2s;
}
.modal .close:hover, .modal .arrow:hover { background: var(--pink); }
.modal .close { top: 16px; right: 18px; width: 46px; height: 46px; font-size: 1.7rem; z-index: 3; }
.modal .arrow { top: calc(50% - 60px); width: 56px; height: 56px; font-size: 2rem; z-index: 3; padding-bottom: 4px; }
.modal .arrow:hover { transform: scale(1.08); }
.modal .prev { left: 18px; } .modal .next { right: 18px; }
.modal .count { position: absolute; top: 24px; left: 24px; color: #fff; font-family: var(--head); font-weight: 700; font-size: .95rem; background: rgba(255, 255, 255, .14); padding: 6px 16px; border-radius: 999px; }
.modal .thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 20px 20px; justify-content: safe center; scrollbar-width: thin; }
.modal .thumbs button { flex: none; width: 74px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; opacity: .55; cursor: pointer; background: #000; transition: opacity .2s, border-color .2s; }
.modal .thumbs button:hover { opacity: .9; }
.modal .thumbs button[aria-current="true"] { opacity: 1; border-color: var(--pink); }
.modal .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal.single .arrow, .modal.single .count, .modal.single .thumbs { display: none; }
@keyframes fadein { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }

/* Reveal – one gentle effect for the hero only */
@media (prefers-reduced-motion: no-preference) {
  .hero .container > * { animation: rise .8s ease both; }
  .hero .container > *:nth-child(2) { animation-delay: .15s; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .burger { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--nav-h); background: var(--indigo); padding: 14px 4% 26px; display: none; border-top: 1px solid rgba(255, 255, 255, .1);
    max-height: calc(100vh - var(--nav-h)); overflow: auto;
  }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a.link, .nav .sub-toggle { padding: 13px 16px; font-size: 1rem; border-radius: 12px; width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; }
  .nav .sub-toggle .caret { font-size: .8em; }
  .submenu { position: static; display: none; min-width: 0; border-top: 0; background: rgba(255, 255, 255, .07); filter: none; margin: 2px 0 6px 12px; padding: 4px; }
  .submenu a { color: #e6e1fa; white-space: normal; }
  .submenu a:hover, .submenu a.active { background: rgba(255, 255, 255, .12); color: #fff; }
  .has-sub:hover > .submenu { display: none; }
  .has-sub.open > .submenu { display: block; }
  .nav-cta { margin: 12px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .enq-badge { margin: 4px 0; justify-content: center; width: 100%; }
}
@media (max-width: 1020px) {
  .section { padding: 48px 0; }
  .hero .container, .about-grid, .principal-card, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding-bottom: 130px; }
  /* Tablet + mobile: photo on top, the two info cards sit in a row underneath (no overlap) */
  .hero-art { order: -1; margin: 20px auto 0; width: 100%; max-width: 520px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-art .arch { grid-column: 1 / -1; justify-self: center; width: min(300px, 66%); }
  .hero-art .chip { position: static; text-align: center; padding: 12px 14px; align-self: stretch; display: block; }
  .hero-art .chip--a, .hero-art .chip--b { left: auto; right: auto; top: auto; bottom: auto; }
  .about-grid { gap: 48px; }
  .principal-card { gap: 54px; justify-items: center; text-align: center; }
  .principal-photo { width: min(320px, 80%); }
  .principal-copy blockquote { text-align: left; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(even) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .fac-grid { grid-template-columns: repeat(3, 1fr); }
  .course-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .faculty-grid { grid-template-columns: repeat(3, 1fr); }
  .alumni-grid { grid-template-columns: 1fr 1fr; }
  .coach-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .qp-box { grid-template-columns: 1fr; padding: 38px 32px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .btn { padding: 5px 10px; font-size: .82rem; }
  .btn--sm { padding: 8px 16px; font-size: .78rem; }
  .about-media .about-cta { position: static; transform: none; display: block; margin: 16px auto 0; width: fit-content; }
  .topbar .container { justify-content: center; text-align: center; }
  .topbar .hide-sm { display: none; }
  .logo img { height: 42px; }
  .hero { padding-top: 40px; }
  .hero .actions .btn { flex: 1; justify-content: center; }
  .hero-art .chip { font-size: .8rem; padding: 10px 10px; }
  .hero-art .chip small { font-size: .72rem; }
  .zigzag { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px; }
  .stat:last-child { border-bottom: 0; }
  .about-points { grid-template-columns: 1fr; }
  .about-media { padding-bottom: 80px; }
  .about-media .float { display: block; position: absolute; right: 0; bottom: 0; width: 50%; aspect-ratio: 1; border: 5px solid var(--paper); }
  .about-media .about-cta { position: absolute; left: 10px; bottom: 12px; transform: none; margin: 0; }
  .about-media .years { left: 0; }
  .fac-grid { grid-template-columns: 1fr 1fr; }
  .course-grid { grid-template-columns: 1fr; }
  .coaching { padding: 34px 20px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .faculty-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .alumni-grid { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 28px 22px; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .modal .stage { padding: 66px 12px 4px; }
  .modal figure img { max-height: calc(100vh - 220px); }
  .modal .arrow { width: 44px; height: 44px; font-size: 1.6rem; top: auto; bottom: 92px; background: rgba(0, 0, 0, .55); }
  .modal .prev { left: 10px; } .modal .next { right: 10px; }
  .modal .thumbs button { width: 58px; height: 44px; }
  .achievers-slider { height: 240px; }
  .achievers-slide { height: 220px; width: 320px; padding: 8px; }
  .achievers-slider::before, .achievers-slider::after { width: 8%; }
  .allen-testimonial-card { width: 240px; padding: 14px; }
  .allen-card-img { height: 180px; }
  .allen-modal-content iframe { height: 56vw; }
  .allen-fog-left, .allen-fog-right { width: 60px; }
}

/* ======= ACHIEVERS SLIDER ======= */
#achievers .container { padding-bottom: 0; }
.achievers-slider {
  height: 420px;
  margin: auto;
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.achievers-slide-track {
  display: flex;
  width: max-content;
  animation: achieversScroll 40s linear infinite;
}
.achievers-slide-track:hover {
  animation-play-state: paused;
}
@keyframes achieversScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.achievers-slide {
  height: 400px;
  width: 660px;
  display: flex;
  align-items: center;
  padding: 10px;
  perspective: 100px;
}
.achievers-slide img {
  width: 100%;
  transition: transform 1s;
}
.achievers-slider::before,
.achievers-slider::after {
  content: "";
  height: 100%;
  position: absolute;
  width: 15%;
  z-index: 2;
  background: linear-gradient(to right, var(--lilac), transparent);
}
.achievers-slider::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}
.achievers-slider::before {
  left: 0;
  top: 0;
}

/* ======= ALUMNI TALKS SLIDER ======= */
.allen-section-wrapper { width: 100%; padding: 10px 0 0; background-color: transparent !important; }
.allen-slider-container { position: relative; width: 100%; max-width: 1200px; margin: 0 auto; overflow: hidden; }
.allen-fog-left, .allen-fog-right { position: absolute; top: 0; bottom: 0; width: 120px; z-index: 10; pointer-events: none; }
.allen-fog-left { left: 0; background: linear-gradient(to right, #261a63 0%, rgba(38,26,99,0) 100%); }
.allen-fog-right { right: 0; background: linear-gradient(to left, #261a63 0%, rgba(38,26,99,0) 100%); }
.allen-marquee-wrapper { overflow: hidden; width: 100%; padding: 10px 0 30px 0; }
.allen-marquee-track { display: flex; gap: 24px; width: max-content; animation: allenScrollMarquee 28s linear infinite; }
.allen-marquee-track:hover { animation-play-state: paused; }
@keyframes allenScrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.allen-testimonial-card { width: 280px; background: rgba(255,255,255,.08); border-radius: 16px; padding: 20px; position: relative; display: flex; flex-direction: column; box-sizing: border-box; flex-shrink: 0; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.allen-testimonial-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,.25); transform: translateY(-3px); }
.allen-play-badge { position: absolute; top: 15px; left: 15px; background: #ffffff; color: #0f172a; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border: none; box-shadow: 0 2px 6px rgba(0,0,0,.15); z-index: 2; transition: background 0.2s ease; }
.allen-play-badge:hover { background: #38bdf8; color: #fff; }
.allen-play-badge svg { width: 10px; height: 10px; fill: currentColor; }
.allen-card-img { width: 100%; height: 240px; border-radius: 12px; overflow: hidden; margin-top: 15px; margin-bottom: 15px; background: #3a2a86; }
.allen-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.allen-card-info { display: flex; flex-direction: column; flex-grow: 1; }
.allen-student-name { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.allen-student-course { font-size: 13px; font-weight: 600; color: #38bdf8; margin-bottom: 4px; }
.allen-student-desc { font-size: 12px; color: #cfc8f2; line-height: 1.4; }
.allen-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.85); z-index: 99999; justify-content: center; align-items: center; }
.allen-modal-overlay.active { display: flex; }
.allen-modal-content { position: relative; width: 90%; max-width: 800px; background: #000; border-radius: 12px; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,.3); }
.allen-modal-content video, .allen-modal-content iframe { width: 100%; height: auto; display: block; }
.allen-modal-content iframe { height: 450px; border: none; }
.allen-close-btn { position: absolute; top: 12px; right: 14px; background: #38bdf8; color: #fff; border: none; font-size: 22px; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 0; }
