/* ============================================================
   CDRI-CHEM-FEST 2027
   GLOBAL LAYOUT
   Clean / Bright / Professional
   HOME PAGE COLOR SYSTEM
   ============================================================ */


/* ============================================================
   01. DESIGN TOKENS
   ============================================================ */

:root {
    /* ---------- HOME PAGE BRAND COLORS ---------- */

    --cf-primary: #0b63ce;
    --cf-primary-dark: #084d9e;
    --cf-secondary: #00a896;
    --cf-orange: #f59e0b;
    --cf-pink: #e83e8c;
    --cf-purple: #7c3aed;
    --cf-cyan: #06b6d4;
    /* ---------- TEXT ---------- */

    --cf-text: #26364a;
    --cf-heading: #12365a;
    --cf-muted: #64748b;
    /* ---------- BACKGROUNDS ---------- */

    --cf-bg: #f7fbff;
    --cf-bg-soft: #eef7ff;
    --cf-white: #ffffff;
    /* ---------- BORDERS ---------- */

    --cf-border: #e2edf7;
    --cf-border-soft: #edf4fa;
    /* ---------- CONTAINER ---------- */

    --cf-container: 1280px;
    /* ---------- RADIUS ---------- */

    --cf-radius-sm: 10px;
    --cf-radius-md: 16px;
    --cf-radius-lg: 24px;
    --cf-radius: 20px;
    /* ---------- SHADOWS ---------- */

    --cf-shadow-sm: 0 4px 16px rgba(21, 71, 112, 0.07);
    --cf-shadow-md: 0 12px 32px rgba(21, 71, 112, 0.10);
    --cf-shadow: 0 15px 45px rgba(21, 71, 112, 0.10);
    --cf-shadow-hover: 0 22px 55px rgba(21, 71, 112, 0.16);
    /* ---------- TRANSITION ---------- */

    --cf-transition: 0.25s ease;
}


/* ============================================================
   02. BASE
   ============================================================ */

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

html,
body.chem-layout {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

.chem-layout,
.chem-layout *,
.chem-layout *::before,
.chem-layout *::after {
    box-sizing: border-box;
}

body.chem-layout {
    min-height: 100vh;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--cf-text);
    background: var(--cf-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.chem-layout img {
    max-width: 100%;
}

.chem-layout a {
    color: inherit;
}

.chem-layout button,
.chem-layout input,
.chem-layout select,
.chem-layout textarea {
    font: inherit;
}


/* ============================================================
   03. MAIN CONTAINER
   ============================================================ */

.chem-layout .chem-container {
    width: min( calc(100% - 48px), var(--cf-container) );
    margin-left: auto;
    margin-right: auto;
}


/* ============================================================
   04. TOP BAR
   ============================================================ */

.chem-layout .chem-topbar {
    width: 100%;
    min-height: 46px;
    color: #ffffff;
    background: linear-gradient( 135deg, var(--cf-heading) 0%, #164a73 55%, var(--cf-primary-dark) 100% );
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.chem-layout .chem-topbar-inner {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.chem-layout .chem-topbar-left,
.chem-layout .chem-topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.chem-layout .chem-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.025em;
}

    .chem-layout .chem-topbar-item i {
        color: var(--cf-cyan);
        font-size: 0.95rem;
        line-height: 1;
    }

.chem-layout .chem-topbar-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.22);
}


/* ============================================================
   05. HEADER
   ============================================================ */

.chem-layout .chem-header {
    position: relative;
    z-index: 100;
    width: 100%;
    background: var(--cf-white);
    box-shadow: 0 3px 18px rgba(21, 71, 112, 0.06);
}


/* ============================================================
   06. BRANDING BAR
   ============================================================ */

.chem-layout .chem-brandbar {
    width: 100%;
    background: linear-gradient( to bottom, #ffffff 0%, #f7fbff 100% );
    border-bottom: 1px solid var(--cf-border);
}

.chem-layout .chem-brandbar-inner {
    min-height: 175px;
    display: grid;
    grid-template-columns: 270px minmax(400px, 1fr) 270px;
    align-items: center;
    gap: 0;
    padding: 10px 0;
}


/* ============================================================
   07. BRAND SIDES
   ============================================================ */

.chem-layout .chem-brand-side {
    min-width: 0;
    display: flex;
    align-items: center;
}

.chem-layout .chem-brand-side-left {
    justify-content: flex-start;
    padding-left: 30px;
}

.chem-layout .chem-brand-side-right {
    justify-content: flex-end;
    padding-right: 30px;
}


/* ============================================================
   08. LOGO LINK
   ============================================================ */

.chem-layout .chem-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 210px;
    height: 110px;
    margin: 0;
    padding: 0;
    text-decoration: none;
    overflow: visible;
    transition: opacity var(--cf-transition), transform var(--cf-transition);
}

    .chem-layout .chem-logo-link:hover {
        opacity: 0.94;
        transform: translateY(-1px);
    }


/* ============================================================
   09. LOGOS
   ============================================================ */

.chem-layout .chem-logo {
    display: block;
    max-width: none;
    max-height: none;
    width: 210px;
    height: 130px;
    margin: 0;
    object-fit: fill;
    object-position: center;
}

.chem-layout .chem-logo-left {
    width: 210px;
    height: 170px;
    max-width: none;
    max-height: none;
    object-fit: fill;
    transform: scaleX(1.18);
    transform-origin: left center;
}

.chem-layout .chem-logo-right {
    width: 210px;
    height: 110px;
    max-width: none;
    max-height: none;
    object-fit: fill;
    transform: scaleX(1.05);
    transform-origin: right center;
}


/* ============================================================
   10. CENTER CONFERENCE BRAND
   ============================================================ */

.chem-layout .chem-conference-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.chem-layout .chem-conference-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
}


/* ============================================================
   11. CENTER TITLE
   ============================================================ */

.chem-layout .chem-conference-code {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--cf-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 2px;
}

.chem-layout .chem-conference-year {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--cf-primary);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 1px;
    margin-top: 3px;
    margin-bottom: 8px;
}

