/* FIFA WC 2026 overrides */

/* Disable the zoom/pulse animation on the hero background image */
.qatar2022.fifa-2026 .photo img,
.fact .photo img {
    animation: none !important;
    -webkit-animation: none !important;
    transform: none !important;
    -webkit-transform: none !important;
}

.qatar2022.fifa-2026 .photo::after,
.fact .photo::after {
    background: #61031600;
}

.worldcuphighlight-section {
    width: 100%;
    --wch-red-deep: #FF2D22;
    --wch-white: #ffffff;
    --wch-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    --wch-radius: 4px;
    background-color: var(--wch-red-deep);
    padding: 32px 0;
}

/* Keep the content centered and matched to the site .container width
     while the red background stays full width */
.worldcuphighlight-title,
.worldcuphighlight-grid {
    max-width: 1228px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.worldcuphighlight-title {
    color: var(--wch-white);
    text-align: center;
    font-size: clamp(1.4rem, 3.5vw, 2.1rem);
    letter-spacing: 0.5px;
    margin-bottom: 32px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ---------- Gallery grid ---------- */
.worldcuphighlight-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    grid-auto-rows: 200px;
    gap: 12px;
}

/* ---------- Article card ---------- */
.worldcuphighlight-card {
    position: relative;
    overflow: hidden;

    cursor: pointer;
}

.worldcuphighlight-card--featured {
    grid-column: 1;
    grid-row: 1 / 3;
}

/* Anchor wrapper must fill the card so the image keeps its height */
.worldcuphighlight-card > a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Style the image whether it has the class or comes from File::checkImgUrl */
.worldcuphighlight-img,
.worldcuphighlight-card img,
.worldcuphighlight-card .video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.worldcuphighlight-card:hover .worldcuphighlight-img,
.worldcuphighlight-card:hover img {
    transform: scale(1.06);
}

/* Dark gradient so the caption stays readable */
.worldcuphighlight-card::after {
    content: "";
    position: absolute;
    inset: 0;
    /* background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0) 45%
    ); */


    pointer-events: none;
}

/* ---------- Caption ---------- */
.worldcuphighlight-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 12px 14px;
    color: var(--wch-white);
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.35;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    background: #00000091;
    height: 60px;
    /* Truncate the title after 2 lines with an ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    line-height: 20px;
    height: 60px;
}

.worldcuphighlight-card--featured .worldcuphighlight-caption {
    font-size: 1.05rem;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    background: #00000091;
    height:70px;
}

.worldcuphighlight-caption-text {
    max-width: 70%;
    /* Truncate the featured title after 2 lines with an ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Photo count badge ---------- */
.worldcuphighlight-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.worldcuphighlight-count svg {
    width: 22px;
    height: 22px;
    fill: var(--wch-white);
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .worldcuphighlight-section {
        padding: 24px 0;
    }
    .worldcuphighlight-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 180px;
    }
    .worldcuphighlight-card--featured {
        grid-column: 1 / -1;
        grid-row: span 2;
    }
}

@media (max-width: 520px) {
    .worldcuphighlight-section {
        padding: 20px 0;
    }
    .worldcuphighlight-title {
        margin-bottom: 20px;
    }
    .worldcuphighlight-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }
    .worldcuphighlight-card--featured {
        grid-row: span 2;
    }
    .worldcuphighlight-caption-text {
        max-width: 100%;
    }
}

/* =====================================================================
   Match Schedule slider
   ===================================================================== */
.match-schedule-section {
    width: 100%;
    --ms-border: #e6e6e6;
    --ms-muted: #8a8a8a;
    --ms-text: #1a1a1a;
    --ms-time: #0a0a0a;
    padding: 24px 0;
}

/* Match the site .container width while staying centered */
.match-schedule-inner {
    max-width: 1228px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
    position: relative;
}

.match-schedule-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--ms-text);
    margin: 0 0 20px;
}

/* ---------- Slider track ---------- */
.match-schedule-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none; /* Firefox */
}
.match-schedule-slider::-webkit-scrollbar {
    display: none;
} /* Chrome/Safari */

/* ---------- Card ---------- */
.match-schedule-card {
    flex: 0 0 calc((100% - 48px) / 4); /* 4 cards visible, 3 gaps of 16px */
    box-sizing: border-box;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--ms-border);
    border-radius: 6px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    min-height: 150px;
}

