/* ==========================================================
   OUANAMINTHE FC — HOME PAGE
   Bootstrap 5.3 + variables.css + global.css
   Final version adapted to current index.php
========================================================== */

/* ==========================================================
   GLOBAL HOME HELPERS
========================================================== */

.section-heading .section-title,
.about-section .section-title {
    margin-top: var(--space-8);
    margin-bottom: 0;
    text-align: left;
}

.section-heading .section-title::after,
.about-section .section-title::after {
    margin-left: 0;
    margin-right: 0;
}

.section-kicker {
    display: inline-block;
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    font-size: var(--fs-14);
    font-weight: var(--fw-700);
    letter-spacing: .09em;
    text-transform: uppercase;
}

.section-link,
.read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    color: var(--color-primary-dark);
    font-weight: var(--fw-600);
    transition: var(--transition-fast);
}

.section-link:hover,
.read-more:hover {
    color: var(--color-primary);
    transform: translateX(3px);
}

.ofc-card {
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        border-color var(--transition-fast);
}

.ofc-card:hover {
    transform: translateY(-5px);
    border-color: rgba(51, 168, 255, .35);
    box-shadow: var(--shadow-md);
}

.btn--outline-dark {
    border: 2px solid var(--color-primary-dark);
    color: var(--color-primary-dark);
    background: transparent;
}

.btn--outline-dark:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

.content-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-12);
    border-radius: var(--radius-pill);
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    font-size: var(--fs-12);
    font-weight: var(--fw-700);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.empty-state {
    padding: var(--space-48);
    text-align: center;
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-light);
}

.empty-state p {
    margin: 0;
}

/* ==========================================================
   HERO — BOOTSTRAP CAROUSEL
========================================================== */

.hero-carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    width: 100%;
    min-height: 620px;
    height: 620px;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    background: #061b2b;
}

.hero-carousel .carousel-item {
    position: relative;
}

.hero-carousel__image {
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
}

/* Gradient pi lejè pou foto a rete vizib */
.hero-carousel__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(2, 24, 44, .12) 0%,
            rgba(2, 24, 44, .18) 48%,
            rgba(2, 24, 44, .48) 100%
        ),
        linear-gradient(
            90deg,
            rgba(2, 24, 44, .20) 0%,
            rgba(2, 24, 44, .08) 50%,
            rgba(2, 24, 44, .16) 100%
        );
}

/* Fòse Bootstrap caption lan pran tout hero a epi santre */
.hero-carousel__caption {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: var(--space-64) 0 var(--space-80);
    text-align: center;
    color: var(--color-white);
}

.hero-carousel__caption > .container {
    width: 100%;
}

.hero-carousel__caption .row {
    min-height: 100%;
    align-items: center;
    justify-content: center;
}

.hero-carousel__caption .col-12 {
    margin-inline: auto;
    text-align: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-16);
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, .30);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .11);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: var(--fs-14);
    font-weight: var(--fw-700);
    letter-spacing: .12em;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-title {
    width: 100%;
    max-width: 920px;
    margin: 0 auto var(--space-24);
    color: var(--color-white);
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    font-weight: var(--fw-800);
    line-height: 1.06;
    text-align: center;
    text-shadow:
        0 4px 18px rgba(0, 0, 0, .32),
        0 1px 2px rgba(0, 0, 0, .24);
}

.hero-carousel__caption .d-flex {
    justify-content: center;
    align-items: center;
}

.hero-carousel__caption .btn {
    min-width: 145px;
}

.hero-carousel__caption .btn--primary {
    box-shadow: 0 10px 26px rgba(51, 168, 255, .28);
}

.hero-carousel__caption .btn--outline {
    border: 2px solid rgba(255, 255, 255, .90);
    background: rgba(255, 255, 255, .06);
    color: var(--color-white);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero-carousel__caption .btn--outline:hover {
    border-color: var(--color-white);
    background: var(--color-white);
    color: var(--color-text);
}

.hero-carousel .carousel-indicators {
    z-index: 4;
    bottom: 26px;
    gap: 8px;
    margin-bottom: 0;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    margin: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background-color: rgba(255, 255, 255, .55);
    opacity: 1;
    transition: var(--transition-fast);
}

.hero-carousel .carousel-indicators .active {
    width: 30px;
    background-color: var(--color-primary);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    z-index: 4;
    width: 84px;
    opacity: 1;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .30);
    border-radius: 50%;
    background-color: rgba(2, 18, 31, .24);
    background-size: 44%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-fast);
}

.hero-carousel .carousel-control-prev:hover .carousel-control-prev-icon,
.hero-carousel .carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.06);
}

/* ==========================================================
   LIVE MATCH STRIP
========================================================== */

.live-match-strip {
    background: var(--color-primary-dark);
    box-shadow: var(--shadow-sm);
}

.live-match-card,
.live-badge,
.live-scoreline {
    color: var(--color-white);
}

