:root {
    --wclh-container: 1440px;
    --wclh-navy: #071A2F;
    --wclh-navy-2: #0B2D4D;
    --wclh-green: #0FA958;
    --wclh-gold: #F5B301;
    --wclh-red: #E63946;
    --wclh-light: #F5F7FA;
    --wclh-white: #ffffff;
    --wclh-dark: #1F2937;
    --wclh-muted: #64748b;
    --wclh-border: #d9dee7;
    --wclh-shadow: 0 12px 34px rgba(7, 26, 47, 0.08);
}

/* =====================================================
   Base
   ===================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--wclh-light);
    color: var(--wclh-dark);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(var(--wclh-container), calc(100% - 48px));
    margin-inline: auto;
}

.screen-reader-text,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    width: auto;
    height: auto;
    clip: auto;
    margin: 8px;
    padding: 10px 14px;
    background: var(--wclh-gold);
    color: #111827;
    z-index: 99999;
}

/* =====================================================
   Top Bar
   ===================================================== */

.site-top-bar {
    background: #061223;
    color: #dbeafe;
    font-size: 13px;
    font-weight: 800;
}

.top-bar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.top-bar-text {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.top-social-nav ul,
.site-nav ul,
.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-social-nav ul {
    display: flex;
    gap: 12px;
}

.top-social-nav a {
    color: #dbeafe;
    text-decoration: none;
}

.top-social-nav a:hover {
    color: var(--wclh-gold);
}

/* =====================================================
   Header
   ===================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 26, 47, 0.96);
    backdrop-filter: blur(14px);
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.no-sticky-header .site-header {
    position: relative;
    top: auto;
}

.admin-bar .site-header {
    top: 32px;
}

.no-sticky-header.admin-bar .site-header {
    top: auto;
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-branding-wrap {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    flex: 0 0 auto;
}

.site-brand,
.site-title-fallback {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: #ffffff;
    text-decoration: none;
    font-size: 21px;
    line-height: 1.15;
    font-weight: 1000;
}

.site-brand:hover,
.site-title-fallback:hover {
    color: #ffffff;
}

.brand-ball {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--wclh-green);
    flex: 0 0 auto;
}

.site-logo-wrap img,
.custom-logo {
    max-width: 210px;
    max-height: 58px;
    width: auto;
    height: auto;
    display: block;
}

.site-title-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =====================================================
   Navigation
   ===================================================== */

.site-nav {
    margin-left: auto;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-nav li {
    position: relative;
}

.site-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: color 0.16s ease, opacity 0.16s ease;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current-menu-ancestor > a {
    color: var(--wclh-gold);
    opacity: 1;
}

.site-nav .sub-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    min-width: 210px;
    display: grid;
    gap: 0;
    padding: 10px;
    border-radius: 14px;
    background: #081c33;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.18s ease;
}

.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-nav .sub-menu a {
    display: block;
    padding: 9px 11px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.86);
}

.site-nav .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--wclh-gold);
}

/* =====================================================
   Header Actions: Search + Live Score
   ===================================================== */

.site-header-actions,
.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.theme-search-toggle,
.header-search-toggle {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease;
}

.theme-search-toggle:hover,
.header-search-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
}

.header-live-score-btn,
.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--wclh-gold);
    color: #071426 !important;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.16s ease, transform 0.16s ease;
}

.header-live-score-btn:hover,
.header-cta:hover {
    background: #ffd34d;
    color: #071426 !important;
    transform: translateY(-1px);
}

.no-header-search .theme-search-toggle,
.no-header-search .header-search-toggle,
.no-header-search .header-search-panel {
    display: none !important;
}

.no-live-score-button .header-live-score-btn,
.no-live-score-button .header-cta {
    display: none !important;
}

/* =====================================================
   Mobile Menu Button
   ===================================================== */

.menu-toggle {
    display: none;
    width: 44px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: transparent;
    color: #ffffff;
    padding: 8px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: #ffffff;
}

/* =====================================================
   Header Search Panel
   ===================================================== */

