:root {
    --ink: #172026;
    --muted: #5b6670;
    --line: #d9e1e7;
    --paper: #f7f9fb;
    --white: #ffffff;
    /* --primary: #006d77;
    --primary-dark: #014d55; */
    --primary: #cb0000;
    --primary-dark: #ae0000;
    --accent: #f2b705;
    --coral: #d95d39;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--white);
}

.event-navbar {
    /*
    background: rgba(255, 255, 255, 0.94);
    */
    background: rgba(3, 43, 54, 0.85);
    border-bottom: 1px solid rgba(23, 32, 38, 0.08);
    backdrop-filter: blur(16px);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    color: var(--ink);
    font-weight: 800;
}

.site-logo {
    display: block;
    width: clamp(136px, 15vw, 178px);
    height: auto;
}

.nav-link {
    /*
    color: var(--ink);
    */
    color: white;
    font-weight: 650;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary);
}

.btn {
    border-radius: 8px;
    font-weight: 750;
}

.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-active-border-color: var(--primary-dark);
}

.nav-cta {
    padding-inline: 1.05rem;
}

.hero-section {
    position: relative;
    min-height: 760px;
    color: var(--white);
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    /* background-image: url("https://images.unsplash.com/photo-1511578314322-379afb476865?auto=format&fit=crop&w=1800&q=80"); */
    background-image: url("https://cseevents.monkeymatik.com/img/background-karting.jpg");
    background-position: center;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 22, 27, 0.88) 0%, rgba(5, 22, 27, 0.58) 52%, rgba(5, 22, 27, 0.18) 100%),
        linear-gradient(0deg, rgba(5, 22, 27, 0.62) 0%, rgba(5, 22, 27, 0.05) 44%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 84px;
    padding-bottom: 48px;
}

.event-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero-section h1 {
    max-width: 900px;
    font-size: clamp(3rem, 7vw, 6.8rem);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: 0;
}

.hero-lead {
    max-width: 680px;
    margin-top: 1.35rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-panel {
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    padding: 1.35rem;
    backdrop-filter: blur(18px);
}

.hero-panel .panel-label {
    display: block;
    color: var(--accent);
    font-weight: 850;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.hero-panel strong {
    display: block;
    margin-top: 0.25rem;
    font-size: 1.65rem;
}

.hero-panel p {
    margin: 0.75rem 0 0;
    color: rgba(255, 255, 255, 0.84);
}

.stats-band {
    background: var(--primary-dark);
    color: var(--white);
}

.stat-item {
    min-height: 132px;
    padding: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.stat-item strong {
    display: block;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1;
}

.stat-item span {
    color: rgba(255, 255, 255, 0.76);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.86rem;
}

.section-pad {
    padding: 96px 0;
}

.muted-section {
    background: var(--paper);
}

.section-heading {
    max-width: 800px;
    margin-bottom: 2rem;
}

.section-heading span {
    color: var(--coral);
    font-size: 0.85rem;
    font-weight: 850;
    text-transform: uppercase;
}

.section-heading h2,
.registration-section h2 {
    margin: 0.35rem 0 0;
    font-size: clamp(2rem, 4vw, 3.65rem);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: 0;
}

.schedule-list {
    border-top: 1px solid var(--line);
}

.schedule-row {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 1.5rem;
    padding: 1.45rem 0;
    border-bottom: 1px solid var(--line);
}

.schedule-row time {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 900;
}

.schedule-row span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.schedule-row h3 {
    margin: 0.2rem 0 0;
    font-size: 1.22rem;
    font-weight: 800;
}

.focus-box {
    min-height: 360px;
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.focus-box i {
    color: var(--primary);
    font-size: 2.4rem;
}

.focus-box h3,
.exhibitor-card h3 {
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: 850;
}

.focus-box p,
.exhibitor-card p,
.info-copy,
.registration-section p {
    color: var(--muted);
    line-height: 1.7;
}

.text-link {
    color: var(--primary);
    font-weight: 850;
    text-decoration: none;
}

.text-link:hover {
    color: var(--primary-dark);
}

.exhibitor-card {
    height: 100%;
    min-height: 230px;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.exhibitor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(23, 32, 38, 0.09);
}

.exhibitor-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    color: var(--primary);
    background: rgba(0, 109, 119, 0.1);
    border-radius: 8px;
    font-size: 1.35rem;
}

.info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
    gap: 4rem;
    align-items: start;
}

.info-list {
    border-top: 1px solid var(--line);
}

.info-list div {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
    font-weight: 750;
}

.info-list i {
    color: var(--coral);
    font-size: 1.35rem;
}

.registration-section {
    padding: 88px 0;
    background: #eaf2f1;
}

.registration-card {
    padding: 1.5rem;
    border: 1px solid rgba(23, 32, 38, 0.1);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 20px 70px rgba(23, 32, 38, 0.1);
}

.registration-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.35rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.registration-tabs .nav-item,
.registration-tabs .nav-link {
    width: 100%;
}

.registration-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 52px;
    color: var(--ink);
    border-radius: 8px;
    font-weight: 850;
}

.registration-tabs .nav-link.active {
    color: var(--white);
    background: var(--primary);
}

.signup-form {
    padding: 0;
}

.form-intro {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.form-intro h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 900;
}

.form-intro p {
    margin: 0.35rem 0 0;
}

.form-label {
    color: var(--ink);
    font-weight: 750;
}

.form-control,
.form-select,
textarea.form-control {
    min-height: 52px;
    border-color: var(--line);
    border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 109, 119, 0.14);
}

