/* Explain: App-specific component styles. */
/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled { box-shadow: var(--shadow-soft); }

.header-strip {
    height: 4px;
    background: linear-gradient(90deg, var(--saffron) 0 33.33%, #ffffff 33.33% 66.66%, var(--india-green) 66.66% 100%);
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.7rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; min-height: 44px; }

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 12px;
    background: linear-gradient(140deg, var(--navy), #1b4187);
    color: var(--gold);
    font-size: 1.15rem;
    box-shadow: var(--shadow-card);
}

.brand-text { display: flex; flex-direction: column; }

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.32rem;
    letter-spacing: 0.05em;
    color: var(--navy);
    line-height: 1;
}

.brand-sub {
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

@media (max-width: 520px) { .brand-sub { display: none; } }

.main-nav { display: none; align-items: center; gap: 0.1rem; }

@media (min-width: 1024px) { .main-nav { display: flex; } }

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.7rem;
    border-radius: 999px;
    border: 0;
    background: transparent;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--navy);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.25s ease, color 0.25s ease;
}

.nav-link:hover { background: var(--surface-color); }
.nav-link.is-active { background: var(--gold-soft); }

.nav-dropdown { position: relative; }

.nav-drop-panel {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 215px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 0.4rem;
}

.nav-drop-panel.is-open { display: block; }

.nav-drop-panel a {
    display: block;
    padding: 0.62rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--navy);
}

.nav-drop-panel a:hover { background: var(--surface-color); }
.nav-drop-panel a.is-active { background: var(--gold-soft); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--navy);
    font-size: 1.12rem;
    cursor: pointer;
}

@media (min-width: 1024px) { .nav-toggle { display: none; } }

.mobile-nav {
    display: none;
    border-top: 1px solid var(--border-color);
    background: #ffffff;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
}

.mobile-nav.is-open { display: block; }

@media (min-width: 1024px) {
    .mobile-nav, .mobile-nav.is-open { display: none; }
}

.mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
    color: var(--navy);
}

.mobile-nav a.is-active { color: var(--saffron-dark); }

.mobile-nav-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 1.1rem 0 1.5rem;
}

.mobile-nav-actions .fed-btn { flex: 1 1 45%; }

/* ---------- Buttons ---------- */
.fed-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.8rem 1.4rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: center;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.fed-btn:hover { transform: translateY(-2px); }
.fed-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.fed-btn-gold {
    background: linear-gradient(135deg, var(--gold), #b8902a);
    color: #1d1405;
    box-shadow: var(--shadow-gold);
}

.fed-btn-navy { background: var(--navy); color: #ffffff; }
.fed-btn-saffron { background: var(--saffron); color: #2b1700; }
.fed-btn-green { background: var(--india-green); color: #ffffff; }

.fed-btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.fed-btn-outline:hover { background: var(--navy); color: #ffffff; }

.fed-btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    backdrop-filter: blur(6px);
}

.fed-btn-ghost:hover { background: rgba(255, 255, 255, 0.24); }

.fed-btn-quiet { background: transparent; border-color: var(--border-color); color: var(--navy); }
.fed-btn-quiet:hover { background: var(--surface-color); }

.desktop-only { display: none; }

@media (min-width: 1024px) { .desktop-only { display: inline-flex; } }

/* ---------- Section headings ---------- */
.eyebrow {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--saffron-dark);
    margin-bottom: 0.35rem;
}

.section-navy .eyebrow { color: var(--gold); }

.section-head {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--navy);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 2px;
}

.link-more:hover { color: var(--saffron-dark); }

/* ---------- Hero bits ---------- */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.42);
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
}

.hero-title {
    font-size: clamp(2.1rem, 5.4vw, 4rem);
    color: #ffffff;
    margin: 1.1rem 0 0.8rem;
}

.hero-india { color: var(--saffron); }

