/* =====================================================
   World Cup Home Sections
   Matches + Teams + Standings
   Updated for SolaimanLipi font
   Desktop match slider: 4 cards
   Tablet match slider: 2 cards
   Mobile match slider: 1 card
   ===================================================== */

:root {
    --wclh-home-font: "SolaimanLipi", "Noto Sans Bengali", "Hind Siliguri", Arial, sans-serif;
}

/* =====================================================
   Common Section Wrapper
   ===================================================== */

.wclh-home-matches-block,
.wclh-home-teams-block,
.wclh-home-standings-block {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: var(--wclh-home-font) !important;
}

.wclh-home-matches-block *,
.wclh-home-matches-block *::before,
.wclh-home-matches-block *::after,
.wclh-home-teams-block *,
.wclh-home-teams-block *::before,
.wclh-home-teams-block *::after,
.wclh-home-standings-block *,
.wclh-home-standings-block *::before,
.wclh-home-standings-block *::after {
    box-sizing: border-box;
    font-family: var(--wclh-home-font) !important;
}

.wclh-home-matches-header,
.wclh-home-teams-header,
.wclh-home-standings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.wclh-home-matches-title,
.wclh-home-teams-title,
.wclh-home-standings-title {
    margin: 0;
    color: #071426;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.wclh-home-teams-subtitle {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 600;
}

/* =====================================================
   Slider Navigation
   ===================================================== */

.wclh-home-matches-nav,
.wclh-home-teams-nav {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    flex: 0 0 auto;
}

.wclh-home-match-arrow,
.wclh-home-team-arrow {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    border-radius: 100% !important;
    border: 1px solid #e0245e !important;
    background: #ffffff !important;
    color: #e0245e !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease;
    padding: 10px 10px 12px !important;
    line-height: 0 !important;
    box-shadow: none !important;
}

.wclh-home-match-arrow:hover,
.wclh-home-team-arrow:hover {
    background: #e0245e !important;
    color: #ffffff !important;
}

/* =====================================================
   Match Slider
   Desktop: exactly 4 full cards
   ===================================================== */

.wclh-home-matches-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 30px) / 4);
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 0 20px;
    scrollbar-width: thin;
}

.wclh-home-match-card-link {
    display: block;
    width: 100%;
    min-width: 0;
    color: inherit !important;
    text-decoration: none !important;
    scroll-snap-align: start;
}

.wclh-home-match-card-link:hover,
.wclh-home-match-card-link:focus,
.wclh-home-match-card-link:focus-visible {
    color: inherit !important;
    text-decoration: none !important;
    outline: none !important;
}

.wclh-home-match-card {
    width: 100%;
    min-width: 0;
    min-height: 250px;
    height: 100%;
    background: #ffffff;
    border: 1px solid #d9dee7;
    border-top: 5px solid #f5b301;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.wclh-home-match-card-link:hover .wclh-home-match-card {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

/* =====================================================
   Match Card Header
   ===================================================== */

.wclh-home-match-header {
    gap: 16px;
    padding: 16px 16px 13px;
    border-bottom: 1px solid #eef2f6;
}

.wclh-home-match-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.wclh-home-match-top > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.wclh-home-match-tournament {
    color: #071426;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.wclh-home-match-meta {
    margin-top: 5px;
    color: #334155;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 600;
    white-space: normal;
    overflow: visible;
}

.wclh-home-match-meta p {
    margin: 0;
    padding: 0;
}

.wclh-home-match-date {
    flex: 0 0 auto;
    color: #071426;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
    white-space: nowrap;
}

/* =====================================================
   Match Card Main Area
   ===================================================== */

.wclh-home-match-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 12px;
    align-items: center;
    padding: 18px 16px;
}

.wclh-home-match-teams {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.wclh-home-match-team {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #071426;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 800;
    min-width: 0;
}

.wclh-home-match-team span:last-child {
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: normal;
    overflow-wrap: anywhere;
}

.wclh-home-match-score {
    color: #071426;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 900;
    white-space: normal;
    text-align: right;
    word-break: keep-all;
}

.wclh-home-match-score small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.2;
}

/* =====================================================
   Match Card Footer
   ===================================================== */

.wclh-home-match-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 13px 16px 16px;
    border-top: 1px solid #eef2f6;
    min-width: 0;
}

.wclh-home-live-badge,
.wclh-home-finished-badge,
.wclh-home-upcoming-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 30px;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

.wclh-home-live-badge {
    color: #ffffff;
    background: #e63946;
}

.wclh-home-live-badge span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ffffff;
}

.wclh-home-finished-badge {
    color: #7c5800;
    background: #fff8db;
    border: 1px solid #ffd66b;
}

.wclh-home-upcoming-badge {
    color: #0d6efd;
    background: #eef6ff;
    border: 1px solid #cfe7ff;
}

.wclh-home-match-note {
    color: #334155;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    text-align: right;
}

/* =====================================================
   Home Match Date/Time: Bangladesh Style + Late Night Note
   ===================================================== */

.wclh-home-match-score {
    display: grid;
    justify-items: end;
    gap: 6px;
}

.wclh-home-match-score-text,
.wclh-home-match-time-text {
    display: block;
    color: #071426;
    font-size: 27px;
    line-height: 1.12;
    font-weight: 900;
    white-space: nowrap;
    text-align: right;
}

.wclh-home-match-note {
    display: grid;
    justify-items: end;
    gap: 5px;
}

.wclh-home-match-note-time {
    display: block;
}

