/* =====================================================
   जि.प. व शासकीय कर्मचारी सहकारी पतसंस्था, भंडारा
   Main Stylesheet — Bootstrap 5 companion
   ===================================================== */

:root {
  --green-950: #0e2a1b;
  --green-800: #17472c;
  --green-600: #2e7d4f;
  --green-050: #eef5ef;
  --gold: #c39114;
  --gold-deep: #9a7107;
  --gold-soft: #f6ecce;
  --paper: #fbf9f3;
  --ink: #1b241c;
  --muted: #5d6a5e;
  --line: #e4dfcf;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(14, 42, 27, 0.10);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: 'Mukta', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 1.02rem;
  line-height: 1.7;
}

h1, h2, h3, h4, .display-font {
  font-family: 'Tiro Devanagari Marathi', 'Mukta', serif;
  color: var(--green-950);
  line-height: 1.35;
}

a { color: var(--green-800); }
a:hover { color: var(--gold-deep); }

/* ---------- Language toggle ---------- */
body.lang-mr .en, body.lang-en .mr { display: none !important; }

.lang-switch { display: inline-flex; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  border: 0; background: transparent; color: #fff;
  padding: .15rem .85rem; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.lang-switch button.active { background: var(--gold); color: var(--green-950); }
.lang-switch button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

/* ---------- Top strip ---------- */
.top-strip {
  background: var(--green-950); color: #e8f0e9; font-size: .85rem;
  border-bottom: 3px solid var(--gold);
}
.top-strip a { color: #e8f0e9; text-decoration: none; }
.top-strip a:hover { color: var(--gold-soft); }

/* ---------- Masthead (letterhead style) ---------- */
.masthead {
  background:
    radial-gradient(1100px 380px at 85% -60%, rgba(195,145,20,.22), transparent 60%),
    linear-gradient(160deg, var(--green-800), var(--green-950) 70%);
  color: #fff;
  padding: 1.4rem 0 1.2rem;
}
.masthead .emblem { width: 84px; height: 84px; flex: 0 0 auto; }
.masthead .society-name-mr {
  font-family: 'Tiro Devanagari Marathi', serif;
  font-size: clamp(1.35rem, 3.4vw, 2.1rem);
  color: #fff; margin: 0; letter-spacing: .01em;
}
.masthead .society-name-en {
  font-size: clamp(.8rem, 1.6vw, 1rem);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-soft); margin: .15rem 0 0;
}
.masthead .reg-line { font-size: .8rem; color: #cfe0d3; margin: .3rem 0 0; }

/* ---------- Navbar ---------- */
.navbar-society {
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(14,42,27,.06);
}
.navbar-society .nav-link {
  color: var(--green-950); font-weight: 600; padding: .9rem 1rem;
}
.navbar-society .nav-link:hover,
.navbar-society .nav-link.active { color: var(--gold-deep); }
.navbar-society .nav-link.active { box-shadow: inset 0 -3px 0 var(--gold); }
.navbar-society .dropdown-menu { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.navbar-society .dropdown-item { font-weight: 500; padding: .55rem 1.2rem; }
.navbar-society .dropdown-item:hover { background: var(--green-050); color: var(--green-800); }

/* ---------- Notice ticker ---------- */
.ticker-wrap { background: var(--gold-soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker-label {
  background: var(--gold); color: var(--green-950); font-weight: 700; font-size: .85rem;
  padding: .35rem .9rem; white-space: nowrap;
}
.ticker { display: flex; overflow: hidden; flex: 1; }
.ticker-track {
  display: inline-flex; gap: 3.5rem; padding: .35rem 0; white-space: nowrap;
  animation: ticker 32s linear infinite;
}
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
.ticker-track a { text-decoration: none; color: var(--green-950); font-weight: 500; font-size: .92rem; }
.ticker-track a::before { content: "◆"; color: var(--gold-deep); margin-right: .5rem; font-size: .7rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(115deg, rgba(14,42,27,.94) 38%, rgba(23,71,44,.82) 68%, rgba(23,71,44,.55)),
    repeating-linear-gradient(-45deg, #17472c 0 14px, #14402a 14px 28px);
  color: #fff; padding: 4.5rem 0;
}
.hero h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.7rem); }
.hero .lead { color: #d9e6dc; max-width: 46rem; }
.hero .eyebrow {
  color: var(--gold); letter-spacing: .2em; text-transform: uppercase;
  font-size: .8rem; font-weight: 700;
}

.btn-gold {
  background: var(--gold); color: var(--green-950); font-weight: 700; border: 0;
  padding: .65rem 1.5rem; border-radius: 8px;
}
.btn-gold:hover { background: var(--gold-deep); color: #fff; }
.btn-outline-paper {
  border: 1.5px solid rgba(255,255,255,.7); color: #fff; font-weight: 600;
  padding: .6rem 1.4rem; border-radius: 8px;
}
.btn-outline-paper:hover { background: #fff; color: var(--green-950); }

/* ---------- Stats band ---------- */
.stats-band { background: #fff; border-bottom: 1px solid var(--line); }
.stat { text-align: center; padding: 1.6rem .5rem; }
.stat .num {
  font-family: 'Tiro Devanagari Marathi', serif; font-size: 2rem;
  color: var(--green-800); font-weight: 700;
}
.stat .lbl { color: var(--muted); font-size: .9rem; }

/* ---------- Sections & cards ---------- */
.section { padding: 4rem 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 2.2rem; }
.section-head .eyebrow {
  color: var(--gold-deep); letter-spacing: .18em; text-transform: uppercase;
  font-size: .78rem; font-weight: 700;
}
.section-head h2 { margin: .2rem 0 0; font-size: clamp(1.4rem, 3vw, 2rem); }
.gold-rule { width: 64px; height: 3px; background: var(--gold); border: 0; opacity: 1; margin: .9rem 0 0; }

.card-soft {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; height: 100%; transition: transform .18s ease, box-shadow .18s ease;
}
.card-soft:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-soft .icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-050); color: var(--green-800); font-size: 1.5rem; margin-bottom: 1rem;
}
.card-soft h3 { font-size: 1.15rem; }

/* ---------- Page banner ---------- */
.page-banner {
  background: linear-gradient(120deg, var(--green-950), var(--green-800));
  color: #fff; padding: 2.6rem 0;
}
.page-banner h1 { color: #fff; font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin: 0; }
.breadcrumb-lite { font-size: .85rem; color: #bcd3c2; margin-top: .35rem; }
.breadcrumb-lite a { color: var(--gold-soft); text-decoration: none; }

/* ---------- Tables ---------- */
.table-society { border: 1px solid var(--line); }
.table-society thead th {
  background: var(--green-800); color: #fff; font-weight: 600;
  border-color: var(--green-600); white-space: nowrap;
}
.table-society tbody tr:nth-child(even) { background: var(--green-050); }
.table-society td, .table-society th { padding: .7rem .9rem; vertical-align: middle; }
.rate-badge {
  background: var(--gold-soft); color: var(--gold-deep); font-weight: 700;
  border-radius: 6px; padding: .1rem .55rem; white-space: nowrap;
}

/* ---------- People (directors / staff) ---------- */
.person-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-align: center; padding: 1.6rem 1.2rem; height: 100%;
}
.person-card .avatar {
  width: 92px; height: 92px; margin: 0 auto 1rem; border-radius: 50%;
  background: linear-gradient(150deg, var(--green-600), var(--green-950));
  color: var(--gold-soft); display: grid; place-items: center;
  font-family: 'Tiro Devanagari Marathi', serif; font-size: 2rem; border: 3px solid var(--gold);
}
.person-card h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.person-card .role { color: var(--gold-deep); font-weight: 600; font-size: .88rem; }
.person-card .meta { color: var(--muted); font-size: .85rem; }

/* ---------- Chairman ---------- */
.chairman-photo {
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--green-050), #fff);
  aspect-ratio: 4/5; display: grid; place-items: center; color: var(--muted);
}
blockquote.message {
  border-left: 4px solid var(--gold); padding-left: 1.2rem; font-size: 1.05rem;
}

/* ---------- Downloads ---------- */
.dl-item {
  display: flex; align-items: center; gap: 1rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem;
}
.dl-item .pdf-ic {
  width: 44px; height: 44px; border-radius: 8px; background: #fdeaea; color: #b02a2a;
  display: grid; place-items: center; font-weight: 800; font-size: .8rem; flex: 0 0 auto;
}
.dl-item .grow { flex: 1; min-width: 0; }
.dl-item h3 { font-size: 1rem; margin: 0; }
.dl-item .size { color: var(--muted); font-size: .82rem; }

/* ---------- News ---------- */
.notice-item {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 8px; padding: 1.1rem 1.3rem; margin-bottom: 1rem;
}
.notice-item .date { color: var(--gold-deep); font-weight: 700; font-size: .82rem; letter-spacing: .05em; }
.notice-item h3 { font-size: 1.08rem; margin: .2rem 0 .3rem; }
.notice-item p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Gallery ---------- */
.gallery-tile {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 4/3; position: relative; display: block; background: #fff;
}
.gallery-tile img, .gallery-tile .ph { width: 100%; height: 100%; object-fit: cover; }
.gallery-tile .ph {
  display: grid; place-items: center; text-align: center; padding: 1rem;
  background: linear-gradient(150deg, var(--green-050), var(--gold-soft));
  color: var(--green-800); font-weight: 600;
}
.gallery-tile figcaption {
  position: absolute; inset: auto 0 0 0; background: linear-gradient(transparent, rgba(14,42,27,.85));
  color: #fff; font-size: .85rem; padding: 1.6rem .8rem .55rem;
}

/* ---------- Contact ---------- */
.contact-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.contact-box .ic { color: var(--gold-deep); font-size: 1.2rem; width: 2rem; }
.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-frame iframe { display: block; width: 100%; height: 380px; border: 0; }
.form-control:focus, .form-select:focus {
  border-color: var(--green-600); box-shadow: 0 0 0 .2rem rgba(46,125,79,.15);
}

/* ---------- Footer ---------- */
.footer { background: var(--green-950); color: #c9d8cd; padding: 3.2rem 0 0; margin-top: 4rem; }
.footer h4 { color: var(--gold-soft); font-size: 1.05rem; margin-bottom: 1rem; }
.footer a { color: #c9d8cd; text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .5rem; }
.footer .social a {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.25); border-radius: 50%; margin-right: .5rem;
  transition: background .15s ease;
}
.footer .social a:hover { background: var(--gold); color: var(--green-950); border-color: var(--gold); }
.footer .visitor {
  background: rgba(255,255,255,.07); border: 1px dashed rgba(255,255,255,.25);
  border-radius: 8px; padding: .6rem 1rem; display: inline-flex; gap: .6rem; align-items: center;
}
.footer .visitor .count { font-family: 'Tiro Devanagari Marathi', serif; color: var(--gold); font-size: 1.2rem; font-weight: 700; letter-spacing: .12em; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.5rem;
  padding: 1rem 0; font-size: .85rem; color: #9fb5a5;
}

/* ---------- Utilities ---------- */
.text-gold { color: var(--gold-deep) !important; }
.bg-green-soft { background: var(--green-050); }
.list-check { list-style: none; padding-left: 0; }
.list-check li { padding-left: 1.7rem; position: relative; margin-bottom: .55rem; }
.list-check li::before {
  content: "✔"; position: absolute; left: 0; color: var(--green-600); font-weight: 700;
}
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

@media (max-width: 767px) {
  .masthead { text-align: center; }
  .masthead .emblem { width: 64px; height: 64px; }
  .hero { padding: 3rem 0; }
  .section { padding: 2.6rem 0; }
}

/* Back to top */
#backTop {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 50;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--green-800); color: #fff; font-size: 1.1rem;
  display: none; box-shadow: var(--shadow);
}
#backTop.show { display: grid; place-items: center; }