.hero-lede {
    max-width: 62ch;
    font-size: 1.06rem;
    color: rgba(255, 255, 255, 0.87);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.75rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 760px;
    margin: 2.6rem 0 0;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 768px) {
    .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.hero-stats dt {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold-soft);
}

.hero-stats dd {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0.2rem 0 0;
}

/* ---------- Cards ---------- */
.fed-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fed-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.fed-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-color); }
.fed-card-media img { width: 100%; height: 100%; object-fit: cover; }

.fed-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
    padding: 1.15rem 1.2rem 1.3rem;
}

.fed-card-title { font-family: var(--font-heading); font-size: 1.2rem; color: var(--navy); margin: 0; }
.fed-card-text { font-size: 0.93rem; color: var(--text-muted); margin: 0; }
.fed-card-actions { margin-top: auto; padding-top: 0.6rem; }

.fed-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.72rem;
    border-radius: 999px;
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.fed-badge-gold { background: var(--gold-soft); color: #6b4d06; }
.fed-badge-navy { background: rgba(15, 42, 90, 0.09); color: var(--navy); }
.fed-badge-green { background: rgba(19, 136, 8, 0.13); color: var(--green-dark); }
.fed-badge-saffron { background: rgba(255, 153, 51, 0.2); color: #8a4b00; }

.check-list { display: grid; gap: 0.75rem; margin: 0 0 1.6rem; }

.check-list li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 0.96rem;
}

.check-list i { color: var(--india-green); margin-top: 0.3rem; }

.badge-medal {
    position: absolute;
    right: -0.5rem;
    bottom: -0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), #b8902a);
    color: #1d1405;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-gold);
}

.info-tile {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    height: 100%;
    padding: 1.3rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.info-tile i {
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--surface-tint);
    color: var(--saffron-dark);
    font-size: 1.06rem;
}

.info-tile h3 { font-size: 1.08rem; margin-bottom: 0.2rem; }
.info-tile p { font-size: 0.93rem; color: var(--text-muted); margin: 0; }

.stat-tile {
    padding: 1.5rem 1rem;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.stat-tile .num {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--navy);
}

.stat-tile .lbl {
    margin-top: 0.45rem;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--text-muted);
}

/* ---------- Timeline ---------- */
.timeline {
    position: relative;
    max-width: 900px;
    margin-inline: auto;
    padding-left: 1.6rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.42rem;
    top: 0.4rem;
    bottom: 0.4rem;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--saffron), #ffffff 46%, var(--india-green));
}

.timeline-item { position: relative; padding: 0 0 2.2rem 1.4rem; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.6rem;
    top: 0.45rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--navy);
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--saffron-dark);
}

.timeline-item h3 { font-size: 1.12rem; margin-bottom: 0.25rem; }

/* ---------- Calendar ---------- */
.calendar-shell {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: linear-gradient(135deg, var(--navy), #17386e);
    color: #ffffff;
}

.calendar-head h3 { margin: 0; color: #ffffff; font-size: 1.15rem; }

.calendar-nav {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
}

.calendar-nav:hover { background: rgba(255, 255, 255, 0.24); }

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 1rem;
}

.calendar-dow {
    padding: 0.35rem 0;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.calendar-day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.calendar-day:hover { background: var(--surface-color); }

.calendar-day.is-blank {
    border-color: transparent;
    background: transparent;
    cursor: default;
}

.calendar-day.is-today { box-shadow: inset 0 0 0 2px rgba(255, 153, 51, 0.55); }

.calendar-day.has-event {
    background: rgba(212, 175, 55, 0.18);
    border-color: var(--gold);
}

.calendar-day.is-selected {
    background: var(--navy);
    border-color: var(--navy);
    color: #ffffff;
}

.calendar-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--india-green); }

.event-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.event-date-block {
    flex: none;
    width: 66px;
    padding: 0.5rem 0.3rem;
    text-align: center;
    border-radius: var(--radius-sm);
    background: linear-gradient(160deg, var(--navy), #1a3f7d);
    color: #ffffff;
}

.event-date-block .d { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 700; line-height: 1; }

.event-date-block .m {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-soft);
}

