/* =========================================================
   STATE LEVEL CRICKET TOURNAMENT - PUBLIC HOMEPAGE
   Clean stylesheet for index.html
   Global public-site container width: 1600px on desktop
   ========================================================= */

:root {
    --primary: #1a5276;
    --primary-dark: #0e2f44;
    --primary-light: #2980b9;
    --secondary: #27ae60;
    --secondary-dark: #1e8449;
    --accent: #f39c12;
    --bg-light: #f8f9fa;
    --bg-dark: #2c3e50;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --text-white: #ffffff;
    --border: #dee2e6;
    --shadow: 0 2px 15px rgba(0,0,0,.10);
    --shadow-lg: 0 5px 30px rgba(0,0,0,.15);
    --radius: 8px;
    --radius-lg: 15px;
    --transition: all .3s ease;
    --max-width: 1600px;
    --header-height: 70px;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a { text-decoration: none; }

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

section { padding: 60px 0; }

/* ========================= HEADER ========================= */

.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255,255,255,.99);
    box-shadow: 0 2px 20px rgba(0,0,0,.12);
}

.header .container {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
}

.header .logo {
    flex: 0 0 auto;
}


.logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    white-space: nowrap;
}

.logo i { color: var(--accent); }
.logo-text { display: inline-block; }
.league-word { color: var(--accent); }

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.5vw, 20px);
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
    white-space: nowrap;
}

.nav-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 5px 2px;
}

.nav-menu a {
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: .88rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
}

.lang-option {
    border: 0;
    background: transparent;
    color: var(--text-light);
    border-radius: 999px;
    padding: 5px 9px;
    font: 600 .72rem var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
}

.lang-option.active,
.lang-option:hover {
    background: var(--primary);
    color: #fff;
}

.hamburger {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    left: 10px;
    width: 22px;
    height: 2px;
    background: var(--primary);
    transition: .3s;
}

.hamburger::before { top: 15px; box-shadow: 0 7px 0 var(--primary); }
.hamburger::after { top: 29px; }


.nav-menu a:focus-visible,
.lang-option:focus-visible,
.hamburger:focus-visible {
    outline: 3px solid rgba(41,128,185,.35);
    outline-offset: 3px;
}

/* ========================= BUTTONS ========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--secondary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--secondary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.hero .btn-outline,
.registration .btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,.8);
}

.hero .btn-outline:hover,
.registration .btn-outline:hover {
    background: rgba(255,255,255,.12);
}

.btn-lg {
    padding: 13px 28px;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: .85rem;
}

/* ====================== TOP SLIDER / COMMITTEE ====================== */
.committee {
    padding: 18px 0 22px;
    margin-top: var(--header-height);
    background: linear-gradient(135deg, #eef5f8, #f8f9fa);
}

.committee-layout {
    display: grid;
    grid-template-columns: minmax(0, 43%) minmax(0, 57%);
    gap: 18px;
    align-items: stretch;
}

.cricket-player-bg {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 520px;
    border-radius: 14px;
    overflow: hidden;
    background: #111;
    box-shadow: var(--shadow-lg);
}

.slider-track { position: absolute; inset: 0; width: 100%; height: 100%; }
.slider-slide {
    position: absolute; inset: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity .8s ease, visibility .8s ease;
}
.slider-slide.active { opacity: 1; visibility: visible; }
.slider-slide img {
    width: 100%; height: 100%; max-width: 100%; max-height: 100%;
    object-fit: contain; object-position: center; background: #111;
}
.slider-overlay {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
    padding: 34px 24px 18px; color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,.78), transparent);
    pointer-events: none;
}
.slider-overlay span { font-size: 1.05rem; font-weight: 700; }
.slider-dots { position: absolute; right: 18px; bottom: 15px; z-index: 10; display: flex; gap: 7px; }
.slider-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.55); transition: .3s ease; }
.slider-dot.active { width: 25px; border-radius: 10px; background: #fff; }

.committee-panel {
    min-width: 0;
    padding: 10px 12px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.98);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.committee-heading {
    margin: 0 0 10px;
    text-align: center;
    color: var(--primary);
    font-size: 1.05rem;
    line-height: 1.2;
    letter-spacing: .06em;
    font-weight: 800;
}
/* Founding Members parent background only — card layout remains unchanged. */
.founding-members {
    margin-bottom: 12px;
    background:
        radial-gradient(circle at 15% 20%, rgba(196, 151, 64, .12), transparent 34%),
        radial-gradient(circle at 85% 80%, rgba(26, 82, 118, .16), transparent 38%),
        linear-gradient(135deg, #111923 0%, #18232d 48%, #111a23 100%);
    border: 1px solid rgba(196, 151, 64, .16);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
}
.founding-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.committee-card {
    min-width: 0;
    background: #fff;
    border: 1px solid rgba(26,82,118,.08);
    border-radius: 11px;
    box-shadow: 0 3px 14px rgba(0,0,0,.07);
    transition: transform .2s ease, box-shadow .2s ease;
    overflow: hidden;
    text-align: center;
}
.committee-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.11); }
.founding-card { padding: 9px 7px 10px; }
.committee-photo {
    margin: 0 auto 7px;
    overflow: hidden;
    background: #eef2f5;
    border-radius: 9px;
}
.founding-photo { width: min(100%, 105px); aspect-ratio: 1 / 1; }
.committee-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.founding-card h3, .organizing-card h3 {
    margin: 0;
    color: var(--primary);
    line-height: 1.15;
    font-size: .76rem;
    font-weight: 800;
}
.founding-card p, .organizing-card p {
    margin: 3px 0 0;
    color: var(--text-light);
    font-size: .68rem;
    line-height: 1.15;
    font-weight: 600;
}

