/* ══════════════════════════════════════════════════════════════════════════
   Home-page layout fixes — scoped to index.html only.
   Nothing here touches other pages: the shared grids in style.css are left
   alone and overridden through home-only classes.
   ══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────
   1) Pride banner — "गौरव-पट्ट"
   The poster is dense and text-heavy, so at phone widths it can only ever be
   a thumbnail. It is therefore presented as a framed exhibit with an explicit
   "open full size" affordance rather than a decorative strip.
   ───────────────────────────────────────────────────────────────────────── */
.pride {
    background:
        radial-gradient(70% 90% at 50% 0%, rgba(146, 64, 14, 0.10) 0%, rgba(146, 64, 14, 0) 72%),
        linear-gradient(180deg, #fffbeb 0%, #fef3c7 55%, #fde68a 100%);
    padding: 34px 0 40px;
    border-bottom: 3px solid #b45309;
}

.pride-head {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 20px;
}
.pride-label {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 999px;
    background: #7f1d1d;
    color: #fef3c7;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.pride-head .pride-title {
    margin: 0;
    font-size: clamp(1.3rem, 2.7vw, 1.85rem);
    font-weight: 800;
    color: #7f1d1d;
    line-height: 1.28;
    font-family: inherit;
}
.pride-head p {
    margin: 8px auto 0;
    max-width: 62ch;
    color: #78350f;
    font-size: 0.96rem;
    line-height: 1.65;
}

/* The frame — mirrors the poster's own maroon-on-gold palette */
.pride-frame {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: linear-gradient(135deg, #7f1d1d 0%, #b45309 100%);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 2px 6px rgba(120, 53, 15, 0.18), 0 18px 40px rgba(120, 53, 15, 0.22);
    cursor: zoom-in;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    -webkit-tap-highlight-color: transparent;
}
.pride-frame:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(120, 53, 15, 0.2), 0 26px 56px rgba(120, 53, 15, 0.28);
}
.pride-frame:focus-visible {
    outline: 4px solid #1e40af;
    outline-offset: 3px;
}
.pride-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    background: #fef3c7;
}

/* "open full size" pill — the primary affordance on phones */
.pride-zoom {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    backdrop-filter: blur(4px);
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.pride-frame:hover .pride-zoom { background: rgba(127, 29, 29, 0.94); }

.pride-caption {
    margin: 14px auto 0;
    max-width: 90ch;
    text-align: center;
    font-size: 0.86rem;
    line-height: 1.65;
    color: #78350f;
}
.pride-caption strong { color: #7f1d1d; }
.pride-caption a {
    /* thumb-sized, and visibly a link against the gold background */
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 4px;
    color: #7f1d1d;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.pride-caption a:hover { color: #b45309; }

@media (max-width: 640px) {
    .pride { padding: 26px 0 30px; }
    .pride-frame { padding: 5px; border-radius: 12px; }
    .pride-zoom {
        right: 50%;
        transform: translateX(50%);
        bottom: 10px;
        font-size: 0.74rem;
        padding: 7px 13px;
        white-space: nowrap;
    }
    /* one line only — the bilingual label wrapped and covered the poster */
    .pride-zoom-en { display: none; }
}

/* ── Lightbox ───────────────────────────────────────────────────────────── */
.pride-lb {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: none;
    background: rgba(12, 10, 9, 0.94);
    padding: 0;
}
.pride-lb[open] { display: block; }
.pride-lb-scroll {
    position: absolute;
    inset: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    display: grid;
    place-items: center;
}
/* zoomed state: true 1:1, allowed to exceed the viewport so it can be panned.
   (Sizing this to 100vw made the zoom button a no-op on desktop.) */
.pride-lb-scroll img {
    display: block;
    max-width: none;
    width: 2400px;
    height: auto;
}
/* Solid dark chrome, not translucent: zoomed in, these buttons sit over a
   bright yellow poster where a see-through control disappears. */
.pride-lb-close,
.pride-lb-fit {
    position: fixed;
    top: 14px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: #0f172a;
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
}
.pride-lb-close { right: 14px; font-size: 1.7rem; }
.pride-lb-fit { right: 72px; }
.pride-lb-close:hover,
.pride-lb-fit:hover { background: #7f1d1d; }
.pride-lb-close:focus-visible,
.pride-lb-fit:focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; }
.pride-lb-hint {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 14px;
    color: #fff;
    font-size: 0.8rem;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 8px 16px;
    border-radius: 999px;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    max-width: calc(100vw - 28px);
    text-align: center;
}
/* "fit to width" state */
.pride-lb.fit .pride-lb-scroll img { width: 100%; max-width: 100%; }
body.pride-lb-open { overflow: hidden; }

/* ─────────────────────────────────────────────────────────────────────────
   2) Orphan-row fixes
   style.css uses minmax(300px,1fr), which at a 1232px container resolves to
   3 columns — so 4-item sections left a two-thirds-empty final row. These
   home-only classes pack the rows exactly.
   ───────────────────────────────────────────────────────────────────────── */

/* 4 items → 4 columns (4x260 + 3x24 = 1112, fits 1232) */
.grid-4up {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1080px) { .grid-4up { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .grid-4up { grid-template-columns: 1fr; } }

/* stats strip: pin to 4 so auto-fit cannot resolve to 6 columns */
.stats .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 720px) {
    .stats .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

/* Quick-access: 5 slim tiles on one row instead of 3 + 2 with a hole.
   Also deliberately lighter than a content card — these duplicate the top
   nav, so they should read as shortcuts, not as headline content. */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}
.quick-grid .quick-link-card {
    padding: 18px 14px;
    border-radius: 14px;
}
.quick-grid .quick-link-icon {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.quick-grid .quick-link-card h3 { font-size: 0.96rem; margin-bottom: 2px; }
.quick-grid .quick-link-card p  { font-size: 0.82rem; }
@media (max-width: 1080px) { .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* Quick-access sits last before the footer — tighten it so the page is not
   needlessly tall (it was 7.8k desktop / 11.6k mobile). */
.quick-access-section { padding: 52px 0 60px; }

/* ─────────────────────────────────────────────────────────────────────────
   3) About-preview image — reserve the box so it cannot shift the layout
   as it decodes (it carried no dimensions at all before).
   ───────────────────────────────────────────────────────────────────────── */
.about-image picture { display: block; }
.about-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 458;
    object-fit: cover;
    display: block;
}
