/* ============================================================
   XLRI Metamorphose 2026 — Microsite stylesheet
   Pattern follows xlri.ac.in: white header, navy band,
   breadcrumb, large heading, card tiles with date chips.
   ============================================================ */

:root {
  --navy: #14335f;          /* XLRI band navy */
  --navy-deep: #0d2547;
  --ink: #17181a;
  --slate: #5a6472;
  --line: #e4e7ec;
  --paper: #ffffff;
  --tile-bg: #f7f8fa;
  --gold: #c9a24b;          /* accent drawn from XLRI crest gold */
  --radius: 6px;
  --wrap: 1180px;
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

/* ---------- Header ---------- */
.site-header { background: var(--paper); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { height: 62px; width: auto; display: block; }
.brand-fallback { display: flex; flex-direction: column; line-height: 1.2; }
.brand-fallback .b1 { font-weight: 700; font-size: 1.25rem; color: var(--navy); letter-spacing: .02em; }
.brand-fallback .b2 { font-size: .72rem; color: var(--slate); }
.header-tag {
  text-align: right; font-size: .8rem; color: var(--slate); line-height: 1.45;
}
.header-tag strong { color: var(--navy); font-weight: 600; }

/* ---------- Navy band (no menu, per brief) ---------- */
.band {
  background: var(--navy);
  color: #fff;
  padding: 14px 0;
}
.band .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.band .band-title { font-weight: 600; letter-spacing: .06em; font-size: .95rem; text-transform: uppercase; }
.band .band-date { font-size: .85rem; opacity: .9; }

/* ---------- Breadcrumb + page heading ---------- */
.page-head { padding: 44px 0 8px; }
.crumbs { font-size: .95rem; color: var(--slate); display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--navy); }
.crumbs .sep::before { content: "›"; }
h1.page-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 600;
  color: var(--ink);
  margin-top: 10px;
  letter-spacing: -0.01em;
}
.page-sub { color: var(--slate); max-width: 720px; margin-top: 10px; }

