/* =====================================================================
   Bengal Esophageal Meet 2026 - Stylesheet
   Theme taken from the brochure: deep purple, magenta, pink and orange.
   Layout uses Flexbox only (no CSS grid). No clamp()/calc()/min()/max(): sizes change via media queries.
   Fully responsive: 320px phones -> tablets -> laptops -> 4K screens.
   ===================================================================== */

/* ---------- Fonts (local copies in assets/fonts & icons) ---------- */
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts & icons/montserrat/montserrat-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts & icons/montserrat/montserrat-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts & icons/montserrat/montserrat-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts & icons/montserrat/montserrat-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts & icons/montserrat/montserrat-latin-800-normal.woff2") format("woff2");
}

:root {
  --purple-deep: #4e2a84;
  --purple: #7a2c8e;
  --magenta: #b3236f;
  --pink: #ee4b6a;
  --orange: #f47b32;
  --ink: #2c2438;
  --muted: #5b5468;
  --paper: #ffffff;
  --mist: #f7f3fb;
  --line: #e6d9ef;

  --grad-warm: linear-gradient(90deg, #a8216f 0%, #ee4b6a 55%, #f47b32 100%);
  --grad-hero: linear-gradient(115deg, #f7922d 0%, #ee5a5a 32%, #d23d78 58%, #8d2a90 100%);
  --grad-vert: linear-gradient(180deg, #b3236f, #f47b32);

  --radius: 18px;
  --shadow: 0 10px 30px rgba(78, 42, 132, .12);
  --font: 'Montserrat', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  overflow-wrap: break-word;
}
/* Translucent page background (shared by every page: Home, Committee, Contact) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url("../images/bg-page.jpg") center bottom / cover no-repeat;
  opacity: .45;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--orange); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
address { font-style: normal; }
button { font-family: inherit; cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--purple-deep); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 2000;
}
.skip-link:focus { left: 12px; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: #fff;
  border-bottom: 4px solid transparent;
  border-image: var(--grad-warm) 1;
  box-shadow: 0 4px 18px rgba(78, 42, 132, .1);
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap;
  gap: 10px 24px; padding-top: 12px; padding-bottom: 12px;
  max-width: none; /* header spans the full viewport width */
}

/* Logos: each is 3.22 : 1 and has a full size of 92px high (296px wide).
   They share the space left of the nav and shrink TOGETHER (flex-shrink), so the
   three always fit on one row, scale smoothly with the screen and never get
   bigger than their full size. No fixed breakpoints are needed for this. */
.brand { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; }
.brand picture { flex: 0 1 296px; min-width: 0; display: block; }
.brand img { width: 100%; height: auto; max-width: none; object-fit: contain; display: block; background: #fff; }

.header-title { display: flex; flex-direction: column; line-height: 1.25; text-align: center; order: 3; flex: 1 1 100%; }
.header-title strong { color: var(--purple-deep); font-size: 1.3rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.header-title span { color: var(--magenta); font-size: .95rem; font-weight: 600; }

.nav-toggle {
  width: 54px; height: 54px; border: 0; border-radius: 14px;
  background: var(--grad-warm); color: #fff; font-size: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}

.main-nav {
  display: none; flex-direction: column; width: 100%; order: 4;
  padding: 8px 0 14px; gap: 10px;
}
.main-nav.open {
  display: flex;
  max-height: 80vh; max-height: 80dvh;
  overflow-y: auto;
}
.main-nav ul { display: flex; flex-direction: column; gap: 6px; }
.main-nav li a {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 12px;
  font-weight: 700; font-size: 1.05rem; color: var(--purple-deep);
  background: var(--mist);
}
.main-nav li a:hover { background: #efe3f8; color: var(--magenta); }
.main-nav li a.active { background: var(--grad-warm); color: #fff; }
.main-nav li a i { width: 18px; text-align: center; }

/* Desktop / large tablet: logos on the left, nav on the right, all on ONE line */
@media (min-width: 900px) {
  .site-header .header-bar { padding-left: 2vw; padding-right: 2vw; }
  .main-nav, .main-nav.open { margin-left: auto; flex: 0 0 auto; }
  .main-nav ul { flex-wrap: nowrap; }
  .main-nav li a { white-space: nowrap; }
  .header-title { order: 0; flex: 1 1 auto; }
  .nav-toggle { display: none; }
  .main-nav, .main-nav.open { display: flex; flex-direction: row; align-items: center; width: auto; order: 0; padding: 0; gap: 22px; max-height: none; overflow: visible; }
  .main-nav ul { flex-direction: row; gap: 6px; }
  .main-nav li a { background: transparent; padding: 12px 10px; font-size: 1rem; }
  .main-nav li a.active { background: var(--grad-warm); }
  .header-title strong { font-size: 1rem; }
}

/* ---------- Waves (corner shapes from the brochure) ---------- */
.hero-wave {
  position: absolute; width: 240px; height: 240px; border-radius: 50%;
  pointer-events: none; z-index: 0;
}
.hero-wave-left {
  top: -120px; left: -90px;
  background: linear-gradient(135deg, #5a2a86, #8d2a90);
  box-shadow: 0 0 0 22px rgba(255, 255, 255, .10), 0 0 0 46px rgba(255, 255, 255, .07);
}
.hero-wave-right {
  top: -130px; right: -90px;
  background: linear-gradient(225deg, #f47b32, #ee4b6a);
  box-shadow: 0 0 0 22px rgba(255, 255, 255, .12), 0 0 0 46px rgba(255, 255, 255, .07);
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad-hero);
  padding: 40px 0 40px;
}
.hero-inner {
  max-width: 1320px;
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 28px;
}

.hero-collage {
  position: relative; flex: 1 1 380px; max-width: 500px; width: 100%;
  min-height: 270px;
  display: flex; align-items: stretch; gap: 12px;
}
.collage-tile, .collage-circle {
  position: relative; margin: 0; overflow: hidden;
  border: 5px solid #fff; box-shadow: 0 14px 34px rgba(40, 10, 70, .32);
  background: #3a1d63;
}
.collage-tile img, .collage-circle img {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.collage-tile:hover img { transform: scale(1.06); }
.collage-tile figcaption {
  position: absolute; left: 10px; bottom: 10px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; max-width: 90%;
  background: rgba(78, 42, 132, .82); color: #fff; font-size: .74rem; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(4px);
}
.collage-tile figcaption i { color: #ffc99c; }

.tile-anatomy { flex: 1 1 52%; border-radius: 26px; }
.tile-anatomy figcaption { left: 50%; transform: translateX(-50%); white-space: nowrap; bottom: 16px; }
.tile-anatomy img { object-position: 50% 15%; }
.collage-stack { flex: 1 1 48%; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
/* captions on the right-hand tiles sit on the right so the circle never covers them */
.collage-stack .collage-tile figcaption { left: auto; right: 10px; bottom: 10px; }
.tile-itc { flex: 1 1 0; min-height: 0; border-radius: 26px; }
.tile-howrah { flex: 1.25 1 0; min-height: 0; border-radius: 26px; }
.collage-circle { border-radius: 50%; }
.circle-victoria {
  position: absolute;
  width: 38%; min-width: 84px; aspect-ratio: 1 / 1;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  border-width: 6px;
}

.hero-content {
  flex: 1 1 620px; max-width: 700px; width: 100%;
  background: #fff; border-radius: 30px;
  padding: 26px 26px;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: 0 20px 50px rgba(40, 10, 70, .28);
}

.hero-lockup { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px; }
.hero-title {
  display: flex; flex-direction: column; align-items: flex-end;
  font-weight: 800; text-transform: uppercase; line-height: .98;
  color: var(--purple-deep); font-size: 1.95rem; letter-spacing: -.01em;
}
.hero-title .title-meet { display: flex; align-items: flex-end; gap: 8px; }
.year-tag {
  writing-mode: vertical-rl; transform: rotate(180deg);
  background: var(--grad-warm); color: #fff; font-size: .8rem; font-weight: 700;
  padding: 10px 4px; border-radius: 0 0 14px 14px; letter-spacing: .08em;
}

.hero-tagline { border-left: 4px solid var(--magenta); padding-left: 16px; text-align: left; }
.tag-lines { color: var(--purple); font-weight: 700; font-size: .84rem; line-height: 1.3; }
.tag-pill {
  display: inline-block; margin: 6px 0 4px;
  background: var(--purple-deep); color: #fff; font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; padding: 4px 10px; border-radius: 4px;
}
.tag-big {
  font-weight: 800; text-transform: uppercase; line-height: 1;
  font-size: 1.5rem;
  background: linear-gradient(90deg, #f47b32, #d23d78); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* date / venue pill */
.date-venue {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px;
  margin: 12px 6px 0; padding: 7px 18px;
  background: var(--purple); color: #fff; border-radius: 22px;
  outline: 2px dashed var(--purple); outline-offset: 5px;
}
.dv-item { display: flex; align-items: center; gap: 12px; text-align: left; flex: 0 1 auto; }
.dv-item i { font-size: 1.1rem; color: #ffd0a6; }
.dv-item span { display: block; font-size: .8rem; font-weight: 600; opacity: .9; line-height: 1.2; }
.dv-item strong { display: block; font-size: .95rem; font-weight: 700; line-height: 1.3; }
.dv-divider { width: 2px; align-self: stretch; background: rgba(255, 255, 255, .6); }

.hero-motto {
  margin-top: 0; text-align: center; color: var(--purple); font-weight: 700; font-size: .84rem; line-height: 1.4;
}
.hero-motto i, .footer-motto i { font-style: normal; color: var(--orange); margin: 0 6px; }

.hero-heading { display: flex; flex-direction: column; text-align: center; line-height: 1.25; margin-bottom: 30px;}
.hero-heading strong { color: var(--purple-deep); font-size: 1.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.hero-heading span { color: var(--magenta); font-size: 1.05rem; font-weight: 600; margin-top: 2px; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 16px; margin-top: 14px; }
.countdown { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.countdown div {
  min-width: 52px; padding: 3px 5px; text-align: center;
  background: var(--mist); border: 1px solid var(--line); border-radius: 14px;
}
.countdown b { display: block; font-size: 1.1rem; line-height: 1.1; font-weight: 800; color: var(--magenta); }
.countdown span { font-size: .62rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hero-actions .btn { padding: 8px 16px; font-size: .8rem; gap: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary { background: var(--grad-warm); color: #fff; box-shadow: 0 8px 20px rgba(179, 35, 111, .3); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(179, 35, 111, .38); }
.btn-ghost { border-color: var(--purple); color: var(--purple); background: #fff; }
.btn-ghost:hover { background: var(--purple); color: #fff; }

/* ---------- Breadcrumb hero (inner pages) ---------- */
.crumb-hero {
  position: relative; overflow: hidden; background: var(--grad-hero);
  padding: 54px 0 46px; text-align: center; color: #fff;
}
.crumb-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.crumb-hero h1 { font-size: 3rem; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.breadcrumb ol {
  display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px;
  background: rgba(255, 255, 255, .18); border-radius: 999px; padding: 8px 20px;
  font-weight: 600; font-size: .92rem;
}
.breadcrumb li + li::before {
  content: "\f054"; font-family: "Font Awesome 7 Free"; font-weight: 900; font-size: .65rem; margin-right: 10px; opacity: .85;
}
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { color: #ffe3c9; }
.date-venue-sm { margin-top: 12px; outline-color: rgba(255, 255, 255, .85); background: var(--purple-deep); }

/* ---------- Generic sections ---------- */
.section { padding: 70px 0; position: relative; scroll-margin-top: 90px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-kicker {
  display: inline-block; color: #fff; background: var(--grad-warm);
  padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 1rem; margin-bottom: 20px;
}
.section-head h2 { font-size: 2.5rem; color: var(--purple-deep); font-weight: 800; line-height: 1.2; }
.section-head h2 em { font-style: normal; color: var(--purple); }

.banner-title { display: flex; justify-content: center; margin-bottom: 36px; }
.banner-title h2 {
  background: var(--purple-deep); color: #fff; font-weight: 700;
  font-size: 2rem; text-align: center; line-height: 1.3;
  padding: 14px 40px; width: 100%;
  clip-path: polygon(2% 0, 98% 0, 100% 50%, 98% 100%, 2% 100%, 0 50%);
}
.banner-title-sm h2 { max-width: 560px; }
.center-title { text-align: center; color: var(--purple); font-size: 2.5rem; font-weight: 800; margin: 46px 0 26px; line-height: 1.2; }

/* ---------- About ---------- */
.about { background: rgba(255, 255, 255, .55); }
.about-body { display: flex; flex-wrap: wrap; gap: 30px; align-items: stretch; }
.about-text { flex: 1 1 520px; }
.about-text p { margin-bottom: 18px; font-weight: 500; color: var(--ink); text-align: justify; hyphens: auto; }
.about-text p:last-child { margin-bottom: 0; }
.about-card {
  flex: 1 1 300px; background: var(--mist); border-radius: var(--radius); padding: 26px 24px;
  border-top: 5px solid var(--magenta); box-shadow: 0 10px 10px rgba(78, 42, 132, .12);
  display: flex; flex-direction: column;
}
.about-card h3 { color: var(--purple-deep); font-size: 1.15rem; font-weight: 800; margin-bottom: 14px; }
.glance-list { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.glance-list li { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px dashed #cdb7e0; font-size: .93rem; font-weight: 700; text-align: justify;}
.glance-list li:last-child { border-bottom: 0; }
.glance-list i { color: var(--magenta); font-size: 1.05rem; margin-top: 4px; width: 20px; text-align: center; flex: 0 0 20px; }

.learn-line {
  margin: 30px 0 22px; text-align: center; font-weight: 800; text-transform: uppercase;
  color: var(--purple); font-size: 2.5rem; letter-spacing: .02em; line-height: 1.25;
}
.learn-line i { font-style: normal; margin: 0 8px; color: var(--orange); }
.welcome-sign { max-width: 640px; margin: 0 auto; text-align: center; }
.welcome-sign p { margin-bottom: 8px; font-weight: 600; }
.sign-off { margin-top: 18px; }
.sign-off strong { color: var(--purple-deep); }

/* ---------- Sponsorship ---------- */
.sponsorship { background: rgba(247, 243, 251, .6); }
.invite { max-width: 940px; margin: 0 auto; }
.invite h3 { color: var(--purple-deep); font-size: 1.15rem; font-weight: 800; margin-bottom: 12px; }
.invite p { margin-bottom: 14px; font-weight: 600; text-align: justify; }

.tier { margin-bottom: 26px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tier-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px;
  background: var(--grad-warm); color: #fff; padding: 14px 26px;
}
.tier-head h3 { font-size: 1.45rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.tier-sep { opacity: .8; font-size: 1.3rem; }
.tier-price { font-size: 1.45rem; font-weight: 700; }
.tier-body { display: flex; flex-wrap: wrap; gap: 6px 36px; padding: 20px 26px 22px; }
.tier-body ul { flex: 1 1 280px; min-width: 0; }
.tier-body li { position: relative; padding: 4px 0 4px 18px; font-weight: 600; font-size: .94rem; text-align: justify ;}
.tier-body li::before {
  content: ""; position: absolute; left: 0; top: .95em; width: 7px; height: 7px; border-radius: 50%; background: var(--magenta);
}
/* Tier head tints keep the brochure gradient but differ slightly in direction */
.tier-gold .tier-head { background: linear-gradient(90deg, #a8216f 0%, #ee4b6a 60%, #f69a3a 100%); }
.tier-silver .tier-head { background: linear-gradient(90deg, #a8216f 0%, #ee4b6a 50%, #f47b32 100%); }
.tier-bronze .tier-head { background: linear-gradient(90deg, #a8216f 0%, #ee4b6a 45%, #f47b32 100%); }

/* ---------- Special partnership ---------- */
.partnership { background: rgba(255, 255, 255, .55); }
.ptable { border-radius: 10px; overflow: hidden; border: solid 1px #4e2a84;}
.prow { display: flex; flex-wrap: nowrap;}
.pcell {
  background: #fff; border: 1.5px solid #4e2a84; padding: 16px 18px; font-size: .92rem;
  font-weight: 600; min-width: 0;
  display: flex; align-items: center;
}
.pcell:nth-child(1) { flex: 0 0 29%; }
.pcell:nth-child(2) { flex: 0 0 24%; }
.pcell:nth-child(3) { flex: 1 1 auto; }
.pcell b { color: var(--purple-deep); font-weight: 700; }
.prow-head .pcell {
  border: 0; background: var(--grad-hero); color: #fff; justify-content: center;
  font-size: 1.7rem; font-weight: 700; padding: 14px 18px;
  background: linear-gradient(90deg, #a8216f, #d3217f);
  border: 1.5px solid #4e2a84;
}

.pill-title {
  display: block; width: fit-content; max-width: 100%; margin: 0 auto 18px; text-align: center;
  background: var(--purple-deep); color: #fff; font-weight: 700; font-size: 1.5rem;
  padding: 8px 34px; border-radius: 10px;
  clip-path: polygon(5% 0, 95% 0, 100% 50%, 95% 100%, 5% 100%, 0 50%);
}

.exhibition { margin-top: 54px; text-align: center; }
.exh-title { color: var(--magenta); font-weight: 800; font-size: 1.3rem; text-transform: uppercase; margin-bottom: 14px; }
.exh-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 36px; text-align: left; }
.exh-list ul { flex: 1 1 280px; max-width: 420px; min-width: 0; }
.exh-list li { position: relative; padding: 3px 0 3px 18px; font-weight: 600; font-size: .94rem; text-align: justify;}
.exh-list li::before { content: ""; position: absolute; left: 0; top: .9em; width: 6px; height: 6px; border-radius: 50%; background: var(--purple); }

.why { margin-top: 56px; text-align: center; }
.why-list { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.why-item { flex: 1 1 230px; max-width: 290px; padding: 6px 22px 14px; border-left: 2px solid var(--orange); }
.why-item:first-child { border-left-color: transparent; }
.why-item i {
  font-size: 2rem; margin-bottom: 8px;
  background: linear-gradient(180deg, var(--pink), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.why-item h4 { color: var(--purple-deep); font-weight: 800; text-transform: uppercase; font-size: 1.05rem; letter-spacing: .02em; }
.why-item p { font-size: 1rem; font-weight: 600; line-height: 1.5; color: var(--ink); margin-top: 4px; }

.policy-note {
  margin: 44px auto 0; max-width: 780px; text-align: center; color: var(--magenta); font-weight: 700; font-size: 1.2rem;
}
.policy-note i { margin-right: 6px; }

.managed-by { margin-top: 50px; text-align: center; }
.managed-by > p { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 1.4rem; color: var(--purple-deep); margin-bottom: 8px; }
.managed-by img { width: 230px; margin: 0 auto 12px; border-radius: 8px; }
.managed-by address { font-size: .95rem; font-weight: 600; line-height: 1.9; }
.managed-by address a { white-space: nowrap; }
.managed-by-left { margin-top: 0; text-align: left; }
.managed-by-left img { margin: 0 0 6px; }

/* ---------- Committee / patrons ---------- */
.patrons { background: rgba(255, 255, 255, .55); }
.patron {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 30px;
  padding: 28px 0; border-bottom: 2px dashed #cdb7e0;
}
.patron:last-child { border-bottom: 0; }
.patron-photo {
  margin: 0; flex: 0 0 230px; max-width: 100%;
  border: 2px dashed var(--purple-deep); border-radius: 22px; padding: 8px;
}
.patron-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; border-radius: 16px; }
.patron-text { flex: 1 1 340px; min-width: 0; }
.patron-text h3 { color: var(--purple-deep); font-size: 1.45rem; font-weight: 800; line-height: 1.25; }
.patron-quote { font-weight: 700; color: var(--ink); margin: 4px 0 14px; font-size: 1.02rem; }
.patron-text p + p { margin-top: 14px; font-weight: 500; }
.patron-text p:not(.patron-quote) { text-align: justify; }

/* ---------- Committees list (Committee page) ---------- */
.committees { background: rgba(247, 243, 251, .6); }
.cm-group { margin-bottom: 26px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cm-group:last-child { margin-bottom: 0; }
.cm-head {
  background: var(--grad-warm); color: #fff; padding: 14px 26px;
  font-size: 1.35rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1.3;
}
.cm-list { display: flex; flex-wrap: wrap; padding: 16px 20px 18px; }
.cm-list li {
  position: relative; flex: 0 0 33.333%; min-width: 0; padding: 5px 12px 5px 30px;
  font-weight: 600; font-size: .97rem; color: var(--ink);
}
.cm-list li::before {
  content: ""; position: absolute; left: 12px; top: 1.05em; width: 7px; height: 7px; border-radius: 50%; background: var(--magenta);
}
.cm-list-2 li { flex-basis: 50%; }
.cm-list-1 li { flex-basis: 100%; }
@media (max-width: 700px) {
  .cm-list li, .cm-list-2 li { flex-basis: 50%; }
  .cm-list-1 li { flex-basis: 100%; }
}
@media (max-width: 520px) {
  .cm-head { padding: 12px 18px; font-size: 1.15rem; }
  .cm-list { padding: 12px 10px 14px; }
  .cm-list li, .cm-list-2 li, .cm-list-1 li { flex-basis: 100%; }
}

/* ---------- Contact ---------- */
.contact { background: rgba(247, 243, 251, .6); }
.contact-wrap { display: flex; flex-wrap: wrap; gap: 30px; align-items: stretch; }
.contact-info {
  flex: 1 1 440px; min-width: 0; background: #fff; border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow); border-top: 5px solid var(--magenta);
  display: flex; flex-direction: column;
}
.contact-list { flex: 1; display: flex; flex-direction: column; justify-content: space-between; margin-top: 20px; }
.contact-list li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px dashed #cdb7e0; }
.contact-list li:last-child { border-bottom: 0; }
.ci-icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: var(--grad-warm); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1rem;
}
.contact-list h4 { color: var(--purple-deep); font-size: .95rem; font-weight: 800; }
.contact-list p { font-size: .92rem; font-weight: 500; word-break: break-word; }

.contact-form {
  flex: 1 1 440px; min-width: 0; background: #fff; border-radius: var(--radius); padding: 28px 26px;
  box-shadow: var(--shadow); border-top: 5px solid var(--magenta);
}
.contact-form h3 { color: var(--purple-deep); font-size: 1.3rem; font-weight: 800; margin-bottom: 18px; }
.field-row { display: flex; flex-wrap: wrap; gap: 0 16px; }
.field-row .field { flex: 1 1 200px; min-width: 0; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .85rem; color: var(--purple-deep); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #cdb7e0; border-radius: 12px; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--magenta); box-shadow: 0 0 0 4px rgba(179, 35, 111, .14);
}
.field.invalid input, .field.invalid textarea { border-color: #c62828; }
.err { display: block; min-height: 1em; color: #c62828; font-weight: 600; font-size: .78rem; margin-top: 4px; }
.form-status { margin-top: 14px; font-weight: 700; color: #1b7a3d; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: #3b1d63; color: #eadff5; margin-top: 0; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; inset: 0;
  background: url("../images/bg-skyline.png") center bottom / cover no-repeat;
  filter: brightness(0) invert(1); opacity: .06; pointer-events: none;
}
.site-footer::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--grad-warm); }
.footer-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 34px 40px; padding-top: 56px; padding-bottom: 36px; }
.footer-col { flex: 1 1 250px; min-width: 0; }
.footer-brand h3 { font-size: 1.45rem; font-weight: 800; text-transform: uppercase; color: #fff; line-height: 1.2; margin-bottom: 8px; }
.footer-brand h3 span { color: var(--orange); }
.footer-tag { color: #ffc99c; font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
.footer-col h4 { color: #fff; font-size: 1.05rem; font-weight: 800; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; border-radius: 2px; background: var(--grad-warm); }
.footer-col p { font-size: .9rem; font-weight: 700; margin-bottom: 8px; display: flex; gap: 10px; align-items: flex-start; }
.footer-col p i { color: var(--orange); margin-top: 5px; width: 16px; text-align: center; flex: 0 0 16px; }
.footer-col a { color: #eadff5; }
.footer-col a:hover { color: var(--orange); }
.footer-col li { margin-bottom: 8px; font-size: .92rem; font-weight: 500; }
.footer-col li i { color: var(--orange); margin-right: 8px; font-size: .75rem; }

.footer-motto {
  position: relative; z-index: 1; text-align: center; padding: 14px 20px; font-weight: 700; font-size: .95rem;
  background: var(--grad-warm); color: #fff;
}
.footer-motto i { color: #fff; opacity: .8; }
.footer-bottom { position: relative; z-index: 1; background: #2c1450; padding: 16px 0; text-align: center; font-size: .8rem; }
.footer-bottom p + p { margin-top: 4px; opacity: .75; }

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed; right: 20px; bottom: 22px; z-index: 1500;
  width: 50px; height: 50px; border: 0; border-radius: 50%;
  background: var(--grad-warm); color: #fff; font-size: 1.1rem;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(179, 35, 111, .4);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px); }

/* =====================================================================
   RESPONSIVE
   Large screens -> laptops -> tablets -> phones -> very small phones
   ===================================================================== */

/* ---------- Small laptops / large tablets: hero stacks ---------- */

@media (max-width: 1060px) {
  .hero-collage { flex: 1 1 100%; max-width: 640px; min-height: 320px; }
  .hero-content { flex: 1 1 100%; max-width: 640px; }

  /* "Why partner" items become tidy cards (no stray divider lines) */
  .why-list { gap: 16px; }
  .why-item {
    flex: 1 1 40%; max-width: none;
    background: var(--mist); border: 0; border-top: 3px solid var(--orange); border-radius: 14px; padding: 18px 18px 16px;
  }
  .why-item:first-child { border-top-color: var(--orange); }
}

/* ---------- Tablets & phones: mobile header ---------- */
@media (max-width: 899px) {
  .hero { padding: 24px 0 30px; }
  .section { padding: 54px 0; }
  .crumb-hero { padding: 42px 0 36px; }
}

/* ---------- Phones (landscape) & small tablets ---------- */
@media (max-width: 700px) {
  /* Partnership table becomes stacked cards */
  .prow-head { display: none; }
  .prow { flex-direction: column; gap: 0; border: 1.5px solid var(--magenta); overflow: hidden;}
  .prow .pcell { flex: 1 1 auto !important; border: 0; border-bottom: 1px solid #f0d3e3; flex-wrap: wrap; gap: 4px 12px; }
  .prow .pcell:last-child { border-bottom: 0; text-align: justify;}
  .pcell::before {
    content: attr(data-label); flex: 0 0 100%;
    font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--magenta);
  }
  .banner-title h2 { padding: 12px 26px; }
  .why-item { flex: 1 1 100%; }
  .patron { justify-content: center; }
  .patron-photo { flex-basis: 220px; }
  .patron-text h3, .patron-quote { text-align: center; }
  .about-body { gap: 24px; }
  .footer-inner { padding-top: 44px; gap: 28px; }
}

/* ---------- Phones ---------- */
@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .hero { padding: 18px 0 24px; }
  .hero-collage { min-height: 250px; gap: 10px; }
  .collage-stack { gap: 10px; }
  .collage-tile, .collage-circle { border-width: 4px; }
  .collage-tile figcaption { font-size: .66rem; padding: 4px 9px; }
  .hero-content { padding: 22px 16px 20px; border-radius: 24px; }
  .hero-lockup { flex-direction: column; }
  .hero-tagline { border-left: 0; border-top: 4px solid var(--magenta); padding: 12px 0 0; text-align: center; }
  .date-venue { padding: 12px 14px; outline-offset: 4px; }
  .dv-item { width: 100%; }
  .dv-divider { display: none; }
  .hero-foot { flex-direction: column; gap: 14px; margin-top: 14px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 140px; padding: 10px 14px; }
  .countdown div { min-width: 60px; }
  .crumb-hero { padding: 34px 0 30px; }
  .invite p { text-align: justify; }
  .tier-head, .tier-body { padding-left: 18px; padding-right: 18px; }
  .tier-sep { display: none; }
  .tier-head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .about-text p, .patron-text p:not(.patron-quote) { text-align: justify; }
  .about-card { padding: 22px 18px; }
  .contact-info, .contact-form { padding: 22px 18px; }
  .field-row .field { flex-basis: 100%; }
  .btn-primary[type="submit"] { width: 100%; }
  .managed-by address a { white-space: normal; }
  .managed-by img { width: 200px; }
  .footer-motto { font-size: .82rem; padding: 12px 14px; }
  .scroll-top { right: 14px; bottom: 16px; width: 46px; height: 46px; }
  .footer-brand h3 {margin-top: 20px;}
}

/* ---------- Very small phones (320 - 380px) ---------- */
@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .nav-toggle { width: 48px; height: 48px; font-size: 1.25rem; }
  .hero-content { padding: 18px 12px 18px; max-height: 440px;}
  .hero-title { font-size: 1.45rem; }
  .countdown { gap: 4px; }
  .countdown div { min-width: 52px; }
  .hero-motto { font-size: .76rem; }
  .collage-tile figcaption { display: none; }
  .tile-anatomy { border-radius: 20px; }
  .tile-itc, .tile-howrah { border-radius: 20px; }
  .banner-title h2 { padding: 10px 18px; font-size: 1.8rem;}
  .patron-photo { flex-basis: 180px; }
  .contact-list li { gap: 12px; }
  .ci-icon { flex-basis: 38px; width: 38px; height: 38px; font-size: .9rem; }
  .footer-brand h3 { font-size: 1.25rem; margin-top: 20px; text-align: center; }
  .center-title { font-size: 2rem; }
  .learn-line { font-size: 2rem; text-align: center; }
  .managed-by > p { font-size: 1.3rem; }
  .crumb-hero h1 { font-size: 2.2rem; }
  .circle-victoria {width: 140px; height: 140px; }
}

/* ---------- Short landscape screens (phones turned sideways) ---------- */

@media (max-width: 899px) {
  .site-header .header-bar { gap: 10px; padding-left: 12px; padding-right: 12px; min-height: 80px; box-sizing: border-box; }
  .brand { gap: 10px; }
  .brand picture { flex-basis: 206px; }

  .nav-toggle {
    display: inline-flex; margin-left: auto;
    width: 50px; height: 50px; font-size: 1.35rem; border-radius: 12px;
    box-shadow: 0 6px 16px rgba(179, 35, 111, .28);
  }

  /* Side drawer: always covers HALF of the screen width (right side), on every device */
  .main-nav {
    display: none; position: absolute; top: 100%; right: 0; left: auto;
    width: 50vw; min-width: 150px; order: 0;
    flex-direction: column; gap: 0;
    padding: 12px 10px 16px; background: #fff;
    border-radius: 0 0 0 18px; box-shadow: -8px 16px 28px rgba(78, 42, 132, .18);
    border-top: 1px solid var(--line);
  }
  .main-nav.open { display: flex; overscroll-behavior: contain; animation: navSlide .22s ease-out; }
  .main-nav ul { flex-direction: column; flex-wrap: nowrap; gap: 6px; }
  .main-nav li a {
    font-size: 1.02rem; gap: 12px; padding: 14px 16px; width: auto; height: auto;
    justify-content: flex-start; border-radius: 12px; white-space: nowrap;
  }
  .main-nav li a i { font-size: 1rem; width: 20px; text-align: center; }
}
@keyframes navSlide { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 899px) {
  /* Logo height steps down smoothly as the screen gets narrower (no calc/clamp) */
  :root { --logo-h: 78px; --header-h: 96px; }
  .site-header { position: sticky; }
  .site-header .header-bar {
    height: auto; min-height: 0; box-sizing: border-box;
    flex-wrap: nowrap; align-items: center; justify-content: flex-start;
    gap: 12px; padding: 7px 12px;
  }

  .brand {
    flex: 1 1 0; min-width: 0; height: var(--logo-h);
    display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 18px;
    overflow: hidden; /* no scrolling */
  }
  /* BEM logo hidden on small screens: only Narayana + KITS remain */
  .brand .logo-bem { display: none; }

  /* the two logos share the available width equally and shrink together */
  .brand picture { flex: 1 1 0; min-width: 0; height: var(--logo-h); display: block; }
  .brand img {
    width: 100%; max-width: 100%; height: var(--logo-h);
    object-fit: contain; object-position: left center; background: transparent;
  }
  .brand picture + picture { position: relative; padding-left: 18px; }
  .brand picture + picture::before {
    content: ""; position: absolute; left: 0; top: 16%; bottom: 16%; width: 1px; background: var(--line);
  }

  .nav-toggle {
    flex: 0 0 auto; width: 50px; height: 50px; margin-left: 0;
    border-radius: 14px; font-size: 1.3rem;
    box-shadow: 0 6px 16px rgba(179, 35, 111, .28);
  }

  /* ----- Premium slide-down drawer ----- */
  .main-nav {
    top: 100%; right: 0; left: auto; width: 80vw; min-width: 0; max-width: 340px;
    padding: 18px 16px 20px; gap: 0;
    background: #fff; border: 0; border-radius: 0 0 0 26px;
    box-shadow: -12px 20px 40px rgba(78, 42, 132, .28);
  }
  .main-nav.open { animation: navSlide .24s ease-out; }
  /* soft dim behind the drawer (inside the header's stacking layer) */
  .main-nav.open::before {
    content: ""; position: fixed; left: 0; right: 0; bottom: 0; top: var(--header-h); z-index: -1;
    background: rgba(34, 16, 64, .5);
  }
  .main-nav.open::after {          /* gradient accent along the top edge */
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
    background: var(--grad-warm); border-radius: 0 0 0 26px;
  }
  .main-nav ul { gap: 8px; }
  .main-nav li a {
    display: flex; align-items: center; gap: 14px; position: relative;
    padding: 12px 14px; border-radius: 14px; white-space: nowrap;
    font-size: 1.02rem; font-weight: 700; color: var(--purple-deep);
    background: var(--mist); box-shadow: inset 0 0 0 1px var(--line);
    transition: background .2s, color .2s, transform .2s;
  }
  .main-nav li a i {
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: var(--magenta); font-size: 1rem;
    box-shadow: 0 3px 10px rgba(78, 42, 132, .12);
  }
  .main-nav li a::after {
    content: "\f054"; font-family: "Font Awesome 7 Free"; font-weight: 900;
    margin-left: auto; font-size: .75rem; color: var(--magenta); opacity: .7;
  }
  .main-nav li a:active { transform: scale(.98); }
  .main-nav li a:hover { background: #efe3f8; color: var(--magenta); }
  .main-nav li a.active {
    background: var(--grad-warm); color: #fff; box-shadow: 0 8px 18px rgba(179, 35, 111, .3);
  }
  .main-nav li a.active i { background: rgba(255, 255, 255, .22); color: #fff; box-shadow: none; }
  .main-nav li a.active::after { color: #fff; opacity: 1; }
  .section { scroll-margin-top: 110px; }
}
@media (max-width: 700px) { :root { --logo-h: 70px; --header-h: 88px; } }
@media (max-width: 520px) { :root { --logo-h: 62px; --header-h: 80px; } .brand { gap: 14px; } .brand picture + picture { padding-left: 14px; } }
@media (max-width: 380px) {
  :root { --logo-h: 54px; --header-h: 70px; }
  .site-header .header-bar { gap: 8px; padding: 6px 10px; }
  .nav-toggle { width: 46px; height: 46px; font-size: 1.2rem; border-radius: 12px; }
  .main-nav { width: 86vw; padding: 16px 12px 18px; }
}

/* ---------- Jump-to-section offset (space for the sticky header) ---------- */
.section { scroll-margin-top: 100px; }
@media (min-width: 1500px) { .section { scroll-margin-top: 130px; } }

@media (max-height: 520px) and (orientation: landscape) {
  .site-header { position: relative; }
  .section { scroll-margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Phones turned sideways: header is not sticky, so use the free height */
@media (max-height: 520px) and (orientation: landscape) {
  .site-header { position: relative; }
  .section { scroll-margin-top: 20px; }
  .main-nav.open { max-height: 90vh; max-height: 90dvh; }
}
@media (prefers-reduced-motion: reduce) { .main-nav.open { animation: none; } }

/* ---------- Footer: event manager logo ---------- */
.footer-logo {
  width: 220px; height: auto; margin: 0 0 14px;
  background: #fff; padding: 8px 12px; border-radius: 10px;
}