/* ==========================================================
   ಶ್ರೀ ಗಣೇಶ ಉತ್ಸವ — ಭಗತ್ ಸಿಂಗ್ ಬಡಾವಣೆ
   ಮುಖ್ಯ ಸ್ಟೈಲ್‌ಶೀಟ್
   ========================================================== */

:root {
  --saffron:      #e8641a;
  --saffron-dk:   #c44f0f;
  --saffron-lt:   #fff1e8;
  --maroon:       #7a1f2b;
  --maroon-dk:    #5d1620;
  --gold:         #d4a017;
  --gold-lt:      #fdf6e3;
  --green:        #1f7a4d;
  --green-lt:     #eaf7f0;
  --red:          #b3261e;
  --red-lt:       #fdecea;
  --blue:         #1d4e89;

  --ink:          #24201d;
  --ink-2:        #55504a;
  --ink-3:        #8a837b;
  --line:         #e8e1d8;
  --bg:           #fdfaf6;
  --card:         #ffffff;

  --radius:       14px;
  --radius-sm:    9px;
  --shadow:       0 1px 2px rgba(60,40,20,.05), 0 4px 16px rgba(60,40,20,.06);
  --shadow-lg:    0 8px 36px rgba(60,40,20,.13);
  --kn: 'Noto Sans Kannada', 'Tunga', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--kn);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: var(--saffron-dk); text-decoration: none; }
a:hover { text-decoration: underline; }

h1,h2,h3,h4 { line-height: 1.45; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }

