/* ==========================================================================
   Idukki District Athletics Association – styles (on top of Bootstrap 5)
   ========================================================================== */
:root {
  --blue-900: #020717;
  --blue-800: #03091A;
  --blue-700: #0935AD;
  --blue-600: #1f5fc4;
  --blue-100: #e8f0fc;
  --gold: #f5b301;
  --gold-dark: #d99a00;
  --ink: #14213d;
  --muted: #566480;
  --line: #dde5f2;
  --bg: #f4f7fd;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(10, 27, 61, .09);
  --shadow-lg: 0 18px 44px rgba(10, 27, 61, .16);
  --bs-primary: #1f5fc4;
  --bs-primary-rgb: 31, 95, 196;
  --bs-link-color: #1f5fc4;
  --bs-link-hover-color: #0f2d63;
  --bs-body-font-family: 'Poppins', 'Noto Sans Malayalam', 'Manjari', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-color: var(--ink);
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
img { max-width: 100%; }
.text-muted { color: var(--muted) !important; }
.ml { font-family: 'Noto Sans Malayalam', 'Manjari', 'Meera', sans-serif; }

/* ---------- buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: .6rem 1.35rem; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1b1500; }
.btn-gold:hover, .btn-gold:focus { background: var(--gold-dark); border-color: var(--gold-dark); color: #1b1500; box-shadow: 0 8px 20px rgba(245,179,1,.35); }
.btn-brand { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--blue-800); border-color: var(--blue-800); color: #fff; }
.btn-glass { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); color: #fff; backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-outline-brand { border: 2px solid var(--blue-600); color: var(--blue-600); background: transparent; }
.btn-outline-brand:hover { background: var(--blue-600); color: #fff; }

/* ---------- demo bar ---------- */
.demo-bar { background: var(--gold); color: #3b2b00; font-size: .8rem; text-align: center; padding: .35rem .75rem; font-weight: 500; }
.demo-bar code { background: rgba(0,0,0,.08); padding: 0 .3rem; border-radius: 4px; color: inherit; }

/* ---------- top strip ---------- */
.topbar { background: var(--blue-900); color: #cbd9f0; font-size: .82rem; }
.topbar a { color: #cbd9f0; }
.topbar a:hover { color: var(--gold); }
.topbar .bi { color: var(--gold); margin-right: .35rem; }

/* ---------- navbar ---------- */
.site-nav { background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-nav.scrolled { box-shadow: 0 6px 24px rgba(10,27,61,.1); }
.site-nav .navbar-brand { display: flex; align-items: center; gap: .65rem; padding: .15rem 0; }
.site-nav .brand-logo { width: 44px; height: 44px; flex: none; }
.brand-text { line-height: 1.1; }
.brand-text strong { display: block; font-size: 1.05rem; color: var(--blue-800); font-weight: 700; letter-spacing: .2px; }
.brand-text small { display: block; font-size: .68rem; color: var(--muted); font-weight: 500; }
.site-nav .nav-link { color: var(--ink); font-weight: 500; font-size: .93rem; padding: .55rem .85rem !important; border-radius: 999px; }
.site-nav .nav-link:hover { color: var(--blue-600); background: var(--blue-100); }
.site-nav .nav-link.active { color: var(--blue-800); background: var(--blue-100); font-weight: 600; }
.site-nav .btn-register { padding: .5rem 1.15rem; font-size: .9rem; white-space: nowrap; }
@media (min-width: 1200px) { .site-nav > .container { max-width: 1320px; } .site-nav .nav-link { padding: .5rem .6rem !important; font-size: .9rem; } }
.site-nav .brand-text { min-width: 0; }
.brand-text strong { font-size: .98rem; }
@media (max-width: 575.98px) { .brand-text strong { font-size: .9rem; } .brand-text small { display: none; } }
.lang-toggle { border: 1.5px solid currentColor; background: transparent; color: inherit; border-radius: 999px; padding: .15rem .8rem; font-size: .8rem; font-weight: 600; cursor: pointer; font-family: 'Noto Sans Malayalam', 'Poppins', sans-serif; }
.lang-toggle:hover, .lang-toggle:focus-visible { background: var(--gold); border-color: var(--gold); color: #1b1500; }
.lang-toggle-nav { color: var(--blue-800); font-size: .95rem; padding: .35rem 1rem; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--blue-900); isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; background: var(--hero-img, url('../images/hero-hills.svg')) var(--hero-pos, center bottom) / cover no-repeat; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,14,36,.82) 0%, rgba(5,14,36,.48) 42%, rgba(5,14,36,.08) 75%, rgba(5,14,36,0) 100%); z-index: -1; }
.hero-inner { padding-top: 5.5rem; padding-bottom: 7.5rem; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(245,179,1,.16); color: var(--gold); border: 1px solid rgba(245,179,1,.4); padding: .3rem .85rem; border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
.hero h1, .hero .lead-ml, .hero p.lead { text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.hero h1 { font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.8rem); line-height: 1.1; margin: 1.1rem 0 .9rem; max-width: 18ch; }
.hero h1 span { color: var(--gold); }
.hero .lead-ml { font-size: 1.15rem; color: var(--gold); font-weight: 500; margin-bottom: .6rem; }
.hero p.lead { color: #d0def5; max-width: 52ch; font-size: 1.05rem; }

/* ---------- stats ---------- */
.stats-wrap { margin-top: -4.2rem; position: relative; z-index: 3; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 1.25rem 1.1rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .9rem; height: 100%; border-bottom: 4px solid var(--gold); }
.stat-card .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-100); color: var(--blue-600); display: grid; place-items: center; font-size: 1.5rem; flex: none; }
.stat-card .num { font-size: 1.85rem; font-weight: 800; color: var(--blue-800); line-height: 1; }
.stat-card .lbl { font-size: .8rem; color: var(--muted); font-weight: 500; margin-top: .2rem; }

/* ---------- ticker ---------- */
.ticker { background: var(--blue-800); color: #fff; overflow: hidden; display: flex; align-items: stretch; }
.ticker .tag { background: var(--gold); color: #1b1500; font-weight: 700; font-size: .8rem; letter-spacing: .6px; padding: .5rem 1rem; white-space: nowrap; z-index: 1; display: flex; align-items: center; gap: .4rem; }
.ticker .track-wrap { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker .track { display: inline-flex; white-space: nowrap; animation: ticker 45s linear infinite; padding-left: 100%; }
.ticker:hover .track { animation-play-state: paused; }
.ticker .track a { color: #fff; font-size: .9rem; padding: 0 1.6rem; position: relative; }
.ticker .track a::after { content: '\2022'; position: absolute; right: -.25rem; color: var(--gold); }
.ticker .track a:hover { color: var(--gold); }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: #fff; }
.section-head { margin-bottom: 2.2rem; }
.section-head .kicker { color: var(--blue-600); font-weight: 700; font-size: .78rem; letter-spacing: 1.6px; text-transform: uppercase; display: flex; align-items: center; gap: .6rem; }
.section-head .kicker::before { content: ''; width: 28px; height: 3px; background: var(--gold); border-radius: 3px; }
.section-head h2 { font-weight: 800; color: var(--blue-800); font-size: clamp(1.6rem, 3vw, 2.25rem); margin: .4rem 0 .4rem; }
.section-head p { color: var(--muted); max-width: 60ch; margin: 0; }
.link-arrow { font-weight: 600; color: var(--blue-600); white-space: nowrap; }
.link-arrow i { transition: transform .2s; display: inline-block; }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- page header ---------- */
.page-header { background: linear-gradient(135deg, var(--blue-900), var(--blue-600)); color: #fff; padding: 3.4rem 0 3rem; position: relative; overflow: hidden; }
.page-header::after { content: ''; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border-radius: 50%; border: 36px solid rgba(245,179,1,.14); }
.page-header h1 { font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 0; }
.page-header .breadcrumb { margin: .6rem 0 0; --bs-breadcrumb-divider-color: rgba(255,255,255,.5); --bs-breadcrumb-item-active-color: var(--gold); }
.page-header .breadcrumb a { color: #cbd9f0; }
.page-header .breadcrumb a:hover { color: #fff; }

/* ---------- cards ---------- */
.card-x { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); height: 100%; transition: transform .2s, box-shadow .2s; overflow: hidden; }
.card-x:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

/* event card */
.event-card { display: flex; flex-direction: column; }
.event-card .ev-top { display: flex; gap: 1rem; padding: 1.25rem 1.25rem 0; }
.date-chip { flex: none; width: 64px; text-align: center; border-radius: 14px; background: var(--blue-800); color: #fff; overflow: hidden; line-height: 1; align-self: flex-start; }
.date-chip .d { display: block; font-size: 1.7rem; font-weight: 800; padding: .5rem 0 .1rem; }
.date-chip .m { display: block; background: var(--gold); color: #1b1500; font-size: .7rem; font-weight: 700; letter-spacing: 1px; padding: .25rem 0; text-transform: uppercase; }
.event-card h3 { font-size: 1.02rem; font-weight: 700; color: var(--blue-800); margin: 0 0 .4rem; line-height: 1.35; }
.event-card .meta { font-size: .82rem; color: var(--muted); display: flex; gap: .45rem; align-items: flex-start; margin-top: .25rem; }
.event-card .meta i { color: var(--blue-600); margin-top: .1rem; }
.event-card .ev-body { padding: .9rem 1.25rem 1.25rem; font-size: .88rem; color: var(--muted); flex: 1; }
.event-card .ev-foot { border-top: 1px solid var(--line); padding: .8rem 1.25rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; background: #fafcff; }
.badge-soft { padding: .35em .7em; border-radius: 999px; font-weight: 600; font-size: .7rem; letter-spacing: .3px; }
.badge-upcoming { background: #fff3cc; color: #7a5900; }
.badge-done { background: #e6ebf4; color: #4a5875; }
.badge-cat { background: var(--blue-100); color: var(--blue-700); }

/* next event countdown */
.next-event { background: linear-gradient(135deg, var(--blue-800), var(--blue-600)); color: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; height: 100%; }
.next-event::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 170px; height: 170px; border-radius: 50%; border: 24px solid rgba(245,179,1,.18); }
.next-event .label { color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.next-event h3 { font-weight: 700; font-size: 1.25rem; margin: .4rem 0 .5rem; }
.countdown { display: flex; gap: .6rem; margin: 1.1rem 0; position: relative; z-index: 1; }
.countdown div { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: .6rem .3rem; text-align: center; min-width: 62px; flex: 1; }
.countdown b { display: block; font-size: 1.6rem; line-height: 1.1; font-weight: 800; }
.countdown span { font-size: .65rem; text-transform: uppercase; letter-spacing: 1px; color: #cbd9f0; }

/* athlete card */
.athlete-card { text-align: center; padding: 1.6rem 1.2rem 1.3rem; position: relative; }
.athlete-card .rank { position: absolute; top: .9rem; left: .9rem; background: var(--blue-100); color: var(--blue-700); font-weight: 800; font-size: .78rem; border-radius: 999px; padding: .15rem .65rem; }
.avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto .9rem; display: grid; place-items: center; font-weight: 800; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, var(--blue-600), var(--blue-800)); border: 4px solid var(--gold); box-shadow: 0 6px 16px rgba(10,27,61,.2); }
.athlete-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--blue-800); }
.athlete-card .club { font-size: .78rem; color: var(--muted); }
.athlete-card .ev { font-size: .82rem; margin: .6rem 0; font-weight: 500; }
.medals { display: flex; justify-content: center; gap: .5rem; margin-top: .8rem; }
.medal { font-size: .8rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.medal i { margin-right: .25rem; }
.medal.g i { color: #e0a800; } .medal.s i { color: #8d99a1; } .medal.b i { color: #b4693a; }

/* news card */
.news-card { display: flex; flex-direction: column; cursor: pointer; }
.news-card .thumb { height: 150px; position: relative; display: grid; place-items: center; color: rgba(255,255,255,.9); font-size: 3rem; background: linear-gradient(135deg, var(--blue-700), var(--blue-600)); }
.news-card .thumb.t2 { background: linear-gradient(135deg, #7a5900, #d99a00); }
.news-card .thumb.t3 { background: linear-gradient(135deg, #0a3a5a, #1b86b8); }
.news-card .thumb .tag { position: absolute; left: 1rem; top: 1rem; font-size: .7rem; font-weight: 700; background: rgba(255,255,255,.95); color: var(--blue-800); border-radius: 999px; padding: .25rem .7rem; letter-spacing: .4px; }
.news-card .nb { padding: 1.1rem 1.25rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.news-card .date { font-size: .76rem; color: var(--muted); margin-bottom: .35rem; }
.news-card h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.35; color: var(--blue-800); }
.news-card p { font-size: .87rem; color: var(--muted); flex: 1; }
.news-card .more { font-weight: 600; font-size: .85rem; color: var(--blue-600); }
.news-featured .thumb { height: 100%; min-height: 220px; font-size: 5rem; }

.progress { height: 8px; background: var(--blue-100); border-radius: 999px; }
.progress-bar { background: linear-gradient(90deg, var(--blue-600), var(--gold)); border-radius: 999px; width: 0; transition: width 1.2s ease; }
.mini-medals { font-size: .78rem; color: var(--muted); }

/* CTA */
.cta-band { background: linear-gradient(120deg, var(--blue-900), var(--blue-600)); color: #fff; border-radius: 24px; padding: 2.6rem; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: -50px; top: -50px; width: 220px; height: 220px; border-radius: 50%; border: 30px solid rgba(245,179,1,.2); }
.cta-band h2 { font-weight: 800; }

/* tables */
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.table-x { margin: 0; --bs-table-bg: transparent; }
.table-x thead th { background: var(--blue-800); color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .7px; border: 0; padding: .9rem 1rem; white-space: nowrap; }
.table-x td { padding: .85rem 1rem; vertical-align: middle; font-size: .9rem; }
.table-x tbody tr:hover { background: var(--blue-100); }
.pm { display: flex; align-items: flex-start; gap: .55rem; line-height: 1.3; min-width: 150px; }
.pm .dot { margin: .4rem 0 0; flex: none; }
.pm .txt { display: flex; flex-direction: column; }
.pm small { color: var(--muted); font-size: .72rem; }
.pm .mk { font-weight: 700; color: var(--blue-700); font-size: .82rem; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .4rem; }
.dot.g { background: #e0a800; } .dot.s { background: #9aa6ad; } .dot.b { background: #b4693a; }

/* filters */
.filter-bar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.form-control, .form-select { border-radius: 12px; border-color: #d3dcec; padding: .6rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--blue-600); box-shadow: 0 0 0 .22rem rgba(31,95,196,.15); }
.chip { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: .4rem 1rem; font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--blue-600); color: var(--blue-600); }
.chip.active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }

/* tabs */
.nav-pills-x .nav-link { color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; margin-right: .5rem; padding: .55rem 1.3rem; }
.nav-pills-x .nav-link.active { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }

/* about */
.value-card { padding: 1.5rem; text-align: center; }
.value-card .ico { width: 62px; height: 62px; margin: 0 auto .9rem; border-radius: 18px; background: var(--blue-100); color: var(--blue-600); display: grid; place-items: center; font-size: 1.7rem; }
.value-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--blue-800); }
.value-card p { font-size: .87rem; color: var(--muted); margin: 0; }
.official { padding: 1.3rem; display: flex; gap: 1rem; align-items: center; }
.official .avatar { margin: 0; width: 62px; height: 62px; font-size: 1.2rem; flex: none; }
.official .role { font-size: .75rem; color: var(--blue-600); font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.official .nm { font-weight: 700; color: var(--blue-800); }

/* gallery */
.g-tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; display: grid; place-items: center; color: rgba(255,255,255,.92); font-size: 3.2rem; box-shadow: var(--shadow); transition: transform .25s; background: linear-gradient(135deg, var(--blue-700), var(--blue-600)); }
.g-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-tile:hover { transform: scale(1.025); }
.g-tile.t1 { background: linear-gradient(135deg, #17418a, #3a7be0); }
.g-tile.t2 { background: linear-gradient(135deg, #7a5900, #e0a800); }
.g-tile.t3 { background: linear-gradient(135deg, #0a3a5a, #1b86b8); }
.g-tile.t4 { background: linear-gradient(135deg, #2b2f7a, #6a6fd8); }
.g-tile.t5 { background: linear-gradient(135deg, #1e3a5f, #5b88b8); }
.g-tile.t6 { background: linear-gradient(135deg, #134e7a, #4fa3d9); }
.g-tile .cap { position: absolute; inset: auto 0 0 0; padding: 1.8rem .9rem .75rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-size: .82rem; font-weight: 500; transform: translateY(100%); transition: transform .25s; }
.g-tile:hover .cap { transform: translateY(0); }

/* contact */
.info-card { padding: 1.4rem; display: flex; gap: 1rem; align-items: flex-start; }
.info-card .ico { width: 50px; height: 50px; border-radius: 14px; background: var(--blue-100); color: var(--blue-600); display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.info-card h3 { font-size: .95rem; font-weight: 700; margin: 0 0 .15rem; color: var(--blue-800); }
.info-card p { margin: 0; font-size: .88rem; color: var(--muted); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 2rem; box-shadow: var(--shadow); }
.form-label { font-weight: 600; font-size: .86rem; }
.map-frame { border: 0; width: 100%; height: 100%; min-height: 320px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* news modal */
.modal-content { border: 0; border-radius: 20px; overflow: hidden; }
.modal-news-head { background: linear-gradient(135deg, var(--blue-800), var(--blue-600)); color: #fff; padding: 1.6rem 1.8rem; }
.modal-news-body p { color: #2f3b57; line-height: 1.75; }

/* footer */
.site-footer { background: var(--blue-900); color: #b3c4e4; padding-top: 3.5rem; margin-top: 0; }
.site-footer h5 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 1.1rem; position: relative; padding-bottom: .6rem; }
.site-footer h5::after { content: ''; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--gold); border-radius: 3px; }
.site-footer a { color: #b3c4e4; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; font-size: .9rem; }
.site-footer .brand-footer { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.site-footer .brand-footer img { width: 56px; height: 56px; }
.site-footer .brand-footer strong { color: #fff; display: block; line-height: 1.2; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(255,255,255,.08); margin-right: .45rem; color: #fff; transition: all .2s; }
.social a:hover { background: var(--gold); color: #1b1500; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding: 1.1rem 0; font-size: .82rem; }
.fci i { color: var(--gold); margin-right: .55rem; }

/* back to top */
#toTop { position: fixed; right: 1.2rem; bottom: 1.2rem; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--gold); color: #1b1500; box-shadow: var(--shadow-lg); display: grid; place-items: center; font-size: 1.2rem; opacity: 0; pointer-events: none; transform: translateY(14px); transition: all .25s; z-index: 1030; }
#toTop.show { opacity: 1; pointer-events: auto; transform: none; }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker .track { animation: none; }
  html { scroll-behavior: auto; }
}

.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty i { font-size: 2.4rem; color: var(--blue-600); display: block; margin-bottom: .5rem; }

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse { padding: .8rem 0 1rem; }
  .hero-inner { padding-top: 4rem; padding-bottom: 6.5rem; }
  /* lighter than before so the picture shows; darkest at the top and behind the buttons, where the text sits */
  .hero::after { background: linear-gradient(180deg, rgba(5,14,36,.62) 0%, rgba(5,14,36,.34) 40%, rgba(5,14,36,.3) 62%, rgba(5,14,36,.55) 100%); }
  .hero h1, .hero .lead-ml, .hero p.lead { text-shadow: 0 2px 16px rgba(0, 0, 0, .75), 0 0 3px rgba(0, 0, 0, .5); }
}
@media (max-width: 575.98px) {
  .section { padding: 3.2rem 0; }
  .stat-card { padding: 1rem .8rem; gap: .65rem; }
  .stat-card .ico { width: 42px; height: 42px; font-size: 1.2rem; }
  .stat-card .num { font-size: 1.45rem; }
  .form-card { padding: 1.3rem; }
  .cta-band { padding: 1.8rem 1.4rem; }
  .brand-text strong { font-size: .92rem; }
}

/* keep large row gutters from overflowing the viewport on small screens */
@media (max-width: 991.98px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; }
}


/* ==========================================================================
   Merged additions: lane divider, Malayalam typography
   ========================================================================== */
.lanes { height: 16px; background: var(--blue-600); position: relative; }
.lanes::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: repeating-linear-gradient(90deg, #fff 0 22px, transparent 22px 40px); }

html[lang="ml"] body { line-height: 1.75; }
html[lang="ml"] .hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.3; }
html[lang="ml"] .hero .lead-ml { display: none; }
html[lang="ml"] .section-head h2, html[lang="ml"] .page-header h1 { line-height: 1.4; }
html[lang="ml"] .site-nav .nav-link { font-size: .84rem; padding: .45rem .5rem !important; }
html[lang="ml"] .btn { line-height: 1.5; }

.official-c { padding: 1.6rem 1rem; text-align: center; height: 100%; }
.official-c .avatar { font-size: 2rem; }
.official-c .nm { font-weight: 700; color: var(--blue-800); }
.official-c .role { font-size: .85rem; color: var(--gold-dark); font-weight: 600; }

/* Bootstrap's green helper classes follow the brand colour */
.text-success { color: var(--blue-600) !important; }
.alert-success { --bs-alert-color: var(--blue-800); --bs-alert-bg: var(--blue-100); --bs-alert-border-color: #c9dbf7; }

.admin-link { color: inherit; opacity: .7; text-decoration: underline; text-underline-offset: 3px; }
.admin-link:hover { opacity: 1; color: var(--gold); }

/* Home banner with several pictures */
.hero.has-slides::before { display: none; }
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-repeat: no-repeat; opacity: 0; transition: opacity .8s ease; }
.hero-slide.on { opacity: 1; }
.hero-dots { position: absolute; left: 50%; bottom: 5.4rem; transform: translateX(-50%); display: flex; gap: .55rem; z-index: 2; }
.hero-dots button { width: .75rem; height: .75rem; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.hero-dots button[aria-current="true"] { background: var(--gold); border-color: var(--gold); }
.hero-dots button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

.credit-link { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.credit-link:hover { color: var(--gold); }

/* Home page: affiliated clubs as compact labels */
.club-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.club-chip { display: inline-flex; align-items: center; gap: .45rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .95rem; font-weight: 600; font-size: .86rem; color: var(--blue-800); box-shadow: 0 2px 8px rgba(10, 27, 61, .05); }
.club-chip i { color: var(--blue-600); font-size: .95rem; }
a.club-more { background: var(--gold); border-color: var(--gold); color: #1b1500; }
a.club-more:hover { background: #ffc933; color: #1b1500; }

/* Office bearer photo inside the round gold frame */
.avatar.has-photo { background: #fff; overflow: hidden; }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Compact header: on phones and tablets the menu button sits beside the name instead of dropping under it */
.site-nav { padding-top: .15rem; padding-bottom: .15rem; }
@media (max-width: 1199.98px) {
  .site-nav .navbar-brand { flex: 1 1 0; min-width: 0; margin-right: .5rem; }
  .site-nav .brand-text { min-width: 0; }
  .site-nav .brand-text strong { font-size: .92rem; line-height: 1.2; }
  .site-nav .navbar-toggler { flex: none; padding: .3rem .5rem; }
}
@media (max-width: 575.98px) { .site-nav .brand-logo { width: 40px; height: 40px; } }

/* Event card with a poster beside the details */
.event-card.has-poster { display: flex; flex-direction: row; align-items: stretch; }
.event-card .ev-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.event-card .ev-main .ev-body { flex: 1; }
.event-card .ev-poster { flex: 0 0 40%; max-width: 240px; min-width: 120px; display: block; align-self: stretch; background: var(--blue-100); }
.event-card .ev-poster img { width: 100%; height: auto; display: block; }   /* the whole poster, never cropped */
.event-card .ev-poster:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
@media (max-width: 575.98px) {
  /* Phones: poster on top at full width, details below (same as the home page) */
  .event-card.has-poster { flex-direction: column; }
  .event-card .ev-poster { flex: 0 0 auto; max-width: none; min-width: 0; width: 100%; }
}
.event-card h3 { overflow-wrap: break-word; }
.event-card .ev-top > div:last-child { min-width: 0; }

/* Next event with a poster: full width, poster beside the details */
.next-event.has-poster { display: flex; align-items: stretch; padding: 0; }
.next-event .ne-poster { flex: 0 0 min(260px, 34%); display: block; background: rgba(255, 255, 255, .08); position: relative; z-index: 1; }
.next-event .ne-poster img { width: 100%; height: auto; display: block; }
.next-event .ne-poster:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.next-event .ne-body { flex: 1; min-width: 0; padding: 1.6rem 1.8rem; position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; }
.next-event.has-poster h3 { font-size: 1.6rem; }
.next-event.has-poster .countdown { max-width: 26rem; }
@media (max-width: 575.98px) {
  .next-event.has-poster { flex-direction: column; }
  .next-event .ne-poster { flex-basis: auto; width: 62%; margin: 1.2rem auto 0; }
  .next-event .ne-body { padding: 1.2rem; }
}

/* "Register for a competition" list */
.reg-item { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.reg-item:last-child { border-bottom: 0; }
.reg-item .reg-t { min-width: 0; }
.reg-item .btn { white-space: nowrap; }
@media (max-width: 480px) { .reg-item { flex-direction: column; align-items: stretch; } .reg-item .btn { text-align: center; } }

/* Next event with a poster, as one tile of a two-per-row grid: same poster size as the event cards, compact countdown */
.next-event.has-poster { height: 100%; }
.next-event .ne-poster { flex: 0 0 40%; max-width: 240px; min-width: 120px; }
.next-event.has-poster .ne-body { padding: 1.2rem 1.3rem; }
.next-event.has-poster h3 { font-size: 1.3rem; }
.next-event.has-poster .countdown { gap: .4rem; max-width: 22rem; margin: .9rem 0; }
.next-event.has-poster .countdown div { min-width: 0; padding: .45rem .2rem; border-radius: 10px; }
.next-event.has-poster .countdown b { font-size: 1.3rem; }
@media (max-width: 575.98px) { .next-event .ne-poster { flex: 0 0 auto; width: 62%; max-width: none; } }

/* Bigger office bearer photos */
.official-c { padding: 1.8rem 1rem 1.6rem; }
.official-c .avatar { width: 128px; height: 128px; font-size: 3.2rem; margin-bottom: 1.1rem; border-width: 5px; }
.official-c .nm { font-size: 1.05rem; }
.official .avatar { width: 92px; height: 92px; font-size: 2.2rem; }
@media (max-width: 575.98px) {
  .official-c .avatar { width: 104px; height: 104px; font-size: 2.6rem; }
  .official .avatar { width: 80px; height: 80px; font-size: 1.9rem; }
}