.chem-layout .chem-conference-line {
    width: 70px;
    height: 4px;
    margin-top: 9px;
    border-radius: 50px;
    background: linear-gradient( 90deg, var(--cf-primary), var(--cf-secondary), var(--cf-cyan) );
}

.chem-layout .chem-conference-subtitle {
    margin-top: 10px;
    color: var(--cf-muted);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.14em;
}


/* ============================================================
   12. NAVIGATION WRAPPER
   ============================================================ */

.chem-layout .chem-nav-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: linear-gradient( 135deg, var(--cf-heading) 0%, #16466c 48%, var(--cf-primary-dark) 100% );
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 25px rgba(21, 71, 112, 0.18);
}


    /* ============================================================
   13. DESKTOP NAVIGATION
   ============================================================ */

    .chem-layout .chem-nav-wrapper .chem-container {
        width: 100%;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 15px;
        padding-right: 15px;
    }

.chem-layout .chem-nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.chem-layout .chem-nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}


/* ============================================================
   14. NAV LINK
   ============================================================ */

.chem-layout .chem-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 54px;
    padding: 10px 14px;
    border-radius: 9px;
    color: #ffffff !important;
    background: transparent;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--cf-transition), color var(--cf-transition), transform var(--cf-transition), box-shadow var(--cf-transition);
}

    .chem-layout .chem-nav-link i {
        color: var(--cf-cyan);
        font-size: 16px;
        transition: color var(--cf-transition), transform var(--cf-transition);
    }

    .chem-layout .chem-nav-link:hover {
        color: #ffffff !important;
        background: linear-gradient( 135deg, var(--cf-primary), var(--cf-secondary) );
        transform: translateY(-1px);
        box-shadow: 0 7px 18px rgba(0, 168, 150, 0.20);
        text-decoration: none;
    }

        .chem-layout .chem-nav-link:hover i {
            color: #ffffff;
            transform: translateY(-1px);
        }

    .chem-layout .chem-nav-link.active {
        color: #ffffff !important;
        background: linear-gradient( 135deg, var(--cf-primary), var(--cf-secondary) );
        box-shadow: 0 7px 18px rgba(0, 168, 150, 0.22);
    }

        .chem-layout .chem-nav-link.active i {
            color: #ffffff;
        }