.live-badge {
    font-family: var(--font-heading);
    letter-spacing: .04em;
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-danger);
    box-shadow: 0 0 0 6px rgba(239, 68, 68, .22);
    animation: livePulse 1.5s infinite;
}

.live-score {
    padding: var(--space-8) var(--space-16);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .13);
    font-family: var(--font-heading);
    font-size: var(--fs-24);
    font-weight: var(--fw-800);
}

@keyframes livePulse {
    50% {
        transform: scale(1.2);
    }
}

/* ==========================================================
   LATEST NEWS
========================================================== */

.latest-news-section {
    background: var(--color-background);
}

.news-card__image-link {
    display: block;
    overflow: hidden;
}

.news-card__image {
    width: 100%;
    height: 390px;
    object-fit: cover;
    transition: var(--transition-normal);
}

.news-card--featured:hover .news-card__image,
.news-card--compact:hover .news-card__compact-image {
    transform: scale(1.035);
}

.news-card__compact-image {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    transition: var(--transition-normal);
}

.news-card__title {
    margin-bottom: var(--space-16);
    font-size: var(--fs-30);
    line-height: var(--lh-tight);
}

.news-card__compact-title {
    margin-bottom: var(--space-8);
    font-size: var(--fs-18);
    line-height: 1.35;
}

.news-card__title a,
.news-card__compact-title a {
    color: var(--color-text);
}

.news-card__title a:hover,
.news-card__compact-title a:hover {
    color: var(--color-primary-dark);
}

.news-meta {
    color: var(--color-text-light);
    font-size: var(--fs-14);
}

/* ==========================================================
   NEXT MATCH
========================================================== */

.next-match-section {
    background: var(--color-surface);
}

.next-match-card {
    position: relative;
    overflow: hidden;
    padding: var(--space-40);
    background:
        radial-gradient(
            circle at top right,
            rgba(51, 168, 255, .18),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            var(--color-surface),
            var(--color-primary-light)
        );
}

.match-team {
    text-align: center;
}

.match-team__logo {
    width: 120px;
    height: 120px;
    margin-inline: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .08));
}

.match-team__name {
    margin-top: var(--space-16);
    margin-bottom: 0;
    font-size: var(--fs-24);
    font-weight: var(--fw-700);
}

.match-center-info {
    text-align: center;
}

.match-vs {
    display: inline-block;
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    font-size: var(--fs-36);
    font-weight: var(--fw-800);
}

.match-date {
    margin-bottom: var(--space-4);
    color: var(--color-text);
    font-size: var(--fs-20);
    font-weight: var(--fw-700);
}

.match-time {
    margin-bottom: var(--space-4);
    color: var(--color-primary-dark);
    font-size: var(--fs-18);
    font-weight: var(--fw-600);
}

.match-stadium {
    margin-bottom: 0;
    color: var(--color-text-light);
    font-size: var(--fs-14);
}

.match-countdown {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-8);
}

.countdown-item {
    min-width: 68px;
    padding: var(--space-8);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.countdown-item strong,
.countdown-item span {
    display: block;
}

.countdown-item strong {
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    font-size: var(--fs-20);
}

.countdown-item span {
    color: var(--color-text-light);
    font-size: var(--fs-12);
    text-transform: uppercase;
}

/* ==========================================================
   LEAGUE TABLE + LATEST RESULT
========================================================== */

.league-result-section {
    background: var(--color-background);
}

.league-result-section .table-responsive {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.league-table {
    margin-bottom: 0;
    background: var(--color-surface);
}

.league-table > :not(caption) > * > * {
    padding: .95rem .75rem;
    border-bottom-color: var(--color-border);
    white-space: nowrap;
    vertical-align: middle;
}

.league-table thead th {
    background: var(--color-primary-dark);
    color: var(--color-white);
    font-size: var(--fs-12);
    font-weight: var(--fw-700);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.league-table tbody tr {
    transition: var(--transition-fast);
}

.league-table tbody tr:hover > * {
    background: rgba(51, 168, 255, .07);
}

.league-ofc > * {
    background: var(--color-primary-light) !important;
    color: var(--color-primary-dark) !important;
    font-weight: var(--fw-700);
}

.league-team {
    display: inline-flex;
    align-items: center;
    gap: var(--space-8);
}

.league-team__logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.latest-result-card {
    padding: var(--space-32);
    text-align: center;
}

.result-team__logo {
    width: 72px;
    height: 72px;
    margin-inline: auto;
    object-fit: contain;
}

.result-score {
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    font-size: var(--fs-36);
    font-weight: var(--fw-800);
}

.result-details {
    color: var(--color-text-light);
}

/* ==========================================================
   PLAYERS
========================================================== */

.players-section {
    background: var(--color-surface);
}

.player-card__image-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--color-primary-light);
}

.player-card__image {
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: top center;
    transition: var(--transition-normal);
}

.player-card:hover .player-card__image {
    transform: scale(1.045);
}

.player-number {
    position: absolute;
    right: var(--space-16);
    bottom: var(--space-16);
    display: grid;
    place-items: center;
    min-width: 52px;
    height: 52px;
    padding: 0 var(--space-8);
    background: var(--color-primary);
    color: var(--color-white);
    border: 3px solid var(--color-white);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    font-family: var(--font-heading);
    font-size: var(--fs-18);
    font-weight: var(--fw-800);
}

.player-name {
    margin-bottom: var(--space-8);
    font-size: var(--fs-20);
}

.player-position {
    margin-bottom: 0;
    color: var(--color-primary-dark);
    font-weight: var(--fw-600);
}

/* ==========================================================
   MATCH HIGHLIGHTS + BOOTSTRAP MODAL
========================================================== */

.highlights-section {
    background: var(--color-background);
}

.highlight-card {
    width: 100%;
    padding: 0;
    color: inherit;
    text-align: left;
    border: 1px solid var(--color-border);
}

.highlight-card__thumb {
    position: relative;
    overflow: hidden;
}

.highlight-card__image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: var(--transition-normal);
}

