/* =========================================================
       CDRI-CHEM-FEST 2027 - HOME PAGE FIXES & ENHANCEMENTS
       ========================================================= */

:root {
    --cf-primary: #0b63ce;
    --cf-primary-dark: #084d9e;
    --cf-secondary: #00a896;
    --cf-orange: #f59e0b;
    --cf-pink: #e83e8c;
    --cf-purple: #7c3aed;
    --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;
}

/* GLOBAL */
.chemfest-hero,
.cf-home-section,
.quick-info-highlight,
.chemfest-final-cta {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

.cf-home-section {
    padding: 90px 0;
}

.cf-section-heading {
    margin-bottom: 48px;
}

.cf-section-kicker {
    display: inline-block;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cf-primary);
    margin-bottom: 10px;
}

/* UNIFIED SECTION HEADINGS ACROSS ALL SECTIONS */
.cf-section-heading h2,
.section-title {
    margin: 0 !important;
    font-size: clamp(2rem, 3.2vw, 3rem) !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    color: var(--cf-heading) !important;
}

.cf-heading-line {
    width: 70px;
    height: 4px;
    border-radius: 50px;
    margin: 17px auto 0;
    background: linear-gradient(90deg, var(--cf-primary), var(--cf-secondary), var(--cf-orange));
}

/* =========================================================
       HERO & BACKGROUND IMAGE
       ========================================================= */
.chemfest-hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: url("../images/campus_background.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.chemfest-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0.65) 100%);
}

.chemfest-hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    pointer-events: none;
    background-image: radial-gradient(circle at 20% 20%, rgba(11, 99, 206, 0.15) 0, transparent 35%), radial-gradient(circle at 80% 70%, rgba(0, 168, 150, 0.15) 0, transparent 35%);
}

.chemfest-hero .container {
    position: relative;
    z-index: 2;
}

.chemfest-hero-content {
    max-width: 900px;
    padding: 85px 0;
}

.chemfest-kicker {
    display: inline-flex;
    align-items: center;
    padding: 9px 17px;
    border-radius: 50px;
    background: rgba(11, 99, 206, 0.10);
    border: 1px solid rgba(11, 99, 206, 0.20);
    color: var(--cf-primary);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.chemfest-main-title {
    margin: 0;
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -2px;
    color: var(--cf-heading);
}

    .chemfest-main-title .highlight {
        color: var(--cf-primary);
    }

    .chemfest-main-title .subtitle {
        display: block;
        color: var(--cf-primary);
    }




.chemfest-subtitle {
    margin-top: 22px;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 600;
    color: var(--cf-text);
}

.chemfest-hero-info {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-top: 38px;
}

.hero-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-info-label {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1.4px;
    color: var(--cf-primary);
}

.hero-info-item strong {
    font-size: 26px;
    line-height: 1.35;
    color: var(--cf-heading);
    font-weight: 850;
}

.hero-info-divider {
    width: 2px;
    background: rgba(18, 54, 90, 0.25);
}

.chemfest-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
}

/* BUTTONS */
.chemfest-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

    .chemfest-btn:hover {
        transform: translateY(-3px);
        text-decoration: none;
    }

.chemfest-btn-primary {
    color: #fff !important;
    background: linear-gradient(135deg, var(--cf-primary), #2588ed) !important;
    box-shadow: 0 10px 25px rgba(11, 99, 206, 0.25);
}

    .chemfest-btn-primary:hover {
        color: #fff !important;
        box-shadow: 0 15px 32px rgba(11, 99, 206, 0.35);
    }

.chemfest-btn-outline {
    color: var(--cf-primary) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid var(--cf-primary);
}

    .chemfest-btn-outline:hover {
        color: #fff !important;
        background: var(--cf-primary) !important;
    }

/* =========================================================
       QUICK INFORMATION
       ========================================================= */
.quick-info-highlight {
    position: relative;
    padding: 30px 0;
    background: linear-gradient(135deg, #eaf6ff, #ecfffb);
    border-top: 1px solid #d7edf5;
    border-bottom: 1px solid #d7edf5;
}

.quick-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.quick-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(11, 99, 206, 0.12);
    box-shadow: 0 7px 22px rgba(21, 71, 112, 0.06);
}

.quick-info-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 23px;
    color: var(--cf-primary);
    background: #eaf4ff;
}

