:root {
  --brand: #0b5d3b;
  --brand-dark: #073d27;
  --accent: #f4a90c;
  --accent-dark: #d38b00;
  --ink: #1d2733;
  --muted: #6c7a89;
  --bg-soft: #f5f8f6;
  --radius: 14px;
  --bs-primary: #0b5d3b;
  --bs-primary-rgb: 11, 93, 59;
  --bs-link-color: #0b5d3b;
  --bs-link-color-rgb: 11, 93, 59;
  --bs-link-hover-color: #073d27;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', 'Noto Sans Gujarati', system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
.gu, :lang(gu) { font-family: 'Noto Sans Gujarati', 'Poppins', sans-serif; }

/* Bootstrap overrides */
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); --bs-btn-active-bg: var(--brand-dark); --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand); }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #1d1d1d; font-weight: 600; }
.btn-accent:hover, .btn-accent:focus { background: var(--accent-dark); border-color: var(--accent-dark); color: #000; }
.text-brand { color: var(--brand) !important; }
.bg-brand { background: var(--brand) !important; }
.bg-soft { background: var(--bg-soft); }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: #5aa383; box-shadow: 0 0 0 .2rem rgba(11, 93, 59, .2); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }

/* Header */
.topbar { background: var(--brand-dark); color: #e3efe9; }
.main-nav .brand-logo { width: 48px; height: 48px; object-fit: contain; }
.main-nav .brand-text { line-height: 1.15; }
.main-nav .brand-text .gu { font-weight: 700; color: var(--brand); font-size: .98rem; }
.main-nav .brand-text small { color: var(--muted); font-size: .72rem; }
.main-nav .nav-link { font-weight: 500; font-size: .92rem; padding: .5rem .7rem !important; color: var(--ink); border-radius: 8px; }
.main-nav .nav-link.active, .main-nav .nav-link:hover { color: var(--brand); background: var(--bg-soft); }
.dropdown-item.active, .dropdown-item:active { background: var(--brand); }
@media (max-width: 400px) { .main-nav .brand-text .gu { font-size: .85rem; } }

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(244, 169, 12, .35), transparent 40%),
    linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 60%, #128a58 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -60px -10%; height: 120px;
  background: #fff; border-radius: 50% 50% 0 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-logo { width: 140px; height: 140px; object-fit: contain; background: #fff; border-radius: 50%; padding: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.hero h1 { font-weight: 800; letter-spacing: -.5px; }
.hero .gu-title { font-family: 'Noto Sans Gujarati', sans-serif; font-weight: 700; font-size: clamp(1.4rem, 4vw, 2.2rem); }
.season-pill { display: inline-block; background: var(--accent); color: #1d1d1d; font-weight: 700; border-radius: 50px; padding: .3rem 1rem; font-size: .85rem; }

/* Countdown */
.countdown { display: flex; gap: .6rem; flex-wrap: wrap; }
.countdown .cd-box { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; min-width: 72px; padding: .6rem .5rem; text-align: center; backdrop-filter: blur(4px); }
.countdown .cd-num { display: block; font-size: 1.8rem; font-weight: 700; line-height: 1; }
.countdown .cd-lbl { font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; opacity: .85; }
.countdown.light .cd-box { background: var(--bg-soft); border-color: #dbe7e1; color: var(--brand); }
.countdown.light .cd-lbl { color: var(--muted); }

/* Sections */
.section { padding: 4rem 0; }
.section-title { font-weight: 700; color: var(--brand-dark); }
.section-sub { color: var(--muted); }
.title-bar::after { content: ""; display: block; width: 60px; height: 4px; background: var(--accent); border-radius: 4px; margin-top: .5rem; }
.text-center .title-bar::after, .title-bar.text-center::after { margin-left: auto; margin-right: auto; }

.page-head { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; padding: 2.5rem 0; }
.page-head h1 { font-weight: 700; margin: 0; font-size: clamp(1.5rem, 4vw, 2.2rem); }
.page-head .gu { opacity: .85; }

.card-soft { border: 0; border-radius: var(--radius); box-shadow: 0 6px 24px rgba(16, 40, 30, .08); }
.highlight-card { text-align: center; padding: 1.8rem 1.2rem; height: 100%; transition: transform .2s; }
.highlight-card:hover { transform: translateY(-4px); }
.highlight-card .icon { width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(11, 93, 59, .1); color: var(--brand); font-size: 1.8rem; margin-bottom: 1rem; }

.stat-strip { background: var(--accent); }
.stat-strip .num { font-size: 2rem; font-weight: 800; color: var(--brand-dark); line-height: 1; }
.stat-strip .lbl { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 24px rgba(16, 40, 30, .1); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* Sponsors */
.sponsor-card { text-align: center; padding: 2rem 1.5rem; height: 100%; }
.sponsor-logo { max-height: 110px; max-width: 100%; object-fit: contain; }
.sponsor-placeholder { width: 110px; height: 110px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), #128a58); }
.sponsor-tier { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-dark); }
.sponsor-title-card { border: 2px solid var(--accent); }

/* Forms */
.form-card { border-radius: var(--radius); }
.form-section-title { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--brand); font-weight: 700; border-bottom: 1px solid #e6eeea; padding-bottom: .4rem; margin: 1.5rem 0 1rem; }
.required::after { content: " *"; color: #d63939; }
.photo-preview { width: 110px; height: 130px; object-fit: cover; border-radius: 10px; border: 2px dashed #c9d9d1; background: var(--bg-soft); }
.role-options .btn { flex: 1 1 45%; }
.rules-content { max-height: 60vh; overflow-y: auto; }
.success-code { font-size: 2rem; font-weight: 800; letter-spacing: 3px; color: var(--brand); background: var(--bg-soft); border: 2px dashed var(--brand); border-radius: 12px; padding: .5rem 1.5rem; display: inline-block; }

/* Teams */
.team-card .team-badge { width: 52px; height: 52px; border-radius: 12px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; flex-shrink: 0; }
.player-item { display: flex; align-items: center; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid #eef3f0; }
.player-item:last-child { border-bottom: 0; }
.player-item img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--bg-soft); }
.role-chip { font-size: .7rem; border-radius: 20px; padding: .1rem .55rem; background: var(--bg-soft); color: var(--brand); font-weight: 600; white-space: nowrap; }

/* Schedule */
.schedule-day { margin-bottom: 2rem; }
.schedule-day-head { background: var(--brand); color: #fff; border-radius: 10px 10px 0 0; padding: .6rem 1rem; font-weight: 600; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.schedule-table { margin: 0; }
.schedule-table th { background: #eaf3ee; color: var(--brand-dark); font-size: .8rem; text-transform: uppercase; white-space: nowrap; }
.schedule-table td { vertical-align: middle; }
.vs { display: inline-block; font-weight: 700; color: var(--accent-dark); margin: 0 .35rem; font-size: .8rem; }
.match-card { border-radius: var(--radius); border: 1px solid #e3ece7; overflow: hidden; height: 100%; }
.match-card .mc-head { background: var(--bg-soft); padding: .5rem 1rem; font-size: .8rem; display: flex; justify-content: space-between; color: var(--muted); }
.match-card .mc-team { display: flex; justify-content: space-between; padding: .45rem 1rem; font-weight: 500; }
.match-card .mc-team.winner { font-weight: 700; color: var(--brand); }
.match-card .mc-result { padding: .5rem 1rem; font-size: .85rem; border-top: 1px solid #eef3f0; background: #fffaf0; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #dc3545; margin-right: 4px; animation: pulse 1.2s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: .3; } 100% { opacity: 1; } }
@media (max-width: 767px) {
  .schedule-table thead { display: none; }
  .schedule-table tr { display: block; border-bottom: 1px solid #e3ece7; padding: .5rem 0; }
  .schedule-table td { display: flex; justify-content: space-between; border: 0; padding: .25rem .75rem; text-align: right; }
  .schedule-table td::before { content: attr(data-label); font-weight: 600; color: var(--muted); font-size: .8rem; text-align: left; padding-right: 1rem; }
}

/* Core team / committees */
.committee-icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(11, 93, 59, .1); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.committee-section { scroll-margin-top: 90px; overflow: hidden; }
.committee-section-head { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.25rem; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; }
.committee-section-head .committee-icon { background: rgba(255, 255, 255, .15); color: #fff; }
.member-card { padding: 1rem .75rem; border: 1px solid #e6eeea; border-radius: 12px; background: #fff; transition: transform .2s, box-shadow .2s; }
.member-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(16, 40, 30, .1); }
.member-photo { width: 146px; height: 146px; border-radius: 10px; object-fit: cover; display: flex; border: 3px solid var(--accent); }
@media (max-width: 575px) { .committee-section-head { flex-wrap: wrap; } .member-photo { width: 126px; height: 126px; } }
.member-initials { align-items: center; justify-content: center; font-weight: 700; font-size: 2.6rem; color: #fff; background: linear-gradient(135deg, var(--brand), #128a58); }

/* Core team member list: name + village, numbered, 1–3 columns */
.member-list { list-style: none; counter-reset: member; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 1.5rem; }
.member-list li { counter-increment: member; display: flex; align-items: baseline; gap: .6rem; padding: .6rem .25rem; border-bottom: 1px solid #e6eeea; min-width: 0; }
.member-list li::before { content: counter(member); flex: 0 0 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--bg-soft); color: var(--brand); font-weight: 600; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; align-self: center; font-variant-numeric: tabular-nums; }
.member-list .member-name { font-weight: 600; color: var(--ink); }
.member-list .member-village { margin-left: auto; color: var(--muted); font-size: .88rem; white-space: nowrap; }
.member-list .member-village i { color: var(--accent-dark); font-size: .8rem; }
@media (max-width: 575px) { .member-list { grid-template-columns: 1fr; } }

/* Fan Zone */
.fan-bar { margin-bottom: .75rem; }
.fan-bar .progress { height: 10px; background: #e8f0ec; border-radius: 10px; }
.fan-bar .progress-bar { background: linear-gradient(90deg, #128a58, var(--brand)); border-radius: 10px; transition: width .8s ease; }
.fan-bar.lead .progress-bar { background: linear-gradient(90deg, var(--accent), var(--accent-dark)); }
.fan-thanks { border: 2px solid var(--accent); scroll-margin-top: 90px; }
.fan-thanks-icon { width: 72px; height: 72px; border-radius: 50%; background: rgba(244, 169, 12, .15); color: var(--accent-dark); font-size: 2rem; display: inline-flex; align-items: center; justify-content: center; }
.fan-pick { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; border-radius: 14px; padding: 1rem 2rem; display: inline-block; }
#support, #champion, #matches, [id^="match-"] { scroll-margin-top: 90px; }

/* Mobile bottom navigation */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; background: #fff; border-top: 1px solid #e3ece7; box-shadow: 0 -4px 18px rgba(16, 40, 30, .08); padding-bottom: env(safe-area-inset-bottom); }
.bn-item { flex: 1 1 0; min-width: 0; position: relative; }
.bn-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 100%; min-height: 58px; padding: .4rem .2rem; border: 0; background: none; color: var(--muted); font-size: .68rem; font-weight: 500; line-height: 1.1; text-decoration: none; position: relative; -webkit-tap-highlight-color: transparent; }
.bn-link i { font-size: 1.3rem; line-height: 1; }
.bn-link span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn-link.dropdown-toggle::after { display: none; }
.bn-link:hover, .bn-link:focus-visible, .bn-link[aria-expanded="true"] { color: var(--brand); }
.bn-link.active { color: var(--brand); font-weight: 600; }
.bn-link.active::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.bottom-nav .dropdown-menu { min-width: 220px; border-radius: 12px; border: 0; }
@media (max-width: 991.98px) {
  body.has-bottom-nav { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

/* Footer credit */
.dev-credit { color: #7f978b; }
.dev-credit a { color: #cfe0d7; }

/* Gallery */
.gallery-item { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; background: var(--bg-soft); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }

/* CMS */
.cms-text img { max-width: 100%; height: auto; }
.cms-text table { width: 100%; }

/* Footer */
.site-footer { background: #0a2a1d; color: #dfe9e4; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-links li { margin-bottom: .4rem; }
.footer-bottom { background: #061a12; color: #9fb5aa; }
.site-footer .brand-logo { width: 48px; height: 48px; object-fit: contain; }