.match-schedule-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ms-text);
}
.match-schedule-date {
    color: var(--ms-muted);
    font-weight: 600;
    white-space: nowrap;
}

.match-schedule-stage {
    margin: 4px 0 12px;
    font-size: 11px;
    color: var(--ms-muted);
    line-height: 1.3;
}

.match-schedule-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: 1;
}

.match-schedule-teams {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.match-schedule-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.match-schedule-flag {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    flex: 0 0 auto;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.match-schedule-team-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ms-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-schedule-time {
    font-size: 22px;
    font-weight: 700;
    color: var(--ms-time);
    white-space: nowrap;
}

.match-schedule-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--ms-border);
}
.match-schedule-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--ms-muted);
    display: block;
}

/* ---------- Navigation arrows ---------- */
.match-schedule-nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}
.match-schedule-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--ms-border);
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.2s ease,
        opacity 0.2s ease;
}
.match-schedule-arrow:hover {
    background: #f3f3f3;
}
.match-schedule-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}
.match-schedule-arrow svg {
    width: 22px;
    height: 22px;
    fill: var(--ms-text);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .match-schedule-card {
        flex-basis: calc((100% - 32px) / 3);
    } /* 3 visible */
}
@media (max-width: 768px) {
    .match-schedule-card {
        flex-basis: calc((100% - 16px) / 2);
    } /* 2 visible */
}
@media (max-width: 520px) {
    .match-schedule-title {
        font-size: 22px;
    }
    .match-schedule-card {
        flex-basis: 80%;
    } /* ~1 visible */
}

/* =====================================================================
   Match Standings
   ===================================================================== */
.match-standing-section {
    width: 100%;
    --mst-border: #ececec;
    --mst-muted: #9a9a9a;
    --mst-head: #6f6f6f;
    --mst-text: #1a1a1a;
    --mst-green: #2ecc71;
    padding: 24px 0;
}

/* Match the site .container width while staying centered */
.match-standing-inner {
    max-width: 1228px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.match-standing-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--mst-text);
    margin: 0 0 20px;
}

/* ---------- 4 x 3 grid of group tables ---------- */
.match-standing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 24px;
}

/* ---------- Group table ---------- */
.match-standing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: var(--mst-text);
}

.match-standing-table th {
    font-weight: 600;
    color: var(--mst-head);
    text-align: center;
    padding: 8px 2px;
    border-bottom: 1px solid var(--mst-border);
    white-space: nowrap;
}

.match-standing-group {
    text-align: left !important;
    font-size: 14px;
    font-weight: 700;
    color: var(--mst-text) !important;
}

.match-standing-table td {
    text-align: center;
    padding: 9px 2px;
    border-bottom: 1px solid var(--mst-border);
    color: var(--mst-text);
}
.match-standing-table tbody tr:last-child td {
    border-bottom: none;
}

/* Rank cell with qualified marker */
.match-standing-rank {
    position: relative;
    width: 22px;
    color: var(--mst-muted);
    text-align: left !important;
    padding-left: 10px !important;
}
.match-standing-marker {
    display: inline-block;
    width: 4px;
    height: 12px;
    border-radius: 2px;
    background: transparent;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}
.match-standing-qualified .match-standing-marker {
    background: var(--mst-green);
}

/* Team cell: flag + code */
.match-standing-team {
    text-align: left !important;
    white-space: nowrap;
}
.match-standing-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 6px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.match-standing-code {
    font-weight: 600;
    vertical-align: middle;
}

.match-standing-pts-col,
.match-standing-pts {
    font-weight: 700;
    color: var(--mst-text);
}

/* ---------- Legend ---------- */
.match-standing-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 18px 0 0;
    font-size: 11px;
    color: var(--mst-muted);
}
.match-standing-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.match-standing-marker--legend {
    position: static;
    transform: none;
    background: var(--mst-green);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .match-standing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .match-standing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 520px) {
    .match-standing-title {
        font-size: 22px;
    }
    .match-standing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1199px) {
    .header .menu #cssmenu ul li a img {
        max-width: 120px;
        height: auto;
    }

}

.q-news .item .title::before, .q-news .itemtow .content .title::before{
    background: #FF9800;
}
