:root {
    --maroon: #6b1e1e;
    --maroon-dark: #4a1212;
    --turmeric: #e8a50c;
    --turmeric-light: #ffd77a;
    --cream: #fff8ec;
    --sand: #f6ead2;
    --ink: #2b1608;
    --muted: #7a5a3a;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Mukta', system-ui, sans-serif; background: var(--cream); color: var(--ink); }
h1, h2, h3, h4, h5 { font-weight: 800; color: var(--maroon-dark); }
a { color: var(--maroon); }
a:hover { color: var(--maroon-dark); }
.mr-text { font-family: 'Mukta', sans-serif; }
.text-muted-warm { color: var(--muted); }

/* ---------- header ---------- */
.topbar { background: var(--maroon-dark); color: var(--turmeric-light); font-size: .85rem; padding: 4px 0; }
.site-nav { background: #fff; border-bottom: 3px solid var(--turmeric); box-shadow: 0 2px 10px rgba(74, 18, 18, .06); }
.brand-text { font-family: 'Yatra One', 'Mukta', sans-serif; font-size: 1.45rem; color: var(--maroon); line-height: 1; }
.brand-text span { color: var(--turmeric); }
.site-nav .nav-link { color: var(--ink); font-weight: 500; white-space: nowrap; }
.site-nav .nav-link.active, .site-nav .nav-link:hover { color: var(--maroon); }
.site-nav .nav-link.active { box-shadow: inset 0 -3px 0 var(--turmeric); }
/* Smaller laptops: keep all links and the Join button on one line */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .site-nav .navbar-nav .nav-link { padding-left: .4rem; padding-right: .4rem; font-size: .95rem; }
    .site-nav .brand-text { font-size: 1.3rem; }
}

/* ---------- buttons ---------- */
.btn-turmeric { background: var(--turmeric); color: var(--ink); font-weight: 700; border: none; }
.btn-turmeric:hover, .btn-turmeric:focus { background: #d39407; color: var(--ink); }
.btn-maroon { background: var(--maroon); color: #fff; font-weight: 600; border: none; }
.btn-maroon:hover, .btn-maroon:focus { background: var(--maroon-dark); color: #fff; }
.btn-outline-maroon { border: 2px solid var(--maroon); color: var(--maroon); font-weight: 600; }
.btn-outline-maroon:hover { background: var(--maroon); color: #fff; }

/* ---------- home hero ---------- */
.home-hero {
    position: relative; color: #fff; padding: 110px 0 90px;
    background: linear-gradient(100deg, rgba(74, 18, 18, .92) 0%, rgba(74, 18, 18, .7) 45%, rgba(74, 18, 18, .2) 100%),
                url('/images/site/dhangar-sheep-river.jpg') center 60% / cover no-repeat;
}
.home-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.1; }
.home-hero h1 span { color: var(--turmeric-light); }
.home-hero .lead { max-width: 620px; color: #fbe9d0; }
.home-hero .eyebrow { font-family: 'Yatra One', sans-serif; color: var(--turmeric-light); font-size: 1.2rem; }
.stat-strip { background: var(--turmeric); }
.stat-strip .stat { text-align: center; padding: 18px 8px; }
.stat-strip .num { font-size: 2rem; font-weight: 800; color: var(--maroon-dark); line-height: 1; }
.stat-strip .label { font-size: .9rem; color: var(--ink); }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--sand); }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title .kicker { color: var(--turmeric); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; }
.section-title h2 { margin: 4px 0 8px; }
.section-title p { color: var(--muted); max-width: 680px; margin: 0 auto; }
.divider-crook { width: 80px; height: 4px; background: var(--turmeric); margin: 10px auto 0; border-radius: 2px; }

.pillar { background: #fff; border-radius: 14px; padding: 28px; height: 100%; border-top: 5px solid var(--turmeric); box-shadow: 0 6px 20px rgba(74, 18, 18, .07); }
.pillar .icon { width: 54px; height: 54px; border-radius: 50%; background: var(--maroon); color: var(--turmeric-light); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 14px; }

.help-tile { display: block; background: #fff; border-radius: 14px; padding: 24px; height: 100%; text-decoration: none; color: var(--ink); border: 1px solid #eedcbc; transition: transform .15s, box-shadow .15s; }
.help-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(74, 18, 18, .12); color: var(--ink); }
.help-tile .emoji { font-size: 2rem; }
.help-tile h5 { margin: 10px 0 6px; }

/* ---------- heroes marquee ---------- */
.hero-row-title { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 12px; }
.hero-row-title h3 { margin: 0; font-size: 1.4rem; }
.marquee { overflow: hidden; position: relative; padding: 6px 0 14px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee var(--marquee-duration, 40s) linear infinite; }
.marquee-track.reverse { animation-direction: reverse; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
    .marquee-track [aria-hidden="true"] { display: none; }
}

.hero-card { width: 250px; flex: 0 0 250px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(74, 18, 18, .1); display: flex; flex-direction: column; }
.hero-card .photo { height: 230px; background: var(--sand) center top / cover no-repeat; position: relative; }
.hero-card .photo .initials { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; font-weight: 800; color: var(--maroon); background: linear-gradient(135deg, var(--turmeric-light), var(--sand)); }
.hero-card .badge-cat { position: absolute; left: 10px; top: 10px; background: var(--maroon); color: var(--turmeric-light); font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; text-transform: uppercase; letter-spacing: .05em; }
.hero-card .body { padding: 14px 16px 16px; flex: 1; }
.hero-card h5 { margin: 0 0 2px; font-size: 1.1rem; }
.hero-card .place { font-size: .85rem; color: var(--muted); }
.hero-card .work { font-weight: 600; color: var(--maroon); font-size: .92rem; margin-top: 6px; }
.hero-card .desc { font-size: .88rem; color: #4d3a2a; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-empty { background: #fff; border: 2px dashed #e5cf9f; border-radius: 14px; padding: 26px; text-align: center; color: var(--muted); }

/* ---------- membership steps ---------- */
.step { text-align: center; padding: 10px 18px; }
.step .num { width: 56px; height: 56px; border-radius: 50%; background: var(--turmeric); color: var(--maroon-dark); font-size: 1.6rem; font-weight: 800; display: grid; place-items: center; margin: 0 auto 12px; }

/* ---------- heritage gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; color: #fff; font-weight: 600; font-size: .9rem; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
@media (max-width: 767px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- generic cards / pages ---------- */
.page-head { background: linear-gradient(100deg, var(--maroon-dark), var(--maroon)); color: #fff; padding: 42px 0 34px; }
.page-head h1 { color: #fff; margin: 0; }
.page-head p { color: #fbe9d0; margin: 6px 0 0; }
.card-warm { background: #fff; border: 1px solid #eedcbc; border-radius: 14px; box-shadow: 0 4px 14px rgba(74, 18, 18, .05); }
.card-warm .card-body { padding: 22px; }
.tag { display: inline-block; background: var(--sand); color: var(--maroon); font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 20px; }
.tag-gold { background: var(--turmeric); color: var(--ink); }
.article-img { height: 180px; object-fit: cover; width: 100%; border-radius: 14px 14px 0 0; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--turmeric); color: var(--maroon-dark); display: grid; place-items: center; font-weight: 800; flex: 0 0 46px; }
.progress-gold { height: 10px; background: var(--sand); }
.progress-gold .progress-bar { background: var(--turmeric); }
.form-label { font-weight: 600; }
.form-control:focus, .form-select:focus { border-color: var(--turmeric); box-shadow: 0 0 0 .2rem rgba(232, 165, 12, .25); }
.auth-card { max-width: 520px; margin: 40px auto; }
.approval-meter { display: flex; gap: 6px; }
.approval-meter span { flex: 1; height: 10px; border-radius: 5px; background: #ecdcbc; }
.approval-meter span.on { background: var(--turmeric); }
.post { border-left: 4px solid var(--turmeric); background: #fff; border-radius: 8px; padding: 12px 16px; margin-bottom: 12px; }
.hero-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--sand); }

/* ---------- footer ---------- */
.site-footer { background: var(--maroon-dark); color: #f3dcc0; padding: 44px 0 18px; margin-top: 40px; }
.site-footer h6 { color: var(--turmeric-light); font-weight: 700; }
.site-footer a { color: #f3dcc0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 215, 122, .2); margin-top: 24px; padding-top: 14px; font-size: .85rem; text-align: center; }
.site-footer .brand-text { color: #fff; }
.site-footer .brand-text span { color: var(--turmeric-light); }
