/* ============================================================
   CDRI-CHEM-FEST 2027 — COMMITTEE PAGE (Matching Home Page Style)
============================================================ */

.cf-committee-page {
    position: relative;
    overflow: hidden;
    background: var(--cf-bg);
    color: var(--cf-text);
}

    .cf-committee-page *,
    .cf-committee-page *::before,
    .cf-committee-page *::after {
        box-sizing: border-box;
    }

/* ================= HERO ================= */

.cf-committee-hero {
    padding: 28px 20px 0;
}

    .cf-committee-hero .cf-committee-shell {
        position: relative;
        max-width: 1140px;
        margin: 0 auto;
        padding: 46px 52px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 30px;
        overflow: hidden;
        border-radius: var(--cf-radius);
        background: radial-gradient(circle at 88% 15%, rgba(6,182,212,.25), transparent 32%), radial-gradient(circle at 70% 110%, rgba(245,158,11,.3), transparent 38%), linear-gradient(120deg, var(--cf-primary-dark) 0%, var(--cf-primary) 52%, var(--cf-secondary) 100%);
        box-shadow: var(--cf-shadow-hover);
    }

        .cf-committee-hero .cf-committee-shell::before,
        .cf-committee-hero .cf-committee-shell::after {
            content: "";
            position: absolute;
            border-radius: 50%;
            pointer-events: none;
        }

        .cf-committee-hero .cf-committee-shell::before {
            width: 360px;
            height: 360px;
            right: -110px;
            top: -140px;
            border: 1px solid rgba(255,255,255,.14);
            box-shadow: 0 0 0 40px rgba(255,255,255,.03), 0 0 0 80px rgba(255,255,255,.02);
        }

        .cf-committee-hero .cf-committee-shell::after {
            width: 200px;
            height: 200px;
            left: -70px;
            bottom: -110px;
            border: 2px solid rgba(245,158,11,.30);
        }

.cf-committee-hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.cf-committee-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    padding: 7px 15px;
    border-radius: 30px;
    background: linear-gradient(90deg, var(--cf-cyan), var(--cf-secondary));
    color: var(--cf-white);
    font-size: .74rem;
    font-weight: 850;
    letter-spacing: .15em;
}

    .cf-committee-eyebrow span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--cf-white);
    }

.cf-committee-hero h1 {
    margin: 0 0 14px;
    color: var(--cf-white);
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    font-weight: 850;
    line-height: 1.05;
    letter-spacing: -.04em;
}

    .cf-committee-hero h1 span {
        background: linear-gradient(90deg, var(--cf-orange), var(--cf-cyan));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.cf-committee-hero p {
    max-width: 560px;
    margin: 0;
    color: rgba(255,255,255,.88);
    font-size: 1.02rem;
    line-height: 1.7;
}

.cf-committee-hero-mark {
    position: relative;
    z-index: 2;
    width: 120px;
    height: 120px;
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255,255,255,.20), rgba(255,255,255,.05));
    backdrop-filter: blur(8px);
    color: var(--cf-orange);
    font-size: 3.2rem;
    box-shadow: 0 0 40px rgba(6,182,212,.25);
}


/* ================= CONTENT ================= */

.cf-committee-content {
    display: block;
    padding: 44px 20px 72px;
}

    .cf-committee-content .cf-committee-shell {
        max-width: 1140px;
        margin: 0 auto;
    }

.cf-committee-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--cf-border);
}

.cf-committee-section-label {
    display: block;
    margin-bottom: 6px;
    color: var(--cf-primary);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .16em;
}

.cf-committee-heading h2 {
    margin: 0;
    color: var(--cf-heading);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 850;
    letter-spacing: -.03em;
}

.cf-committee-date {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--cf-primary), var(--cf-primary-dark));
    color: var(--cf-white);
    font-size: .88rem;
    font-weight: 750;
    box-shadow: var(--cf-shadow);
    white-space: nowrap;
}


/* ================= COMMITTEE GRID (Matching Home Grid Layout) ================= */

.cf-committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 24px;
}

.cf-committee-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: none;
    border-radius: 16px;
    background: var(--cf-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform .35s ease, box-shadow .35s ease;
}

    .cf-committee-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 40px rgba(11, 99, 206, 0.12);
    }


/* ================= PHOTO STYLING ================= */

.cf-committee-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

    .cf-committee-photo img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        object-position: center top;
        transition: transform .5s ease;
    }

.cf-committee-card:hover .cf-committee-photo img {
    transform: scale(1.04);
}