.quick-info-card:nth-child(2) .quick-info-icon {
    color: var(--cf-secondary);
    background: #e8fbf7;
}

.quick-info-card:nth-child(3) .quick-info-icon {
    color: var(--cf-orange);
    background: #fff6e5;
}

.quick-info-card:nth-child(4) .quick-info-icon {
    color: var(--cf-purple);
    background: #f3edff;
}

.quick-info-card span {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--cf-muted);
}

.quick-info-card strong {
    display: block;
    font-size: 16.5px;
    line-height: 1.4;
    color: var(--cf-heading);
    font-weight: 700;
}

/* =========================================================
       ABOUT SECTION
       ========================================================= */
.cf-about-section {
    padding: 70px 0;
    background: var(--cf-bg, #f7fbff);
}

    .cf-about-section .container-fluid {
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
    }

.about-single-column {
    display: flex;
    justify-content: center;
    width: 100%;
}

.about-content-card.about-card-main {
    position: relative;
    width: 100%;
    max-width: 1320px;
    padding: 45px 55px;
    overflow: hidden;
    background: var(--cf-white, #ffffff);
    border: 1px solid var(--cf-border, #dcebe6);
    border-top: 5px solid var(--cf-primary);
    border-radius: var(--cf-radius);
    box-shadow: var(--cf-shadow);
}

.about-card-text {
    width: 100%;
}

    .about-card-text p {
        margin: 0 0 20px;
        color: var(--cf-text);
        font-size: 17px;
        font-weight: 400;
        line-height: 1.85;
        text-align: left;
    }

        .about-card-text p:last-child {
            margin-bottom: 0;
        }

    .about-card-text strong {
        color: var(--cf-heading);
        font-weight: 750;
    }

/* =========================================================
       SPEAKERS
       ========================================================= */
.cf-speakers-section {
    background: linear-gradient(180deg, #f5faff, #ffffff);
}

.speaker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.speaker-card {
    overflow: hidden;
    background: #fff;
    border-radius: var(--cf-radius);
    border: 1px solid var(--cf-border);
    box-shadow: var(--cf-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .speaker-card:hover {
        transform: translateY(-7px);
        box-shadow: var(--cf-shadow-hover);
    }

.speaker-image-wrap {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eaf5ff, #e8fbf7);
    overflow: hidden;
}

.speaker-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker-placeholder {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cf-primary), var(--cf-secondary));
}

.speaker-content {
    padding: 24px;
}

.speaker-role {
    display: block;
    margin-bottom: 7px;
    color: var(--cf-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.speaker-content h3 {
    margin: 0 0 9px;
    font-size: 20px;
    line-height: 1.3;
    color: var(--cf-heading);
    font-weight: 800;
}

.speaker-content p {
    margin: 0 0 5px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--cf-text);
}

.speaker-content small {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    color: var(--cf-muted);
}

/* =========================================================
       COMMITTEE SECTION
       ========================================================= */
.committee-home-section {
    position: relative;
    padding: 70px 0;
    background-image: url("../images/committebackgroundimage.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}
    /* Organizing Committee heading — match Registration Fees */
    .committee-home-section .section-title {
        font-size: 2.5rem;
        font-weight: 800;
        line-height: 1.2;
    }

.committee-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.93) 0%, rgba(255, 255, 255, 0.88) 50%, rgba(255, 255, 255, 0.72) 100%);
}

.committee-home-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.committee-home-card {
    width: 220px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(11, 61, 92, .10);
    transition: transform .25s, box-shadow .25s;
}

    .committee-home-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 14px 32px rgba(11, 61, 92, .18);
    }

.committee-home-photo {
    position: relative;
    height: 230px;
    background: var(--cf-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

    .committee-home-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
    }

.committee-home-role {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 6px 10px;
    background: rgba(11, 61, 92, .88);
    color: #fff;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: center;
}

.committee-home-body {
    padding: 16px 14px 18px;
    text-align: center;
}

    .committee-home-body h3 {
        font-size: 1.05rem;
        font-weight: 800;
        margin: 0 0 5px;
        color: var(--cf-heading);
    }

    .committee-home-body p {
        font-size: 0.85rem;
        margin: 0;
        color: var(--cf-muted);
    }

.committee-home-inst {
    margin-top: 3px !important;
    font-size: 0.78rem !important;
}

#committee {
    scroll-margin-top: 110px;
}

/* =========================================================
       REGISTRATION FEES SECTION
       ========================================================= */
.cf-registration-section {
    background: #fff;
}

.registration-fee-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.registration-fee-card {
    position: relative;
    text-align: center;
    padding: 40px 32px 34px;
    overflow: hidden;
    border-radius: var(--cf-radius);
    background: #fff;
    border: 1px solid var(--cf-border);
    box-shadow: var(--cf-shadow-hover);
    transform: translateY(-4px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .registration-fee-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
    }

.fee-faculty::before {
    background: linear-gradient(90deg, #0b63ce, #42a5f5);
}

.fee-student::before {
    background: linear-gradient(90deg, #00a896, #32d3bd);
}

.fee-industry::before {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.fee-icon {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 18px;
    font-size: 28px;
    color: var(--cf-primary);
    background: #eaf4ff;
}

.fee-student .fee-icon {
    color: var(--cf-secondary);
    background: #e8fbf7;
}

.fee-industry .fee-icon {
    color: #d97706;
    background: #fff5df;
}

.fee-category {
    display: block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--cf-muted);
}

.fee-amount {
    margin-top: 10px;
    font-size: 40px;
    line-height: 1;
    font-weight: 900;
    color: var(--cf-heading);
}

.registration-fee-card p {
    margin: 14px 0 24px;
    font-size: 15.5px;
    color: var(--cf-muted);
}

.fee-register-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 165px;
    padding: 13px 22px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cf-primary), #2588ed);
    border: 2px solid var(--cf-primary);
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(11, 99, 206, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .fee-register-link:hover {
        color: #ffffff;
        transform: translateY(-2px);
        text-decoration: none;
    }

    .fee-register-link i {
        font-size: 18px;
        transform: translateX(5px);
    }

.fee-student .fee-register-link {
    color: #ffffff;
    background: linear-gradient(135deg, var(--cf-secondary), #16c9b3);
    border-color: var(--cf-secondary);
    box-shadow: 0 8px 20px rgba(0, 168, 150, 0.25);
}

.fee-industry .fee-register-link {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    border-color: #f59e0b;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
}

/* RESPONSIVE STYLES */
@media (max-width: 1199px) {
    .quick-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .speaker-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .cf-home-section {
        padding: 70px 0;
    }

    .chemfest-hero {
        min-height: 600px;
    }

    .registration-fee-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .chemfest-hero-info {
        flex-direction: column;
        gap: 18px;
    }

    .hero-info-divider {
        display: none;
    }

    .quick-info-grid {
        grid-template-columns: 1fr;
    }

    .speaker-grid {
        grid-template-columns: 1fr;
    }

    .committee-home-grid {
        gap: 14px;
    }

    .committee-home-card {
        width: calc(50% - 7px);
    }

    .committee-home-photo {
        height: 180px;
    }
}
/* Override to make Organizing Committee heading font size and boldness exact match to Registration Fees */
#committee .cf-section-heading h2,
#committee h2 {
    font-size: clamp(2rem, 3.2vw, 3rem) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    color: var(--cf-heading) !important;
    letter-spacing: normal !important;
    -webkit-text-stroke: 0px !important;
}
/* --- ENLARGED & HIGHER-CONTRAST PRICING STYLES --- */
.fee-price-box {
    margin: 12px 0 20px 0;
}

.fee-amount {
    margin-top: 5px;
    font-size: 44px; /* Increased from 40px */
    line-height: 1;
    font-weight: 900;
    color: var(--cf-heading);
}

.fee-subtext {
    display: block;
    font-size: 13.5px; /* Increased from 12px */
    font-weight: 700;
    color: #12365a; /* Darker for better visibility */
    margin-top: 2px;
    margin-bottom: 10px;
}

.fee-late-amount {
    font-size: 17px; /* Increased from 15px */
    font-weight: 900;
    color: #d97706; /* Bold amber/orange for high visibility */
    padding-top: 8px;
    border-top: 1px solid var(--cf-border);
    display: inline-block;
    width: 100%;
}

.fee-late-label {
    font-size: 13px; /* Increased from 11.5px */
    font-weight: 700;
    color: var(--cf-muted);
}




/* =========================================================
   CDRI-CHEM-FEST 2027 - ULTRA-COMPACT RESPONSIVE OVERRIDES (v2)
   REPLACE the earlier responsive block with this one.
   Paste at the VERY END of home.css.
   Needs in _Layout.cshtml: <meta name="viewport" content="width=device-width, initial-scale=1" />
   ========================================================= */

html, body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

.chemfest-main-title, .cf-section-heading h2, .speaker-content h3,
.committee-home-body h3, .quick-info-card strong, .hero-info-item strong {
    overflow-wrap: anywhere;
}

@media (hover: none) {
    .chemfest-btn:hover, .speaker-card:hover,
    .committee-home-card:hover, .fee-register-link:hover {
        transform: none;
    }
}

.fee-register-link i {
    transform: none;
    margin-left: 2px;
}

/* ---------- Tablet landscape / small laptop ---------- */
@media (max-width: 1199px) {
    .about-content-card.about-card-main {
        padding: 34px 32px;
    }

    .registration-fee-card {
        padding: 32px 20px 26px;
    }
}

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
    .cf-home-section {
        padding: 52px 0;
    }

    .cf-section-heading {
        margin-bottom: 28px;
    }

    .chemfest-hero {
        min-height: auto;
    }

    .chemfest-hero-content {
        padding: 54px 0;
        max-width: 100%;
    }

    .cf-about-section, .committee-home-section {
        padding: 44px 0;
    }

    .registration-fee-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
}

/* =========================================================
   MOBILE - everything tight, each section fits ~ one screen
   ========================================================= */
@media (max-width: 767px) {

    .container, .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    .cf-home-section {
        padding: 24px 0;
    }

    .cf-section-heading {
        margin-bottom: 14px;
    }

    .cf-section-kicker {
        font-size: 10.5px;
        letter-spacing: 1.2px;
        margin-bottom: 3px;
    }

    .cf-heading-line {
        width: 44px;
        height: 3px;
        margin-top: 8px;
    }

    .cf-section-heading h2,
    .section-title,
    #committee .cf-section-heading h2,
    #committee h2,
    .committee-home-section .section-title {
        font-size: 1.3rem !important;
        line-height: 1.2 !important;
    }

    /* ---------- HERO ---------- */
    .chemfest-hero-content {
        padding: 24px 0 26px;
    }

    .chemfest-hero-overlay {
        background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.88));
    }

    .chemfest-kicker {
        font-size: 10.5px;
        padding: 5px 10px;
        letter-spacing: 1px;
        margin-bottom: 8px;
    }

    .chemfest-main-title {
        font-size: clamp(1.8rem, 9vw, 2.3rem);
        line-height: 1.05;
        letter-spacing: -.3px;
    }

    .chemfest-subtitle {
        margin-top: 8px;
        font-size: .88rem;
        line-height: 1.35;
    }

    .chemfest-hero-info {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px 18px;
        margin-top: 12px;
    }

    .hero-info-divider {
        display: none;
    }

    .hero-info-item {
        gap: 0;
    }

    .hero-info-label {
        font-size: 10px;
        letter-spacing: .8px;
    }

    .hero-info-item strong {
        font-size: 14px;
        line-height: 1.25;
    }

    .chemfest-hero-actions {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        margin-top: 14px;
    }

    .chemfest-btn {
        flex: 1 1 0;
        width: auto;
        min-height: 38px;
        padding: 8px 10px;
        font-size: 13px;
        border-radius: 9px;
        gap: 6px;
    }

    /* ---------- QUICK INFO (2 x 2, tiny) ---------- */
    .quick-info-highlight {
        padding: 10px 0;
    }

    .quick-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .quick-info-card {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 7px 8px;
        border-radius: 10px;
    }

    .quick-info-icon {
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
        font-size: 14px;
        border-radius: 8px;
    }

    .quick-info-card span {
        font-size: 9px;
        letter-spacing: .5px;
        margin-bottom: 0;
    }

    .quick-info-card strong {
        font-size: 11.5px;
        line-height: 1.25;
    }

    /* ---------- ABOUT ---------- */
    .cf-about-section {
        padding: 18px 0;
    }

    .about-content-card.about-card-main {
        padding: 14px 12px;
        border-top-width: 3px;
        border-radius: 12px;
    }

    .about-card-text p {
        font-size: 12.5px;
        line-height: 1.5;
        margin-bottom: 8px;
    }

    /* ---------- SPEAKERS (2 col) ---------- */
    .speaker-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .speaker-card {
        border-radius: 12px;
    }

    .speaker-image-wrap {
        height: 105px;
    }

    .speaker-placeholder {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }

    .speaker-content {
        padding: 8px;
    }

    .speaker-role {
        font-size: 8.5px;
        margin-bottom: 2px;
        letter-spacing: .5px;
    }

    .speaker-content h3 {
        font-size: 12px;
        margin-bottom: 3px;
        line-height: 1.25;
    }

    .speaker-content p {
        font-size: 10.5px;
        line-height: 1.3;
        margin-bottom: 2px;
    }

    .speaker-content small {
        font-size: 9.5px;
        line-height: 1.3;
    }

    /* ---------- COMMITTEE (3 per row) ---------- */
    .committee-home-section {
        padding: 22px 0;
    }

    .committee-home-grid {
        gap: 8px;
    }

    .committee-home-card {
        width: calc(33.333% - 6px);
        border-radius: 10px;
    }

    .committee-home-photo {
        height: 98px;
        font-size: 1.2rem;
    }

    .committee-home-role {
        font-size: .5rem;
        padding: 3px 2px;
        letter-spacing: .03em;
    }

    .committee-home-body {
        padding: 6px 4px 8px;
    }

        .committee-home-body h3 {
            font-size: .68rem;
            line-height: 1.2;
            margin-bottom: 0;
        }

        .committee-home-body p {
            font-size: .58rem;
        }

    .committee-home-inst {
        display: none;
    }

    #committee {
        scroll-margin-top: 60px;
    }

    /* ---------- REGISTRATION FEES (3 compact rows) ---------- */
    .registration-fee-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        max-width: 100%;
    }

    .registration-fee-card {
        display: grid;
        grid-template-columns: 40px 1fr auto;
        column-gap: 10px;
        align-items: center;
        text-align: left;
        padding: 12px 12px 10px;
        border-radius: 12px;
        transform: none;
    }

        .registration-fee-card::before {
            height: 4px;
        }

        .registration-fee-card > .fee-icon {
            grid-column: 1;
            grid-row: 1 / span 2;
            width: 40px;
            height: 40px;
            font-size: 18px;
            margin: 0;
            border-radius: 11px;
        }

        .registration-fee-card > .fee-category {
            grid-column: 2;
            grid-row: 1;
            font-size: 10px;
            letter-spacing: .5px;
            text-align: left;
        }

        .registration-fee-card > .fee-price-box {
            grid-column: 2;
            grid-row: 2;
            margin: 0;
        }

        .registration-fee-card > .fee-register-link {
            grid-column: 3;
            grid-row: 1 / span 2;
            width: auto;
            min-width: 0;
            min-height: 0;
            padding: 8px 12px;
            font-size: 12.5px;
            border-radius: 9px;
            gap: 5px;
        }

        .registration-fee-card > p {
            grid-column: 1 / -1;
            grid-row: 3;
            margin: 6px 0 0;
            font-size: 11px;
            text-align: left;
        }

    .fee-amount {
        font-size: 24px;
        margin-top: 0;
    }

    .fee-subtext {
        font-size: 10.5px;
        margin: 1px 0 3px;
    }

    .fee-late-amount {
        font-size: 12px;
        padding-top: 3px;
    }

    .fee-late-label {
        font-size: 10.5px;
    }
}

/* ---------- Very small phones ---------- */
@media (max-width: 380px) {
    .quick-info-card strong {
        font-size: 10.5px;
    }

    .committee-home-photo {
        height: 88px;
    }

    .committee-home-body h3 {
        font-size: .62rem;
    }

    .fee-amount {
        font-size: 21px;
    }

    .registration-fee-card > .fee-register-link {
        padding: 7px 9px;
        font-size: 11.5px;
    }
}

/* ---------- Landscape phones ---------- */
@media (max-height: 480px) and (orientation: landscape) {
    .chemfest-hero-content {
        padding: 18px 0;
    }
}

.fee-faculty .fee-register-link,
.fee-faculty .fee-register-link:hover,
.fee-faculty .fee-register-link:focus,
.fee-faculty .fee-register-link:visited {
    color: #ffffff !important;
}

/* =========================================================
   IMPORTANT DATES - compact mobile
   ========================================================= */
@media (max-width: 767px) {

    .cf-dates-section {
        padding: 24px 0 !important;
    }

        .cf-dates-section .cf-section-heading {
            margin-bottom: 14px !important;
        }

        /* tighten Bootstrap row gutters */
        .cf-dates-section .row {
            --bs-gutter-x: 0 !important;
            --bs-gutter-y: 8px !important;
            margin-left: 0 !important;
            margin-right: 0 !important;
        }

            .cf-dates-section .row > [class*="col-"] {
                padding-left: 0 !important;
                padding-right: 0 !important;
            }

        /* card becomes a compact row: icon | title + text + date */
        .cf-dates-section .card {
            display: grid !important;
            grid-template-columns: 38px 1fr;
            column-gap: 10px;
            align-items: center;
            text-align: left !important;
            padding: 10px 12px !important;
            border-radius: 12px !important;
            border-top-width: 4px !important;
            height: auto !important;
        }

            .cf-dates-section .card > .h3 {
                grid-column: 1;
                grid-row: 1 / span 3;
                width: 38px;
                height: 38px;
                margin: 0 !important;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 18px !important;
                border-radius: 10px;
                background: rgba(11, 99, 206, 0.08);
            }

            .cf-dates-section .card > h5 {
                grid-column: 2;
                margin: 0 !important;
                font-size: 13.5px !important;
                line-height: 1.25;
            }

            .cf-dates-section .card > p {
                grid-column: 2;
                margin: 1px 0 3px !important;
                font-size: 11px !important;
                line-height: 1.3;
            }

            .cf-dates-section .card > .fw-bold.fs-5 {
                grid-column: 2;
                margin: 0 !important;
                font-size: 13px !important;
                line-height: 1.2;
            }
}

/* very small phones */
@media (max-width: 380px) {
    .cf-dates-section .card > h5 {
        font-size: 12.5px !important;
    }

    .cf-dates-section .card > .fw-bold.fs-5 {
        font-size: 12px !important;
    }
}
/* =========================================================
   ABOUT SECTION - ALIGNMENT FIX (all screen sizes)
   ========================================================= */
.cf-about-section .about-content-card.about-card-main {
    box-sizing: border-box;
    width: 100%;
    max-width: 1300px; /* comfortable line length on desktop */
    margin: 0 auto;
    padding: 40px 45px;
    border: 1px solid #c9dff7;
    border-top: 5px solid var(--cf-primary);
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(11, 99, 206, .10);
}

.cf-about-section .about-card-text {
    width: 100%;
    color: #1e293b;
}

    .cf-about-section .about-card-text p {
        margin: 0 0 22px;
        font-size: 1.1rem;
        line-height: 1.85;
        text-align: justify;
        text-justify: inter-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        overflow-wrap: break-word;
        word-break: normal;
    }

        .cf-about-section .about-card-text p:last-child {
            margin-bottom: 0;
        }

/* Tablet */
@media (max-width: 991px) {
    .cf-about-section .about-content-card.about-card-main {
        padding: 30px 28px;
    }

    .cf-about-section .about-card-text p {
        font-size: 1rem;
        line-height: 1.75;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .cf-about-section .about-content-card.about-card-main {
        padding: 16px 14px;
        border-top-width: 3px;
        border-radius: 12px;
    }

    .cf-about-section .about-card-text p {
        font-size: 13.5px;
        line-height: 1.6;
        margin-bottom: 10px;
        text-align: justify;
    }
}