.site-footer {
    padding: 28px 0;
    color: rgba(255, 255, 255, 0.78);
    background: var(--ink);
}

.partner-page {
    background:
        linear-gradient(180deg, rgba(234, 242, 241, 0.96) 0%, rgba(255, 255, 255, 1) 46%),
        var(--white);
}

.partner-hero {
    min-height: calc(100vh - 76px);
    padding: 172px 0 88px;
}

.partner-hero .row {
    --bs-gutter-x: 1.5rem;
}

.partner-hero h1 {
    margin: 0;
    color: var(--primary);
    font-size: clamp(3rem, 7vw, 6.4rem);
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: 0;
}

.partner-lead {
    max-width: 560px;
    margin: 1.25rem 0 0;
    color: var(--muted);
    font-size: 1.16rem;
    line-height: 1.75;
}

.partner-meta {
    display: grid;
    gap: 0.85rem;
    margin-top: 2rem;
}

.partner-meta div {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 800;
}

.partner-meta i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--primary);
    background: rgba(0, 109, 119, 0.1);
    border-radius: 8px;
}

.partner-form-card {
    padding: 1.5rem;
    border: 1px solid rgba(23, 32, 38, 0.1);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 24px 80px rgba(23, 32, 38, 0.12);
}

.partner-form .form-intro h2 {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    line-height: 1.12;
    font-weight: 900;
}

.success-panel {
    padding: 1rem 0;
    text-align: center;
}

.success-panel i {
    color: var(--primary);
    font-size: 3rem;
}

.success-panel h2 {
    margin: 1rem 0 0.6rem;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
}

.success-panel p {
    max-width: 560px;
    margin: 0 auto 1.5rem;
    color: var(--muted);
    line-height: 1.7;
}

@media (max-width: 991.98px) {
    .event-navbar .navbar-collapse {
        padding: 1rem 0;
    }

    .hero-section {
        min-height: 700px;
    }

    .hero-content {
        padding-bottom: 32px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .partner-hero {
        padding-top: 140px;
    }
}

@media (max-width: 767.98px) {
    .section-pad,
    .registration-section {
        padding: 64px 0;
    }

    .stat-item {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    }

    .schedule-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .hero-section h1 {
        font-size: 3.25rem;
    }

    .partner-hero {
        padding: 122px 0 64px;
    }

    .partner-form-card {
        padding: 1rem;
    }

    .site-logo {
        width: 136px;
    }

    .btn-lg {
        width: 100%;
    }
}
