* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #ffffff url("img/bg.png") top center repeat-x;
    color: #1f2933;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

body.public-page > .container {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 92px 0 36px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.public-page > .container > div:first-child {
    display: none;
}

body.public-page .footer {
    margin-top: 0;
}

body.public-page .navbar .brand {
    letter-spacing: 0.04em;
}

a {
    color: #1c5d99;
}

a:hover {
    color: #154a79;
}

.wrap {
    width: min(100% - 32px, 1040px);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(31, 41, 51, 0.12);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
}

.brand {
    color: #111827;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list a {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 999px;
    color: #334155;
    font-weight: 600;
    text-decoration: none;
}

.nav-list a:hover,
.nav-list a.active {
    background: #dceaf8;
    color: #0f3d63;
}

.surface {
    margin-top: 36px;
    margin-bottom: 36px;
    padding: 40px;
    border: 1px solid rgba(31, 41, 51, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 32px;
    align-items: center;
}

.hero-logo {
    width: 100%;
    max-width: 240px;
    justify-self: end;
}

.eyebrow {
    margin: 0 0 8px;
    color: #1c5d99;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2 {
    color: #111827;
    line-height: 1.2;
}

h1 {
    margin: 0 0 16px;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h2 {
    margin-top: 40px;
    margin-bottom: 12px;
    font-size: 1.6rem;
}

p {
    margin: 0 0 16px;
}

.hero-tagline {
    color: #0f3d63;
    font-weight: 700;
}

.intro-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 32px;
    padding: 20px 0;
    border-top: 1px solid rgba(28, 93, 153, 0.18);
    border-bottom: 1px solid rgba(28, 93, 153, 0.18);
}

.intro-cta h2 {
    margin-top: 0;
}

.intro-cta p {
    margin-bottom: 0;
}

.button {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    background: #1c5d99;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.button:hover {
    background: #154a79;
    color: #ffffff;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    align-items: center;
}

.logo-grid img {
    width: 100%;
    max-height: 120px;
    object-fit: contain;
    padding: 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 1px rgba(31, 41, 51, 0.08);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    margin: 0;
    padding-left: 22px;
}

.sponsor-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.sponsor-list li {
    padding: 10px 16px;
    border: 1px solid rgba(28, 93, 153, 0.18);
    border-radius: 999px;
    background: #eef7ff;
    color: #0f3d63;
    font-weight: 700;
}

.rules-list {
    display: grid;
    gap: 16px;
    padding-left: 24px;
}

.rules-list li {
    padding-left: 4px;
}

.schedule-date {
    font-size: 1.1rem;
    font-weight: 700;
}

.table-scroll {
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.schedule-table th,
.schedule-table td {
    padding: 14px 16px;
    border: 1px solid #d7dee6;
    text-align: left;
    vertical-align: top;
}

.schedule-table th {
    background: #eef4fa;
    color: #0f3d63;
}

@media (max-width: 820px) {
    .header-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 0;
    }

    .surface {
        padding: 24px;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-logo {
        max-width: 180px;
        justify-self: start;
    }

    .logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .intro-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .wrap {
        width: min(100% - 20px, 1040px);
    }

    .surface {
        padding: 20px;
        border-radius: 18px;
    }

    .logo-grid {
        grid-template-columns: 1fr;
    }
}