/* ---------- Gallery ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.filter-chip {
    min-height: 42px;
    padding: 0.5rem 1.05rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.filter-chip:hover { background: var(--surface-color); }
.filter-chip.is-active { background: var(--navy); border-color: var(--navy); color: #ffffff; }

.gallery-tile {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-color);
    cursor: pointer;
}

.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-tile:hover img { transform: scale(1.06); }

.gallery-tile-caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 1.5rem 0.85rem 0.7rem;
    background: linear-gradient(180deg, transparent, rgba(6, 20, 48, 0.9));
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 600;
    text-align: left;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(6, 18, 42, 0.94);
}

.lightbox.is-open { display: flex; }

.lightbox-figure { width: 100%; max-width: min(1000px, 94vw); text-align: center; }

.lightbox-figure img {
    width: auto;
    max-height: 76vh;
    margin-inline: auto;
    border-radius: var(--radius-md);
}

.lightbox.is-loading .lightbox-figure img { visibility: hidden; }

.lightbox-loader {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 3.5rem 1rem;
    color: #ffffff;
}

.lightbox.is-loading .lightbox-loader { display: flex; }

.lightbox-caption { margin-top: 0.85rem; color: #ffffff; font-size: 0.95rem; }

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }

/* ---------- Forms ---------- */
.fed-form {
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) { .fed-form { padding: 2rem; } }

.field { margin-bottom: 1.15rem; }

.field-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy);
}

.field-error {
    display: none;
    margin-top: 0.3rem;
    font-size: 0.82rem;
    color: #b3261e;
}

.field.has-error .field-error { display: block; }
.field.has-error .input, .field.has-error .select { border-color: #b3261e; }

.form-note { font-size: 0.85rem; color: var(--text-muted); }

.form-status {
    display: none;
    margin-bottom: 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
}

.form-status.is-success {
    display: block;
    background: rgba(19, 136, 8, 0.1);
    border: 1px solid rgba(19, 136, 8, 0.35);
    color: var(--green-dark);
}

.form-status.is-error {
    display: block;
    background: rgba(179, 38, 30, 0.08);
    border: 1px solid rgba(179, 38, 30, 0.35);
    color: #8c1d17;
}

.verify-card {
    padding: 1.4rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.verify-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.verify-badge.is-verified { background: rgba(19, 136, 8, 0.14); color: var(--green-dark); }
.verify-badge.is-pending { background: rgba(255, 153, 51, 0.22); color: #8a4b00; }

.verify-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    margin: 1.3rem 0 0;
}

@media (min-width: 640px) { .verify-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.verify-grid dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.verify-grid dd { margin: 0.2rem 0 0; font-weight: 600; color: var(--navy); }

.member-id-card {
    display: inline-block;
    padding: 0.75rem 1.2rem;
    border-radius: var(--radius-md);
    border: 2px dashed var(--gold);
    background: var(--surface-tint);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--navy);
}

/* ---------- Footer ---------- */
.site-footer {
    background: linear-gradient(180deg, var(--navy-deep), #04101f);
    color: rgba(255, 255, 255, 0.82);
}

.footer-tricolor {
    height: 5px;
    background: linear-gradient(90deg, var(--saffron) 0 33.33%, #ffffff 33.33% 66.66%, var(--india-green) 66.66% 100%);
}

.footer-grid {
    display: grid;
    gap: 2rem;
    padding-block: 3rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }

.site-footer h3 {
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer a:hover { color: var(--gold); }
.footer-links li { margin-bottom: 0.55rem; font-size: 0.94rem; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    justify-content: space-between;
    padding-block: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.85rem;
}

.social-row { display: flex; gap: 0.6rem; }

.social-row a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.social-row a:hover { background: var(--gold); border-color: var(--gold); color: #1d1405; }