.wclh-home-late-night-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff8db;
    color: #7c5800;
    border: 1px solid #ffd66b;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .wclh-home-match-score-text,
    .wclh-home-match-time-text {
        font-size: 24px;
    }

    .wclh-home-late-night-note {
        font-size: 11px;
        padding: 5px 8px;
        white-space: normal;
        text-align: center;
    }
}

/* =====================================================
   Team Flag / Placeholder
   ===================================================== */

.wclh-team-flag,
.wclh-team-flag-placeholder {
    width: 32px;
    height: 24px;
    min-width: 32px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #071426;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
}

/* =====================================================
   Team Slider - unchanged layout support
   ===================================================== */

.wclh-home-teams-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(310px, 330px);
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 2px 14px;
    scrollbar-width: thin;
}

.wclh-home-team-card-link {
    display: block;
    width: 100%;
    min-width: 0;
    color: inherit !important;
    text-decoration: none !important;
    scroll-snap-align: start;
}

.wclh-home-team-card-link:hover,
.wclh-home-team-card-link:focus,
.wclh-home-team-card-link:focus-visible {
    color: inherit !important;
    text-decoration: none !important;
    outline: none !important;
}

.wclh-home-team-card {
    min-height: 250px;
    border-radius: 18px;
    overflow: hidden;
    background: var(--wclh-home-team-bg, #0b2d4d);
    color: var(--wclh-home-team-text, #ffffff);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wclh-home-team-card-link:hover .wclh-home-team-card {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

.wclh-home-team-hero {
    padding: 20px;
}

.wclh-home-team-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wclh-home-team-flag {
    width: 90px;
    height: 62px;
    background: #ffffff;
    border-radius: 6px;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
}

.wclh-home-team-code {
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    font-weight: 800;
}

.wclh-home-team-name {
    margin: 28px 0 0;
    color: inherit;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 800;
}

.wclh-home-team-body {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.12);
}

.wclh-home-team-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 15px;
    font-weight: 700;
}

/* =====================================================
   Home Standings
   ===================================================== */

.wclh-home-standings-grid {
    display: grid;
    grid-template-columns: repeat(var(--wclh-home-standings-columns, 4), minmax(0, 1fr));
    gap: 18px;
}

.wclh-home-standings-card {
    background: #ffffff;
    border: 1px solid #d9dee7;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.wclh-home-standings-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 10px;
    align-items: center;
    padding: 14px;
    background: #071a2f;
    color: #ffffff;
}

.wclh-home-standings-card-head h3 {
    margin: 0;
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
}

.wclh-home-standings-head-stats,
.wclh-home-standings-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    text-align: center;
}

.wclh-home-standings-head-stats span {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.78);
}

.wclh-home-standings-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #eef2f6;
}

.wclh-home-standings-row:last-child {
    border-bottom: 0;
}

.wclh-home-standings-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.wclh-home-standings-rank {
    width: 22px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.wclh-home-standings-team-code {
    color: #071426;
    font-size: 14px;
    font-weight: 800;
}

.wclh-home-standings-stats span,
.wclh-home-standings-stats strong {
    color: #071426;
    font-size: 13px;
    font-weight: 700;
}

/* =====================================================
   Tablet
   Match slider: 2 cards
   ===================================================== */

@media (max-width: 1100px) {
    .wclh-home-matches-slider {
        grid-auto-columns: calc((100% - 20px) / 2);
        gap: 20px;
    }

    .wclh-home-match-card {
        min-height: 268px;
    }

    .wclh-home-match-score {
        font-size: 27px;
    }

    .wclh-home-standings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =====================================================
   Mobile
   Match slider: 1 full card
   ===================================================== */

@media (max-width: 700px) {
    .wclh-home-matches-block,
    .wclh-home-teams-block,
    .wclh-home-standings-block {
        padding: 32px 14px;
    }

    .wclh-home-matches-header,
    .wclh-home-teams-header,
    .wclh-home-standings-header {
        align-items: center;
        gap: 12px;
    }

    .wclh-home-matches-title,
    .wclh-home-teams-title,
    .wclh-home-standings-title {
        font-size: 26px;
    }

    .wclh-home-match-arrow,
    .wclh-home-team-arrow {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        font-size: 24px !important;
        padding: 8px 8px 10px !important;
    }

    .wclh-home-matches-slider {
        grid-auto-columns: 100%;
        gap: 14px;
        padding-left: 0;
        padding-right: 0;
    }

    .wclh-home-match-card {
        min-height: auto;
    }

    .wclh-home-match-header {
        padding: 15px 15px 12px;
    }

    .wclh-home-match-main {
        grid-template-columns: minmax(0, 1fr) 96px;
        gap: 10px;
        padding: 17px 15px;
    }

    .wclh-home-match-score {
        font-size: 24px;
    }

    .wclh-home-finished-badge,
    .wclh-home-upcoming-badge,
    .wclh-home-live-badge {
        font-size: 13px;
        min-height: 28px;
        padding: 6px 12px;
    }

    .wclh-home-match-note {
        font-size: 13px;
    }

    .wclh-home-teams-slider {
        grid-auto-columns: minmax(280px, 88vw);
    }

    .wclh-home-standings-grid {
        grid-template-columns: 1fr;
    }

    .wclh-home-standings-card-head,
    .wclh-home-standings-row {
        grid-template-columns: minmax(0, 1fr) 156px;
    }
}

/* =====================================================
   Very Small Mobile
   ===================================================== */

@media (max-width: 420px) {
    .wclh-home-match-main {
        grid-template-columns: minmax(0, 1fr) 86px;
    }

    .wclh-home-match-score {
        font-size: 22px;
    }

    .wclh-team-flag,
    .wclh-team-flag-placeholder {
        width: 30px;
        height: 22px;
        min-width: 30px;
    }
}