.cf-committee-initials {
    color: var(--cf-heading);
    font-size: 2.4rem;
    font-weight: 800;
}

.cf-committee-num {
    display: none; /* keeping cards clean like the home page reference */
}

.cf-committee-role-tag {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 8px 10px;
    background: linear-gradient(135deg, #0b63ce 0%, #084d9e 100%);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
}


/* ================= BODY ================= */

.cf-committee-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    text-align: center;
}

    .cf-committee-card-body h3 {
        margin: 0 0 4px;
        color: var(--cf-heading);
        font-size: 0.98rem;
        font-weight: 750;
        line-height: 1.3;
    }

.cf-committee-designation {
    margin: 0;
    color: var(--cf-muted);
    font-size: 0.78rem;
    line-height: 1.4;
}


/* ================= EMPTY STATE ================= */

.cf-committee-empty {
    padding: 60px 20px;
    text-align: center;
    border: 2px dashed var(--cf-border);
    border-radius: var(--cf-radius);
    background: var(--cf-white);
}

.cf-committee-empty-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cf-primary), var(--cf-secondary));
    color: var(--cf-white);
    font-size: 1.8rem;
}

.cf-committee-empty h3 {
    margin: 0 0 6px;
    color: var(--cf-heading);
    font-weight: 800;
}

.cf-committee-empty p {
    margin: 0;
    color: var(--cf-muted);
}


/* ================= HOST INSTITUTION ================= */

.cf-committee-info {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 46px;
    padding: 28px 32px;
    overflow: hidden;
    border-radius: var(--cf-radius);
    background: radial-gradient(circle at 92% 20%, rgba(245,158,11,.3), transparent 35%), linear-gradient(120deg, var(--cf-primary-dark) 0%, var(--cf-primary) 100%);
    box-shadow: var(--cf-shadow-hover);
}

    .cf-committee-info::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 6px;
        background: linear-gradient(to bottom, var(--cf-orange), var(--cf-cyan));
    }

.cf-committee-info-icon {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 16px;
    background: rgba(255,255,255,.14);
    color: var(--cf-orange);
    font-size: 1.7rem;
}

.cf-committee-info span {
    display: block;
    margin-bottom: 4px;
    color: var(--cf-cyan);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .15em;
}

.cf-committee-info strong {
    display: block;
    color: var(--cf-white);
    font-size: 1.28rem;
    font-weight: 850;
    line-height: 1.3;
}

.cf-committee-info p {
    margin: 4px 0 0;
    color: rgba(255,255,255,.82);
    font-size: .92rem;
}


/* ================= ACTION BUTTON ================= */

.cf-committee-actions {
    margin-top: 30px;
    text-align: center;
}

.cf-committee-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    border-radius: 40px;
    background: linear-gradient(135deg, var(--cf-primary), var(--cf-secondary));
    color: var(--cf-white) !important;
    font-size: .98rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: var(--cf-shadow);
    transition: transform .3s, box-shadow .3s;
}

    .cf-committee-action:hover {
        transform: translateY(-4px);
        box-shadow: var(--cf-shadow-hover);
    }

    .cf-committee-action i {
        transition: transform .3s;
    }

    .cf-committee-action:hover i {
        transform: translateX(5px);
    }
/* =========================================================
   CDRI-CHEM-FEST 2027 - COMMITTEE PAGE: HOME-MATCHED COLORS + COMPACT MOBILE
   Paste at the VERY END of committee.css
   ========================================================= */

/* Safety: same colour tokens as the Home page (only matters if home.css is not loaded on this page) */
:root {
    --cf-primary: #0b63ce;
    --cf-primary-dark: #084d9e;
    --cf-secondary: #00a896;
    --cf-orange: #f59e0b;
    --cf-cyan: #06b6d4;
    --cf-text: #26364a;
    --cf-heading: #12365a;
    --cf-muted: #64748b;
    --cf-bg: #f7fbff;
    --cf-white: #ffffff;
    --cf-border: #e2edf7;
    --cf-shadow: 0 15px 45px rgba(21, 71, 112, 0.10);
    --cf-shadow-hover: 0 22px 55px rgba(21, 71, 112, 0.16);
    --cf-radius: 20px;
}

/* ---------- Match Home page committee card colours ---------- */
.cf-committee-card {
    box-shadow: 0 8px 24px rgba(11, 61, 92, .10);
}

    .cf-committee-card:hover {
        box-shadow: 0 14px 32px rgba(11, 61, 92, .18);
    }