/* ---------- Tile grid (mirrors announcement cards) ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: center;
  padding: 28px 0 70px;
}
.tile {
  background: var(--tile-bg);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: box-shadow .2s ease, transform .2s ease;
}
.tile:hover, .tile:focus-visible { box-shadow: 0 10px 28px rgba(13, 37, 71, .14); transform: translateY(-3px); }
.tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.tile-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 70%);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-media .placeholder {
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85;
  text-align: center; padding: 0 20px;
}
.tile-body { padding: 26px 26px 30px; }
.chip {
  display: inline-block;
  border: 1px solid var(--ink);
  font-size: .8rem;
  padding: 4px 14px;
  margin-bottom: 16px;
  background: #fff;
}
.tile-title {
  font-size: 1.35rem; font-weight: 600; line-height: 1.35;
  display: flex; justify-content: space-between; gap: 12px;
}
.tile-title .arrow { flex: none; font-size: 1.1rem; transform: translateY(2px); }
.tile-desc { margin-top: 12px; color: var(--slate); font-size: .95rem; }

/* ---------- About section ---------- */
.about-section { padding: 10px 0 80px; }
.about-section h2 { font-size: 1.7rem; font-weight: 600; color: var(--navy); margin-bottom: 16px; }
.about-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.about-cols p + p { margin-top: 14px; }
.fact-card {
  background: var(--tile-bg); border-left: 4px solid var(--gold);
  padding: 24px; border-radius: 0 var(--radius) var(--radius) 0;
  height: fit-content;
}
.fact-card dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--slate); margin-top: 14px; }
.fact-card dt:first-child { margin-top: 0; }
.fact-card dd { font-weight: 600; color: var(--navy); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  padding: 30px 0 80px;
}
.gallery-grid figure {
  border-radius: var(--radius); overflow: hidden; background: var(--tile-bg);
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-grid .ph {
  color: var(--slate); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
}

/* ---------- Delegates page ---------- */
.delegate-tools {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  padding: 26px 0 6px;
}
.delegate-tools input[type="search"] {
  font: inherit; padding: 10px 16px; border: 1px solid var(--line);
  border-radius: var(--radius); min-width: 280px; flex: 1; max-width: 420px;
}
.delegate-tools input:focus { outline: 2px solid var(--navy); }
.count-pill {
  background: var(--navy); color: #fff; border-radius: 999px;
  padding: 6px 18px; font-size: .85rem; font-weight: 600;
}
.status-note { color: var(--slate); font-size: .9rem; padding: 8px 0; }

.delegate-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  padding: 24px 0 80px;
}
.delegate-card {
  background: var(--tile-bg); border-radius: var(--radius);
  padding: 24px; border-top: 3px solid var(--navy);
}
.delegate-card .d-name { font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.delegate-card .d-role { color: var(--slate); font-size: .88rem; margin-top: 4px; }
.delegate-card .d-org {
  margin-top: 12px; font-size: .82rem; font-weight: 600;
  color: var(--navy); text-transform: uppercase; letter-spacing: .05em;
}
.alpha-rule {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 14px;
  color: var(--gold); font-weight: 600; font-size: 1.05rem; margin-top: 8px;
}
.alpha-rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.error-box {
  background: #fdf3f3; border: 1px solid #f0c9c9; color: #8a2f2f;
  border-radius: var(--radius); padding: 20px 24px; margin: 24px 0 80px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #cfd8e6; padding: 34px 0; font-size: .85rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: #fff; text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .tile-grid, .gallery-grid, .delegate-grid { grid-template-columns: repeat(2, 1fr); }
  .about-cols { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .tile-grid, .gallery-grid, .delegate-grid { grid-template-columns: 1fr; }
  .brand img { height: 48px; }
  .header-tag { display: none; }
}

/* ---------- Region filter buttons (India / APAC / All) ---------- */
.region-bar {
  display: flex; gap: 12px; flex-wrap: wrap;
  padding: 28px 0 4px;
}
.region-btn {
  font: inherit; font-weight: 600; font-size: .92rem;
  padding: 9px 22px; border-radius: 999px; cursor: pointer;
  color: var(--navy); background: #fff;
  border: 1.5px solid var(--navy);
  transition: background .15s ease, color .15s ease;
}
.region-btn:hover { background: #eef2f8; }
.region-btn.is-active { background: var(--navy); color: #fff; }
.region-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Agenda page: 4 boxes, 40% photo + 60% text ---------- */
.agenda-list {
  display: flex; flex-direction: column; gap: 26px;
  padding: 30px 0 80px;
}
.agenda-box {
  display: flex;
  min-height: 220px;
  background: var(--tile-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.agenda-box .box-photo {
  flex: 0 0 40%;          /* left 40% = photo */
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 70%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.agenda-box .box-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.agenda-box .box-photo .ph {
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85;
}
.agenda-box .box-text {
  flex: 1 1 60%;          /* right 60% = text */
  padding: 32px 36px;
  display: flex; flex-direction: column; justify-content: center;
}
.agenda-box .box-text h3 {
  font-size: 1.5rem; font-weight: 600; color: var(--navy); line-height: 1.3;
}
.agenda-box .box-role {
  color: var(--gold); font-weight: 600; margin-top: 6px; font-size: .95rem;
}
.agenda-box .box-desc {
  color: var(--slate); margin-top: 14px;
}
@media (max-width: 640px) {
  .agenda-box { flex-direction: column; }
  .agenda-box .box-photo { flex-basis: 200px; }
}

/* count badge inside region buttons */
.region-btn .rb-count {
  display: inline-block; margin-left: 6px; font-size: .78rem;
  background: rgba(20,51,95,.12); color: inherit;
  border-radius: 999px; padding: 1px 8px; font-weight: 600;
}
.region-btn.is-active .rb-count { background: rgba(255,255,255,.25); }

/* ---------- About intro (homepage, above the tiles) ---------- */
.about-intro {
  padding: 8px 0 4px;
  max-width: 900px;
}
.about-intro h2 {
  font-size: 1.7rem; font-weight: 600; color: var(--navy); margin-bottom: 14px;
}
.about-intro p {
  color: var(--slate); margin-bottom: 14px; text-align: justify;
}
.about-intro p:last-child { margin-bottom: 0; }