.organizing-members { min-width: 0; }
.organizing-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}
.organizing-card { padding: 6px 4px 7px; }
.organizing-photo { width: 58px; height: 58px; }
.organizing-card h3 { font-size: .58rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.organizing-card p { font-size: .56rem; }

/* =========================== HERO =========================== */


.hero {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 75px 20px;
    background: linear-gradient(135deg,var(--primary-dark),var(--primary),var(--primary-light));
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 950px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 18px;
    border-radius: 30px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
}

.hero h1 {
    margin: 0 0 18px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(2rem,4vw,3.25rem);
    line-height: 1.2;
}

.hero .subtitle {
    max-width: 760px;
    margin: 0 auto 28px;
    color: rgba(255,255,255,.9);
    font-size: 1.08rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ========================== STATS ========================== */

.highlights {
    padding: 45px 0;
    background: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 18px;
}

.stat-card {
    padding: 24px 15px;
    border-radius: var(--radius-lg);
    background: #fff;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,.08);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg,var(--primary-light),var(--secondary));
    color: #fff;
    font-size: 1.3rem;
}

.stat-card .number {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 800;
}

.stat-card .label {
    color: var(--text-light);
    font-size: .9rem;
}

/* ====================== GALLERY PREVIEW ====================== */

.home-gallery-preview {
    padding: 55px 0;
    background: var(--bg-light);
}

.home-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.section-tag {
    color: var(--secondary);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.home-gallery-header h2,
.section-title h2 {
    margin: 5px 0 0;
    color: var(--primary);
    font-family: var(--font-heading);
}

.home-gallery-strip {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.home-gallery-track {
    display: flex;
    gap: 15px;
    width: max-content;
    animation: galleryScroll 35s linear infinite;
}

.home-gallery-track:hover {
    animation-play-state: paused;
}

.home-gallery-item {
    width: 220px;
    height: 150px;
    flex: 0 0 220px;
    overflow: hidden;
    border-radius: 12px;
    background: #ddd;
}

.home-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.home-gallery-item:hover img { transform: scale(1.06); }

@keyframes galleryScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============================ ABOUT ============================ */

.about { background: #fff; }

.section-title {
    margin-bottom: 35px;
    text-align: center;
}

.section-title p {
    margin: 5px 0 0;
    color: var(--text-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h3 {
    margin-top: 0;
    color: var(--primary);
}

.about-text p {
    color: var(--text-light);
    line-height: 1.8;
}

.about-image {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image.about-slider-box {
    position: relative;
    width: 100%;
    height: 420px;
    background: #111;
}
.about-image.about-slider-box .slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
@media (max-width: 600px) {
    .about-image.about-slider-box { height: 260px; }
}

/* ========================= REGISTRATION ========================= */

.registration {
    background: linear-gradient(135deg,var(--primary-dark),var(--primary));
}

/* ============================== FOOTER ============================== */

.footer {
    padding: 45px 0 0;
    background: var(--bg-dark);
    color: rgba(255,255,255,.8);
}

.footer .logo { color: #fff; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 35px;
}

.footer h4 {
    margin-top: 0;
    color: #fff;
}

.footer-about p {
    max-width: 520px;
    line-height: 1.8;
}

.footer-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li { margin: 7px 0; }

.footer-links a {
    color: rgba(255,255,255,.75);
    transition: var(--transition);
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
    margin-top: 35px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,.12);
    text-align: center;
    font-size: .85rem;
}

/* ============================== TOAST ============================== */

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 3000;
    max-width: 360px;
    padding: 14px 18px;
    border-radius: 8px;
    background: #333;
    color: #fff;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: .3s ease;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ============================== MOBILE ============================== */

@media (max-width: 980px) {
    .committee-layout { grid-template-columns: 1fr; }
    .cricket-player-bg { height: 420px; }
    .committee-panel { padding: 12px; }
    .organizing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

    .stats-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .header .container { gap: 10px; }

    .logo {
        max-width: calc(100% - 55px);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-actions { margin-left: auto; }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        display: none;
        padding: 12px 20px 20px;
        background: rgba(255,255,255,.98);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .nav-menu a {
        min-height: 46px;
        padding: 10px 5px;
        border-bottom: 1px solid #eef1f3;
    }

    .nav-menu.active { display: flex; }
    .hamburger { display: block; }
}

@media (max-width: 600px) {
    .container { padding: 0 15px; }

    .committee {
        padding: 15px 0;
    }

    .cricket-player-bg {
        height: 300px;
        border-radius: 10px;
    }

    .slider-overlay {
        padding: 25px 15px 15px;
    }

    .founding-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .founding-photo { width: 72px; }
    .organizing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
    .organizing-photo { width: 55px; height: 55px; }
    .committee-heading { font-size: .9rem; }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 18px 8px;
    }

    .stat-card .number {
        font-size: 1.45rem;
    }

    .home-gallery-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-gallery-item {
        width: 180px;
        height: 120px;
        flex-basis: 180px;
    }

    .about-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 460px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .subtitle {
        font-size: .95rem;
    }
}

/* ========================= PREVIOUS SEASONS ========================= */
.seasons {
    background: linear-gradient(135deg, #eef5f8, #f8f9fa);
}

.seasons-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.season-card {
    display: flex;
    flex-direction: column;
    min-height: 520px;
    padding: 22px;
    border: 1px solid rgba(26,82,118,.08);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.97);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.season-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.season-content {
    flex: 0 0 auto;
}

.season-card h3 {
    margin: 8px 0 12px;
    color: var(--primary);
    font-size: 1.3rem;
}

.season-card p {
    margin: 7px 0;
    color: var(--text-light);
    font-size: .98rem;
}

.season-card small {
    display: block;
    margin-top: 12px;
    color: var(--secondary-dark);
    font-weight: 600;
    line-height: 1.5;
}

.season-year {
    color: var(--accent-dark, #d68910);
    font-size: .88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.season-origin {
    border-top: 4px solid var(--accent);
}

.season-current {
    border-top: 4px solid var(--secondary);
    background: linear-gradient(135deg, #fff, #edf9f2);
}

.season-current strong {
    color: var(--secondary-dark);
    display: inline-block;
    margin-top: 8px;
    font-size: 1.05rem;
}

/* Individual photo box at the bottom of every season card. */
.season-photo-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    margin-top: 20px;
    padding-top: 0;
}

.season-photo-track {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 14px;
    background: #e8eef2;
    border: 1px solid rgba(26,82,118,.10);
}

.season-photo-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.season-photo-slide.active {
    opacity: 1;
    visibility: visible;
}

.season-photo-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #eef2f4;
}

.season-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: var(--text-light);
    font-size: .85rem;
    font-weight: 600;
}

.season-photo-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3px;
    display: flex;
    justify-content: center;
    gap: 5px;
    z-index: 3;
}

.season-photo-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(20,50,70,.25);
    cursor: pointer;
}

.season-photo-dot.active {
    transform: scale(1.25);
    background: var(--primary);
}

@media (max-width: 1200px) {
    .organizing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
    .committee-layout { grid-template-columns: minmax(0, 40%) minmax(0, 60%); }
    .cricket-player-bg { height: 500px; }
    .organizing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .seasons-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 600px) {
    .seasons-grid {
        grid-template-columns: 1fr;
    }

    .season-card {
        min-height: 0;
    }

    .season-photo-slider {
        aspect-ratio: 1 / 1;
        height: auto;
    }

    .season-photo-track {
        height: 100%;
        aspect-ratio: 1 / 1;
    }
}

/* =========================================================
   TEAM REGISTRATION PAGE
   ========================================================= */

.page-header {
    margin-top: var(--header-height);
    padding: 58px 0 52px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,.10), transparent 30%),
        linear-gradient(135deg, #0b3150, #12647a 55%, #168b68);
}

.page-header h1 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

.page-header p {
    max-width: 700px;
    margin: 12px auto 0;
    color: rgba(255,255,255,.86);
}

.registration {
    min-height: calc(100vh - var(--header-height));
    padding: 48px 0 70px;
    background:
        linear-gradient(180deg, #eef6f8 0%, #f8fbfc 45%, #eef5f7 100%);
}

.form-container {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 30px;
    border: 1px solid #d8e6eb;
    border-radius: 22px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 18px 50px rgba(20,58,75,.12);
}

.form-section {
    position: relative;
    margin-bottom: 25px;
    padding: 26px;
    border: 1px solid #e1ebef;
    border-radius: 17px;
    background: #fff;
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.form-section h3 {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 22px;
    color: var(--primary-dark);
    font-size: 1.15rem;
}

.step-number {
    display: inline-grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    font-size: .9rem;
    font-weight: 800;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-group {
    min-width: 0;
    margin-bottom: 17px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-dark);
    font-size: .88rem;
    font-weight: 700;
}

.required {
    color: #dc2626;
}

.form-control {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #cbdbe1;
    border-radius: 10px;
    outline: none;
    color: var(--text-dark);
    background: #fff;
    font: 500 .92rem var(--font-body);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.form-control::placeholder {
    color: #91a5ad;
}

.form-control:hover {
    border-color: #9dbbc5;
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(41,128,185,.11);
}

.form-control.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,.08);
}

textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.team-name-search {
    position: relative;
}

.team-name-suggestions {
    position: absolute;
    z-index: 30;
    top: calc(100% - 9px);
    right: 0;
    left: 0;
    display: none;
    max-height: 260px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #d5e3e8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(20,58,75,.16);
}

.team-name-suggestions.is-visible {
    display: block;
}

.team-name-suggestion {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    color: var(--text-dark);
    background: transparent;
    text-align: left;
    font: 500 .88rem var(--font-body);
    cursor: pointer;
}

.team-name-suggestion:hover,
.team-name-suggestion:focus {
    color: var(--primary-dark);
    background: #edf7f8;
    outline: none;
}

.existing-team-notice {
    margin-top: 5px;
    padding: 14px 16px;
    border: 1px solid #bfe2d3;
    border-radius: 12px;
    color: #14532d;
    background: #f0fdf4;
    font-size: .88rem;
}

.existing-team-notice ul {
    margin: 8px 0 0 20px;
}

.existing-players-panel {
    margin: 18px 0;
    padding: 16px 18px;
    border: 1px solid #d5e3e8;
    border-radius: 12px;
    background: #f9fcfd;
}

.existing-players-panel h4 {
    margin: 0 0 6px;
    font-size: 1rem;
    color: var(--text-dark);
}

.existing-players-panel h4.existing-players-heading {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e5eef1;
}

.existing-team-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px 16px;
    margin: 8px 0 4px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5eef1;
}

.existing-team-summary-item span {
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--text-light);
    margin-bottom: 3px;
}

.existing-team-summary-item strong {
    font-size: .92rem;
    color: var(--text-dark);
}

.existing-player-doc-type.is-captain {
    color: #805b00;
    background: #fff2cf;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: .75rem;
    font-weight: 700;
}

.existing-player-doc-type.is-player {
    color: #475569;
    background: #eef2f5;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: .75rem;
    font-weight: 700;
}

@media (max-width: 700px) {
    .existing-team-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.existing-players-hint {
    margin: 0 0 14px;
    font-size: .85rem;
    color: var(--text-light);
}

.existing-player-doc-row {
    padding: 12px 0;
    border-top: 1px solid #e5eef1;
}

.existing-player-doc-row:first-of-type {
    border-top: none;
}

.existing-player-doc-name {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.existing-player-doc-type {
    font-weight: 500;
    color: var(--text-light);
}

.existing-player-doc-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.existing-doc-field label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.existing-post-field {
    grid-column: span 2;
}

.existing-post-row {
    display: flex;
    gap: 8px;
}

.existing-post-row .existing-post-input {
    flex: 1;
}

@media (max-width: 700px) {
    .existing-post-field {
        grid-column: span 1;
    }
}

.doc-uploaded-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #eafaf1;
    color: #14824b;
    font-size: .85rem;
    font-weight: 600;
}

.doc-uploaded-note {
    margin: 8px 0 0;
    font-size: .8rem;
    color: #14824b;
    font-weight: 600;
}

@media (max-width: 700px) {
    .existing-player-doc-fields {
        grid-template-columns: 1fr;
    }
}

.file-upload {
    position: relative;
    display: grid;
    min-height: 145px;
    place-items: center;
    padding: 24px;
    border: 2px dashed #a9c8d2;
    border-radius: 15px;
    color: #587681;
    background: #f7fbfc;
    text-align: center;
    cursor: pointer;
    transition: .25s ease;
}

.file-upload:hover {
    border-color: var(--primary-light);
    color: var(--primary-dark);
    background: #eef9fa;
}

.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload i {
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 2rem;
}

.file-upload p {
    margin: 0;
    font-size: .86rem;
}

.file-name {
    margin: 8px 0 0;
    color: var(--secondary-dark);
    font-weight: 700;
    word-break: break-word;
}

.player-entry {
    position: relative;
    margin-top: 14px;
    padding: 21px;
    border: 1px solid #dbe7eb;
    border-radius: 15px;
    background: linear-gradient(180deg, #fff, #fafdfe);
    box-shadow: 0 5px 16px rgba(22,62,78,.05);
}

.player-entry:first-child {
    margin-top: 0;
}

.remove-player {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    color: #b42318;
    background: #fff1f0;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: .2s ease;
}

.remove-player:hover {
    color: #fff;
    background: #dc2626;
}

.player-count {
    margin: 18px 0 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--primary-dark);
    background: #edf7f8;
    font-size: .88rem;
    font-weight: 700;
    text-align: center;
}

.add-player-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 45px;
    padding: 10px 16px;
    border: 1px dashed #8bb6c1;
    border-radius: 10px;
    color: var(--primary-dark);
    background: #f5fbfc;
    font: 700 .9rem var(--font-body);
    cursor: pointer;
    transition: .2s ease;
}

.add-player-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
}

.add-player-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.form-submit {
    padding: 8px 0 0;
    text-align: center;
}

.form-submit .btn {
    min-width: 230px;
}

.mt-20 {
    margin-top: 20px;
}

/* Registration preview / shared modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: none;
    place-items: center;
    padding: 20px;
    overflow-y: auto;
    background: rgba(4,19,33,.72);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: grid;
}

.modal-content {
    width: min(760px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 27px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 25px 70px rgba(0,0,0,.3);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-dark);
}

.modal-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: #526872;
    background: #edf3f5;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-content table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid #dce7eb;
    border-radius: 10px;
}

.modal-content td {
    padding: 10px 12px !important;
    border-bottom: 1px solid #e8eef0 !important;
    vertical-align: top;
}

.modal-content tr:last-child td {
    border-bottom: 0 !important;
}

.error-message {
    color: #dc2626 !important;
    font-size: .78rem !important;
}

/* Public team-detail: never expose management contact numbers */
#teamContact {
    color: var(--text-light);
}

/* Gallery: preserve the complete uploaded photo */
.moments-grid .moment-card img,
.moments-grid .moment-card video {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    object-fit: contain;
    object-position: center;
    background: #eef3f5;
}

.moments-grid .moment-card:hover img,
.moments-grid .moment-card:hover video {
    transform: none;
    filter: saturate(1.05);
}

/* =========================================================
   REGISTRATION / GALLERY RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {
    .form-container {
        padding: 18px;
        border-radius: 17px;
    }

    .form-section {
        padding: 19px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .page-header {
        padding: 45px 0 40px;
    }
}

@media (max-width: 520px) {
    .registration {
        padding: 25px 0 45px;
    }

    .form-container {
        padding: 10px;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .form-section {
        padding: 16px;
        border-radius: 14px;
    }

    .form-section h3 {
        font-size: 1rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        padding: 0 12px;
        font-size: .9rem;
    }

    .modal-content {
        padding: 18px;
    }

    .modal-content td {
        display: block;
        width: 100%;
    }

    .modal-content tr td:first-child {
        padding-bottom: 3px !important;
        border-bottom: 0 !important;
    }
}

/* ===== Teams Search ===== */
.team-search-panel { max-width: 760px; margin: 0 auto 8px; position: relative; }
.team-search-panel > label { display:block; margin-bottom:8px; font-weight:700; color:var(--text-dark); }
.team-search-box { display:flex; align-items:center; gap:10px; background:#fff; border:2px solid var(--border); border-radius:14px; padding:8px 12px; box-shadow:var(--shadow); transition:.25s ease; }
.team-search-box:focus-within { border-color:var(--primary-light); box-shadow:0 0 0 4px rgba(41,128,185,.12); }
.team-search-box > i { color:var(--primary-light); }
.team-search-box input { flex:1; min-width:0; border:0; outline:0; background:transparent; padding:10px 4px; font:500 1rem var(--font-body); color:var(--text-dark); }
.search-clear { border:0; background:transparent; color:var(--text-light); font-size:1.5rem; cursor:pointer; line-height:1; }
.team-suggestions { position:absolute; z-index:30; left:0; right:0; top:100%; margin-top:7px; max-height:320px; overflow:auto; background:#fff; border:1px solid var(--border); border-radius:12px; box-shadow:var(--shadow-lg); padding:6px; }
.team-suggestion { width:100%; display:flex; align-items:center; justify-content:space-between; gap:15px; border:0; background:#fff; text-align:left; padding:12px 14px; border-radius:9px; cursor:pointer; }
.team-suggestion:hover,.team-suggestion:focus { background:var(--bg-light); outline:0; }
.suggestion-name { font-weight:700; color:var(--primary); }
.suggestion-district { color:var(--text-light); font-size:.85rem; }
.no-suggestion { padding:15px; color:var(--text-light); text-align:center; }
.team-search-hint { max-width:760px; margin:0 auto 20px; color:var(--text-light); font-size:.85rem; }
.back-to-teams { display:inline-flex; margin-bottom:18px; background:#27ae60; border-color:#27ae60; color:#fff; }
.back-to-teams:hover { background:#1e8449; border-color:#1e8449; }
.team-district { display:inline-block; margin-top:5px; color:rgba(255,255,255,.78); font-size:.85rem; }
@media (max-width:768px){ .team-suggestion{align-items:flex-start; flex-direction:column; gap:3px;} .team-search-panel{max-width:none;} }

/* ===== FINAL HOMEPAGE TITLE ===== */
.nurses-paramedical-title{
 display:block;
 margin-top:7px;
 color:#ffffff;
 font-size:.68em;
 font-weight:800;
 line-height:1.2;
}
.memory-of-warriors{
 display:block;
 margin-top:7px;
 color:#f1c40f;
 font-size:.58em;
 font-weight:800;
 line-height:1.2;
}
@media(max-width:768px){
 .nurses-paramedical-title{font-size:.65em}
 .memory-of-warriors{font-size:.55em}
}

/* =========================================================
   FINAL MOBILE NAVIGATION FIX
   The hamburger navigation is intentionally enabled on
   tablets and phones. The full desktop navigation is hidden
   until the viewport is wide enough.
   ========================================================= */

@media (max-width: 1100px) {
    .header .container {
        position: relative;
        display: flex;
        align-items: center;
        min-height: var(--header-height);
        gap: 8px;
    }

    .nav-menu {
        position: fixed !important;
        top: var(--header-height) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: calc(100vh - var(--header-height)) !important;
        overflow-y: auto !important;
        display: none !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        padding: 10px 16px 18px !important;
        margin: 0 !important;
        background: rgba(255,255,255,.99) !important;
        box-shadow: 0 10px 25px rgba(0,0,0,.15) !important;
        z-index: 9998 !important;
    }

    .nav-menu.active {
        display: flex !important;
    }

    .nav-menu a {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        min-height: 48px !important;
        padding: 12px 8px !important;
        border-bottom: 1px solid #e9ecef !important;
        font-size: 1rem !important;
    }

    .header-actions {
        margin-left: auto !important;
        flex: 0 0 auto !important;
    }

    .hamburger {
        display: flex !important;
        flex: 0 0 42px !important;
        width: 42px !important;
        height: 42px !important;
        margin-left: 2px !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 10000 !important;
    }

    /* Use the actual three spans from site-header.html. */
    .hamburger span {
        position: absolute !important;
        left: 10px !important;
        width: 22px !important;
        height: 2px !important;
        display: block !important;
        background: var(--primary) !important;
        border-radius: 2px !important;
        transition: transform .25s ease, opacity .25s ease !important;
    }

    .hamburger span:nth-child(1) { transform: translateY(-7px); }
    .hamburger span:nth-child(2) { transform: translateY(0); }
    .hamburger span:nth-child(3) { transform: translateY(7px); }

    .hamburger.active span:nth-child(1) {
        transform: translateY(0) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(0) rotate(-45deg);
    }
}

@media (min-width: 1101px) {
    .hamburger {
        display: none !important;
    }

    .nav-menu {
        display: flex !important;
        position: static !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

/* =========================================================
   DEFINITIVE PHONE HEADER FIX
   The hamburger was being pushed outside the viewport because
   the logo used nowrap + fixed width while the language switcher
   and hamburger also needed space. On phones the logo is allowed
   to shrink, while the hamburger always stays visible.
   ========================================================= */

@media (max-width: 1100px) {
    .header {
        height: 64px !important;
    }

    .header .container {
        width: 100% !important;
        max-width: none !important;
        height: 64px !important;
        min-height: 64px !important;
        padding: 0 10px !important;
        gap: 5px !important;
        overflow: visible !important;
    }

    .header .logo {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: none !important;
        width: auto !important;
        overflow: hidden !important;
        gap: 6px !important;
        font-size: .78rem !important;
        white-space: nowrap !important;
    }

    .header .logo > i {
        flex: 0 0 auto !important;
        font-size: 1.25em !important;
    }

    .header .logo-text {
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .header-actions {
        flex: 0 0 auto !important;
        margin-left: 0 !important;
        gap: 2px !important;
    }

    .lang-switcher {
        padding: 2px !important;
    }

    .lang-option {
        padding: 5px 7px !important;
        min-width: 32px !important;
        font-size: .7rem !important;
    }

    .hamburger {
        position: relative !important;
        display: flex !important;
        flex: 0 0 42px !important;
        width: 42px !important;
        height: 42px !important;
        margin: 0 !important;
        padding: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: visible !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 10001 !important;
    }

    /* Keep the menu directly below the shorter phone header. */
    .nav-menu {
        top: 64px !important;
        max-height: calc(100vh - 64px) !important;
    }
}

@media (max-width: 420px) {
    .header .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .header .logo {
        font-size: .72rem !important;
    }

    .header .logo > i {
        font-size: 1.2em !important;
    }

    .lang-option {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .hamburger {
        flex-basis: 40px !important;
        width: 40px !important;
    }
}

/* If the menu is open, keep it above all page content. */
@media (max-width: 1100px) {
    .header .nav-menu.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* =========================================================
   HOMEPAGE V3 - FULL WIDTH / DYNAMIC LAYOUT
   ========================================================= */
:root { --max-width: 1600px; }

/* Keep the desktop navigation desktop until true phone width.
   This prevents a normal desktop browser resize/tab switch from
   accidentally looking like a phone layout. */
@media (min-width: 768px) {
    .header { height: 78px; }
    .committee { margin-top: 78px; }
    .header .container { gap: clamp(18px, 2.2vw, 40px); }
    .logo { font-size: clamp(1.05rem, 1.25vw, 1.35rem); }
    .nav-menu { gap: clamp(18px, 2vw, 34px); margin-left: auto; }
    .nav-menu a { font-size: clamp(1rem, 1.25vw, 1.35rem); min-height: 48px; }
    .lang-option { font-size: 1rem; padding: 7px 12px; }
    .lang-switcher { padding: 4px; }
}

/* General readable body copy. Headings retain their own hierarchy. */
body { font-size: 18px; }
p, li, label, .btn, .stat-card .label, .season-card small,
.home-gallery-header .btn, .season-overview-card small, .season-memory-info span {
    font-size: clamp(1rem, 1.05vw, 1.2rem);
}

/* Larger tournament showcase and committee area on wide screens. */
@media (min-width: 1200px) {
    .committee-layout { grid-template-columns: minmax(0, 46%) minmax(0, 54%); gap: 20px; }
    .cricket-player-bg { height: clamp(500px, 36vw, 650px); }
    .committee-panel { padding: 14px 16px 16px; }
    .founding-grid { gap: 14px; }
    .founding-card { padding: 12px 10px 13px; }
    .founding-photo { width: min(100%, 145px); }
    .founding-card h3 { font-size: 1rem; }
    .founding-card p { font-size: .9rem; }
    .organizing-grid { gap: 11px; }
    .organizing-card { padding: 8px 6px; }
    .organizing-photo { width: 82px; height: 82px; margin-left: auto; margin-right: auto; }
    .organizing-card h3 { font-size: .86rem; }
    .organizing-card p { font-size: .78rem; }
}

/* ===================== TWO-ROW LATEST GALLERY ===================== */
.home-gallery-slider {
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    display: grid;
    gap: 16px;
    padding: 4px 0;
}
.home-gallery-row {
    display: flex;
    width: max-content;
    gap: 18px;
    animation: galleryRowLeft 42s linear infinite;
    will-change: transform;
}
.home-gallery-row-reverse { animation-name: galleryRowRight; animation-duration: 46s; }
.home-gallery-slider:hover .home-gallery-row { animation-play-state: paused; }
.home-gallery-item {
    width: clamp(280px, 23vw, 380px);
    height: clamp(190px, 15vw, 250px);
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 14px;
    background: #ddd;
    box-shadow: var(--shadow);
}
.home-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
@keyframes galleryRowLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes galleryRowRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ===================== PREVIOUS SEASONS V3 ===================== */
.seasons-title { margin-bottom: 25px; }
.season-overview {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}
.season-overview-card {
    min-width: 0;
    min-height: 215px;
    padding: 18px 12px;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(26,82,118,.10);
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}
.season-overview-card > span {
    display: block;
    width: 100%;
    margin: -18px -12px 7px;
    padding: 11px 6px;
    border-radius: 14px 14px 0 0;
    background: var(--primary);
    color: #fff;
    font: 800 1.15rem/1.2 var(--font-heading);
}
.season-overview-card strong { color: var(--primary); font: 800 1.05rem/1.2 var(--font-heading); }
.season-overview-card small { display:block; color:var(--text-light); font-weight:600; line-height:1.35; }
.season-overview-card.current { border-top: 4px solid var(--accent); background: linear-gradient(135deg,#fff,#fff8e8); }
.season-overview-card.current > span { background: linear-gradient(135deg,var(--primary-dark),var(--primary)); }
.season-memories-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 4px 0 14px;
}
.season-memories-heading span { color: var(--primary); font: 800 1.5rem/1.2 var(--font-heading); }
.season-memories-heading small { color: var(--text-light); font-weight:600; }
.season-memories-slider { position:relative; width:100%; }
.season-memories-viewport { overflow:hidden; padding: 4px 5px 14px; }
.season-memories-track {
    display:flex;
    gap:18px;
    transition:transform .45s ease;
    will-change:transform;
}
.season-memory-card {
    position:relative;
    flex:0 0 calc((100% - 54px) / 4);
    min-width:0;
    overflow:hidden;
    border-radius:16px;
    background:#fff;
    box-shadow:var(--shadow-lg);
    border:1px solid rgba(26,82,118,.1);
}
.season-memory-card.current { border-top:4px solid var(--accent); }
.season-memory-card .season-photo-slider { margin:0; aspect-ratio: 16 / 11; }
.season-memory-card .season-photo-track { border:0; border-radius:0; aspect-ratio:auto; }
.season-memory-card .season-photo-slide img { object-fit:contain; background:#eef2f4; }
.season-memory-card .season-photo-placeholder { background:linear-gradient(135deg,#e9f0f4,#f7f9fa); font-size:1rem; }
.season-memory-info { padding:13px 14px 15px; text-align:center; display:flex; flex-direction:column; gap:5px; }
.season-memory-info strong { color:var(--primary); font:800 1.05rem/1.25 var(--font-heading); }
.season-memory-info span { color:var(--text-light); line-height:1.35; }
.season-memory-nav {
    position:absolute; top:43%; transform:translateY(-50%); z-index:20;
    width:48px; height:48px; border:0; border-radius:50%;
    background:rgba(14,47,68,.92); color:#fff; cursor:pointer;
    box-shadow:0 5px 18px rgba(0,0,0,.22);
}
.season-memory-nav:hover { background:var(--primary); }
.season-memory-nav.prev { left:-12px; }
.season-memory-nav.next { right:-12px; }
.season-memory-card .season-photo-dots { bottom:7px; }

/* Responsive: tablet */
@media (max-width: 1199px) and (min-width: 768px) {
    .committee-layout { grid-template-columns: minmax(0, 46%) minmax(0, 54%); }
    .cricket-player-bg { height: 470px; }
    .season-overview { grid-template-columns: repeat(4, minmax(0,1fr)); }
    .season-memory-card { flex-basis: calc((100% - 18px) / 2); }
    .organizing-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

/* True phone breakpoint only. */
@media (max-width: 767px) {
    body { font-size: 16px; }
    .header { height:64px !important; }
    .committee { margin-top:64px; }
    .committee-layout { grid-template-columns:1fr; }
    .cricket-player-bg { height:300px; }
    .founding-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
    .founding-photo { width:72px; }
    .organizing-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
    .organizing-photo { width:55px; height:55px; }
    .committee-heading { font-size:.95rem; }
    .season-overview { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    .season-overview-card { min-height:190px; }
    .season-memory-card { flex-basis:100%; }
    .season-memory-nav.prev { left:3px; }
    .season-memory-nav.next { right:3px; }
    .season-memories-heading { flex-direction:column; gap:4px; }
    .home-gallery-row { gap:10px; }
    .home-gallery-item { width:240px; height:165px; }
}

/* Desktop/tablet navigation override: do not collapse to a phone menu merely
   because the viewport is between 768px and 1100px. */
@media (min-width: 768px) and (max-width: 1100px) {
    .header { height: 78px !important; }
    .committee { margin-top: 78px !important; }
    .header .container { height: 100% !important; min-height: 78px !important; padding: 0 20px !important; }
    .header .logo { flex: 0 1 auto !important; max-width: none !important; overflow: visible !important; text-overflow: clip !important; font-size: 1rem !important; }
    .header .logo-text { max-width: none !important; overflow: visible !important; text-overflow: clip !important; }
    .nav-menu {
        position: static !important;
        width: auto !important;
        max-height: none !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 16px !important;
        padding: 0 !important;
        margin: 0 0 0 auto !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    .nav-menu a {
        width: auto !important;
        min-height: 48px !important;
        padding: 5px 2px !important;
        border-bottom: 0 !important;
        font-size: 1rem !important;
    }
    .header-actions { margin-left: 4px !important; }
    .hamburger { display: none !important; }
}


/* =========================================================
   HOMEPAGE V4 - COMMITTEE HEIGHT + SEASON MEMORY GRID
   ========================================================= */
@media (min-width: 1200px) {
    /* Keep the committee panel exactly as tall as the left tournament slider. */
    .committee-layout { align-items: stretch; }
    .committee-panel {
        height: 100%;
        min-height: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }
    .founding-members { flex: 0 0 auto; }
    .organizing-members { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
    .organizing-grid {
        flex: 1 1 auto;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-auto-rows: 1fr;
        align-content: stretch;
        gap: 12px;
    }
    .organizing-card {
        min-height: 0;
        padding: 10px 6px 9px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .organizing-photo {
        width: clamp(92px, 7vw, 118px);
        height: clamp(92px, 7vw, 118px);
        margin: 0 auto 8px;
    }
    .organizing-card h3 { font-size: clamp(.78rem, .75vw, .98rem); }
    .organizing-card p { font-size: clamp(.7rem, .65vw, .86rem); }
}

/* Season Memories: four cards on the first row and three on the second.
   Each card still contains its own independently rotating photo slider. */
.season-memories-viewport {
    overflow: visible;
    padding: 4px 5px 14px;
}
.season-memories-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    transform: none !important;
}
.season-memory-card {
    width: auto;
    flex: none;
}
.season-memory-nav { display: none !important; }

@media (max-width: 1199px) and (min-width: 768px) {
    .committee-panel { height: 100%; box-sizing: border-box; }
    .organizing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .organizing-photo { width: 90px; height: 90px; }
    .season-memories-track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .committee-panel { height: auto; }
    .organizing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .organizing-photo { width: 72px; height: 72px; }
    .season-memories-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* The old full-page hero/registration blocks are intentionally removed from
   the homepage so the content starts directly with the useful sections. */


/* =========================================================
   FINAL TEAMS FOOTER + CHROME TAB-SWITCH SAFEGUARD
   ========================================================= */
/* Footer branding must never be clipped on narrow screens. */
.footer-about .logo,
.footer-about .logo span {
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    display: inline !important;
}
.footer-about .logo {
    line-height: 1.35 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}
.footer-about .logo i {
    display: inline-block !important;
}

/* Desktop/tab-switch safeguard: once a desktop/tablet viewport is
   available, do not let the phone-only header rules take over. */
@media (min-width: 1101px) {
    .header { height: 78px !important; }
    .header .container {
        height: 78px !important;
        min-height: 78px !important;
        max-width: var(--max-width) !important;
        overflow: visible !important;
    }
    .header .logo {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        max-width: none !important;
        width: auto !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
    }
    .header .logo-text {
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
    }
    .header-actions { flex: 0 0 auto !important; }
    .hamburger { display: none !important; }
    .nav-menu {
        position: static !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0 !important;
        margin-left: auto !important;
        gap: clamp(18px, 2vw, 34px) !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    .nav-menu a {
        width: auto !important;
        min-height: 48px !important;
        padding: 10px 0 !important;
        border-bottom: 0 !important;
        white-space: nowrap !important;
    }
}

/* ===== Social links in header ===== */
.header-social-links { display:flex; align-items:center; gap:4px; }
.header-social-links a { width:30px; height:30px; display:grid; place-items:center; border-radius:50%; color:var(--primary); background:#f2f6f8; font-size:.82rem; transition:.2s ease; }
.header-social-links a:hover { color:#fff; background:var(--primary); transform:translateY(-1px); }
.mobile-social-links { display:none; }

/* ===== Recent news ===== */
.home-news { margin-top:13px;padding:42px 0 18px; background:#f4f8fb; }
.home-news-box { border:1px solid #d7e6ed; border-left:5px solid var(--accent); border-radius:14px; background:#fff; box-shadow:var(--shadow); overflow:hidden; }
.home-news-head { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:12px 17px; background:linear-gradient(135deg,#0e2f44,#1a5276); color:#fff; }
.home-news-head h2 { margin:0; font:800 1.05rem/1.2 var(--font-heading); }
.home-news-list { display:flex !important; flex-direction:column !important; width:100%; gap:0; }
.home-news-item { display:block !important; width:100% !important; box-sizing:border-box; padding:15px 18px; border-bottom:1px solid #e5edf1; }
.home-news-item:last-child { border-bottom:0; }
.home-news-item h3 { margin:0 0 5px; color:var(--primary); font:800 .98rem/1.25 var(--font-heading); }
.home-news-item p { margin:0; color:var(--text-light); font-size:.88rem; line-height:1.5; }
.home-news-meta { margin-top:7px; color:#8998a0; font-size:.72rem; }
.home-news-empty { padding:18px; color:var(--text-light); }

/* ===== District committees ===== */
.district-committee-section { padding:45px 0; background:linear-gradient(180deg,#fff,#f4f8fb); }
.district-committee-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
.district-card { padding:16px; border:1px solid rgba(26,82,118,.1); border-radius:14px; background:#fff; box-shadow:var(--shadow); }
.district-card h3 { margin:0 0 9px; color:var(--primary); font:800 1rem/1.2 var(--font-heading); }
.district-card ul { margin:0; padding-left:17px; color:var(--text-dark); }
.district-card li { margin:3px 0; font-weight:600; font-size:.88rem; }
.district-card .empty { color:#8a979d; font-size:.8rem; font-weight:500; }

@media (max-width:1100px) {
  .header-social-links { display:none; }
  .mobile-social-links { display:flex; gap:8px; padding:10px 0 4px; }
  .mobile-social-links a { width:38px; height:38px; display:grid; place-items:center; border-radius:50%; background:#f2f6f8; color:var(--primary); }
  .home-news-list { flex-direction:column !important; }
  .home-news-item { border-right:0; border-bottom:1px solid #e5edf1; }
  .home-news-item:last-child { border-bottom:0; }
  .district-committee-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:600px) {
  .district-committee-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .district-card { padding:12px; }
  .district-card h3 { font-size:.9rem; }
  .district-card li { font-size:.78rem; }
}
@media (min-width:768px) {
  .founding-grid { grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
  .founding-card { padding:7px 4px 8px; }
  .founding-photo { width:100%; max-width:none; }
  .founding-card h3 { font-size:.62rem; }
  .founding-card p { font-size:.56rem; }
}
.social-links { display:flex; gap:9px; margin-top:10px; }
.social-links a { width:38px; height:38px; display:grid; place-items:center; border-radius:50%; background:var(--primary); color:#fff; transition:.2s ease; }
.social-links a:hover { background:var(--accent); transform:translateY(-2px); }
.social-links { display:flex; gap:9px; margin-top:10px; }
.social-links a { width:38px; height:38px; display:grid; place-items:center; border-radius:50%; background:var(--primary); color:#fff; transition:.2s ease; }
.social-links a:hover { background:var(--accent); transform:translateY(-2px); }

/* ===== Contact page: social box in the middle-right beside contact numbers ===== */
.contact-content { display:block; }
.contact-info { min-width:0; display:grid; grid-template-columns:minmax(0,1fr) minmax(320px,460px); column-gap:36px; align-items:center; }
.contact-info > h3 { grid-column:1 / -1; margin-bottom:22px; }
.contact-details-list { grid-column:1; }
.contact-details-list .contact-detail { margin-bottom:18px; }
.contact-info .social-follow-box { grid-column:2; grid-row:2; align-self:center; margin:0; padding:30px; min-height:220px; display:flex; align-items:center; border:1px solid rgba(26,82,118,.12); border-radius:18px; background:linear-gradient(135deg,#f7fbfd,#fff); box-shadow:0 8px 24px rgba(0,0,0,.07); }
.contact-info .social-follow-box > div:last-child { flex:1; }
.contact-info .social-follow-box .social-links { display:grid; grid-template-columns:repeat(4,minmax(58px,1fr)); gap:12px; margin-top:20px; }
.contact-info .social-follow-box .social-links a { width:100%; height:78px; border-radius:14px; font-size:2.15rem; box-shadow:0 5px 16px rgba(0,0,0,.12); }
.contact-info .social-follow-box .social-links a:hover { transform:translateY(-3px) scale(1.02); }
@media (max-width:900px){ .contact-info{grid-template-columns:1fr;} .contact-info > h3,.contact-details-list,.contact-info .social-follow-box{grid-column:1;grid-row:auto;} .contact-info .social-follow-box{margin-top:10px;} }
@media (max-width:560px){ .contact-info .social-follow-box{padding:22px}.contact-info .social-follow-box .social-links{grid-template-columns:repeat(4,1fr);gap:8px}.contact-info .social-follow-box .social-links a{height:58px;font-size:1.55rem} }

/* =========================================================
   RESPONSIVE COMMITTEE + DEVICE / PROJECTOR HARDENING
   ========================================================= */
.leadership-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    margin-bottom:12px;
}
.leadership-photo {
    width:min(100%,105px);
    aspect-ratio:1 / 1;
}
.leadership-card { padding:8px 6px 9px; }
.leadership-card h3 {
    margin:0;
    color:var(--primary);
    line-height:1.15;
    font-size:.70rem;
    font-weight:800;
}
.leadership-card p {
    margin:3px 0 0;
    color:var(--text-light);
    font-size:.60rem;
    font-weight:600;
}
.state-spokespersons { margin-bottom:12px; }

/* Keep the 20 Rajasthan members compact and readable on large screens. */
.organizing-grid {
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
    gap:9px !important;
}
.organizing-photo {
    width:100% !important;
    max-width:88px;
    aspect-ratio:1/1;
    height:auto !important;
}
.organizing-card h3 {
    font-size:.66rem !important;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
    min-height:2.25em;
}
.organizing-card p { font-size:.58rem !important; }

/* Use input/pointer capabilities as a second safeguard on desktop Chrome.
   A temporary viewport measurement during tab switching must not turn the
   desktop navigation into a phone menu. */
@media (hover:hover) and (pointer:fine) and (min-width:900px) {
    .header .hamburger { display:none !important; }
    .header .nav-menu {
        position:static !important;
        display:flex !important;
        flex-direction:row !important;
        align-items:center !important;
        width:auto !important;
        max-height:none !important;
        overflow:visible !important;
        padding:0 !important;
        margin-left:auto !important;
        box-shadow:none !important;
        background:transparent !important;
    }
    .header .nav-menu a {
        width:auto !important;
        min-height:48px !important;
        padding:10px 0 !important;
        border-bottom:0 !important;
        white-space:nowrap !important;
    }
}

@media (min-width:1400px) {
    .container { width:min(94vw,1500px); max-width:1500px; }
    .committee-layout { grid-template-columns:minmax(0,44%) minmax(0,56%); }
    .cricket-player-bg { min-height:620px; height:clamp(520px,42vw,760px); }
    .founding-grid { grid-template-columns:repeat(5,minmax(0,1fr)) !important; }
    .organizing-grid { grid-template-columns:repeat(5,minmax(0,1fr)) !important; }
    .organizing-photo { max-width:105px; }
    .committee-heading { font-size:1.2rem; }
}

@media (max-width:1199px) and (min-width:768px) {
    .committee-layout { grid-template-columns:minmax(0,42%) minmax(0,58%); }
    .cricket-player-bg { height:clamp(420px,48vw,620px); }
    .founding-grid { grid-template-columns:repeat(5,minmax(0,1fr)) !important; gap:7px; }
    .leadership-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .organizing-grid { grid-template-columns:repeat(4,minmax(0,1fr)) !important; }
    .organizing-photo { max-width:82px; }
}

@media (max-width:767px) {
    .committee { padding-top:24px; }
    .committee-layout { grid-template-columns:1fr; gap:14px; }
    .cricket-player-bg { height:clamp(280px,70vw,430px); }
    .committee-panel { padding:12px 9px 14px; height:auto !important; overflow:visible !important; }
    .founding-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:9px; }
    .founding-card { padding:8px 5px 9px; }
    .founding-photo { width:min(100%,125px); }
    .founding-card h3 { font-size:.70rem !important; white-space:normal; }
    .founding-card p { font-size:.62rem !important; }
    .leadership-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
    .leadership-photo { width:min(100%,82px); }
    .leadership-card { padding:7px 3px 8px; }
    .leadership-card h3 { font-size:.62rem; }
    .leadership-card p { font-size:.54rem; }
    .organizing-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:8px !important; }
    .organizing-card { padding:7px 4px 8px; }
    .organizing-photo { max-width:115px; }
    .organizing-card h3 { font-size:.65rem !important; min-height:0; }
    .organizing-card p { font-size:.58rem !important; }
    .home-news { padding-top:28px; }
    .home-news-item { padding:13px 14px; }
    .home-news-item h3 { font-size:.92rem; }
    .home-news-item p { font-size:.82rem; }
}

@media (max-width:380px) {
    .founding-grid { grid-template-columns:1fr 1fr !important; gap:6px; }
    .leadership-grid { grid-template-columns:1fr 1fr 1fr !important; gap:5px; }
    .organizing-grid { grid-template-columns:1fr 1fr !important; gap:6px !important; }
    .committee-heading { font-size:.88rem; letter-spacing:.03em; }
    .founding-card h3 { font-size:.60rem !important; }
    .founding-card p { font-size:.54rem !important; }
}

/* Prevent any wide content from creating horizontal scrolling on phones,
   tablets, or very large browser zoom levels. */
html, body { max-width:100%; overflow-x:hidden; }
img, video, iframe { max-width:100%; }
table { max-width:100%; }

.about-leadership-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
    margin-top:24px;
}
.about-leadership-grid .about-founder-card { min-width:0; }
.about-leadership-grid .about-founder-photo {
    aspect-ratio:1/1;
    overflow:hidden;
}
.about-leadership-grid img { width:100%; height:100%; object-fit:contain; }
@media (max-width:767px) {
    .about-founders { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
    .about-leadership-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
}
@media (max-width:420px) {
    .about-founders, .about-leadership-grid { grid-template-columns:1fr 1fr !important; gap:8px; }
    .about-founder-card h4 { font-size:.78rem; }
    .about-founder-role { font-size:.68rem; }
}

/* =========================================================
   HOMEPAGE COMMITTEE LAYOUT V2
   Slider on the left; all leadership groups on the right;
   ========================================================= */
.committee .committee-layout {
    display: grid;
    grid-template-columns: minmax(0, 48%) minmax(0, 52%);
    gap: 18px;
    align-items: stretch;
}

.committee .committee-panel {
    min-width: 0;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    box-sizing: border-box;
}

.committee .founding-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 9px;
}

.committee .leadership-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 9px;
}

.committee .organizing-members {
    display: block !important;
    width: 100%;
    min-width: 0;
    margin-top: 22px;
    padding: 18px 0 4px;
    border-top: 2px solid rgba(26,82,118,.10);
}

.committee .organizing-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    align-content: start !important;
    gap: 14px !important;
    width: 100%;
}

.committee .organizing-card {
    min-height: 0 !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    padding: 10px 7px 11px !important;
}

.committee .organizing-photo {
    width: min(100%, 120px) !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1400px) {
    .committee .committee-layout {
        grid-template-columns: minmax(0, 47%) minmax(0, 53%);
        gap: 22px;
    }
    .committee .organizing-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .committee .committee-layout {
        grid-template-columns: minmax(0, 45%) minmax(0, 55%);
        gap: 14px;
    }
    .committee .founding-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 6px;
    }
    .committee .founding-photo { width: min(100%, 72px) !important; }
    .committee .founding-card { padding: 7px 3px 8px !important; }
    .committee .founding-card h3 { font-size: .62rem !important; }
    .committee .founding-card p { font-size: .52rem !important; }
    .committee .organizing-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

@media (max-width: 767px) {
    .committee .committee-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .committee .committee-panel {
        width: 100%;
    }
    .committee .founding-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px;
    }
    .committee .leadership-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 7px;
    }
    .committee .organizing-members {
        margin-top: 18px;
        padding-top: 16px;
    }
    .committee .organizing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }
    .committee .organizing-photo {
        width: min(100%, 125px) !important;
    }
}

@media (max-width: 380px) {
    .committee .founding-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px;
    }
    .committee .leadership-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 5px;
    }
    .committee .organizing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px !important;
    }
}


/* ===== 2026-08-18 FINAL FIXES ===== */
@media (min-width: 981px) {
    .header .container { gap: 12px; }
    .header .logo {
        flex: 0 1 360px;
        width: 360px;
        min-width: 250px;
        overflow: hidden;
    }
    .header .logo-text { overflow: hidden; text-overflow: ellipsis; }
    .nav-menu {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-end;
        gap: clamp(7px, 1vw, 15px);
    }
    .nav-menu a {
        font-size: clamp(.72rem, .72rem + .12vw, .88rem);
        white-space: nowrap;
    }

    /* Founding + Vice Presidents + State Spokespersons = exactly slider height */
    .committee-panel {
        height: 520px;
        min-height: 520px;
        display: grid;
        grid-template-rows: repeat(3, minmax(0, 1fr));
        gap: 6px;
        padding: 8px 10px;
    }
    .committee-panel > section {
        min-height: 0;
        margin: 0 !important;
        display: flex;
        flex-direction: column;
    }
    .committee-panel .committee-heading {
        flex: 0 0 auto;
        margin-bottom: 5px;
        font-size: .92rem;
    }
    .committee-panel .founding-grid,
    .committee-panel .leadership-grid {
        flex: 1 1 auto;
        min-height: 0;
        align-items: stretch;
        margin-bottom: 0;
    }
    .committee-panel .committee-card {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .committee-panel .founding-photo,
    .committee-panel .leadership-photo {
        width: min(100%, 72px);
        height: auto;
        aspect-ratio: 1 / 1;
    }
    .committee-panel .founding-card,
    .committee-panel .leadership-card { padding: 5px 4px; }
    .committee-panel .state-spokespersons { margin-bottom: 0 !important; }
}
@media (max-width: 980px) {
    .committee-panel { height: auto; min-height: 0; }
}


/* =========================================================
   2026-08-18 COMMITTEE REDESIGN - CLEAN FINAL OVERRIDE
   ========================================================= */
@media (min-width: 981px) {
    .committee .committee-layout {
        grid-template-columns: minmax(0, 43%) minmax(0, 57%);
        gap: 18px;
        align-items: stretch;
    }

    /* Keep the right committee panel at least as tall as the slider,
       with enough room for Founding Members + Vice Presidents + Spokespersons. */
    .committee .cricket-player-bg {
        height: 620px;
        min-height: 620px;
    }

    .committee .committee-panel {
        height: 620px !important;
        min-height: 620px !important;
        max-height: none !important;
        padding: 12px 14px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        overflow: visible !important;
        box-sizing: border-box;
    }

    .committee .committee-panel > section {
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Founders get the most vertical space and larger portraits. */
    .committee .committee-panel > .founding-members {
        flex: 1 1 250px !important;
    }
    .committee .committee-panel > .vice-presidents,
    .committee .committee-panel > .state-spokespersons,
    .committee .committee-panel > .general-secretaries {
        flex: 0 0 90px !important;
    }

    .committee .committee-heading {
        flex: 0 0 auto !important;
        margin: 0 0 7px !important;
        font-size: .92rem !important;
        line-height: 1.15 !important;
    }

    /* 3 founders on first row + 2 centered on second row. */
    .committee .founding-grid {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        align-items: stretch !important;
        justify-items: stretch !important;
    }
    .committee .founding-grid .founding-card:nth-child(1) { grid-column: 1 / span 2; grid-row: 1; }
    .committee .founding-grid .founding-card:nth-child(2) { grid-column: 3 / span 2; grid-row: 1; }
    .committee .founding-grid .founding-card:nth-child(3) { grid-column: 5 / span 2; grid-row: 1; }
    .committee .founding-grid .founding-card:nth-child(4) { grid-column: 2 / span 2; grid-row: 2; }
    .committee .founding-grid .founding-card:nth-child(5) { grid-column: 4 / span 2; grid-row: 2; }

    .committee .founding-card {
        padding: 6px 7px 7px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        min-width: 0;
        min-height: 0;
        background: #fff !important;
    }
    .committee .founding-photo {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        margin: 0 0 5px !important;
        background: #fff !important;
        border-radius: 8px !important;
    }
    .committee .founding-photo img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        background: #fff !important;
    }

    .committee .committee-member-text {
        flex: 0 0 auto !important;
        min-width: 0;
        text-align: center;
        background: #fff;
    }
    .committee .founding-card .committee-member-text h3 {
        margin: 0 !important;
        font-size: clamp(.62rem, .55rem + .12vw, .78rem) !important;
        line-height: 1.12 !important;
        white-space: normal !important;
    }
    .committee .founding-card .committee-member-text p {
        margin: 2px 0 0 !important;
        font-size: .60rem !important;
        line-height: 1.1 !important;
    }

    /* VP + Rajasthan spokesperson/member cards: 20% shorter than before, while preserving the same photo/text composition as founders. */
    .committee .leadership-grid {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
    .committee .leadership-card {
        min-height: 0 !important;
        padding: 5px 7px 6px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        background: #fff !important;
    }
    /* Match the founding-member photo/name/post composition: photo gets the large area,
       while name + designation keep a dedicated readable strip at the bottom. */
    .committee .leadership-photo {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
        margin: 0 0 4px !important;
        background: #fff !important;
        border-radius: 7px !important;
    }
    .committee .leadership-card .committee-member-text {
        flex: 0 0 24px !important;
        min-height: 24px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    .committee .leadership-photo img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        background: #fff !important;
    }
    .committee .leadership-card .committee-member-text h3 {
        margin: 0 !important;
        font-size: .59rem !important;
        line-height: 1.1 !important;
        white-space: normal !important;
    }
    .committee .leadership-card .committee-member-text p {
        margin: 2px 0 0 !important;
        font-size: .52rem !important;
        line-height: 1.05 !important;
    }
}

@media (max-width: 980px) {
    .committee .committee-panel {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
    }
    .committee .committee-panel > section {
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 14px !important;
    }
    .committee .founding-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: none !important;
    }
    .committee .founding-grid .founding-card:nth-child(n) {
        grid-column: auto !important;
        grid-row: auto !important;
    }
    .committee .founding-photo,
    .committee .leadership-photo {
        width: 100% !important;
        max-width: none !important;
        aspect-ratio: 1 / 1 !important;
        background: #fff !important;
    }
}


/* About page: start story text at the same top edge as the image. */
.about-content { align-items: start !important; }
.about-text { align-self: start !important; }
.about-image { align-self: start !important; }

/* =========================================================
   2026-08-18 COMMITTEE PHOTO FIT FIX V3
   Fill the photo areas cleanly instead of leaving unused white
   space caused by object-fit: contain. Portraits remain centered
   while landscape images are cropped naturally to the card area.
   ========================================================= */
@media (min-width: 981px) {
    .committee .founding-photo,
    .committee .leadership-photo {
        overflow: hidden !important;
        position: relative !important;
        background: #fff !important;
    }

    .committee .founding-photo img,
    .committee .leadership-photo img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: cover !important;
        object-position: center center !important;
        background: #fff !important;
    }

    /* Give the five founders a slightly larger visual portrait area. */
    .committee .founding-photo {
        min-height: 0 !important;
        border-radius: 8px !important;
    }

    /* Keep the smaller leadership portraits visually consistent. */
    .committee .leadership-photo {
        min-height: 0 !important;
        border-radius: 7px !important;
    }
}

@media (max-width: 980px) {
    .committee .founding-photo,
    .committee .leadership-photo {
        overflow: hidden !important;
        position: relative !important;
        background: #fff !important;
    }

    .committee .founding-photo img,
    .committee .leadership-photo img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: cover !important;
        object-position: center center !important;
        background: #fff !important;
    }
}

/* =========================================================
   2026-08-18 COMMITTEE PHOTO DIMENSIONS V4
   - Founders: 3 on first row, 2 centered on second row.
   - Founder photo area is always a true square.
   - VP + State Spokesperson photo boxes match the
     Rajasthan member photo-box size (120px x 120px).
   ========================================================= */
@media (min-width: 981px) {
    .committee .founding-grid {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 12px !important;
        align-items: start !important;
    }

    .committee .founding-grid .founding-card {
        grid-column: span 2 !important;
    }

    /* 3 cards on row 1; two cards centered on row 2. */
    .committee .founding-grid .founding-card:nth-child(4) {
        grid-column: 2 / span 2 !important;
    }
    .committee .founding-grid .founding-card:nth-child(5) {
        grid-column: 4 / span 2 !important;
    }

    .committee .founding-photo {
        width: 100% !important;
        max-width: none !important;
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
    }

    /* Same photo-box dimensions used by Rajasthan members. */
    .committee .leadership-photo {
        width: 120px !important;
        height: 120px !important;
        max-width: 120px !important;
        aspect-ratio: 1 / 1 !important;
        flex: 0 0 120px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 980px) {
    .committee .founding-photo {
        width: 100% !important;
        max-width: none !important;
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
    }

    .committee .leadership-photo {
        width: 120px !important;
        height: 120px !important;
        max-width: 120px !important;
        aspect-ratio: 1 / 1 !important;
        flex: 0 0 120px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* =========================================================
   2026-08-18 COMMITTEE LAYOUT V6 - EXTRA LARGE DESKTOP
   Ensure the complete right-side committee panel is tall enough
   for Founding Members + Vice Presidents + State Spokespersons.
   ========================================================= */
@media (min-width: 981px) {
    .committee .cricket-player-bg {
        height: 820px !important;
        min-height: 820px !important;
    }

    .committee .committee-panel {
        height: 820px !important;
        min-height: 820px !important;
        max-height: none !important;
        overflow: visible !important;
        box-sizing: border-box !important;
        padding: 14px 16px 16px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
    }

    .committee .committee-panel > section {
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Give Founding Members the largest share of the available height. */
    .committee .committee-panel > .founding-members {
        flex: 1 1 470px !important;
        min-height: 0 !important;
    }

    .committee .committee-panel > .vice-presidents,
    .committee .committee-panel > .state-spokespersons {
        flex: 0 0 140px !important;
        min-height: 0 !important;
    }

    .committee .committee-heading {
        flex: 0 0 auto !important;
        margin: 0 0 9px !important;
        font-size: 1rem !important;
        line-height: 1.15 !important;
    }

    /* Founding cards get enough room to show their complete photo + text. */
    .committee .founding-grid {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        align-items: stretch !important;
    }

    .committee .founding-grid .founding-card:nth-child(1) { grid-column: 1 / span 2 !important; grid-row: 1 !important; }
    .committee .founding-grid .founding-card:nth-child(2) { grid-column: 3 / span 2 !important; grid-row: 1 !important; }
    .committee .founding-grid .founding-card:nth-child(3) { grid-column: 5 / span 2 !important; grid-row: 1 !important; }
    .committee .founding-grid .founding-card:nth-child(4) { grid-column: 2 / span 2 !important; grid-row: 2 !important; }
    .committee .founding-grid .founding-card:nth-child(5) { grid-column: 4 / span 2 !important; grid-row: 2 !important; }

    .committee .founding-card {
        min-height: 0 !important;
        height: 100% !important;
        padding: 8px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .committee .founding-photo {
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        flex: 0 0 auto !important;
        min-height: 0 !important;
        margin: 0 0 7px !important;
    }

    .committee .founding-card .committee-member-text {
        flex: 0 0 auto !important;
    }

    .committee .founding-card .committee-member-text h3 {
        font-size: clamp(.70rem, .62rem + .14vw, .88rem) !important;
        line-height: 1.15 !important;
    }

    .committee .founding-card .committee-member-text p {
        font-size: .66rem !important;
        line-height: 1.12 !important;
        margin-top: 3px !important;
    }

    /* VP + spokesperson cards get a comfortable fixed photo area. */
    .committee .leadership-grid {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .committee .leadership-card {
        min-height: 0 !important;
        height: 100% !important;
        padding: 7px 9px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .committee .leadership-photo {
        width: 120px !important;
        height: 120px !important;
        max-width: 120px !important;
        flex: 0 0 120px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 5px !important;
    }
}

/* =========================================================
   2026-08-18 COMMITTEE LAYOUT V7 - FULL CONTENT VISIBILITY
   Right committee panel is intentionally taller than the slider.
   This prevents names/posts from being compressed or clipped.
   ========================================================= */
@media (min-width: 981px) {
    .committee .committee-layout {
        grid-template-columns: minmax(0, 40%) minmax(0, 60%) !important;
        gap: 18px !important;
        align-items: start !important;
    }

    /* Slider stays at 820px; committee panel gets enough height for
       all three sections and their text. */
    .committee .cricket-player-bg {
        height: 820px !important;
        min-height: 820px !important;
    }

    .committee .committee-panel {
        height: 1060px !important;
        min-height: 1060px !important;
        max-height: none !important;
        overflow: visible !important;
        box-sizing: border-box !important;
        padding: 16px 18px 18px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    .committee .committee-panel > section {
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: visible !important;
    }

    /* 1060px panel: founders ~650px, each lower section ~190px. */
    .committee .committee-panel > .founding-members {
        flex: 0 0 250px !important;
        height: 250px !important;
    }

    .committee .committee-panel > .vice-presidents,
    .committee .committee-panel > .state-spokespersons {
        flex: 0 0 190px !important;
        height: 190px !important;
    }

    .committee .committee-heading {
        flex: 0 0 auto !important;
        margin: 0 0 10px !important;
        font-size: 1rem !important;
        line-height: 1.2 !important;
        min-height: 20px !important;
    }

    /* Founding Members: photos + names + posts all have dedicated space. */
    .committee .founding-grid {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
        align-items: stretch !important;
    }

    .committee .founding-grid .founding-card:nth-child(1) { grid-column: 1 / span 2 !important; grid-row: 1 !important; }
    .committee .founding-grid .founding-card:nth-child(2) { grid-column: 3 / span 2 !important; grid-row: 1 !important; }
    .committee .founding-grid .founding-card:nth-child(3) { grid-column: 5 / span 2 !important; grid-row: 1 !important; }
    .committee .founding-grid .founding-card:nth-child(4) { grid-column: 2 / span 2 !important; grid-row: 2 !important; }
    .committee .founding-grid .founding-card:nth-child(5) { grid-column: 4 / span 2 !important; grid-row: 2 !important; }

    .committee .founding-card {
        height: 100% !important;
        min-height: 0 !important;
        padding: 10px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    .committee .founding-photo {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        flex: 0 0 auto !important;
        min-height: 0 !important;
        margin: 0 0 9px !important;
        overflow: hidden !important;
    }

    .committee .founding-photo img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .committee .founding-card .committee-member-text {
        flex: 0 0 auto !important;
        min-height: 46px !important;
        overflow: visible !important;
        text-align: center !important;
    }

    .committee .founding-card .committee-member-text h3 {
        display: block !important;
        margin: 0 !important;
        font-size: clamp(.72rem, .62rem + .18vw, .94rem) !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    .committee .founding-card .committee-member-text p {
        display: block !important;
        margin: 4px 0 0 !important;
        font-size: .70rem !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        overflow: visible !important;
    }

    /* VP + spokesperson: 120px photo + enough room underneath for both
       name and post. Nothing is vertically compressed. */
    .committee .leadership-grid {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px !important;
        align-items: stretch !important;
    }

    .committee .leadership-card {
        height: 100% !important;
        min-height: 0 !important;
        padding: 8px 10px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    .committee .leadership-photo {
        width: 120px !important;
        height: 120px !important;
        max-width: 120px !important;
        max-height: 120px !important;
        flex: 0 0 120px !important;
        margin: 0 auto 7px !important;
        overflow: hidden !important;
    }

    .committee .leadership-photo img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .committee .leadership-card .committee-member-text {
        width: 100% !important;
        flex: 0 0 auto !important;
        min-height: 42px !important;
        text-align: center !important;
        overflow: visible !important;
    }

    .committee .leadership-card .committee-member-text h3 {
        display: block !important;
        margin: 0 !important;
        font-size: .72rem !important;
        line-height: 1.18 !important;
        white-space: normal !important;
        overflow: visible !important;
    }

    .committee .leadership-card .committee-member-text p {
        display: block !important;
        margin: 4px 0 0 !important;
        font-size: .66rem !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        overflow: visible !important;
    }
}

/* V8: Match VP and State Spokesperson card proportions to Founding Member cards. */
@media (min-width: 981px) {
    .committee .committee-panel {
        height: 250px !important;
        min-height: 250px !important;
    }

    .committee .committee-panel > .founding-members {
        flex: 0 0 250px !important;
        height: 250px !important;
    }

    .committee .committee-panel > .vice-presidents,
    .committee .committee-panel > .state-spokespersons {
        flex: 0 0 265px !important;
        height: 265px !important;
    }

    /* Same visual photo/text ratio as founding cards: roughly 75% / 25%. */
    .committee .leadership-grid {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px !important;
        align-items: stretch !important;
    }

    .committee .leadership-card {
        height: 100% !important;
        min-height: 0 !important;
        padding: 10px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .committee .leadership-photo {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        max-width: none !important;
        max-height: none !important;
        flex: 0 0 auto !important;
        margin: 0 0 9px !important;
        overflow: hidden !important;
    }

    .committee .leadership-photo img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .committee .leadership-card .committee-member-text {
        width: 100% !important;
        min-height: 46px !important;
        flex: 0 0 auto !important;
        text-align: center !important;
        overflow: visible !important;
    }

    .committee .leadership-card .committee-member-text h3 {
        display: block !important;
        margin: 0 !important;
        font-size: clamp(.72rem, .62rem + .18vw, .94rem) !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    .committee .leadership-card .committee-member-text p {
        display: block !important;
        margin: 4px 0 0 !important;
        font-size: .70rem !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        overflow: visible !important;
    }
}

/* =========================================================
   V10 - COMMITTEE CARD ALIGNMENT
   All committee cards use the same photo -> name -> post rhythm.
   VP / spokesperson sections are 20% smaller than V8 (265px -> 212px).
   Rajasthan member cards use the same proportions.
   ========================================================= */
@media (min-width: 981px) {
    .committee .committee-panel > .vice-presidents,
    .committee .committee-panel > .state-spokespersons {
        flex: 0 0 212px !important;
        height: 212px !important;
        min-height: 212px !important;
    }

    .committee .vice-presidents .leadership-grid,
    .committee .state-spokespersons .leadership-grid {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px !important;
        align-items: stretch !important;
    }

    .committee .vice-presidents .leadership-card,
    .committee .state-spokespersons .leadership-card {
        height: 100% !important;
        min-height: 0 !important;
        padding: 7px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    /* Keep the same visual ratio as the founding cards without forcing
       the image to consume the entire card. */
    .committee .vice-presidents .leadership-photo,
    .committee .state-spokespersons .leadership-photo {
        width: min(100%, 125px) !important;
        height: 125px !important;
        aspect-ratio: 1 / 1 !important;
        flex: 0 0 125px !important;
        margin: 0 auto 6px !important;
        overflow: hidden !important;
    }

    .committee .vice-presidents .committee-member-text,
    .committee .state-spokespersons .committee-member-text {
        width: 100% !important;
        min-height: 42px !important;
        flex: 0 0 42px !important;
        text-align: center !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    .committee .vice-presidents .committee-member-text h3,
    .committee .state-spokespersons .committee-member-text h3 {
        margin: 0 !important;
        font-size: .72rem !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        overflow: visible !important;
    }

    .committee .vice-presidents .committee-member-text p,
    .committee .state-spokespersons .committee-member-text p {
        margin: 3px 0 0 !important;
        font-size: .64rem !important;
        line-height: 1.12 !important;
        white-space: normal !important;
        overflow: visible !important;
    }

    /* Rajasthan members: same photo/name/post ratio as the founders. */
    .committee .organizing-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 12px !important;
        align-items: stretch !important;
    }

    .committee .organizing-card {
        min-height: 190px !important;
        height: 190px !important;
        padding: 7px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .committee .organizing-photo {
        width: min(100%, 135px) !important;
        height: 135px !important;
        aspect-ratio: 1 / 1 !important;
        flex: 0 0 135px !important;
        margin: 0 auto 6px !important;
        overflow: hidden !important;
    }

    .committee .organizing-photo img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .committee .organizing-card .committee-member-text {
        width: 100% !important;
        min-height: 42px !important;
        flex: 0 0 42px !important;
        text-align: center !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    .committee .organizing-card .committee-member-text h3 {
        margin: 0 !important;
        font-size: .70rem !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    .committee .organizing-card .committee-member-text p {
        margin: 3px 0 0 !important;
        font-size: .64rem !important;
        line-height: 1.12 !important;
        white-space: normal !important;
        overflow: visible !important;
    }
}


/* Legacy district-card styling retained for compatibility with older data components. */
.rajasthan-district-grid { margin-top: 14px; }
.rajasthan-district-grid .district-card { height: 100%; }
.rajasthan-district-grid .district-card h3 { margin-bottom: 8px; }
.rajasthan-district-grid .district-card ul { margin: 0; padding-left: 18px; }
.rajasthan-district-grid .district-card li { margin: 4px 0; }

/* =========================================================
   LEADERSHIP CARDS — MATCH FOUNDING MEMBERS
   ========================================================= */
.leadership-card {
    padding: 9px 7px 10px;
}
.leadership-photo {
    width: min(100%, 105px);
    aspect-ratio: 1 / 1;
    margin: 0 auto 7px;
    overflow: hidden;
    background: #eef2f5;
    border-radius: 9px;
}
.leadership-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}
.leadership-card h3 {
    margin: 0;
    color: var(--primary);
    line-height: 1.15;
    font-size: .76rem;
    font-weight: 800;
}
.leadership-card p {
    margin: 3px 0 0;
    color: var(--text-light);
    font-size: .68rem;
    line-height: 1.15;
    font-weight: 600;
}
.leadership-admin-row { display:flex; gap:18px; align-items:center; margin-bottom:12px; }
.leadership-admin-row img { width:90px; height:90px; object-fit:contain; border-radius:9px; background:#eef2f5; }

@media (max-width:767px) {
    .leadership-photo { width:min(100%,125px); }
    .leadership-card { padding:8px 5px 9px; }
    .leadership-card h3 { font-size:.70rem; }
    .leadership-card p { font-size:.62rem; }
}
@media (max-width:380px) {
    .leadership-card { padding:8px 5px 9px; }
    .leadership-card h3 { font-size:.60rem; }
    .leadership-card p { font-size:.54rem; }
}


/* =========================================================
   FINAL TOURNAMENT COMMITTEE / LEADERSHIP FIXES
   2026-08-20
   - Founding photos are never cropped.
   - Leadership is one combined row/grid with no section headings.
   - Leadership photo boxes are ~40% smaller than founder photo boxes.
   ========================================================= */
.committee .founding-photo img,
.committee .leadership-photo img {
    object-fit: contain !important;
    object-position: center center !important;
    background: #fff !important;
}
.committee .founding-photo {
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    background: #fff !important;
}
.committee .leadership-members { margin-top: 12px; }
.committee .leadership-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 0 !important;
    align-items: start !important;
}
.committee .leadership-card {
    padding: 7px 6px 8px !important;
    height: auto !important;
    min-height: 0 !important;
    align-items: center !important;
}
.committee .leadership-photo {
    width: 60% !important;
    max-width: 90px !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    flex: 0 0 auto !important;
    margin: 0 auto 6px !important;
    overflow: hidden !important;
    background: #fff !important;
}
.committee .leadership-card .committee-member-text {
    width: 100% !important;
    min-height: 0 !important;
    text-align: center !important;
}
.committee .leadership-card .committee-member-text h3 {
    font-size: .67rem !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    white-space: normal !important;
}
.committee .leadership-card .committee-member-text p {
    font-size: .58rem !important;
    line-height: 1.15 !important;
    margin: 3px 0 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
}
@media (min-width: 1400px) {
    .committee .leadership-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 12px !important; }
    .committee .leadership-photo { max-width: 92px !important; }
}
@media (max-width: 767px) {
    .committee .leadership-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 7px !important; }
    .committee .leadership-photo { width: 60% !important; max-width: 72px !important; }
    .committee .leadership-card { padding: 6px 3px 7px !important; }
    .committee .leadership-card .committee-member-text h3 { font-size: .59rem !important; }
    .committee .leadership-card .committee-member-text p { font-size: .52rem !important; }
}
@media (max-width: 380px) {
    .committee .leadership-grid { gap: 5px !important; }
    .committee .leadership-photo { max-width: 62px !important; }
    .committee .leadership-card .committee-member-text h3 { font-size: .55rem !important; }
    .committee .leadership-card .committee-member-text p { font-size: .49rem !important; }
}

/* 2026-08-20 LEADERSHIP + FOUNDING PHOTO FIT FINAL
   Leadership cards use the same full photo treatment as founding members.
   Keep the complete uploaded image visible; never crop it. */
.committee .founding-photo img,
.committee .leadership-photo img {
    width:100% !important;
    height:100% !important;
    max-width:none !important;
    object-fit:contain !important;
    object-position:center center !important;
    background:#fff !important;
}
@media (min-width:981px) {
    .committee .leadership-photo {
        width:100% !important;
        max-width:none !important;
        height:auto !important;
        aspect-ratio:1 / 1 !important;
        flex:0 0 auto !important;
        margin:0 0 4px !important;
    }
}

/* 2026-08-20 FINAL COMMITTEE TYPOGRAPHY FIX
   Keep leadership text visible at all times; no hover/animation is required.
   Leadership photo boxes use the same 1:1 ratio as founding-member boxes. */
.committee .leadership-card,
.committee .leadership-card:hover {
    transform: none !important;
}
.committee .leadership-card .committee-member-text,
.committee .leadership-card .committee-member-text h3,
.committee .leadership-card .committee-member-text p {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    color: inherit;
}
.committee .leadership-card .committee-member-text h3,
.committee .founding-card .committee-member-text h3 {
    font-size: clamp(.82rem, .72rem + .18vw, 1.05rem) !important;
    line-height: 1.18 !important;
    font-weight: 800 !important;
}
.committee .leadership-card .committee-member-text p,
.committee .founding-card .committee-member-text p {
    font-size: clamp(.72rem, .64rem + .14vw, .88rem) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}
.committee .leadership-photo {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
}
.committee .leadership-photo img,
.committee .founding-photo img {
    object-fit: contain !important;
    object-position: center !important;
}
.rajasthan-district-grid .district-card li {
    font-size: 1.02rem !important;
    line-height: 1.45 !important;
    font-weight: 700 !important;
}
.rajasthan-district-grid .district-card h3 {
    font-size: 1.12rem !important;
    font-weight: 800 !important;
}
@media (max-width: 767px) {
    .committee .leadership-card .committee-member-text h3,
    .committee .founding-card .committee-member-text h3 { font-size: .78rem !important; }
    .committee .leadership-card .committee-member-text p,
    .committee .founding-card .committee-member-text p { font-size: .68rem !important; }
    .rajasthan-district-grid .district-card li { font-size: .92rem !important; }
}



/* Leadership: always reserve space for both name and post, even if the
   database contains a blank/legacy post value. */
.committee .leadership-card .committee-member-text {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-height: 48px !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.committee .leadership-card .committee-member-text h3,
.committee .leadership-card .committee-member-text p {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    white-space: normal !important;
}

/* Never show slider-folder photos in the homepage gallery preview. */
.home-gallery-preview .home-gallery-row:empty {
    min-height: 0 !important;
}


/* =========================================================
   V13 RESPONSIVE HARDENING
   Keep the tournament name independent from the navigation so browser zoom
   can never make the Home button overlap the logo/name.
   ========================================================= */
@media (min-width: 1200px) {
    .header .container {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) auto !important;
        align-items: center !important;
        column-gap: clamp(16px, 2vw, 30px) !important;
        overflow: visible !important;
    }
    .header .logo {
        grid-column: 1 !important;
        min-width: max-content !important;
        flex: none !important;
        margin: 0 !important;
    }
    .header .nav-menu {
        grid-column: 2 !important;
        justify-content: flex-end !important;
        margin: 0 !important;
        min-width: 0 !important;
        gap: clamp(12px, 1.35vw, 22px) !important;
    }
    .header .header-actions {
        grid-column: 3 !important;
        margin: 0 !important;
    }
}

/* At tablet widths and below, use the hamburger rather than allowing a
   long desktop navigation to collide with the tournament name. */
@media (max-width: 1199px) {
    .header { height: 70px !important; }
    .committee { margin-top: 70px !important; }
    .header .container {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 0 16px !important;
        overflow: visible !important;
    }
    .header .logo {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 110px) !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        margin: 0 !important;
    }
    .header .logo-text {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    .header .nav-menu {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        display: none !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 8px 14px 14px !important;
        background: #fff !important;
        box-shadow: 0 12px 24px rgba(0,0,0,.14) !important;
        max-height: calc(100vh - 70px) !important;
        overflow-y: auto !important;
        z-index: 1001 !important;
    }
    .header .nav-menu.active { display: flex !important; }
    .header .nav-menu a {
        width: 100% !important;
        min-height: 48px !important;
        justify-content: flex-start !important;
        padding: 12px 10px !important;
        white-space: normal !important;
        border-bottom: 1px solid var(--border) !important;
    }
    .header .header-actions {
        margin-left: auto !important;
        flex: 0 0 auto !important;
    }
    .header .header-social-links { display: none !important; }
    .header .hamburger { display: flex !important; flex: 0 0 auto !important; }
}

/* Leadership cards: reserve enough vertical room for both the person's name
   and post at 100% zoom. Do not depend on browser zoom to reveal the post. */
.committee-panel {
    overflow: visible !important;
    min-height: 560px !important;
}
.cricket-player-bg { height: 560px !important; }
.leadership-grid { align-items: stretch !important; }
.leadership-card {
    min-height: 132px !important;
    padding: 7px 5px 9px !important;
    overflow: visible !important;
}
.leadership-photo {
    width: 78px !important;
    height: 78px !important;
    aspect-ratio: 1 / 1 !important;
    margin-bottom: 6px !important;
}
.leadership-card h3 {
    font-size: clamp(.68rem, .72vw, .82rem) !important;
    line-height: 1.18 !important;
    min-height: 2.36em !important;
    overflow-wrap: anywhere !important;
}
.leadership-card p {
    display: block !important;
    min-height: 1.25em !important;
    margin-top: 4px !important;
    font-size: clamp(.62rem, .65vw, .76rem) !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

/* Keep the top showcase usable on every screen size. */
@media (max-width: 767px) {
    .committee { padding: 12px 0 18px !important; }
    .committee-layout { grid-template-columns: 1fr !important; gap: 12px !important; }
    .cricket-player-bg { height: min(78vw, 390px) !important; min-height: 260px !important; }
    .committee-panel { min-height: 0 !important; padding: 10px !important; }
    .founding-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 8px !important; }
    .leadership-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 8px !important; }
    .leadership-photo { width: 68px !important; height: 68px !important; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 10px !important; }
}
@media (max-width: 420px) {
    .header .logo { font-size: .82rem !important; max-width: calc(100% - 96px) !important; }
    .header .logo > i { font-size: 1em !important; }
    .header .container { padding: 0 10px !important; }
    .founding-grid, .leadership-grid { grid-template-columns: 1fr !important; }
    .stats-grid { grid-template-columns: 1fr !important; }
}

/* V14 leadership visibility: always reserve room for name + post at 100% zoom. */
@media (min-width:981px){
  .committee .leadership-card{min-height:0!important;overflow:visible!important;}
  .committee .leadership-card .leadership-photo{flex:0 0 62px!important;height:62px!important;min-height:62px!important;aspect-ratio:1/1!important;}
  .committee .leadership-card .committee-member-text{flex:1 1 38px!important;min-height:38px!important;height:auto!important;overflow:visible!important;padding:2px 1px 0!important;}
  .committee .leadership-card .committee-member-text h3{font-size:.62rem!important;line-height:1.12!important;max-height:2.25em!important;overflow:visible!important;white-space:normal!important;}
  .committee .leadership-card .committee-member-text p{font-size:.58rem!important;line-height:1.12!important;max-height:2.3em!important;overflow:visible!important;white-space:normal!important;}
}
@media (max-width:980px){
  .committee .leadership-card .committee-member-text{min-height:38px!important;height:auto!important;overflow:visible!important;}
  .committee .leadership-card .committee-member-text p{font-size:.62rem!important;line-height:1.12!important;white-space:normal!important;}
}

/* V15 - leadership cards: never let the next grid row cover the post. */
@media (min-width:981px){
  .committee .leadership-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    grid-auto-rows:260px !important;
    grid-auto-flow:row !important;
    column-gap:12px !important;
    row-gap:18px !important;
    align-items:stretch !important;
    overflow:visible !important;
  }
  .committee .leadership-card{
    height:260px !important;
    min-height:260px !important;
    max-height:260px !important;
    padding:9px 7px 10px !important;
    box-sizing:border-box !important;
    overflow:visible !important;
    position:relative !important;
    z-index:1 !important;
  }
  .committee .leadership-photo{
    width:185px !important;
    height:185px !important;
    max-width:185px !important;
    max-height:185px !important;
    flex:0 0 185px !important;
    margin:0 auto 7px !important;
  }
  .committee .leadership-card .committee-member-text{
    width:100% !important;
    min-height:49px !important;
    height:49px !important;
    flex:0 0 49px !important;
    overflow:visible !important;
    text-align:center !important;
    background:#fff !important;
    position:relative !important;
    z-index:2 !important;
  }
  .committee .leadership-card .committee-member-text h3{
    margin:0 !important;
    min-height:18px !important;
    max-height:none !important;
    font-size:.72rem !important;
    line-height:1.18 !important;
    white-space:normal !important;
    overflow:visible !important;
  }
  .committee .leadership-card .committee-member-text p{
    display:block !important;
    margin:4px 0 0 !important;
    min-height:15px !important;
    max-height:none !important;
    font-size:.66rem !important;
    line-height:1.18 !important;
    white-space:normal !important;
    overflow:visible !important;
  }
}
@media (max-width:980px){
  .committee .leadership-grid{row-gap:12px !important;align-items:stretch !important;}
  .committee .leadership-card{min-height:170px !important;height:auto !important;overflow:visible !important;}
  .committee .leadership-card .committee-member-text{min-height:44px !important;height:auto !important;overflow:visible !important;}
}

/* V18 - Homepage leadership cards: balanced photo + name + post layout.
   The parent committee panel is intentionally taller so the six leadership
   cards never overlap or clip their text at normal browser zoom. */
@media (min-width: 981px) {
  .committee .committee-panel {
    min-height: 500px !important;
    height: 500px !important;
    max-height: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .committee .leadership-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-rows: 210px !important;
    column-gap: 12px !important;
    row-gap: 14px !important;
    align-items: stretch !important;
    overflow: visible !important;
  }

  .committee .leadership-card {
    width: 100% !important;
    height: 210px !important;
    min-height: 210px !important;
    max-height: 210px !important;
    padding: 8px 6px 9px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .committee .leadership-photo {
    width: 145px !important;
    height: 145px !important;
    max-width: 145px !important;
    max-height: 145px !important;
    min-width: 145px !important;
    min-height: 145px !important;
    flex: 0 0 145px !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 auto 6px !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  .committee .leadership-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
  }

  .committee .leadership-card .committee-member-text {
    width: 100% !important;
    min-height: 49px !important;
    height: auto !important;
    flex: 0 0 auto !important;
    text-align: center !important;
    overflow: visible !important;
    background: #fff !important;
    position: relative !important;
    z-index: 3 !important;
  }

  .committee .leadership-card .committee-member-text h3 {
    margin: 0 !important;
    min-height: 18px !important;
    font-size: .78rem !important;
    line-height: 1.18 !important;
    font-weight: 800 !important;
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: anywhere !important;
  }

  .committee .leadership-card .committee-member-text p {
    display: block !important;
    margin: 4px 0 0 !important;
    min-height: 16px !important;
    font-size: .68rem !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: anywhere !important;
  }
}

@media (max-width: 980px) and (min-width: 768px) {
  .committee .committee-panel {
    min-height: 760px !important;
    height: auto !important;
    overflow: visible !important;
  }
  .committee .leadership-card {
    min-height: 190px !important;
    height: 190px !important;
  }
  .committee .leadership-photo {
    width: 125px !important;
    height: 125px !important;
    min-width: 125px !important;
    min-height: 125px !important;
  }
}

@media (max-width: 767px) {
  .committee .committee-panel {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  .committee .leadership-grid {
    row-gap: 10px !important;
    align-items: stretch !important;
  }
  .committee .leadership-card {
    height: auto !important;
    min-height: 165px !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .committee .leadership-photo {
    width: min(100%, 110px) !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
  }
  .committee .leadership-card .committee-member-text h3 {
    font-size: .70rem !important;
  }
  .committee .leadership-card .committee-member-text p {
    font-size: .60rem !important;
  }
}


/* =========================================================
   DYNAMIC LEADERSHIP GRID — FOUNDING MEMBERS UNTOUCHED
   Leadership is a separate section immediately below the
   founding-member section. These rules affect ONLY leadership.
   ========================================================= */
.leadership-members {
    width: 100%;
}

.leadership-grid {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)) !important;
    gap: clamp(8px, 1.5vw, 14px) !important;
    margin: 0 !important;
    align-items: stretch;
}

.leadership-card {
    min-width: 0;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    padding: clamp(7px, 1vw, 10px) !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.leadership-card .leadership-photo {
    width: min(100%, 105px) !important;
    max-width: 105px;
    height: auto !important;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
    margin: 0 auto clamp(5px, .8vw, 7px);
}

.leadership-card .leadership-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.leadership-card .committee-member-text {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    text-align: center;
}

.leadership-card h3 {
    margin: 0 !important;
    font-size: clamp(.68rem, .58rem + .28vw, 1rem) !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: anywhere;
    word-break: normal;
}

.leadership-card p {
    margin: clamp(2px, .35vw, 4px) 0 0 !important;
    font-size: clamp(.58rem, .50rem + .22vw, .9rem) !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: anywhere;
}

/* Narrow screens: let the grid choose the number of columns from
   the actual available width instead of using fixed breakpoints. */
@media (max-width: 360px) {
    .leadership-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .leadership-card {
        padding: 6px 4px 7px !important;
    }

    .leadership-card .leadership-photo {
        width: min(100%, 100px) !important;
    }
}

/* 2026-08-21: Leadership cards must use the same image-to-card
   proportions as the untouched founding-member cards.  Founding
   member styles themselves are not modified here. */
.committee .leadership-card {
    padding: 9px 7px 10px !important;
    box-sizing: border-box;
}
.committee .leadership-card .leadership-photo {
    width: min(100%, 105px) !important;
    max-width: none !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    margin: 0 auto 7px !important;
    flex: 0 0 auto !important;
}

@media (max-width: 1199px) and (min-width: 768px) {
    .committee .leadership-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }
    .committee .leadership-card {
        padding: 7px 3px 8px !important;
    }
    .committee .leadership-card .leadership-photo {
        width: min(100%, 72px) !important;
    }
}

@media (max-width: 767px) {
    .committee .leadership-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }
    .committee .leadership-card {
        padding: 8px 5px 9px !important;
    }
    .committee .leadership-card .leadership-photo {
        width: min(100%, 125px) !important;
    }
}

@media (max-width: 380px) {
    .committee .leadership-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }
}

/* ===== MEMBER BOXES: fresh layout only ===== */
.committee-panel .founding-members,
.committee-panel .leadership-members {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.committee-panel .founding-grid,
.committee-panel .leadership-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    align-items: start !important;
}

.committee-panel .founding-card,
.committee-panel .leadership-card {
    min-width: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    transform: none !important;
}

.committee-panel .founding-card:hover,
.committee-panel .leadership-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

.committee-panel .founding-photo,
.committee-panel .leadership-photo {
    width: 100% !important;
    max-width: none !important;
    height: 120px !important;
    aspect-ratio: auto !important;
    margin: 0 auto 7px !important;
    padding: 0 !important;
    background: #eef2f5 !important;
    border: 1px solid rgba(26,82,118,.16) !important;
    border-radius: 9px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.committee-panel .founding-photo img,
.committee-panel .leadership-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
}

.committee-panel .founding-card .committee-member-text,
.committee-panel .leadership-card .committee-member-text {
    padding: 0 2px !important;
    background: transparent !important;
}

.committee-panel .founding-card h3,
.committee-panel .leadership-card h3 {
    margin: 0 !important;
    color: var(--primary) !important;
    line-height: 1.15 !important;
    font-size: .72rem !important;
    font-weight: 800 !important;
}

.committee-panel .founding-card p,
.committee-panel .leadership-card p {
    margin: 3px 0 0 !important;
    color: var(--text-light) !important;
    line-height: 1.15 !important;
    font-size: .62rem !important;
    font-weight: 600 !important;
}

@media (max-width: 900px) {
    .committee-panel .founding-grid,
    .committee-panel .leadership-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    .committee-panel .founding-photo,
    .committee-panel .leadership-photo {
        height: 105px !important;
    }
}

@media (max-width: 600px) {
    .committee-panel .founding-grid,
    .committee-panel .leadership-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    .committee-panel .founding-photo,
    .committee-panel .leadership-photo {
        height: 110px !important;
    }
}

@media (max-width: 380px) {
    .committee-panel .founding-grid,
    .committee-panel .leadership-grid {
        gap: 8px !important;
    }
    .committee-panel .founding-photo,
    .committee-panel .leadership-photo {
        height: 95px !important;
    }
    .committee-panel .founding-card h3,
    .committee-panel .leadership-card h3 {
        font-size: .66rem !important;
    }
    .committee-panel .founding-card p,
    .committee-panel .leadership-card p {
        font-size: .56rem !important;
    }
}

/* ===== MEMBER ROW ALIGNMENT - FOUNDING 5 / LEADERSHIP 6 ===== */
@media (min-width: 981px) {
    .committee .founding-grid,
    .committee .leadership-grid {
        display: grid !important;
        align-items: start !important;
        width: 100%;
    }

    /* Exactly 5 founding-member boxes in the top row. */
    .committee .founding-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    /* Exactly 6 remaining-member boxes in the row underneath. */
    .committee .leadership-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    /* Same card/image proportions for both rows. */
    .committee .founding-card,
    .committee .leadership-card {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .committee .founding-photo,
    .committee .leadership-photo {
        width: 100% !important;
        max-width: none !important;
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        flex: 0 0 auto;
    }

    .committee .committee-member-text {
        width: 100%;
        min-width: 0;
        text-align: center;
    }
}

/* Tablet: keep the rows aligned while allowing the layout to breathe. */
@media (max-width: 980px) and (min-width: 768px) {
    .committee .founding-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 7px !important;
    }
    .committee .leadership-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 7px !important;
    }
    .committee .founding-photo,
    .committee .leadership-photo {
        width: 100% !important;
        max-width: none !important;
        aspect-ratio: 1 / 1 !important;
    }
}

/* Phones: responsive fallback; desktop/tablet keep the requested 5/6 rows. */
@media (max-width: 767px) {
    .committee .founding-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }
    .committee .leadership-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }
    .committee .founding-photo,
    .committee .leadership-photo {
        width: 100% !important;
        max-width: none !important;
        aspect-ratio: 1 / 1 !important;
    }
}

/* =========================================================
   MEMBER ROW ALIGNMENT - DESKTOP FINAL
   Only affects Founding Members + Leadership Members.
   ========================================================= */
@media (min-width: 981px) {
    .committee .founding-grid {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        grid-template-rows: 1fr !important;
        gap: 8px !important;
        width: 100% !important;
        align-items: stretch !important;
    }

    .committee .founding-grid .founding-card:nth-child(1),
    .committee .founding-grid .founding-card:nth-child(2),
    .committee .founding-grid .founding-card:nth-child(3),
    .committee .founding-grid .founding-card:nth-child(4),
    .committee .founding-grid .founding-card:nth-child(5) {
        grid-column: auto !important;
        grid-row: 1 !important;
    }

    .committee .leadership-grid {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        grid-template-rows: 1fr !important;
        gap: 8px !important;
        width: 100% !important;
        align-items: stretch !important;
    }
}

@media (min-width: 981px) {
    .committee .committee-panel > .leadership-members {
        transform: translateX(-15px);
    }
}


/* Captain affidavit format downloads */
.affidavit-download-box {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    border: 1px solid #d7e6ea;
    border-radius: 15px;
    background: linear-gradient(135deg, #f7fbfc, #ffffff);
}
.affidavit-download-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #edf7f8;
    color: var(--primary);
    font-size: 1.5rem;
}
.affidavit-download-content {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}
.affidavit-download-content strong {
    color: var(--text-dark);
}
.affidavit-download-content span {
    color: var(--text-light);
    font-size: .86rem;
}
.affidavit-download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 9px;
}
.affidavit-download-actions .affidavit-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: .85rem;
    text-decoration: none;
    transition: .2s ease;
}
.affidavit-download-actions .affidavit-download-btn.secondary {
    background: transparent;
    color: var(--primary);
}
.affidavit-download-actions .affidavit-download-btn:hover {
    transform: translateY(-1px);
    opacity: .92;
}
@media (max-width: 640px) {
    .affidavit-download-box { align-items: flex-start; }
    .affidavit-download-actions { flex-direction: column; }
    .affidavit-download-actions .affidavit-download-btn { justify-content: center; width: 100%; }
}


/* Final responsive header fix: keep the tournament name and navigation
   in separate, non-overlapping layouts at every desktop/tablet width. */
@media (max-width: 1399px) {
    .header .container {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        overflow: visible !important;
    }
    .header .logo {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 120px) !important;
        margin: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    .header .logo-text {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    .header .nav-menu {
        position: fixed !important;
        top: var(--header-height) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        display: none !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 8px 14px 14px !important;
        background: #fff !important;
        box-shadow: 0 12px 24px rgba(0,0,0,.14) !important;
        max-height: calc(100vh - var(--header-height)) !important;
        overflow-y: auto !important;
        z-index: 1001 !important;
    }
    .header .nav-menu.active { display: flex !important; }
    .header .nav-menu a {
        width: 100% !important;
        min-height: 48px !important;
        justify-content: flex-start !important;
        padding: 12px 10px !important;
        white-space: normal !important;
        border-bottom: 1px solid var(--border) !important;
    }
    .header .header-actions {
        margin-left: auto !important;
        flex: 0 0 auto !important;
    }
    .header .header-social-links { display: none !important; }
    .header .hamburger { display: flex !important; flex: 0 0 auto !important; }
}

@media (min-width: 1400px) {
    .header .logo { max-width: 320px !important; flex: 0 0 320px !important; }
    .header .logo-text { white-space: nowrap !important; }
    .header .nav-menu { gap: clamp(9px, 0.8vw, 15px) !important; }
    .header .nav-menu a {
        font-size: clamp(.78rem, .78vw, .98rem) !important;
        white-space: nowrap !important;
    }
}

/* Keep season photographs mathematically centered inside their viewers. */
.season-photo-slide,
.viewer-stage {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.season-photo-slide img,
.viewer-image,
.viewer-video {
    margin: 0 auto !important;
}

/* V23: keep the long tournament name and desktop navigation in separate
   columns; collapse to the hamburger before they can collide. */
@media (min-width: 1500px) {
  .header .container { grid-template-columns: minmax(360px, auto) minmax(0, 1fr) auto !important; column-gap: 18px !important; }
  .header .logo { font-size: clamp(.92rem, 1vw, 1.08rem) !important; }
  .header .nav-menu { gap: clamp(8px, .8vw, 16px) !important; }
  .header .nav-menu a { font-size: clamp(.88rem, .9vw, 1rem) !important; white-space: nowrap !important; }
}
@media (min-width: 768px) and (max-width: 1499px) {
  .header { height: 70px !important; }
  .committee, .page-header { margin-top: 70px !important; }
  .header .container { display:flex !important; gap:12px !important; padding:0 18px !important; }
  .header .logo { flex:1 1 auto !important; min-width:0 !important; max-width:none !important; font-size:clamp(.95rem,1.4vw,1.12rem) !important; }
  .header .logo-text { white-space:nowrap !important; overflow:hidden !important; text-overflow:ellipsis !important; }
  .header .nav-menu { display:none !important; }
  .header .header-actions { margin-left:auto !important; flex:0 0 auto !important; }
  .header .hamburger { display:flex !important; flex:0 0 auto !important; }
  .header .hamburger[aria-expanded="true"] + * { display:block; }
  .header .nav-menu.active { display:flex !important; }
  .header .nav-menu { position:absolute !important; left:16px !important; right:16px !important; top:70px !important; max-height:calc(100vh - 70px) !important; overflow:auto !important; z-index:1000 !important; flex-direction:column !important; align-items:stretch !important; justify-content:flex-start !important; gap:0 !important; padding:10px 16px 18px !important; margin:0 !important; background:rgba(255,255,255,.99) !important; box-shadow:0 10px 25px rgba(0,0,0,.15) !important; }
  .header .nav-menu.active { display:flex !important; }
  .header .nav-menu a { display:flex !important; align-items:center !important; width:100% !important; min-height:48px !important; padding:12px 8px !important; border-bottom:1px solid #e9ecef !important; font-size:1rem !important; white-space:nowrap !important; }
}
.organizing-public-post { margin:4px 0 0; font-size:.9rem; line-height:1.35; font-weight:600; color:#475569; }


/* =========================================================
   FINAL HEADER LAYOUT FIX
   Desktop: tournament name/actions on the first row and the
   navigation on a completely separate second row. This prevents
   the long tournament name from ever mixing with menu items.
   Up to 1200px: use the hamburger menu instead.
   ========================================================= */
@media (min-width: 1201px) {
    :root { --header-height: 112px !important; }
    .header {
        height: 112px !important;
    }
    .header .container {
        height: 112px !important;
        min-height: 112px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-rows: 58px 54px !important;
        align-items: center !important;
        column-gap: 24px !important;
        row-gap: 0 !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .header .logo {
        grid-column: 1 !important;
        grid-row: 1 !important;
        justify-self: start !important;
        align-self: center !important;
        max-width: none !important;
        width: auto !important;
        overflow: visible !important;
        white-space: nowrap !important;
        font-size: clamp(1.05rem, 1.5vw, 1.35rem) !important;
    }
    .header .logo-text {
        max-width: none !important;
        overflow: visible !important;
        white-space: nowrap !important;
    }
    .header-actions {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: end !important;
        margin: 0 !important;
    }
    .nav-menu {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        position: static !important;
        width: 100% !important;
        height: 54px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: clamp(14px, 1.35vw, 28px) !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: transparent !important;
        box-shadow: none !important;
        white-space: nowrap !important;
    }
    .nav-menu a {
        min-height: 42px !important;
        padding: 7px 4px !important;
        font-size: clamp(.82rem, .95vw, 1.02rem) !important;
        white-space: nowrap !important;
        flex: 0 0 auto !important;
    }
    .hamburger { display: none !important; }
}

/* Desktop/laptop widths where a two-row header would become crowded:
   use the same clean hamburger layout as phones. */
@media (min-width: 1101px) and (max-width: 1200px) {
    :root { --header-height: 78px !important; }
    .header { height: 78px !important; }
    .header .container {
        height: 78px !important;
        min-height: 78px !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 0 20px !important;
    }
    .header .logo {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: none !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 1rem !important;
    }
    .header .logo-text {
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    .header-actions {
        flex: 0 0 auto !important;
        margin-left: auto !important;
    }
    .nav-menu {
        position: fixed !important;
        top: 78px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: calc(100vh - 78px) !important;
        overflow-y: auto !important;
        display: none !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 10px 16px 18px !important;
        background: rgba(255,255,255,.99) !important;
        box-shadow: 0 10px 25px rgba(0,0,0,.15) !important;
        z-index: 9998 !important;
    }
    .nav-menu.active { display: flex !important; }
    .nav-menu a {
        width: 100% !important;
        min-height: 48px !important;
        padding: 12px 8px !important;
        border-bottom: 1px solid #e9ecef !important;
        font-size: 1rem !important;
    }
    .hamburger {
        display: flex !important;
        flex: 0 0 42px !important;
        width: 42px !important;
        height: 42px !important;
        margin: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        z-index: 10000 !important;
    }
    .hamburger span {
        position: absolute !important;
        left: 10px !important;
        width: 22px !important;
        height: 2px !important;
        display: block !important;
        background: var(--primary) !important;
    }
    .hamburger span:nth-child(1) { transform: translateY(-7px); }
    .hamburger span:nth-child(2) { transform: translateY(0); }
    .hamburger span:nth-child(3) { transform: translateY(7px); }
    .hamburger.active span:nth-child(1) { transform: translateY(0) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(0) rotate(-45deg); }
}

/* =========================================================
   RCW UNIVERSAL NAVIGATION FIX - 2026-08-28
   Final override for phones, tablets, small laptops and touch
   devices. The open menu is promoted above all page content and
   uses a body-level backdrop so no section can cover it.
   ========================================================= */

:root { --rcw-nav-top: 70px; }

.header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 2147483001 !important;
}

.header .container {
    position: relative !important;
    z-index: 2147483002 !important;
}

/* Keep the hamburger reliably visible whenever the compact menu is used. */
@media (max-width: 1200px) {
    .header .hamburger {
        display: flex !important;
        position: relative !important;
        z-index: 2147483005 !important;
        flex: 0 0 44px !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        margin-left: 4px !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .header .hamburger span {
        display: block !important;
        position: absolute !important;
        left: 11px !important;
        width: 22px !important;
        height: 3px !important;
        border-radius: 3px !important;
        background: var(--primary, #2980b9) !important;
        transform-origin: center !important;
    }

    .header .nav-menu {
        position: fixed !important;
        top: var(--rcw-nav-top) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        height: auto !important;
        max-height: calc(100dvh - var(--rcw-nav-top)) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        box-sizing: border-box !important;
        display: none !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 10px max(16px, env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)) !important;
        background: #fff !important;
        border-top: 1px solid rgba(15,23,42,.08) !important;
        box-shadow: 0 18px 45px rgba(15,23,42,.25) !important;
        z-index: 2147483004 !important;
        isolation: isolate !important;
    }

    .header .nav-menu.active,
    .rcw-mobile-nav-portal.active {
        display: flex !important;
    }

    .header .nav-menu a,
    .rcw-mobile-nav-portal a {
        position: relative !important;
        z-index: 2147483005 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        min-height: 50px !important;
        padding: 13px 10px !important;
        box-sizing: border-box !important;
        border-bottom: 1px solid #e8edf2 !important;
        background: #fff !important;
        color: var(--text-dark, #1f2937) !important;
        font-size: 1rem !important;
        line-height: 1.3 !important;
        text-decoration: none !important;
        white-space: normal !important;
    }

    .header .nav-menu a:hover,
    .header .nav-menu a:focus-visible,
    .rcw-mobile-nav-portal a:hover,
    .rcw-mobile-nav-portal a:focus-visible {
        background: #f3f8fc !important;
        color: var(--primary, #2980b9) !important;
    }

    .mobile-social-links {
        position: relative !important;
        z-index: 2147483005 !important;
        display: flex !important;
        gap: 12px !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 16px 8px 4px !important;
    }

    .mobile-social-links a {
        min-height: 42px !important;
        width: 42px !important;
        justify-content: center !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 50% !important;
    }
}

/* Body-level portal: used while the menu is open so it cannot be trapped
   inside a transformed/stacked page section. */
.rcw-mobile-nav-portal {
    position: fixed !important;
    top: var(--rcw-nav-top) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: calc(100dvh - var(--rcw-nav-top)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    z-index: 2147483004 !important;
}

.rcw-nav-backdrop {
    position: fixed !important;
    inset: 0 !important;
    display: none !important;
    background: rgba(2, 12, 27, .42) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    backdrop-filter: blur(2px) !important;
    z-index: 2147483000 !important;
    touch-action: none !important;
}

.rcw-nav-backdrop.active { display: block !important; }

body.rcw-nav-open {
    overflow: hidden !important;
    touch-action: none !important;
}

@media (min-width: 1201px) {
    .rcw-nav-backdrop { display: none !important; }
    .header .hamburger { display: none !important; }
    .rcw-mobile-nav-portal { display: none !important; }
}

@media (max-width: 420px) {
    .header .container { padding-left: 8px !important; padding-right: 8px !important; }
    .header .logo { font-size: .72rem !important; }
    .header .header-actions { gap: 2px !important; }
    .header .lang-switcher { transform: scale(.9); transform-origin: right center; }
}

@media (max-width: 320px) {
    .header .logo { font-size: .64rem !important; }
    .header .header-social-links { display: none !important; }
    .header .hamburger { flex-basis: 42px !important; width: 42px !important; min-width: 42px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .rcw-nav-backdrop { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

/* =========================================================
   RCW FINAL NAVIGATION MODE FIX - 2026-08-28
   Fixes the 900-1200px "dead zone" where an earlier desktop
   pointer rule hid the hamburger while the compact rules hid
   the navigation. The navigation now has exactly two modes:
   - >1200 CSS px: desktop navigation
   - <=1200 CSS px: hamburger navigation
   This is based on viewport CSS pixels, so browser zoom and
   mobile viewport widths cannot create a gap between modes.
   ========================================================= */

@media screen and (max-width: 1200px) {
    :root { --header-height: 70px !important; }
    .header {
        height: 70px !important;
        min-height: 70px !important;
    }
    .header .container {
        height: 70px !important;
        min-height: 70px !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box !important;
        padding: 0 16px !important;
        gap: 8px !important;
        overflow: visible !important;
    }
    .header .logo {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: none !important;
        width: auto !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: clamp(.78rem, 1.2vw, 1rem) !important;
    }
    .header .logo-text {
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    .header .header-actions {
        flex: 0 0 auto !important;
        margin-left: auto !important;
    }
    .header .header-social-links { display: none !important; }

    /* Compact mode: hamburger ALWAYS visible. */
    .header .hamburger {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        flex: 0 0 44px !important;
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        position: relative !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 2147483005 !important;
    }

    /* Compact mode: desktop nav is ALWAYS hidden until opened. */
    .header .nav-menu {
        position: fixed !important;
        top: var(--rcw-nav-top, 70px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: auto !important;
        max-height: calc(100dvh - var(--rcw-nav-top, 70px)) !important;
        display: none !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 10px 16px calc(18px + env(safe-area-inset-bottom)) !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        background: #fff !important;
        border-top: 1px solid rgba(15,23,42,.08) !important;
        box-shadow: 0 18px 45px rgba(15,23,42,.25) !important;
        z-index: 2147483004 !important;
    }
    .header .nav-menu.active,
    .rcw-mobile-nav-portal.active {
        display: flex !important;
    }
    .header .nav-menu a,
    .rcw-mobile-nav-portal a {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        min-height: 50px !important;
        padding: 13px 10px !important;
        box-sizing: border-box !important;
        border-bottom: 1px solid #e8edf2 !important;
        background: #fff !important;
        color: var(--text-dark, #1f2937) !important;
        font-size: 1rem !important;
        line-height: 1.3 !important;
        white-space: normal !important;
    }
}

@media screen and (max-width: 600px) {
    :root { --header-height: 64px !important; }
    .header, .header .container {
        height: 64px !important;
        min-height: 64px !important;
    }
    .header .container {
        padding-left: max(8px, env(safe-area-inset-left)) !important;
        padding-right: max(8px, env(safe-area-inset-right)) !important;
    }
    .header .logo { font-size: .76rem !important; }
    .header .hamburger {
        flex-basis: 42px !important;
        width: 42px !important;
        min-width: 42px !important;
    }
}

@media screen and (min-width: 1201px) {
    :root { --header-height: 112px !important; }
    .header { height: 112px !important; min-height: 112px !important; }
    .header .hamburger {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    .header .nav-menu {
        position: static !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 54px !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    .header .nav-menu a {
        display: inline-flex !important;
        width: auto !important;
        min-height: 42px !important;
        padding: 7px 4px !important;
        border-bottom: 0 !important;
        white-space: nowrap !important;
    }
}

/* When the menu is open, keep the body-level portal above every page layer. */
.rcw-mobile-nav-portal {
    position: fixed !important;
    top: var(--rcw-nav-top, 70px) !important;
    left: 0 !important;
    right: auto !important;
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: calc(100dvh - var(--rcw-nav-top, 70px)) !important;
    z-index: 2147483004 !important;
}
.rcw-nav-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483003 !important;
}
.rcw-nav-backdrop.active {
    display: block !important;
}

/* =========================================================
   RCW MOBILE LANDSCAPE NAVIGATION - 2026-08-28
   Touch/mobile devices ALWAYS use the hamburger navigation,
   including landscape orientation. This prevents a phone with
   a wide CSS viewport from accidentally switching to desktop
   navigation and showing horizontal boxed links.
   ========================================================= */
@media screen and (pointer: coarse) and (hover: none) {
    .header .hamburger {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 2147483005 !important;
    }

    .header .nav-menu {
        position: fixed !important;
        top: var(--rcw-nav-top, 70px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: auto !important;
        max-height: calc(100dvh - var(--rcw-nav-top, 70px)) !important;
        display: none !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 10px 16px calc(18px + env(safe-area-inset-bottom)) !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        background: #fff !important;
        border-top: 1px solid rgba(15,23,42,.08) !important;
        box-shadow: 0 18px 45px rgba(15,23,42,.25) !important;
        z-index: 2147483004 !important;
    }

    .header .nav-menu.active,
    .rcw-mobile-nav-portal.active {
        display: flex !important;
    }

    .header .nav-menu a,
    .rcw-mobile-nav-portal a {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        min-height: 50px !important;
        padding: 13px 10px !important;
        box-sizing: border-box !important;
        border: 0 !important;
        border-bottom: 1px solid #e8edf2 !important;
        border-radius: 0 !important;
        background: #fff !important;
        color: var(--text-dark, #1f2937) !important;
        font-size: 1rem !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        text-align: left !important;
        box-shadow: none !important;
    }
}

/* =========================================================
   RCW FINAL NAVIGATION ZOOM/VIEWPORT GUARANTEE
   Exactly one navigation mode is visible at every CSS width:
   >= 1400px = desktop navigation
   < 1400px  = hamburger navigation
   This removes the previous 1200/1400 breakpoint conflict.
   ========================================================= */
@media screen and (min-width: 1400px) {
    .header .nav-menu {
        position: static !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: 0 !important;
        z-index: auto !important;
    }
    .header .nav-menu a {
        display: flex !important;
        width: auto !important;
        min-height: 42px !important;
        padding: 7px 4px !important;
        border: 0 !important;
        background: transparent !important;
        white-space: nowrap !important;
    }
    .header .hamburger {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

@media screen and (max-width: 1399px) {
    .header .hamburger {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 2147483005 !important;
        flex: 0 0 44px !important;
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .header .nav-menu {
        display: none !important;
    }
    .header .nav-menu.active,
    .rcw-mobile-nav-portal.active {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0 !important;
        position: fixed !important;
        top: var(--rcw-nav-top, 70px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: auto !important;
        max-height: calc(100dvh - var(--rcw-nav-top, 70px)) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
        padding: 10px 16px calc(18px + env(safe-area-inset-bottom)) !important;
        margin: 0 !important;
        background: #fff !important;
        border-top: 1px solid rgba(15,23,42,.08) !important;
        box-shadow: 0 18px 45px rgba(15,23,42,.25) !important;
        z-index: 2147483004 !important;
    }
    .header .nav-menu a,
    .rcw-mobile-nav-portal a {
        display: flex !important;
        width: 100% !important;
        min-height: 50px !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
        padding: 13px 10px !important;
        border: 0 !important;
        border-bottom: 1px solid #e8edf2 !important;
        border-radius: 0 !important;
        background: #fff !important;
        white-space: normal !important;
        text-align: left !important;
    }
}