/* ============================================================
   15. EXPLORE LUCKNOW
   ============================================================ */

.chem-layout .chem-nav-lucknow {
    white-space: nowrap !important;
    min-width: max-content;
    flex-shrink: 0;
}

    .chem-layout .chem-nav-lucknow span {
        display: inline-block;
        white-space: nowrap !important;
    }


/* ============================================================
   16. ACCOUNT NAV
   ============================================================ */

.chem-layout .chem-nav-account {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.chem-layout .chem-account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 9px 13px;
    color: #ffffff !important;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--cf-transition), border-color var(--cf-transition), color var(--cf-transition);
}

    .chem-layout .chem-account-link i {
        color: var(--cf-cyan);
        font-size: 16px;
    }

    .chem-layout .chem-account-link:hover,
    .chem-layout .chem-account-link.active {
        color: #ffffff !important;
        background: rgba(0, 168, 150, 0.18);
        border-color: rgba(6, 182, 212, 0.35);
        text-decoration: none;
    }

        .chem-layout .chem-account-link:hover i,
        .chem-layout .chem-account-link.active i {
            color: #ffffff;
        }

.chem-layout .chem-logout-form {
    margin: 0;
    padding: 0;
}

.chem-layout .chem-logout-button {
    cursor: pointer;
    font-family: inherit;
}


/* ============================================================
   17. REGISTER / DASHBOARD BUTTON
   ============================================================ */

.chem-layout .chem-register-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    margin-left: 4px;
    padding: 10px 18px;
    border-radius: 10px;
    color: #ffffff !important;
    background: linear-gradient( 0, var(--cf-primary), #08b993 );
    border: 1px solid var(--cf-secondary);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 17px rgba(0, 168, 150, 0.20);
    transition: all var(--cf-transition);
}

    .chem-layout .chem-register-button i {
        color: #ffffff;
    }

    .chem-layout .chem-register-button:hover,
    .chem-layout .chem-register-button.active {
        color: #ffffff !important;
        background: linear-gradient( 135deg, var(--cf-primary), var(--cf-secondary) );
        border-color: var(--cf-primary);
        transform: translateY(-2px);
        box-shadow: 0 9px 23px rgba(11, 99, 206, 0.25);
        text-decoration: none;
    }


/* ============================================================
   18. MOBILE HEADER
   ============================================================ */

.chem-layout .chem-mobile-header {
    display: none;
    width: 100%;
    background: var(--cf-white);
    border-top: 1px solid var(--cf-border-soft);
}

.chem-layout .chem-mobile-header-inner {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.chem-layout .chem-mobile-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    color: var(--cf-heading);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
}

    .chem-layout .chem-mobile-brand strong {
        color: var(--cf-primary);
        font-size: 1.2rem;
        font-weight: 800;
    }


/* ============================================================
   19. MOBILE TOGGLE
   ============================================================ */

.chem-layout .chem-mobile-toggle {
    width: 44px;
    height: 44px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid var(--cf-border);
    border-radius: 11px;
    background: var(--cf-white);
    cursor: pointer;
    transition: background var(--cf-transition), border-color var(--cf-transition);
}

    .chem-layout .chem-mobile-toggle:hover {
        background: #eef7ff;
        border-color: rgba(11, 99, 206, 0.30);
    }

    .chem-layout .chem-mobile-toggle span {
        width: 20px;
        height: 2px;
        display: block;
        border-radius: 5px;
        background: var(--cf-heading);
        transition: transform var(--cf-transition), opacity var(--cf-transition);
    }

    .chem-layout .chem-mobile-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .chem-layout .chem-mobile-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .chem-layout .chem-mobile-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }


/* ============================================================
   20. MOBILE PANEL
   ============================================================ */

.chem-layout .chem-mobile-panel {
    display: none;
    width: 100%;
    background: linear-gradient( 135deg, var(--cf-heading), var(--cf-primary-dark) );
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 15px 35px rgba(21, 71, 112, 0.15);
}

    .chem-layout .chem-mobile-panel.is-open {
        display: block;
    }

.chem-layout .chem-mobile-nav {
    padding: 12px 0 20px;
}