.cf-committee-photo {
    background: var(--cf-primary);
}

.cf-committee-initials {
    color: #fff;
}

.cf-committee-role-tag {
    background: rgba(11, 61, 92, .88); /* same as Home .committee-home-role */
    font-weight: 600;
    letter-spacing: .08em;
}

.cf-committee-card-body h3 {
    font-weight: 800;
}

/* Page-wide safety */
.cf-committee-page {
    overflow-x: hidden;
}

.cf-committee-card-body h3,
.cf-committee-designation {
    overflow-wrap: anywhere;
}

@media (hover: none) {
    .cf-committee-card:hover,
    .cf-committee-action:hover {
        transform: none;
    }

        .cf-committee-card:hover .cf-committee-photo img {
            transform: none;
        }
}

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
    .cf-committee-hero .cf-committee-shell {
        padding: 34px 28px;
    }

    .cf-committee-content {
        padding: 34px 16px 52px;
    }

    .cf-committee-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 16px;
    }
}

/* ---------- Mobile: compact, 3 cards per row ---------- */
@media (max-width: 767px) {

    /* Hero */
    .cf-committee-hero {
        padding: 12px 10px 0;
    }

        .cf-committee-hero .cf-committee-shell {
            padding: 18px 14px;
            gap: 12px;
            border-radius: 14px;
        }

            .cf-committee-hero .cf-committee-shell::before {
                width: 200px;
                height: 200px;
                right: -80px;
                top: -90px;
            }

            .cf-committee-hero .cf-committee-shell::after {
                display: none;
            }

    .cf-committee-eyebrow {
        font-size: .6rem;
        padding: 4px 10px;
        margin-bottom: 8px;
        gap: 6px;
        letter-spacing: .1em;
    }

        .cf-committee-eyebrow span {
            width: 6px;
            height: 6px;
        }

    .cf-committee-hero h1 {
        font-size: clamp(1.5rem, 7.5vw, 1.9rem);
        margin-bottom: 6px;
        letter-spacing: -.02em;
    }

    .cf-committee-hero p {
        font-size: .8rem;
        line-height: 1.45;
    }

    .cf-committee-hero-mark {
        width: 52px;
        height: 52px;
        flex: 0 0 52px;
        font-size: 1.4rem;
    }

    /* Heading row */
    .cf-committee-content {
        padding: 18px 10px 32px;
    }

    .cf-committee-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    .cf-committee-section-label {
        font-size: .62rem;
        margin-bottom: 2px;
        letter-spacing: .12em;
    }

    .cf-committee-heading h2 {
        font-size: 1.3rem;
    }

    .cf-committee-date {
        padding: 6px 12px;
        font-size: .72rem;
        gap: 6px;
    }

    /* Grid: 3 per row */
    .cf-committee-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .cf-committee-card {
        border-radius: 10px;
    }

    .cf-committee-photo {
        aspect-ratio: 1 / 1.1;
    }

    .cf-committee-initials {
        font-size: 1.3rem;
    }

    .cf-committee-role-tag {
        font-size: .48rem;
        padding: 3px 2px;
        letter-spacing: .03em;
    }

    .cf-committee-card-body {
        padding: 6px 4px 8px;
    }

        .cf-committee-card-body h3 {
            font-size: .68rem;
            line-height: 1.2;
            margin-bottom: 2px;
        }

    .cf-committee-designation {
        font-size: .56rem;
        line-height: 1.3;
    }

    /* Empty state */
    .cf-committee-empty {
        padding: 28px 14px;
    }

    .cf-committee-empty-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    /* Host institution strip */
    .cf-committee-info {
        gap: 12px;
        margin-top: 20px;
        padding: 14px 14px 14px 18px;
        border-radius: 14px;
    }

        .cf-committee-info::before {
            width: 4px;
        }

    .cf-committee-info-icon {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        font-size: 1.1rem;
        border-radius: 11px;
    }

    .cf-committee-info span {
        font-size: .58rem;
        margin-bottom: 2px;
    }

    .cf-committee-info strong {
        font-size: .95rem;
    }

    .cf-committee-info p {
        font-size: .76rem;
        margin-top: 2px;
    }

    /* Button */
    .cf-committee-actions {
        margin-top: 16px;
    }

    .cf-committee-action {
        width: 100%;
        justify-content: center;
        padding: 11px 18px;
        font-size: .88rem;
    }
}

/* ---------- Very small phones ---------- */
@media (max-width: 340px) {
    .cf-committee-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}