/* ISOPARB Delhi Chapter website - colours taken from the society's logo */
:root {
  /* logo colours */
  --navy: #0A0438;        /* name lettering */
  --blue: #1A1BB0;        /* the mother's veil */
  --yellow: #FAF03C;      /* the disc */
  --peach: #FBBAA0;       /* the outer ring */
  --red: #E8312F;         /* ring lettering */

  /* working shades */
  --heading: #14128C;     /* deep royal blue for headings */
  --blue-dark: #12128A;   /* hover */
  --red-text: #C42320;    /* red dark enough for text and buttons */
  --peach-soft: #FFF5F0;  /* light section background */
  --peach-mid: #FDE3D7;   /* icon and tag backgrounds */
  --ink: #1F1B3A;
  --muted: #5A5670;
  --line: #EADFDA;
  --bg: #ffffff;

  /* placeholders: neutral grey so they never look like brand colour */
  --todo-bg: #EEF0F3;
  --todo-ink: #4A5260;
  --todo-line: #A0A7B2;

  --radius: 10px;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { color: var(--heading); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

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

/* Draft banner */
.draft-banner {
  background: var(--todo-bg);
  color: var(--todo-ink);
  text-align: center;
  font-size: .9rem;
  padding: 6px 16px;
  border-bottom: 1px solid #DDE1E7;
}

/* Placeholder marker: anything the society still has to send */
.todo {
  background: var(--todo-bg);
  color: var(--todo-ink);
  border: 1px dashed var(--todo-line);
  border-radius: 4px;
  padding: 0 .3em;
  font-style: italic;
}

/* Header, with a thin stripe in the logo's colours */
.site-header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 0 var(--line);
}
.site-header::after {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0 50%, var(--yellow) 50% 75%, var(--red) 75% 100%);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}
.brand img.logo { width: 56px; height: 56px; flex-shrink: 0; }
.brand-text strong { display: block; font-size: 1.3rem; letter-spacing: .04em; color: var(--navy); }
.brand-text span { display: block; font-size: .8rem; color: var(--red-text); font-weight: 600; letter-spacing: .03em; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1rem;
  color: var(--navy);
  cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-size: .95rem;
}
.site-nav a:hover { background: var(--peach-soft); color: var(--blue); }
.site-nav a[aria-current="page"] { color: var(--blue); font-weight: 600; box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 8px 8px 0 0; }
.site-nav a.nav-cta { background: var(--red-text); color: #fff; font-weight: 600; }
.site-nav a.nav-cta:hover { background: #A81C1A; color: #fff; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--yellow); border-radius: 0 8px 8px 0; }
  .site-header .wrap { position: relative; }
}

/* Hero: navy to royal blue */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #13127A 55%, var(--blue) 100%);
  color: #fff;
  padding: 80px 0 72px;
  text-align: center;
}
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 960px; margin-left: auto; margin-right: auto; }
.hero p { margin-left: auto; margin-right: auto; }
.hero .btn-row { justify-content: center; }
.hero h1 { color: #fff; }
.hero p { max-width: 760px; font-size: 1.15rem; opacity: .95; }
.hero .eyebrow { color: var(--yellow); opacity: 1; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid transparent;
}
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: #FFF56E; color: var(--navy); }
.btn-outline { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-accent { background: var(--yellow); color: var(--navy); }
.btn-accent:hover { background: #FFF56E; color: var(--navy); }

/* Page title band (inner pages) */
.page-title { background: var(--peach-soft); border-bottom: 1px solid var(--line); padding: 40px 0 28px; }
.page-title h1::after { content: ""; display: block; width: 64px; height: 4px; background: var(--red); border-radius: 2px; margin-top: 12px; }
.page-title p { color: var(--muted); margin: 0; }

/* Sections */
section.block { padding: 56px 0; }
section.block.soft { background: var(--peach-soft); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 720px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .85rem !important; font-weight: 600; margin-bottom: .6em; }
.narrow { max-width: 820px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 8px 0 32px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-people { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin-top: 0; }
.card .icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--peach-mid); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 14px;
}
.card .icon svg { width: 24px; height: 24px; }
.card.accent { border-left: 4px solid var(--blue); }

/* Conference highlight */
.conf-band {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  border-bottom: 5px solid var(--red);
  padding: 32px;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr auto;
  align-items: center;
}
.conf-band h2 { color: #fff; margin-bottom: .25em; }
.conf-band p { margin: 0; opacity: .92; }
.conf-band .theme { font-size: 1.1rem; font-style: italic; color: var(--yellow); margin-bottom: .4em; opacity: 1; }
@media (max-width: 700px) { .conf-band { grid-template-columns: 1fr; } }

/* People */
.person { text-align: center; }
.person .role { color: var(--red-text); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
img.photo { width: 140px; height: 140px; object-fit: cover; object-position: center; border-radius: 50%; margin: 0 auto 14px; border: 4px solid var(--peach); box-shadow: 0 0 0 3px var(--yellow); }
.person-lines { list-style: none; padding: 0; margin: 8px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.person-lines li + li { margin-top: 4px; }

.president { display: flex; gap: 32px; align-items: center; }
.president img.photo { width: 160px; height: 160px; margin: 0; flex-shrink: 0; }
@media (max-width: 640px) { .president { flex-direction: column; text-align: center; } }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--bg); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--peach-soft); color: var(--heading); font-size: .9rem; }

/* Steps */
ol.steps { padding-left: 1.2em; }
ol.steps li { margin-bottom: .6em; }
ol.steps li::marker { color: var(--red-text); font-weight: 700; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; color: var(--heading); font-size: .9rem; }

/* Events */
.event-list { display: grid; gap: 20px; }
.card.event { padding: 0; overflow: hidden; }
.card.event > :not(.event-photos) { margin-left: 24px; margin-right: 24px; }
.card.event > :last-child { margin-bottom: 22px; }
.event-photos { display: grid; gap: 2px; margin-bottom: 18px; }
.event-photos.n2 { grid-template-columns: 1fr 1fr; }
.event-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.event-photos.n0 { aspect-ratio: 4 / 3; background: var(--peach-soft); display: grid; place-items: center; }
.event-list .event-photos img { aspect-ratio: 16 / 9; }
.event-list .event-photos.n0 { aspect-ratio: 16 / 9; }
.event-meta { color: var(--muted); font-size: .9rem; margin-top: 20px; }
.event-photos + .event-meta { margin-top: 0; }
.tag { display: inline-block; background: var(--peach-mid); color: var(--red-text); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; border-radius: 4px; padding: 1px 8px; margin-right: 6px; }
.card.event h3 { margin: 6px 0 4px; }
.event-place { color: var(--muted); font-size: .92rem; }
details summary { cursor: pointer; color: var(--blue); font-weight: 600; margin-bottom: 8px; }
details[open] summary { margin-bottom: 12px; }
@media (min-width: 900px) {
  .event-list .card.event { display: grid; grid-template-columns: 380px 1fr; column-gap: 0; }
  .event-list .event-photos { grid-row: 1 / span 5; margin: 0; height: 100%; }
  .event-list .event-photos img { height: 100%; aspect-ratio: auto; min-height: 220px; }
  .event-list .event-photos.n2 { grid-template-columns: 1fr 1fr; }
  .event-list .event-photos.n0 { aspect-ratio: auto; min-height: 220px; }
  .event-list .card.event > :not(.event-photos) { grid-column: 2; }
  .event-list .card.event .event-meta { margin-top: 22px; }
}

/* Footer */
.site-footer { background: var(--navy); color: #D3D1E6; padding: 40px 0 24px; font-size: .92rem; border-top: 5px solid var(--yellow); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--yellow); }
.footer-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h3 { color: var(--yellow); font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 28px; padding-top: 16px; font-size: .85rem; }
.site-footer .todo { background: rgba(255,255,255,.08); color: #E6E8EE; border-color: rgba(255,255,255,.35); }