.chem-layout .chem-mobile-nav-link {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 16px;
    margin-bottom: 5px;
    color: #ffffff !important;
    background: transparent;
    border: 0;
    border-radius: 9px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--cf-transition), color var(--cf-transition);
}

    .chem-layout .chem-mobile-nav-link i {
        width: 22px;
        color: var(--cf-cyan);
        font-size: 17px;
        text-align: center;
    }

    .chem-layout .chem-mobile-nav-link:hover,
    .chem-layout .chem-mobile-nav-link.active {
        color: #ffffff !important;
        background: linear-gradient( 135deg, var(--cf-primary), var(--cf-secondary) );
        text-decoration: none;
    }

        .chem-layout .chem-mobile-nav-link:hover i,
        .chem-layout .chem-mobile-nav-link.active i {
            color: #ffffff;
        }


/* ============================================================
   21. MOBILE REGISTER / DASHBOARD
   ============================================================ */

.chem-layout .chem-mobile-action {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    margin-top: 7px;
    border-radius: 10px;
    color: #ffffff !important;
    background: linear-gradient( 135deg, var(--cf-secondary), #08b993 );
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    text-decoration: none;
    transition: background var(--cf-transition), transform var(--cf-transition);
}

    .chem-layout .chem-mobile-action:hover,
    .chem-layout .chem-mobile-action.active {
        color: #ffffff !important;
        background: linear-gradient( 135deg, var(--cf-primary), var(--cf-secondary) );
        transform: translateY(-1px);
        text-decoration: none;
    }

    .chem-layout .chem-mobile-action i {
        color: #ffffff;
    }


/* ============================================================
   22. MOBILE LOGOUT
   ============================================================ */

.chem-layout .chem-mobile-logout-form {
    margin: 0;
}

.chem-layout .chem-mobile-logout {
    width: 100%;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}


/* ============================================================
   23. MOBILE DIVIDER
   ============================================================ */

.chem-layout .chem-mobile-divider {
    height: 1px;
    margin: 12px 0;
    background: rgba(255, 255, 255, 0.13);
}


/* ============================================================
   24. MAIN
   ============================================================ */

.chem-layout .chem-main {
    width: 100%;
    min-height: 50vh;
    background: var(--cf-white);
}


/* ============================================================
   25. FOOTER
   ============================================================ */

.chem-layout .chem-footer {
    color: #d6e5ef;
    background: var(--cf-heading);
}

.chem-layout .chem-footer-main {
    padding: 62px 0 52px;
    background: radial-gradient( circle at 85% 20%, rgba(0, 168, 150, 0.13), transparent 27% ), radial-gradient( circle at 15% 85%, rgba(11, 99, 206, 0.12), transparent 30% ), linear-gradient( 125deg, #12365a 0%, #16466c 60%, #084d9e 100% );
}

.chem-layout .chem-footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.8fr 0.8fr 1fr;
    gap: 48px;
}


/* ============================================================
   26. FOOTER BRAND
   ============================================================ */

.chem-layout .chem-footer-brand {
    max-width: 420px;
}

.chem-layout .chem-footer-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

    .chem-layout .chem-footer-title span {
        color: #ffffff;
        font-size: 1.5rem;
        font-weight: 800;
        letter-spacing: -0.025em;
    }

    .chem-layout .chem-footer-title strong {
        color: var(--cf-secondary);
        font-size: 1.65rem;
        font-weight: 800;
    }

.chem-layout .chem-footer-tagline {
    margin: 12px 0 0;
    color: var(--cf-orange);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

.chem-layout .chem-footer-description {
    max-width: 390px;
    margin: 13px 0 0;
    color: #b9cedd;
    font-size: 0.96rem;
    line-height: 1.75;
}


/* ============================================================
   27. FOOTER COLUMNS
   ============================================================ */

.chem-layout .chem-footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

    .chem-layout .chem-footer-column h3 {
        position: relative;
        margin: 0 0 10px;
        padding-bottom: 10px;
        color: #ffffff;
        font-size: 1rem;
        font-weight: 800;
        line-height: 1.3;
    }

        .chem-layout .chem-footer-column h3::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 35px;
            height: 3px;
            border-radius: 10px;
            background: linear-gradient( 90deg, var(--cf-secondary), var(--cf-cyan) );
        }

    .chem-layout .chem-footer-column a {
        color: #c3d5e1;
        font-size: 0.94rem;
        font-weight: 500;
        line-height: 1.55;
        text-decoration: none;
        transition: color var(--cf-transition), transform var(--cf-transition);
    }

        .chem-layout .chem-footer-column a:hover {
            color: #ffffff;
            transform: translateX(3px);
        }


/* ============================================================
   28. FOOTER CONTACT
   ============================================================ */

.chem-layout .chem-footer-contact {
    gap: 13px;
}

.chem-layout .chem-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #c3d5e1;
    font-size: 0.92rem;
    line-height: 1.55;
}

    .chem-layout .chem-footer-contact-item i {
        flex: 0 0 auto;
        margin-top: 3px;
        color: var(--cf-cyan);
        font-size: 1rem;
    }