.highlight-card:hover .highlight-card__image {
    transform: scale(1.05);
}

.highlight-play {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
    font-size: var(--fs-20);
    transition: var(--transition-fast);
}

.highlight-card:hover .highlight-play {
    transform: translate(-50%, -50%) scale(1.08);
    background: var(--color-primary-dark);
}

.highlight-title {
    margin-bottom: var(--space-8);
    font-size: var(--fs-20);
}

.video-modal-content {
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: var(--shadow-lg);
}

.video-modal-content .modal-header {
    border-bottom: 1px solid var(--color-border);
}

.video-modal-content .modal-title {
    margin: 0;
    font-size: var(--fs-20);
}

.video-modal-content .btn-close {
    box-shadow: none;
}

/* ==========================================================
   CLUB STATISTICS
========================================================== */

.stats-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--color-primary-dark),
        #004d87
    );
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(255, 255, 255, .10),
            transparent 25%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(51, 168, 255, .22),
            transparent 28%
        );
    pointer-events: none;
}

.stats-section .container {
    position: relative;
    z-index: 1;
}

.stats-section .section-title,
.stats-section .section-kicker {
    color: var(--color-white);
}

.stats-section .section-title::after {
    background: var(--color-white);
}

.stat-card {
    padding: var(--space-40) var(--space-16);
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .10);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, .14);
}

.stat-value {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: var(--fw-800);
}