.header-search-panel {
    padding: 14px 0;
    background: rgba(6, 18, 35, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.header-search-inner {
    width: min(var(--wclh-container), calc(100% - 48px));
    margin-inline: auto;
}

.header-search-form,
.header-search-panel form,
.search-form {
    display: flex;
    gap: 10px;
}

.header-search-panel input[type="search"],
.header-search-form input[type="search"],
.search-form input[type="search"] {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--wclh-border);
    border-radius: 999px;
    padding: 0 16px;
    font-size: 15px;
    outline: none;
}

.header-search-panel input[type="search"]:focus,
.header-search-form input[type="search"]:focus,
.search-form input[type="search"]:focus {
    border-color: var(--wclh-green);
    box-shadow: 0 0 0 3px rgba(15, 169, 88, 0.12);
}

.header-search-panel button,
.header-search-panel input[type="submit"],
.header-search-form button,
.search-form input[type="submit"],
.search-submit {
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    background: var(--wclh-green);
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

/* =====================================================
   Main
   ===================================================== */

.site-main {
    min-height: 60vh;
}

/* =====================================================
   Hero
   ===================================================== */

.theme-hero {
    background:
        radial-gradient(circle at top right, rgba(15, 169, 88, 0.34), transparent 35%),
        linear-gradient(135deg, var(--wclh-navy), var(--wclh-navy-2));
    color: #ffffff;
    padding: 88px 0;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
    gap: 44px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    color: var(--wclh-gold);
    font-size: 13px;
    font-weight: 1000;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.theme-hero h1 {
    margin: 16px 0;
    color: #ffffff;
    font-size: clamp(38px, 5.6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.04em;
    font-weight: 1000;
}

.theme-hero p {
    max-width: 720px;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.75;
    font-weight: 650;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 1000;
}

.btn-gold {
    background: var(--wclh-gold);
    color: #111827;
}

.btn-gold:hover {
    background: #ffd34d;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.btn-outline:hover {
    border-color: var(--wclh-gold);
    color: var(--wclh-gold);
}

.scoreboard-visual {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    padding: 42px;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.scoreboard-visual span {
    display: inline-flex;
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--wclh-red);
    color: #ffffff;
    font-size: 12px;
    font-weight: 1000;
}

.scoreboard-visual strong {
    display: block;
    margin: 18px 0;
    color: #ffffff;
    font-size: 76px;
    line-height: 1;
    font-weight: 1000;
}

.scoreboard-visual small {
    color: #dbeafe;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* =====================================================
   Content Layouts
   ===================================================== */

.content-panel,
.theme-plugin-page {
    padding: 44px 0;
}

.content-panel.narrow {
    max-width: 980px;
}

.page-content-card,
.single-article,
.content-panel.narrow > article {
    background: #ffffff;
    border: 1px solid #edf1f5;
    border-radius: 22px;
    padding: 30px;
    box-shadow: var(--wclh-shadow);
}

.entry-content {
    color: #1f2937;
    font-size: 16px;
}

.entry-content a {
    color: var(--wclh-green);
    font-weight: 800;
}

.entry-content img {
    border-radius: 16px;
}

.section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-heading-row h1,
.section-heading-row h2 {
    margin: 0;
    color: #071426;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.15;
    font-weight: 1000;
}

.section-heading-row a {
    color: var(--wclh-green);
    font-weight: 1000;
    text-decoration: none;
}

/* =====================================================
   News Cards
   ===================================================== */

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.news-card {
    background: #ffffff;
    border: 1px solid #edf1f5;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--wclh-shadow);
}

.news-thumb {
    display: block;
    overflow: hidden;
}

.news-thumb img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.news-card:hover .news-thumb img {
    transform: scale(1.04);
}

.news-body {
    padding: 20px;
}

.news-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--wclh-muted);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
}

.news-meta-line a {
    color: var(--wclh-green);
    text-decoration: none;
}

.news-body h2 {
    margin: 0 0 10px;
    color: #071426;
    font-size: 22px;
    line-height: 1.22;
    font-weight: 1000;
}

.news-body h2 a {
    text-decoration: none;
}

.news-body p {
    margin: 0 0 16px;
    color: #475569;
    font-size: 14px;
}

.read-more {
    color: var(--wclh-green);
    font-weight: 1000;
    text-decoration: none;
}

/* =====================================================
   Single Post/Page
   ===================================================== */

.single-layout {
    max-width: 1040px;
}

.single-header h1 {
    margin: 0 0 12px;
    color: #071426;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    font-weight: 1000;
}

.post-kicker,
.post-meta {
    color: var(--wclh-muted);
    font-size: 14px;
    font-weight: 800;
}

.single-featured-image {
    margin: 24px 0;
}

.single-featured-image img {
    width: 100%;
    border-radius: 20px;
}

.theme-notice {
    width: min(var(--wclh-container), calc(100% - 48px));
    margin: 20px auto;
    background: #fff8db;
    border: 1px solid #ffd66b;
    border-radius: 14px;
    padding: 18px;
    color: #7c5800;
    font-weight: 800;
}

/* =====================================================
   Pagination
   ===================================================== */

.pagination,
.nav-links {
    margin-top: 30px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-links a,
.nav-links span {
    display: inline-flex;
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--wclh-border);
    text-decoration: none;
    font-weight: 900;
}

.nav-links .current {
    background: var(--wclh-green);
    color: #ffffff;
}

/* =====================================================
   Custom Homepage / Builder Page Fix
   ===================================================== */

.front-page-custom-builder,
.theme-full-width-builder {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.front-page-builder-entry,
.builder-entry-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.front-page-builder-entry > *,
.builder-entry-content > * {
    max-width: none;
}

.front-page-custom-builder .elementor,
.theme-full-width-builder .elementor {
    width: 100%;
}

.front-page-custom-builder .elementor-section.elementor-section-boxed > .elementor-container,
.theme-full-width-builder .elementor-section.elementor-section-boxed > .elementor-container,
.front-page-custom-builder .e-con.e-con-boxed > .e-con-inner,
.theme-full-width-builder .e-con.e-con-boxed > .e-con-inner {
    max-width: var(--wclh-container);
}

.front-page-custom-builder .alignwide,
.theme-full-width-builder .alignwide {
    max-width: var(--wclh-container);
    margin-left: auto;
    margin-right: auto;
}

.front-page-custom-builder .alignfull,
.theme-full-width-builder .alignfull {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.front-page-builder-entry > p:empty,
.builder-entry-content > p:empty {
    display: none;
}

.front-page-custom-builder img,
.theme-full-width-builder img {
    max-width: 100%;
    height: auto;
}

/* =====================================================
   Footer
   ===================================================== */

.site-footer {
    margin-top: 50px;
    background: var(--wclh-navy);
    color: rgba(255, 255, 255, 0.78);
    padding: 58px 0 24px;
}

.no-theme-footer .site-footer {
    display: none !important;
}

.site-footer .container {
    width: min(var(--wclh-container, 1440px), calc(100% - 48px));
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 48px;
}

.footer-column h3,
.site-footer h2,
.site-footer h3,
.site-footer h4 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
}

.footer-text {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.75;
    font-weight: 500;
}

.footer-text p {
    margin: 0 0 12px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.74);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--wclh-gold);
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.footer-menu li {
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.footer-menu a:hover {
    color: var(--wclh-gold);
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.footer-social-links a:hover {
    background: var(--wclh-gold);
    color: #071426;
}

.footer-bottom,
.copyright {
    margin-top: 46px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p,
.copyright {
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
}

.footer-bottom p {
    margin: 0;
}

.copyright {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

/* =====================================================
   Responsive
   ===================================================== */

@media (max-width: 1100px) {
    .header-inner {
        gap: 16px;
    }

    .site-nav ul {
        gap: 16px;
    }

    .site-nav a {
        font-size: 13px;
    }

    .site-logo-wrap img,
    .custom-logo {
        max-width: 170px;
    }
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        order: 3;
    }

    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 78px;
        background: var(--wclh-navy);
        padding: 18px 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-left: 0;
        z-index: 999;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav ul {
        display: grid;
        gap: 14px;
    }

    .site-nav .sub-menu {
        position: static;
        min-width: 0;
        display: grid;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 8px;
        padding: 8px 0 0 14px;
        border-radius: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .site-nav .sub-menu a {
        padding: 6px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }

    .no-sticky-header.admin-bar .site-header {
        top: auto;
    }
}

@media (max-width: 700px) {
    .container,
    .theme-notice {
        width: min(var(--wclh-container), calc(100% - 28px));
    }

    .top-bar-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 8px 0;
    }

    .header-inner {
        min-height: 72px;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .site-branding-wrap {
        flex: 1 1 auto;
    }

    .site-title-text {
        max-width: 190px;
    }

    .site-logo-wrap img,
    .custom-logo {
        max-width: 145px;
        max-height: 50px;
    }

    .site-nav {
        top: 72px;
    }

    .site-header-actions,
    .header-actions {
        gap: 7px;
        order: 2;
    }

    .menu-toggle {
        order: 3;
        width: 40px;
        height: 38px;
    }

    .theme-search-toggle,
    .header-search-toggle {
        width: 32px;
        height: 32px;
    }

    .header-live-score-btn,
    .header-cta {
        min-height: 32px;
        padding: 0 12px;
        font-size: 12px;
    }

    .header-search-inner {
        width: min(var(--wclh-container), calc(100% - 28px));
    }

    .header-search-form,
    .header-search-panel form,
    .search-form {
        flex-direction: column;
    }

    .theme-hero {
        padding: 58px 0;
    }

    .theme-hero h1 {
        font-size: clamp(34px, 12vw, 52px);
    }

    .theme-hero p {
        font-size: 16px;
    }

    .scoreboard-visual {
        padding: 28px;
    }

    .scoreboard-visual strong {
        font-size: 52px;
    }

    .content-panel,
    .theme-plugin-page {
        padding: 32px 0;
    }

    .page-content-card,
    .single-article,
    .content-panel.narrow > article {
        padding: 20px;
        border-radius: 18px;
    }

    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .site-footer {
        padding-top: 42px;
    }

    .site-footer .container {
        width: min(var(--wclh-container, 1440px), calc(100% - 28px));
    }

    .copyright {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .header-live-score-btn,
    .header-cta {
        display: none;
    }

    .site-logo-wrap img,
    .custom-logo {
        max-width: 128px;
    }

    .theme-search-toggle,
    .header-search-toggle {
        width: 31px;
        height: 31px;
    }
}
