/* =========================================================
   Indian Transplant Games 2027 — site styles
   Brand palette taken from the Games logo
   ========================================================= */
:root {
  --navy:        #2b2a6e;
  --navy-dark:   #1f1c54;
  --saffron:     #f58220;
  --orange:      #e8541c;
  --green:       #3aaa35;
  --green-dark:  #1f8a3b;
  --gold:        #fbb040;
  --cream:       #fff9f0;
  --ink:         #23232b;
  --muted:       #5c5c6b;
  --line:        #ececf1;
  --white:       #ffffff;

  --grad-warm: linear-gradient(135deg, var(--gold) 0%, var(--saffron) 45%, var(--orange) 100%);
  --grad-india: linear-gradient(90deg, var(--saffron) 0%, var(--saffron) 33%, #ffffff 33%, #ffffff 66%, var(--green) 66%, var(--green) 100%);

  --maxw: 1140px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 42, 110, 0.10);
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
p { margin: 0 0 1rem; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* India tricolour accent bar */
.tricolour { height: 5px; background: var(--grad-india); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--saffron); color: #fff; box-shadow: 0 6px 16px rgba(17, 12, 46, .14); }
.btn-ghost   { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-green   { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 10px 20px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 56px; width: auto; }
.brand .brand-text { font-weight: 700; color: var(--navy); line-height: 1.05; font-size: .98rem; }
.brand .brand-text span { display: block; color: var(--orange); font-size: .78rem; font-weight: 600; letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: 8px 14px; border-radius: 8px;
  color: #fff; font-weight: 500; font-size: 1.08rem;
}
.nav-links a:hover { background: rgba(255,255,255,.14); color: var(--orange); text-decoration: none; }
.nav-links a.active { color: var(--orange); }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

/* dropdown menus */
.nav-links .has-dropdown { position: relative; }
/* invisible bridge over the gap so the menu stays open while the cursor moves into it */
.nav-links .has-dropdown::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 12px; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 236px; margin: 4px 0 0; padding: 8px;
  list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); display: none; z-index: 60;
}
.nav-links .has-dropdown:hover .dropdown,
.nav-links .has-dropdown:focus-within .dropdown { display: block; }
.dropdown li { margin: 0; }
.dropdown a { display: block; padding: 10px 12px; border-radius: 8px; font-size: .92rem; font-weight: 500; color: var(--navy); white-space: nowrap; }
.dropdown a:hover { background: var(--cream); color: var(--orange); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; min-height: 560px; padding: 90px 0;
  background-image:
    linear-gradient(90deg, rgba(31,28,84,.92) 0%, rgba(31,28,84,.74) 44%, rgba(31,28,84,.30) 100%),
    url("../assets/hero-runners.jpg");
  background-size: cover; background-position: center 26%; background-repeat: no-repeat;
}
.hero > .container { width: 100%; }
.hero-inner { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 18px; max-width: 540px; margin: 0 auto; }
.hero-inner > * { margin: 0; }
.hero-inner .hero-cta { margin-top: 6px; }
.hero-logo-h { width: min(540px, 100%); height: auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,.35)); }
.hero .eyebrow {
  display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.38);
  color: #fff; font-weight: 600; font-size: .82rem; letter-spacing: .06em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 0;
  backdrop-filter: blur(4px);
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: .3em; color: #fff; }
.hero h1 .accent { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: rgba(255,255,255,.92); max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.85); }
.hero .btn-ghost:hover { background: #fff; color: var(--navy); }

/* ---------- Fact strip ---------- */
.facts { background: var(--navy); color: #fff; }
.facts .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 28px 20px; }
.fact { text-align: center; }
.fact .k { font-size: 1.4rem; font-weight: 700; color: var(--gold); }
.fact .v { font-size: .95rem; opacity: .9; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--cream); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head .kicker { color: var(--orange); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
.section-head p { color: var(--muted); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .18s ease;
}
.card:hover { transform: translateY(-4px); }
.card .ico {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 16px; background: var(--grad-warm); color: #fff;
}
.card.green .ico { background: var(--green); }
.card.navy .ico { background: var(--navy); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad-warm); color: #fff; text-align: center; padding: 60px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 54ch; margin: 0 auto 26px; opacity: .95; }
.cta-band .btn-ghost { color:#fff; border-color:#fff; }
.cta-band .btn-ghost:hover { background:#fff; color: var(--orange); }

/* ---------- News teasers ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; }
.news-card .thumb { aspect-ratio: 16/9; background: var(--grad-warm); opacity:.9; }
.news-card .body { padding: 20px; }
.news-card .date { color: var(--orange); font-size: .8rem; font-weight:600; text-transform: uppercase; letter-spacing:.05em; }
.news-card h3 { font-size: 1.1rem; margin:.3em 0; }

/* ---------- Sponsors ---------- */
.sponsors { padding: 48px 0; text-align:center; }
.sponsor-row { display:flex; flex-wrap:wrap; gap:28px; justify-content:center; align-items:center; margin-top:24px; }
.sponsor-slot { width: 150px; height: 70px; border:1px dashed #d7d7e0; border-radius:10px; display:grid; place-items:center; color:#b4b4c2; font-size:.8rem; background:#fff; }

/* ---------- Page banner (interior pages) ---------- */
.page-banner {
  background: radial-gradient(900px 400px at 85% -30%, rgba(251,176,64,.3), transparent 60%), var(--navy);
  color:#fff; padding: 56px 0;
}
.page-banner h1 { color:#fff; margin:0; font-size: clamp(2rem,4vw,2.8rem); }
.page-banner .crumb { color: var(--gold); font-size:.85rem; margin-bottom:10px; }
.coming-soon {
  border:2px dashed var(--line); border-radius: var(--radius); padding:40px; text-align:center;
  background: var(--cream); color: var(--muted);
}
.coming-soon .tag { display:inline-block; background: var(--gold); color: var(--navy); font-weight:700; font-size:.78rem; padding:4px 12px; border-radius:999px; letter-spacing:.05em; text-transform:uppercase; margin-bottom:14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #cfcfe3; padding: 54px 0 0; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color:#fff; font-size:.95rem; letter-spacing:.04em; text-transform:uppercase; margin:0 0 14px; }
.site-footer ul { list-style:none; margin:0; padding:0; }
.site-footer li { margin-bottom:9px; }
.site-footer a { color:#cfcfe3; font-size:.92rem; }
.site-footer a:hover { color:#fff; }
.footer-brand img { height:64px; margin-bottom:14px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.3)); }
.footer-brand p { font-size:.9rem; color:#a9a9c6; max-width: 34ch; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top:40px; padding:18px 0; font-size:.82rem; color:#8f8fb0; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }

/* ---------- Responsive ---------- */
/* Collapse the nav to a hamburger before the links crowd the logo */
@media (max-width: 980px) {
  .nav-links {
    position: absolute; top: 100%; left:0; right:0; background: var(--navy);
    flex-direction: column; align-items: stretch; gap:0; padding: 10px 16px 18px;
    box-shadow: var(--shadow);
    display:none;
  }
  .nav-links.open { display:flex; }
  .nav-links a { padding: 12px 10px; border-radius:8px; }
  .nav-cta { margin:8px 0 0; }
  .nav-cta .btn { display:block; text-align:center; }
  .nav-toggle { display:block; }
  .nav-centered { justify-content: flex-end; }
  /* dropdowns become an indented, always-open list inside the mobile menu */
  .dropdown { position: static; display: block; min-width: 0; margin: 0 0 4px; padding: 0 0 0 14px; background: transparent; border: 0; box-shadow: none; border-left: 2px solid rgba(255,255,255,.25); border-radius: 0; }
  .nav-links .has-dropdown > a::after { display: none; }
  .dropdown a { font-size: .9rem; color: rgba(255,255,255,.72); }
}
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 460px; padding: 64px 0;
    background-image: linear-gradient(180deg, rgba(31,28,84,.80) 0%, rgba(31,28,84,.72) 100%), url("../assets/hero-runners.jpg");
    background-position: center 30%; }
  .cards, .news-grid { grid-template-columns: 1fr 1fr; }
  .facts .container { grid-template-columns: 1fr; gap:14px; }
}
@media (max-width: 620px) {
  .cards, .news-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* =========================================================
   Interior content pages
   ========================================================= */
.content { padding: 56px 0; }
.content-grid { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.side-nav { position: sticky; top: 90px; }
.side-nav h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--navy); font-size: .93rem; font-weight: 500; border-left: 3px solid transparent; }
.side-nav a:hover { background: var(--cream); color: var(--orange); text-decoration: none; }
.side-nav a.active { border-left-color: var(--orange); color: var(--orange); background: var(--cream); }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; color: var(--navy); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1rem; }
.prose li { margin-bottom: .5rem; }
.prose .lead { font-size: 1.15rem; color: var(--muted); }

.callout { background: var(--cream); border: 1px solid var(--line); border-left: 4px solid var(--saffron); border-radius: 10px; padding: 18px 22px; margin: 22px 0; }
.callout.green { border-left-color: var(--green); }
.callout.navy { border-left-color: var(--navy); }
.callout strong { color: var(--navy); }
.tbc { display: inline-block; background: var(--gold); color: var(--navy); font-weight: 700; font-size: .72rem; padding: 3px 10px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }

/* tables */
.table-wrap { overflow-x: auto; margin: 22px 0; }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 440px; }
table.data th, table.data td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--navy); color: #fff; font-weight: 600; }
table.data tbody tr:nth-child(even) { background: var(--cream); }
table.data td.num, table.data th.num { text-align: center; }

/* sports / feature grid */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; text-align: center; box-shadow: var(--shadow); }
.tile .ico { font-size: 1.8rem; margin-bottom: 8px; }
.tile .sport-icon { width: 66px; height: 66px; object-fit: contain; display: block; margin: 4px auto 12px; }
.tile .label { font-weight: 600; color: var(--navy); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery .shot { aspect-ratio: 4/3; border-radius: 12px; background: var(--grad-warm); opacity: .85; display: grid; place-items: center; color: #fff; font-size: .85rem; border: 1px solid rgba(0,0,0,.05); }
.gallery .shot:nth-child(3n) { background: linear-gradient(135deg, var(--green), var(--green-dark)); }
.gallery .shot:nth-child(3n+2) { background: linear-gradient(135deg, var(--navy), #4b49a8); }

/* FAQ */
.faq { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--orange); font-weight: 400; }
.faq[open] summary::after { content: "\2013"; }
.faq .ans { padding: 0 22px 18px; color: var(--muted); }

/* steps */
.steps-list { list-style: none; counter-reset: s; padding: 0; margin: 24px 0; }
.steps-list li { counter-increment: s; position: relative; padding: 0 0 22px 56px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%; background: var(--grad-warm); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps-list li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 40px; bottom: 0; width: 2px; background: var(--line); }
.steps-list h3 { margin: 0 0 .3em; font-size: 1.1rem; }
.steps-list p { margin: 0; color: var(--muted); }

/* forms */
.form { max-width: 620px; }
.form .row { margin-bottom: 18px; }
.form label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: .93rem; }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; border: 1px solid #d7d7e0; border-radius: 10px; font-family: inherit; font-size: 1rem; background: #fff; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(245,130,32,.15); }
.form textarea { min-height: 130px; resize: vertical; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 18px; margin-bottom: 8px; }
.contact-card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:22px; box-shadow:var(--shadow); }
.contact-card .ico { font-size:1.5rem; margin-bottom:8px; }
.contact-card .label { font-size:.78rem; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); }
.contact-card a { font-weight:600; color:var(--navy); }

@media (max-width: 820px) {
  .content-grid { grid-template-columns: 1fr; gap: 24px; }
  .side-nav { position: static; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .side-nav ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .side-nav a { border-left: 0; }
  .side-nav a.active { border-left: 0; }
}

/* =========================================================
   Home tweaks: partner top bar, feature cards, text news
   ========================================================= */
/* top line: ITG horizontal logo (left) + partner logos (right) — taller, no divider */
.logobar { background: #fff; }
.logobar-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 20px; min-height: 120px; }
.logobar .brand { display: flex; align-items: center; }
.logobar .brand img { height: 74px; width: auto; display: block; }
.partner-logos { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: flex-end; }
.partner-logos img { height: 80px; width: auto; display: block; }

/* nav row below the logo line — spread the links across, not a centre cluster */
.nav-centered { justify-content: center; position: relative; }
@media (min-width: 981px) {
  .nav-centered .nav-links { width: 100%; max-width: 940px; margin: 0 auto; justify-content: space-between; gap: 24px; }
}

/* empty facts band keeps a visible strip */
.facts .container { min-height: 54px; }

/* feature cards — image panel + text (like the news cards) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease; }
.feature-card:hover { transform: translateY(-4px); }
.feature-card .thumb { aspect-ratio: 16/10; background: var(--cream) center/cover no-repeat; }
.feature-card .body { padding: 22px 24px 26px; }
.feature-card h3 { margin: 0 0 .35em; }
.feature-card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* news — text-only boxes */
.news-card.text-only .thumb { display: none; }

@media (max-width: 920px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .logobar-inner { flex-direction: column; gap: 16px; padding: 14px 16px; min-height: 0; }
  .logobar .brand img { height: 52px; }
  .partner-logos { gap: 22px; justify-content: center; }
  .partner-logos img { height: 50px; }
  .hero-inner { margin-left: 0; max-width: none; }
  .hero-logo-h { width: min(360px, 92%); }
  .feature-grid { grid-template-columns: 1fr; }
}