/* ============================================================
   29. FOOTER BOTTOM
   ============================================================ */

.chem-layout .chem-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    background: #0d2945;
}

.chem-layout .chem-footer-bottom-inner {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.chem-layout .chem-footer-bottom p {
    margin: 0;
    color: #9eb5c5;
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.5;
}


/* ============================================================
   30. FOCUS ACCESSIBILITY
   ============================================================ */

.chem-layout a:focus-visible,
.chem-layout button:focus-visible {
    outline: 3px solid rgba(6, 182, 212, 0.35);
    outline-offset: 3px;
}


/* ============================================================
   31. LARGE TABLET
   ============================================================ */

@media (max-width: 1199.98px) {

    .chem-layout .chem-container {
        width: min( calc(100% - 40px), 1120px );
    }

    .chem-layout .chem-brandbar .chem-container,
    .chem-layout .chem-nav-wrapper .chem-container {
        max-width: 1120px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .chem-layout .chem-brandbar-inner {
        min-height: 160px !important;
        grid-template-columns: 230px minmax(300px, 1fr) 230px !important;
    }

    .chem-layout .chem-brand-side-left {
        padding-left: 20px !important;
    }

    .chem-layout .chem-brand-side-right {
        padding-right: 20px !important;
    }

    .chem-layout .chem-logo-link {
        width: 200px !important;
        height: 105px !important;
    }

    .chem-layout .chem-logo,
    .chem-layout .chem-logo-left,
    .chem-layout .chem-logo-right {
        width: 200px !important;
        height: 100px !important;
        max-width: none !important;
        max-height: none !important;
    }

    .chem-layout .chem-conference-code {
        font-size: 2.8rem !important;
    }

    .chem-layout .chem-conference-year {
        font-size: 3rem !important;
    }

    .chem-layout .chem-nav-link {
        gap: 6px;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 14px;
    }

    .chem-layout .chem-account-link {
        padding-left: 9px;
        padding-right: 9px;
        font-size: 14px;
    }

    .chem-layout .chem-register-button {
        padding-left: 13px;
        padding-right: 13px;
        font-size: 14px;
    }

    .chem-layout .chem-footer-grid {
        gap: 35px;
    }
}


/* ============================================================
   32. TABLET
   ============================================================ */

@media (max-width: 991.98px) {

    .chem-layout .chem-topbar-left {
        display: none;
    }

    .chem-layout .chem-topbar-inner {
        justify-content: center;
    }

    .chem-layout .chem-nav-wrapper {
        display: none;
    }

    .chem-layout .chem-mobile-header {
        display: block;
    }

    .chem-layout .chem-brandbar-inner {
        min-height: 135px !important;
        grid-template-columns: 165px minmax(220px, 1fr) 165px !important;
    }

    .chem-layout .chem-brand-side-left {
        padding-left: 10px !important;
    }

    .chem-layout .chem-brand-side-right {
        padding-right: 10px !important;
    }

    .chem-layout .chem-logo-link {
        width: 145px !important;
        height: 80px !important;
    }

    .chem-layout .chem-logo,
    .chem-layout .chem-logo-left,
    .chem-layout .chem-logo-right {
        width: 145px !important;
        height: 75px !important;
        max-width: none !important;
        max-height: none !important;
    }

    .chem-layout .chem-conference-code {
        font-size: 2.2rem !important;
    }

    .chem-layout .chem-conference-year {
        font-size: 2.4rem !important;
    }

    .chem-layout .chem-conference-subtitle {
        font-size: 0.8rem !important;
        letter-spacing: 0.08em;
    }

    .chem-layout .chem-footer-grid {
        grid-template-columns: repeat( 2, minmax(0, 1fr) );
        gap: 40px 30px;
    }
}


/* ============================================================
   33. MOBILE
   ============================================================ */

@media (max-width: 767.98px) {

    .chem-layout .chem-container {
        width: calc(100% - 30px);
    }


    /* ---------- TOPBAR ---------- */

    .chem-layout .chem-topbar,
    .chem-layout .chem-topbar-inner {
        min-height: 38px;
    }

    .chem-layout .chem-topbar-right {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }

    .chem-layout .chem-topbar-item {
        font-size: 0.72rem;
    }

    .chem-layout .chem-topbar-right
    .chem-topbar-item:last-child {
        display: none;
    }


    /* ---------- BRANDING ---------- */

    .chem-layout .chem-brandbar .chem-container {
        width: 100% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .chem-layout .chem-brandbar-inner {
        min-height: 105px !important;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 5px;
    }

    .chem-layout .chem-brand-side {
        flex: 0 0 auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .chem-layout .chem-logo-link {
        width: 100px !important;
        height: 58px !important;
    }

    .chem-layout .chem-logo,
    .chem-layout .chem-logo-left,
    .chem-layout .chem-logo-right {
        width: 100px !important;
        height: 55px !important;
        max-width: none !important;
        max-height: none !important;
    }

    .chem-layout .chem-conference-brand {
        flex: 1 1 auto !important;
        min-width: 0;
    }

    .chem-layout .chem-conference-code {
        font-size: 1.3rem !important;
        letter-spacing: 0 !important;
    }

    .chem-layout .chem-conference-year {
        font-size: 1.6rem !important;
        margin-bottom: 5px !important;
    }

    .chem-layout .chem-conference-line {
        width: 38px;
        height: 2px;
        margin-top: 6px;
    }

    .chem-layout .chem-conference-subtitle {
        margin-top: 6px;
        font-size: 0.58rem !important;
        letter-spacing: 0.045em !important;
    }


    /* ---------- MOBILE HEADER ---------- */

    .chem-layout .chem-mobile-header-inner {
        min-height: 60px;
    }


    /* ---------- FOOTER ---------- */

    .chem-layout .chem-footer-main {
        padding: 26px 0 20px;
    }

    .chem-layout .chem-footer-grid {
        grid-template-columns: repeat( 2, minmax(0, 1fr) );
        gap: 22px 18px;
    }

    .chem-layout .chem-footer-brand,
    .chem-layout .chem-footer-contact {
        grid-column: 1 / -1;
    }


    /* ---------- FOOTER BRAND ---------- */

    .chem-layout .chem-footer-title span {
        font-size: 1.2rem;
    }

    .chem-layout .chem-footer-title strong {
        font-size: 1.3rem;
    }

    .chem-layout .chem-footer-tagline {
        margin-top: 6px;
        font-size: 0.9rem;
    }

    .chem-layout .chem-footer-description {
        margin-top: 8px;
        font-size: 0.84rem;
        line-height: 1.55;
    }


    /* ---------- FOOTER LINKS ---------- */

    .chem-layout .chem-footer-column {
        gap: 6px;
    }

        .chem-layout .chem-footer-column h3 {
            margin: 0 0 4px;
            padding-bottom: 8px;
            font-size: 0.92rem;
        }

            .chem-layout .chem-footer-column h3::after {
                width: 28px;
                height: 2px;
            }

        .chem-layout .chem-footer-column a {
            font-size: 0.88rem;
            line-height: 1.45;
        }


    /* ---------- FOOTER CONTACT ---------- */

    .chem-layout .chem-footer-contact {
        gap: 8px;
    }

    .chem-layout .chem-footer-contact-item {
        gap: 9px;
        font-size: 0.86rem;
        line-height: 1.45;
    }

        .chem-layout .chem-footer-contact-item i {
            margin-top: 2px;
            font-size: 0.92rem;
        }


    /* ---------- FOOTER BOTTOM ---------- */

    .chem-layout .chem-footer-bottom-inner {
        min-height: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 12px 0;
    }

    .chem-layout .chem-footer-bottom p {
        font-size: 0.75rem;
        line-height: 1.45;
    }
}


/* ============================================================
   34. SMALL MOBILE
   ============================================================ */

@media (max-width: 480px) {

    .chem-layout .chem-container {
        width: calc(100% - 24px);
    }

    .chem-layout .chem-topbar-item {
        font-size: 0.66rem;
    }

    .chem-layout .chem-brandbar-inner {
        min-height: 92px;
    }

    .chem-layout .chem-logo-link {
        width: 82px !important;
        height: 48px !important;
    }

    .chem-layout .chem-logo,
    .chem-layout .chem-logo-left,
    .chem-layout .chem-logo-right {
        width: 82px !important;
        height: 45px !important;
        max-width: none !important;
        max-height: none !important;
    }

    .chem-layout .chem-conference-code {
        font-size: 1.05rem !important;
    }

    .chem-layout .chem-conference-year {
        font-size: 1.3rem !important;
    }

    .chem-layout .chem-conference-subtitle {
        font-size: 0.46rem !important;
        letter-spacing: 0.035em !important;
    }

    .chem-layout .chem-mobile-brand {
        font-size: 0.94rem;
    }

        .chem-layout .chem-mobile-brand strong {
            font-size: 1.03rem;
        }
}


/* ============================================================
   35. VERY SMALL MOBILE
   ============================================================ */

@media (max-width: 340px) {

    .chem-layout .chem-footer-grid {
        gap: 20px 12px;
    }

    .chem-layout .chem-footer-column a {
        font-size: 0.84rem;
    }
}


/* ============================================================
   36. NAV ACTIVE ACCOUNT FIX
   ============================================================ */

/* Login / Profile / Logout */

.chem-layout .chem-account-link.active,
.chem-layout .chem-account-link.active:hover,
.chem-layout .chem-account-link.active:focus {
    background: rgba(255, 255, 255, 0.14) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.40) !important;
    color: #ffffff !important;
    text-shadow: none !important;
}

    .chem-layout .chem-account-link.active span,
    .chem-layout .chem-account-link.active i {
        color: #ffffff !important;
        opacity: 1 !important;
    }


/* Register / Dashboard */

/*.chem-layout .chem-register-button.active,
.chem-layout .chem-register-button.active span,
.chem-layout .chem-register-button.active i {
    color: #ffffff !important;
    opacity: 1 !important;
}*/


/* Mobile active */

.chem-layout .chem-mobile-nav-link.active,
.chem-layout .chem-mobile-action.active {
    background: linear-gradient( 135deg, var(--cf-primary), var(--cf-secondary) ) !important;
/*    color: #ffffff !important;*/
}

    .chem-layout .chem-mobile-nav-link.active span,
    .chem-layout .chem-mobile-nav-link.active i,
    .chem-layout .chem-mobile-action.active span,
    .chem-layout .chem-mobile-action.active i {
/*        color: #ffffff !important;*/
        opacity: 1 !important;
    }


/* ============================================================
   37. MOBILE FOOTER COMPACT
   ============================================================ */

@media (max-width: 767.98px) {

    .chem-layout .chem-footer-main {
        padding: 26px 0 20px;
    }

    .chem-layout .chem-footer-grid {
        grid-template-columns: repeat( 2, minmax(0, 1fr) );
        gap: 22px 18px;
    }

    .chem-layout .chem-footer-brand,
    .chem-layout .chem-footer-contact {
        grid-column: 1 / -1;
    }

    .chem-layout .chem-footer-title span {
        font-size: 1.2rem;
    }

    .chem-layout .chem-footer-title strong {
        font-size: 1.3rem;
    }

    .chem-layout .chem-footer-tagline {
        margin-top: 6px;
        font-size: 0.9rem;
    }

    .chem-layout .chem-footer-description {
        margin-top: 8px;
        font-size: 0.84rem;
        line-height: 1.55;
    }

    .chem-layout .chem-footer-column {
        gap: 6px;
    }

        .chem-layout .chem-footer-column h3 {
            margin: 0 0 4px;
            padding-bottom: 8px;
            font-size: 0.92rem;
        }

            .chem-layout .chem-footer-column h3::after {
                width: 28px;
                height: 2px;
            }

        .chem-layout .chem-footer-column a {
            font-size: 0.88rem;
            line-height: 1.45;
        }

    .chem-layout .chem-footer-contact {
        gap: 8px;
    }

    .chem-layout .chem-footer-contact-item {
        gap: 9px;
        font-size: 0.86rem;
        line-height: 1.45;
    }

        .chem-layout .chem-footer-contact-item i {
            margin-top: 2px;
            font-size: 0.92rem;
        }

    .chem-layout .chem-footer-bottom-inner {
        gap: 2px;
        padding: 12px 0;
    }

    .chem-layout .chem-footer-bottom p {
        font-size: 0.75rem;
        line-height: 1.45;
    }
}


/* ============================================================
   38. RESPONSIVE NAVIGATION
   ============================================================ */

@media (max-width: 1200px) {

    .chem-layout .chem-nav-link {
        gap: 6px;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 14px;
    }

    .chem-layout .chem-account-link {
        padding-left: 9px;
        padding-right: 9px;
        font-size: 14px;
    }

    .chem-layout .chem-register-button {
        padding-left: 13px;
        padding-right: 13px;
        font-size: 14px;
    }
}

@media (max-width: 991px) {

    .chem-layout .chem-nav-wrapper {
        display: none;
    }
}

@media (min-width: 992px) {

    .chem-layout .chem-mobile-header,
    .chem-layout .chem-mobile-panel {
        display: none !important;
    }
}


/* ============================================================
   39. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .chem-layout *,
    .chem-layout *::before,
    .chem-layout *::after {
        transition: none !important;
        animation: none !important;
    }
}


html {
    scroll-behavior: smooth;
}

#committee, #important-dates {
    scroll-margin-top: 110px;
}

/* Keep the original navbar container and public-link styling unchanged. */
.chem-nav-wrapper .chem-container {
    max-width: 1240px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* Logged-in pages: move only Dashboard, Profile and Logout to the right. */
.chem-nav-authenticated {
    justify-content: flex-start;
    gap: 0;
}

    .chem-nav-authenticated .chem-nav-links {
        flex: 0 0 auto;
        min-width: max-content;
        gap: 2px;
    }

    .chem-nav-authenticated .chem-nav-account {
        display: flex;
        align-items: center;
        gap: 2px;
        margin-left: auto;
        flex: 0 0 auto;
    }

    .chem-nav-authenticated .chem-logout-form {
        display: flex;
        flex: 0 0 auto;
        margin: 0;
    }

    .chem-nav-authenticated .chem-logout-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Preserve the public links' exact font, padding and sizing. */
    .chem-nav-authenticated .chem-nav-link {
        padding: 9px 10px !important;
        font-size: 14.5px !important;
    }

/* Slightly tighten only the three account actions to keep them on the right. */
.chem-layout .chem-nav-authenticated .chem-nav-account .chem-account-link,
.chem-layout .chem-nav-authenticated .chem-nav-account .chem-register-button {
    padding-left: 7px !important;
    padding-right: 7px !important;
}

.chem-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.chem-nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
    min-width: 0;
}

/* Push account links to the far right to prevent overlap */
.chem-nav-account {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

/* Clear font sizes and weights */
.chem-layout .chem-nav-link {
    padding: 9px 10px !important;
    font-size: 14.5px !important;
    gap: 6px !important;
    font-weight: 700 !important;
    white-space: nowrap;
}

.chem-layout .chem-account-link {
    padding: 9px 10px !important;
    font-size: 14.5px !important;
    gap: 6px !important;
    font-weight: 700 !important;
    white-space: nowrap;
}

.chem-layout .chem-register-button {
    padding: 9px 14px !important;
    font-size: 14.5px !important;
    gap: 6px !important;
    margin-left: 2px !important;
    font-weight: 700 !important;
    white-space: nowrap;
}

/* Bold mobile navigation links */
.chem-layout .chem-mobile-nav-link,
.chem-layout .chem-mobile-action {
    font-weight: 700 !important;
}