.stat-label {
    color: var(--color-primary-light);
    font-size: var(--fs-14);
    font-weight: var(--fw-600);
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ==========================================================
   ABOUT CLUB
========================================================== */

.about-section {
    background: var(--color-surface);
}

.about-image-wrap {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image {
    width: 100%;
    min-height: 460px;
    object-fit: cover;
    transition: var(--transition-normal);
}

.about-image-wrap:hover .about-image {
    transform: scale(1.025);
}

.about-description {
    color: var(--color-text-light);
    line-height: var(--lh-relaxed);
}

.about-fact {
    height: 100%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-background);
    transition: var(--transition-fast);
}

.about-fact:hover {
    transform: translateY(-3px);
    border-color: rgba(51, 168, 255, .45);
    box-shadow: var(--shadow-sm);
}

.about-fact strong,
.about-fact span {
    display: block;
}

.about-fact strong {
    margin-bottom: var(--space-4);
    color: var(--color-primary-dark);
}

.about-fact span {
    color: var(--color-text-light);
}

/* ==========================================================
   SPONSORS
========================================================== */

.sponsors-section {
    background: var(--color-background);
}

.sponsor-card {
    min-height: 130px;
    padding: var(--space-20);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.sponsor-card:hover {
    transform: translateY(-4px);
    border-color: rgba(51, 168, 255, .35);
    box-shadow: var(--shadow-md);
}

.sponsor-logo {
    max-width: 130px;
    max-height: 72px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .72;
    transition: var(--transition-fast);
}

.sponsor-card:hover .sponsor-logo {
    filter: grayscale(0);
    opacity: 1;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1199.98px) {
    .hero-carousel,
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item,
    .hero-carousel__image {
        min-height: 590px;
        height: 590px;
    }
}

@media (max-width: 991.98px) {
    .hero-carousel,
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item,
    .hero-carousel__image {
        min-height: 560px;
        height: 560px;
    }

    .hero-carousel__caption {
        padding: var(--space-64) var(--space-40) var(--space-80);
    }

    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 64px;
    }

    .next-match-card {
        padding: var(--space-32) var(--space-24);
    }

    .about-image {
        min-height: 400px;
    }
}

@media (max-width: 767.98px) {
    .section-heading {
        align-items: flex-start !important;
    }

    .hero-carousel,
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item,
    .hero-carousel__image {
        min-height: 540px;
        height: 540px;
    }

    .hero-carousel__overlay {
        background:
            linear-gradient(
                180deg,
                rgba(2, 24, 44, .18) 0%,
                rgba(2, 24, 44, .30) 50%,
                rgba(2, 24, 44, .60) 100%
            );
    }

    .hero-carousel__caption {
        padding: var(--space-64) var(--space-24) var(--space-80);
    }

    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        display: none;
    }

    .hero-title {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .news-card__image {
        height: 300px;
    }

    .news-card__compact-image {
        min-height: 160px;
    }

    .match-team__logo {
        width: 92px;
        height: 92px;
    }

    .match-team__name {
        font-size: var(--fs-18);
    }

    .player-card__image {
        height: 320px;
    }

    .about-image {
        min-height: 340px;
    }
}

@media (max-width: 575.98px) {
    .hero-carousel,
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item,
    .hero-carousel__image {
        min-height: 500px;
        height: 500px;
    }

    .hero-carousel__caption {
        padding: var(--space-56) var(--space-20) var(--space-72, 72px);
    }

    .hero-kicker {
        font-size: var(--fs-12);
        letter-spacing: .07em;
    }

    .hero-title {
        font-size: var(--fs-36);
    }

    .hero-carousel__caption .d-flex {
        width: 100%;
        flex-direction: column;
    }

    .hero-carousel__caption .btn {
        width: min(100%, 230px);
    }

    .live-scoreline {
        font-size: var(--fs-14);
    }

    .live-score {
        padding: var(--space-8) var(--space-12);
        font-size: var(--fs-20);
    }

    .news-card__image {
        height: 260px;
    }

    .news-card__compact-image {
        min-height: 145px;
    }

    .news-card__compact-title {
        font-size: var(--fs-16);
    }

    .next-match-card {
        padding: var(--space-24) var(--space-16);
    }

    .match-team__logo {
        width: 76px;
        height: 76px;
    }

    .match-vs {
        font-size: var(--fs-30);
    }

    .countdown-item {
        min-width: 58px;
    }

    .result-team__logo {
        width: 55px;
        height: 55px;
    }

    .result-score {
        font-size: var(--fs-24);
    }

    .highlight-card__image {
        height: 220px;
    }

    .highlight-play {
        width: 56px;
        height: 56px;
    }

    .about-image {
        min-height: 300px;
    }
}

/* ==========================================================
   MOBILE FIX — LEAGUE TABLE + LATEST RESULT
========================================================== */

@media (max-width: 767.98px) {

    /*
    |--------------------------------------------------------------------------
    | Prevent cards from overflowing their Bootstrap columns
    |--------------------------------------------------------------------------
    */

    .league-result-section .ofc-card,
    .league-result-section .latest-result-card {
        height: auto !important;
        min-height: 0;
    }

    /*
    |--------------------------------------------------------------------------
    | Add a real space between league table and latest result
    |--------------------------------------------------------------------------
    */

    .league-result-section > .container > .row {
        row-gap: 48px;
    }

    /*
    |--------------------------------------------------------------------------
    | Keep each Bootstrap column in the normal document flow
    |--------------------------------------------------------------------------
    */

    .league-result-section .col-12,
    .league-result-section .col-xl-8,
    .league-result-section .col-xl-4 {
        position: relative;
        min-width: 0;
        height: auto;
    }

    /*
    |--------------------------------------------------------------------------
    | Protect headings against overlap and horizontal overflow
    |--------------------------------------------------------------------------
    */

    .league-result-section .section-heading {
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: 100%;
        margin-top: 0 !important;
        margin-bottom: 20px !important;
        transform: none !important;
    }

    .league-result-section .section-kicker {
        display: block;
        width: 100%;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
        font-size: 13px;
        line-height: 1.45;
        letter-spacing: .07em;
    }

    .league-result-section .section-title {
        display: block;
        width: 100%;
        max-width: 100%;
        margin-top: 8px;
        white-space: normal;
        overflow-wrap: anywhere;
        font-size: 24px;
        line-height: 1.2;
    }

    /*
    |--------------------------------------------------------------------------
    | Keep the result card below its heading
    |--------------------------------------------------------------------------
    */

    .latest-result-card {
        position: relative;
        z-index: 1;
        margin-top: 0 !important;
        transform: none !important;
        overflow: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ofc-card,
    .news-card__image,
    .news-card__compact-image,
    .player-card__image,
    .highlight-card__image,
    .highlight-play,
    .about-image,
    .sponsor-card,
    .sponsor-logo,
    .stat-card,
    .section-link,
    .read-more,
    .hero-carousel .carousel-control-prev-icon,
    .hero-carousel .carousel-control-next-icon {
        transition: none !important;
    }

    .live-dot {
        animation: none;
    }
}

/* ==========================================================
   FINAL HOME PAGE CORRECTIONS
   Adapté à index_home_corrige_fr.php
========================================================== */


/* ==========================================================
   SECTION SEPARATION
========================================================== */

.latest-news-section,
.next-match-section,
.league-result-section,
.players-section,
.highlights-section,
.stats-section,
.about-section,
.sponsors-section {
    position: relative;
    padding-top: var(--space-64);
    padding-bottom: var(--space-64);
}

.section-heading {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-bottom: var(--space-32) !important;
}

.section-heading > div {
    min-width: 0;
}

.section-heading .section-kicker {
    margin-bottom: var(--space-8);
    line-height: 1.4;
}

.section-heading .section-title {
    max-width: 760px;
    margin-top: var(--space-8);
    line-height: 1.2;
    text-wrap: balance;
}

.section-link {
    flex: 0 0 auto;
    white-space: nowrap;
}


/* ==========================================================
   NEWS CORRECTIONS
========================================================== */

.news-card {
    height: 100%;
}

.news-card--featured {
    display: flex;
    flex-direction: column;
}

.news-card--featured .card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.news-card--featured .read-more {
    align-self: flex-start;
    margin-top: auto;
}

.news-card--compact {
    min-height: 180px;
}

.news-card--compact .row {
    min-height: 180px;
}

.news-card__compact-title {
    overflow-wrap: anywhere;
}

.news-meta time {
    line-height: 1.4;
}


/* ==========================================================
   NEXT MATCH CORRECTIONS
========================================================== */

.next-match-card {
    width: 100%;
}

.next-match-card .row {
    position: relative;
    z-index: 1;
}

.match-team {
    min-width: 0;
}

.match-team__name {
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.match-center-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.match-vs {
    margin-bottom: var(--space-12);
}

.match-date,
.match-time,
.match-stadium {
    text-align: center;
}

.next-match-card > .d-flex:last-child {
    align-items: center;
}

.next-match-card .btn {
    justify-content: center;
}


/* ==========================================================
   LEAGUE TABLE + RESULT CORRECTIONS
========================================================== */

.league-result-section .row {
    align-items: stretch;
}

.league-result-section .col-xl-8,
.league-result-section .col-xl-4 {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.league-result-section .col-xl-8 > .ofc-card,
.league-result-section .col-xl-4 > .ofc-card {
    flex: 1;
}

.league-table {
    min-width: 760px;
}

.latest-result-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto !important;
    min-height: 100%;
}

.latest-result-card .row {
    width: 100%;
    margin-inline: 0;
}

.latest-result-card .col-4 {
    min-width: 0;
}

.latest-result-card strong {
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.result-details {
    margin-top: auto;
}


/* ==========================================================
   PLAYERS
========================================================== */

.players-section .row {
    align-items: stretch;
}

.player-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.player-card .card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.player-name {
    overflow-wrap: anywhere;
    line-height: 1.35;
}


/* ==========================================================
   HIGHLIGHTS
========================================================== */

.highlights-section .row {
    align-items: stretch;
}

.highlight-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.highlight-card .card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.highlight-title {
    overflow-wrap: anywhere;
    line-height: 1.4;
}

.video-modal-content video {
    display: block;
    width: 100%;
    max-height: 75vh;
    background: #000000;
}


/* ==========================================================
   STATS
========================================================== */

.stats-section .row {
    align-items: stretch;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 180px;
    text-align: center;
}

.stat-label {
    line-height: 1.5;
}


/* ==========================================================
   ABOUT HOME SECTION
========================================================== */

.about-section .row {
    align-items: center;
}

.about-image {
    display: block;
    height: 100%;
    min-height: 460px;
}

.about-description {
    font-size: var(--fs-16);
    line-height: 1.85;
}

.about-fact strong,
.about-fact span {
    overflow-wrap: anywhere;
}


/* ==========================================================
   SPONSORS
========================================================== */

.sponsors-section .row {
    align-items: stretch;
}

.sponsor-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 991.98px) {

    .latest-news-section,
    .next-match-section,
    .league-result-section,
    .players-section,
    .highlights-section,
    .stats-section,
    .about-section,
    .sponsors-section {
        padding-top: var(--space-56);
        padding-bottom: var(--space-56);
    }

    .section-heading {
        margin-bottom: var(--space-28) !important;
    }

    .league-result-section > .container > .row {
        row-gap: var(--space-48);
    }

    .latest-result-card {
        min-height: 0;
    }

    .about-image {
        min-height: 400px;
    }
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767.98px) {

    .latest-news-section,
    .next-match-section,
    .league-result-section,
    .players-section,
    .highlights-section,
    .stats-section,
    .about-section,
    .sponsors-section {
        padding-top: var(--space-48);
        padding-bottom: var(--space-48);
    }

    .section-heading {
        align-items: flex-start !important;
        gap: var(--space-12) !important;
        margin-bottom: var(--space-24) !important;
    }

    .section-heading .section-kicker {
        display: block;
        width: 100%;
        margin-bottom: var(--space-8);
        font-size: var(--fs-12);
        line-height: 1.4;
        white-space: normal;
    }

    .section-heading .section-title {
        width: 100%;
        max-width: 100%;
        margin-top: 0;
        font-size: var(--fs-26);
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .section-link {
        margin-top: var(--space-4);
        white-space: normal;
    }

    .news-card--compact,
    .news-card--compact .row {
        min-height: 0;
    }

    .news-card--compact .col-4 {
        width: 38%;
    }

    .news-card--compact .col-8 {
        width: 62%;
    }

    .news-card__compact-image {
        min-height: 170px;
    }

    .next-match-card .row {
        row-gap: var(--space-24);
    }

    .match-team__logo {
        width: 92px;
        height: 92px;
    }

    .match-center-info {
        padding-block: var(--space-8);
    }

    .match-vs {
        font-size: var(--fs-24);
    }

    .next-match-card > .d-flex:last-child {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .next-match-card > .d-flex:last-child .btn {
        width: 100%;
    }

    .league-result-section > .container > .row {
        row-gap: var(--space-48);
    }

    .league-result-section .section-heading {
        margin-bottom: var(--space-20) !important;
    }

    .latest-result-card {
        min-height: 0;
        padding: var(--space-24) var(--space-16);
    }

    .latest-result-card .row {
        flex-wrap: nowrap;
        align-items: center;
    }

    .latest-result-card .col-4 {
        padding-inline: 5px;
    }

    .result-team__logo {
        width: 58px;
        height: 58px;
    }

    .result-score {
        font-size: var(--fs-24);
        white-space: nowrap;
    }

    .player-card__image {
        height: 360px;
    }

    .highlight-card__image {
        height: 240px;
    }

    .stat-card {
        min-height: 150px;
        padding: var(--space-28) var(--space-16);
    }

    .about-image {
        min-height: 320px;
        max-height: 420px;
    }

    .about-section .section-title {
        font-size: var(--fs-26);
        line-height: 1.25;
    }

    .sponsor-card {
        min-height: 110px;
    }
}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 575.98px) {

    .hero-carousel,
    .hero-carousel .carousel-inner,
    .hero-carousel .carousel-item,
    .hero-carousel__image {
        min-height: 520px;
        height: 520px;
    }

    .hero-carousel__caption {
        padding:
            var(--space-48)
            var(--space-16)
            var(--space-72, 72px);
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 2.65rem);
        line-height: 1.1;
    }

    .hero-kicker {
        max-width: 100%;
        padding: 7px 12px;
        font-size: 11px;
        line-height: 1.4;
        white-space: normal;
    }

    .hero-carousel__caption .d-flex {
        gap: var(--space-12) !important;
    }

    .hero-carousel__caption .btn {
        width: min(100%, 260px);
    }

    .live-match-card {
        text-align: center;
    }

    .live-scoreline {
        flex-direction: column;
        gap: var(--space-8) !important;
    }

    .live-score {
        min-width: 90px;
    }

    .news-card__image {
        height: 250px;
    }

    .news-card--compact .row {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .news-card--compact .col-4,
    .news-card--compact .col-8 {
        width: auto;
        max-width: none;
    }

    .news-card__compact-image {
        height: 100%;
        min-height: 155px;
    }

    .news-card--compact .p-3,
    .news-card--compact .p-md-4 {
        padding: var(--space-16) !important;
    }

    .match-team__logo {
        width: 82px;
        height: 82px;
    }

    .match-team__name {
        font-size: var(--fs-18);
    }

    .countdown-item {
        flex: 1 1 calc(50% - var(--space-8));
        min-width: 0;
        max-width: 120px;
    }

    .league-table {
        min-width: 720px;
    }

    .latest-result-card {
        padding: var(--space-20) var(--space-12);
    }

    .result-team__logo {
        width: 52px;
        height: 52px;
    }

    .latest-result-card strong {
        font-size: var(--fs-13);
    }

    .result-score {
        font-size: var(--fs-22);
    }

    .player-card__image {
        height: 330px;
    }

    .highlight-card__image {
        height: 220px;
    }

    .about-image {
        min-height: 280px;
    }

    .about-fact {
        padding: var(--space-14);
    }
}


/* ==========================================================
   VERY SMALL MOBILE
========================================================== */

@media (max-width: 380px) {

    .section-heading .section-title,
    .about-section .section-title {
        font-size: var(--fs-24);
    }

    .news-card--compact .row {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .news-card__compact-image {
        min-height: 145px;
    }

    .news-card__compact-title {
        font-size: var(--fs-14);
    }

    .result-team__logo {
        width: 46px;
        height: 46px;
    }

    .latest-result-card strong {
        font-size: 11px;
    }

    .result-score {
        font-size: var(--fs-20);
    }

    .countdown-item {
        max-width: none;
    }
}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .news-card,
    .player-card,
    .highlight-card,
    .latest-result-card {
        transition: none !important;
    }
}

/* ==========================================================
   CRITICAL FIX — LEAGUE / RESULT MOBILE HEIGHT
========================================================== */

/*
 * Pa fòse de kolòn classement ak résultat yo gen menm wotè.
 * Sa te kreye gwo espas vid sou mobil epi li te pouse seksyon
 * joueurs la byen lwen anba.
 */
.league-result-section .row {
    align-items: flex-start;
}

.league-result-section .col-xl-8,
.league-result-section .col-xl-4 {
    display: block;
    height: auto;
}

.league-result-section .col-xl-8 > .ofc-card,
.league-result-section .col-xl-4 > .ofc-card {
    flex: none;
    height: auto !important;
    min-height: 0 !important;
}

.latest-result-card {
    display: block;
    height: auto !important;
    min-height: 0 !important;
}

.latest-result-card .result-details {
    margin-top: var(--space-24);
}


/* ==========================================================
   MOBILE RESULT CARD
========================================================== */

@media (max-width: 767.98px) {

    .league-result-section > .container > .row {
        display: block;
    }

    .league-result-section .col-12,
    .league-result-section .col-xl-8,
    .league-result-section .col-xl-4 {
        display: block;
        width: 100%;
        height: auto !important;
    }

    .league-result-section .col-xl-4 {
        margin-top: var(--space-48);
    }

    .league-result-section .section-heading {
        position: relative;
        z-index: auto;
        margin-bottom: var(--space-20) !important;
    }

    .latest-result-card {
        display: block;
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        padding: var(--space-24) var(--space-16);
    }

    .latest-result-card .row {
        display: grid;
        grid-template-columns:
            minmax(0, 1fr)
            auto
            minmax(0, 1fr);
        align-items: center;
        width: 100%;
        margin: 0;
    }

    .latest-result-card .col-4 {
        width: auto;
        max-width: none;
        padding-inline: var(--space-4);
    }

    .latest-result-card .btn {
        display: inline-flex;
        width: auto;
        max-width: 100%;
        margin-inline: auto;
        justify-content: center;
    }

    .result-details {
        margin-top: var(--space-24);
        text-align: center;
    }
}


/* ==========================================================
   SMALL MOBILE RESULT CARD
========================================================== */

@media (max-width: 575.98px) {

    .latest-result-card .row {
        grid-template-columns:
            minmax(72px, 1fr)
            auto
            minmax(72px, 1fr);
        column-gap: var(--space-6);
    }

    .latest-result-card .content-badge {
        max-width: 100%;
        white-space: normal;
        line-height: 1.35;
        text-align: center;
    }

    .latest-result-card .result-team__logo {
        width: 58px;
        height: 58px;
    }

    .latest-result-card strong {
        display: block;
        font-size: var(--fs-13);
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .latest-result-card .result-score {
        min-width: 86px;
        padding: var(--space-10) var(--space-12);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        background: var(--color-background-light);
        font-size: var(--fs-24);
    }
}

/* ==========================================================
   CENTER LATEST RESULT CONTENT
========================================================== */

.latest-result-card {
    text-align: center;
}

.latest-result-card .result-details {
    width: 100%;
    margin-top: var(--space-24);
    text-align: center;
}

.latest-result-card .result-details p {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.latest-result-card .result-details .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin-left: auto;
    margin-right: auto;
}


/* MOBILE */

@media (max-width: 767.98px) {

    .latest-result-card .result-details {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .latest-result-card .result-details p {
        text-align: center;
    }

    .latest-result-card .result-details .btn {
        align-self: center;
    }
}

/* ==========================================================
   FINAL FIX — HOME NEXT MATCH LAYOUT
   Replaces earlier conflicting mobile next-match rules.
========================================================== */

.next-match-section .section-heading {
    position: relative;
    z-index: 1;
}

.next-match-card {
    height: auto !important;
    min-height: 0 !important;
}

.next-match-card .row {
    align-items: center;
}

.next-match-home,
.next-match-center,
.next-match-away {
    min-width: 0;
}

.next-match-card .match-team__name {
    max-width: 260px;
    margin-inline: auto;
}

.next-match-card .match-countdown:empty {
    display: none !important;
}


/* TABLET AND MOBILE */

@media (max-width: 767.98px) {

    .next-match-section .section-heading {
        display: grid !important;
        grid-template-columns: 1fr;
        align-items: start !important;
        gap: 14px !important;
    }

    .next-match-section .section-link {
        display: inline-flex;
        width: fit-content;
        margin: 0;
    }

    .next-match-card {
        padding: 28px 18px !important;
    }

    /*
     * De ekip yo rete bò kote youn lòt.
     * Dat, lè, stade ak countdown pase anba yo.
     */
    .next-match-card .row {
        display: grid;
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr);
        grid-template-areas:
            "home away"
            "center center";
        column-gap: 18px;
        row-gap: 30px;
        margin-inline: 0;
    }

    .next-match-home {
        grid-area: home;
    }

    .next-match-center {
        grid-area: center;
    }

    .next-match-away {
        grid-area: away;
    }

    .next-match-home,
    .next-match-center,
    .next-match-away {
        width: auto !important;
        max-width: none !important;
        padding-inline: 0;
    }

    .next-match-card .match-team__logo {
        width: 88px;
        height: 88px;
    }

    .next-match-card .match-team__name {
        max-width: 170px;
        margin-top: 14px;
        font-size: 17px;
        line-height: 1.3;
    }

    .next-match-card .match-center-info {
        padding-block: 0;
    }

    .next-match-card .match-vs {
        margin-bottom: 12px;
        font-size: 25px;
    }

    .next-match-card .match-date {
        font-size: 19px;
    }

    .next-match-card .match-time {
        font-size: 18px;
    }

    .next-match-card > .d-flex:last-child {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 14px !important;
        width: min(100%, 420px);
        margin-inline: auto;
    }

    .next-match-card > .d-flex:last-child .btn {
        width: 100%;
        min-height: 48px;
    }
}


/* SMALL MOBILE */

@media (max-width: 420px) {

    .next-match-card {
        padding: 24px 14px !important;
    }

    .next-match-card .row {
        column-gap: 10px;
    }

    .next-match-card .match-team__logo {
        width: 76px;
        height: 76px;
    }

    .next-match-card .match-team__name {
        max-width: 140px;
        font-size: 15px;
    }

    .next-match-card .content-badge {
        max-width: 100%;
        padding-inline: 12px;
        line-height: 1.35;
        white-space: normal;
        text-align: center;
    }
}


/* ==========================================================
   FINAL FIX — LEAGUE / RESULT DESKTOP ALIGNMENT
========================================================== */

@media (min-width: 1200px) {

    .league-result-section > .container > .row {
        align-items: flex-start;
    }

    .league-result-section .col-xl-8,
    .league-result-section .col-xl-4 {
        display: block;
        height: auto;
    }

    .league-result-section .latest-result-card {
        height: auto !important;
        min-height: 0 !important;
    }
}


/* ==========================================================
   FINAL FIX — LATEST RESULT SCOREBOARD ON DESKTOP
========================================================== */

@media (min-width: 1200px) {

    .league-result-section .col-xl-4 {
        min-width: 0;
    }

    .league-result-section .latest-result-card {
        width: 100%;
        padding: 28px 24px !important;
    }

    .latest-result-card > .row {
        display: grid;
        grid-template-columns:
            minmax(92px, 1fr)
            minmax(112px, auto)
            minmax(92px, 1fr);
        align-items: center;
        column-gap: 14px;
        width: 100%;
        margin: 0;
    }

    .latest-result-card > .row > .col-4 {
        width: auto;
        max-width: none;
        min-width: 0;
        padding: 0;
    }

    .latest-result-card .result-team__logo {
        width: 72px;
        height: 72px;
    }

    .latest-result-card > .row > .col-4 strong {
        display: block;
        max-width: 120px;
        margin-inline: auto;
        font-size: 15px;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .latest-result-card .result-score {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        min-width: 112px;
        min-height: 94px;
        padding: 12px 16px;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        background: var(--color-background-light);
        color: var(--color-primary-dark);
        font-size: 38px;
        line-height: 1;
        white-space: nowrap;
        word-break: keep-all;
    }

    .latest-result-card .content-badge {
        max-width: 100%;
        white-space: normal;
        line-height: 1.35;
        text-align: center;
    }

    .latest-result-card .result-details {
        margin-top: 28px;
    }
}


/* ==========================================================
   EXTRA SAFETY — SCORE MUST NEVER BREAK
========================================================== */

.latest-result-card .result-score {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}

/* ==========================================================
   FINAL FIX — ABOUT OFC FACT CARDS
========================================================== */

.about-section .about-fact {
    display: flex;
    flex-direction: column;
    justify-content: center;

    width: 100%;
    min-height: 94px;
    height: 100%;

    padding: 20px 22px !important;

    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-background);
}

.about-section .about-fact strong {
    display: block;
    margin: 0 0 8px;

    color: var(--color-primary-dark);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.about-section .about-fact span {
    display: block;
    margin: 0;

    color: var(--color-text-light);
    font-size: 17px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}


/* MOBILE */

@media (max-width: 575.98px) {

    .about-section .about-fact {
        min-height: 88px;
        padding: 18px 20px !important;
    }

    .about-section .about-fact strong {
        margin-bottom: 7px;
        font-size: 14px;
    }

    .about-section .about-fact span {
        font-size: 16px;
    }
}