/* ---------- ಟಾಪ್ ಬಾರ್ ---------- */
.topbar {
  background: var(--maroon);
  color: #f6e3c8;
  font-size: .82rem;
  padding-block: 7px;
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; justify-content: space-between; }
.topbar a { color: #ffd9a0; }

/* ---------- ಹೆಡರ್ ---------- */
.site-header {
  background: linear-gradient(135deg, var(--saffron) 0%, #f08a34 45%, var(--gold) 130%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.site-header::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 5px;
  background: repeating-linear-gradient(90deg, var(--maroon) 0 22px, var(--gold) 22px 44px);
}
.header-inner {
  display: flex; align-items: center; gap: 18px;
  padding-block: 20px; position: relative; z-index: 1;
}
.logo-badge {
  width: 62px; height: 62px; flex: none; border-radius: 50%;
  background: #fff; color: var(--saffron-dk);
  display: grid; place-items: center;
  font-size: 2rem; box-shadow: 0 3px 14px rgba(0,0,0,.2);
}
.brand-text h1 { margin: 0; font-size: clamp(1.15rem, 3.2vw, 1.75rem); color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.18); }
.brand-text p  { margin: 2px 0 0; font-size: .88rem; opacity: .95; }

/* ---------- ನ್ಯಾವಿಗೇಶನ್ ---------- */
.nav {
  background: var(--maroon-dk);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.nav .wrap { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: #f3e0c4; padding: 13px 15px; font-size: .93rem; font-weight: 500;
  border-bottom: 3px solid transparent; text-decoration: none; white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s;
}
.nav a:hover { background: rgba(255,255,255,.09); color: #fff; text-decoration: none; }
.nav a.active { color: #fff; border-bottom-color: var(--gold); background: rgba(255,255,255,.07); }
.nav-toggle {
  display: none; background: none; border: 0; color: #f3e0c4;
  font-size: 1.5rem; padding: 10px 14px; cursor: pointer;
}

/* ---------- ಹೀರೋ ---------- */
.hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(212,160,23,.28), transparent 55%),
    linear-gradient(160deg, #fff6ec 0%, #ffeede 55%, #ffe4cc 100%);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(38px, 7vw, 72px);
  text-align: center;
}
.hero .om { font-size: clamp(2.6rem, 8vw, 4.4rem); line-height: 1; color: var(--saffron-dk); }
.hero h2 { color: var(--maroon); margin: 12px 0 6px; }
.hero .tag { color: var(--ink-2); max-width: 620px; margin: 0 auto 22px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- ಕೌಂಟ್‌ಡೌನ್ ---------- */
.countdown { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.cd-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 18px; min-width: 82px; box-shadow: var(--shadow);
}
.cd-box b { display: block; font-size: 1.7rem; color: var(--saffron-dk); line-height: 1.2; }
.cd-box span { font-size: .78rem; color: var(--ink-3); }

/* ---------- ಬಟನ್ ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 11px 22px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--kn); font-size: .94rem; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--saffron); color: #fff; box-shadow: 0 4px 14px rgba(232,100,26,.35); }
.btn-primary:hover { background: var(--saffron-dk); color: #fff; }
.btn-outline { background: #fff; color: var(--maroon); border-color: var(--maroon); }
.btn-outline:hover { background: var(--maroon); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: .84rem; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #8e1d17; color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { background: #f7f2ea; color: var(--ink); }

/* ---------- ವಿಭಾಗ ---------- */
.section { padding-block: clamp(40px, 6vw, 66px); }
.section.alt { background: #fff; border-block: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 { color: var(--maroon); margin-bottom: 6px; }
.section-head p  { color: var(--ink-3); margin: 0; font-size: .95rem; }
.section-head::after {
  content: "❁"; display: block; color: var(--gold); font-size: 1.1rem; margin-top: 8px;
}

/* ---------- ಅಂಕಿ-ಅಂಶ ಕಾರ್ಡ್ ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--saffron);
}
.stat.green::before { background: var(--green); }
.stat.red::before   { background: var(--red); }
.stat.blue::before  { background: var(--blue); }
.stat .ico { font-size: 1.5rem; opacity: .85; }
.stat b { display: block; font-size: 1.65rem; color: var(--maroon); line-height: 1.3; margin-top: 4px; }
.stat span { font-size: .87rem; color: var(--ink-3); }

/* ---------- ಕಾರ್ಡ್ ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
}
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ---------- ಸಮಿತಿ ಸದಸ್ಯ ಕಾರ್ಡ್ ---------- */
.member {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-align: center; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.member .ph {
  height: 190px; background: linear-gradient(150deg, var(--saffron-lt), var(--gold-lt));
  display: grid; place-items: center; overflow: hidden;
}
.member .ph img { width: 100%; height: 100%; object-fit: cover; }
.member .ph .letter {
  width: 88px; height: 88px; border-radius: 50%; background: var(--saffron);
  color: #fff; font-size: 2.3rem; display: grid; place-items: center; font-weight: 700;
}
.member .body { padding: 15px 14px 18px; }
.member h3 { margin: 0 0 3px; font-size: 1.05rem; color: var(--maroon); }
.member .desig {
  display: inline-block; font-size: .78rem; padding: 3px 12px; border-radius: 999px;
  background: var(--saffron-lt); color: var(--saffron-dk); font-weight: 600;
}
.member .ph-no { font-size: .85rem; color: var(--ink-3); margin-top: 9px; }
.member.lead { border: 2px solid var(--gold); }
.member.lead .ph { background: linear-gradient(150deg, #fff3d6, #ffe0b8); }

/* ---------- ಮುಖಪುಟ ಸಮಿತಿ ವಿಭಾಗ (ಮುಖ್ಯ ಆಕರ್ಷಣೆ) ---------- */
.committee-main {
  background:
    radial-gradient(circle at 15% 0%, rgba(212,160,23,.16), transparent 45%),
    radial-gradient(circle at 85% 100%, rgba(232,100,26,.12), transparent 45%),
    #fffdfa;
  border-block: 1px solid var(--line);
}
.tier { margin-bottom: 40px; }
.tier:last-child { margin-bottom: 0; }
.tier-title {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 22px; color: var(--maroon); font-size: 1.15rem;
}
.tier-title::before, .tier-title::after {
  content: ""; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); flex: 1;
}

/* ಪದಾಧಿಕಾರಿಗಳ ಸಾಲು — ಮಧ್ಯದಲ್ಲಿ ಜೋಡಿಸಿ */
.lead-row {
  display: flex; flex-wrap: wrap; gap: 22px; justify-content: center;
}
.lead-row > * { flex: 0 1 268px; }
.officer-row > * { flex: 0 1 218px; }

/* ದೊಡ್ಡ ಸದಸ್ಯ ಕಾರ್ಡ್ */
.member-xl .ph { height: 290px; }
.member-xl .ph .letter { width: 118px; height: 118px; font-size: 3rem; }
.member-xl .body { padding: 18px 16px 22px; }
.member-xl h3 { font-size: 1.24rem; }
.member-xl .desig { font-size: .85rem; padding: 4px 16px; }

.member-lg .ph { height: 228px; }
.member-lg .ph .letter { width: 96px; height: 96px; font-size: 2.5rem; }
.member-lg h3 { font-size: 1.1rem; }

/* ಅಧ್ಯಕ್ಷರ ಕಾರ್ಡ್‌ಗೆ ವಿಶೇಷ ಅಲಂಕಾರ */
.member.crown { position: relative; border: 2px solid var(--gold); box-shadow: 0 6px 26px rgba(212,160,23,.28); }
.member.crown::before {
  content: "★"; position: absolute; top: 10px; right: 12px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); color: #fff; font-size: .95rem;
  display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* ಸದಸ್ಯರ ಗ್ರಿಡ್ */
.member-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
}
.member-grid .ph { height: 172px; }
.member-grid .ph .letter { width: 74px; height: 74px; font-size: 2rem; }
.member-grid .body { padding: 12px 10px 15px; }
.member-grid h3 { font-size: .97rem; }
.member-grid .desig { font-size: .73rem; padding: 2px 10px; }

@media (max-width: 600px) {
  .member-xl .ph { height: 240px; }
  .member-grid { grid-template-columns: repeat(auto-fill, minmax(142px, 1fr)); }
  .member-grid .ph { height: 140px; }
  .tier-title { font-size: 1.02rem; }
}

/* ---------- ಟೇಬಲ್ ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 620px; }
thead th {
  background: var(--maroon); color: #fff; text-align: right; padding: 12px 14px;
  font-weight: 600; white-space: nowrap; font-size: .88rem;
}
thead th:first-child, thead th.ltr { text-align: left; }
tbody td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
tbody tr:nth-child(even) { background: #fdfaf5; }
tbody tr:hover { background: var(--saffron-lt); }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tfoot td { padding: 13px 14px; border-top: 2px solid var(--maroon); font-weight: 700; background: var(--gold-lt); }

.badge {
  display: inline-block; padding: 2px 11px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; white-space: nowrap;
}
.badge-cash { background: var(--green-lt); color: var(--green); }
.badge-item { background: var(--gold-lt); color: #96700c; }
.badge-cat  { background: var(--saffron-lt); color: var(--saffron-dk); }
.badge-grey { background: #f0ece6; color: var(--ink-2); }

/* ---------- ಟೈಮ್‌ಲೈನ್ (ಕಾರ್ಯಕ್ರಮ) ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 3px;
  background: linear-gradient(var(--saffron), var(--gold));
  border-radius: 3px;
}
.tl-item { position: relative; margin-bottom: 22px; }
.tl-item::before {
  content: ""; position: absolute; left: -30px; top: 20px; width: 15px; height: 15px;
  border-radius: 50%; background: #fff; border: 3px solid var(--saffron);
}
.tl-item .card { padding: 16px 18px; }
.tl-date {
  font-size: .8rem; color: var(--saffron-dk); font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.tl-item h3 { margin: 4px 0 5px; color: var(--maroon); }
.tl-meta { font-size: .85rem; color: var(--ink-3); }

/* ---------- ಗ್ಯಾಲರಿ ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; }
.gal-item {
  border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3;
  background: var(--saffron-lt); box-shadow: var(--shadow); cursor: pointer; position: relative;
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gal-item:hover img { transform: scale(1.07); }
.gal-item .cap {
  position: absolute; inset: auto 0 0 0; padding: 22px 12px 9px; color: #fff; font-size: .85rem;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
}

/* ---------- ಲೈಟ್‌ಬಾಕ್ಸ್ ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(20,12,6,.92); z-index: 200;
  display: none; place-items: center; padding: 24px;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 8px; object-fit: contain; }
.lightbox .close {
  position: absolute; top: 14px; right: 20px; color: #fff; font-size: 2.2rem;
  background: none; border: 0; cursor: pointer; line-height: 1;
}

/* ---------- ಪ್ರಕಟಣೆ ---------- */
.notice-strip {
  background: var(--gold-lt); border-block: 1px solid #f0dfae;
  padding: 10px 0; font-size: .92rem; overflow: hidden;
}
.notice-strip .wrap { display: flex; gap: 12px; align-items: center; }
.notice-strip b { color: var(--maroon); white-space: nowrap; }
.notice-track { display: flex; gap: 46px; white-space: nowrap; animation: slide 26s linear infinite; }
.notice-track:hover { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- ಫಾರ್ಮ್ ---------- */
.form-grid { display: grid; gap: 15px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }
label { font-size: .87rem; font-weight: 600; color: var(--ink-2); }
label .req { color: var(--red); }
input[type=text], input[type=number], input[type=date], input[type=password],
input[type=email], input[type=tel], input[type=file], select, textarea {
  font-family: var(--kn); font-size: .95rem; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: 0; border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(232,100,26,.15);
}
textarea { resize: vertical; min-height: 88px; }
.help { font-size: .78rem; color: var(--ink-3); }

/* ---------- ಅಲರ್ಟ್ ---------- */
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px;
  font-size: .92rem; border: 1px solid;
}
.alert-success { background: var(--green-lt); border-color: #b9e2cc; color: #13603a; }
.alert-danger  { background: var(--red-lt);  border-color: #f2c2bd; color: #8e1d17; }
.alert-info    { background: #e8f0fb; border-color: #c2d6f2; color: var(--blue); }
.alert-warning { background: var(--gold-lt); border-color: #f0dfae; color: #8a6408; }

/* ---------- ಫಿಲ್ಟರ್ ಬಾರ್ ---------- */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: end;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.filter-bar .field { min-width: 150px; flex: 1 1 150px; }

/* ---------- ಪುಟ ಶೀರ್ಷಿಕೆ ---------- */
.page-head {
  background: linear-gradient(135deg, var(--maroon) 0%, #94303e 100%);
  color: #fff; padding-block: 34px; text-align: center;
}
.page-head h1 { color: #fff; margin: 0; }
.page-head p  { margin: 6px 0 0; opacity: .88; font-size: .95rem; }

/* ---------- ಫೂಟರ್ ---------- */
.site-footer { background: #2c1b14; color: #d8c8b8; padding-block: 40px 0; margin-top: 20px; font-size: .92rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h4 { color: var(--gold); margin-bottom: 12px; font-size: 1rem; }
.site-footer a { color: #e8d5bf; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.footer-bottom {
  border-top: 1px solid #46301f; margin-top: 30px; padding-block: 16px;
  text-align: center; font-size: .84rem; color: #a2907f;
}

/* ---------- ಸಣ್ಣ ಸಹಾಯಕ ---------- */
.text-center { text-align: center; }
.muted { color: var(--ink-3); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 18px; } .mb-2 { margin-bottom: 18px; }
.empty {
  text-align: center; padding: 46px 20px; color: var(--ink-3);
  background: #fff; border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty .ico { font-size: 2.6rem; display: block; margin-bottom: 8px; opacity: .5; }
.rank { color: var(--ink-3); font-size: .85rem; }

/* ---------- ಮೊಬೈಲ್ ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: block; margin-left: auto; }
  .nav .links {
    display: none; width: 100%; flex-direction: column; padding-bottom: 8px;
  }
  .nav .links.open { display: flex; }
  .nav .wrap { flex-wrap: wrap; }
  .nav a { width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a.active { border-bottom-color: var(--gold); }
  .header-inner { flex-direction: column; text-align: center; gap: 10px; }
}

/* ---------- ಪ್ರಿಂಟ್ ---------- */
@media print {
  .nav, .topbar, .site-footer, .filter-bar, .btn, .hero-actions, .notice-strip { display: none !important; }
  body { background: #fff; font-size: 12px; }
  .table-wrap { border: 0; box-shadow: none; }
  thead th { background: #eee !important; color: #000 !important; }
  .page-head { background: #fff !important; color: #000 !important; border-bottom: 2px solid #000; }
  .page-head h1, .page-head p { color: #000 !important; }
}
