/* ==================================================
   SHARED HOMEPAGE NEWS SYSTEM
================================================== */

.mf-moghamo-news-section,
.mf-home-news {
    width: 100%;
    background: transparent !important;
    padding: 46px clamp(18px, 4vw, 54px);
}

.mf-moghamo-news-wrap,
.mf-home-news-header,
.mf-home-news-grid {
    width: 100%;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================================================
   HEADERS
================================================== */

.mf-moghamo-news-header,
.mf-home-news-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.mf-moghamo-news-kicker,
.mf-home-news-kicker {
    margin-bottom: 7px;

    color: #fdcf0b;

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.mf-moghamo-news-heading,
.mf-home-news-title {
    margin: 0;

    color: #fff;

    font-size: clamp(28px, 3.5vw, 46px);
    line-height: 1;
    font-weight: 900;
}

.mf-moghamo-news-viewall,
.mf-home-news-all {
    color: #fdcf0b;

    font-size: 14px;
    font-weight: 900;

    text-decoration: none;
    white-space: nowrap;
}

/* ==================================================
   FOUR CARD GRID
================================================== */

.mf-moghamo-news-grid,
.mf-home-news-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}

/* ==================================================
   CARD
================================================== */

.mf-moghamo-news-card,
.mf-home-news-card {
    position: relative;

    min-width: 0;

    overflow: hidden;

    border-radius: 18px;

    background:
        linear-gradient(
            180deg,
            #111 0%,
            #0d0d0d 72%,
            #080808 100%
        );

    border: 3px solid rgba(253,207,11,.78);

    box-shadow:
        0 14px 28px rgba(0,0,0,.30),
        0 7px 16px rgba(0,0,0,.34),
        0 0 0 1px rgba(253,207,11,.08);

    transition:
        transform .28s ease,
        border-color .28s ease,
        box-shadow .28s ease;
}

.mf-moghamo-news-card:hover,
.mf-home-news-card:hover {
    transform: translateY(-4px);

    border-color: #fdcf0b;

    box-shadow:
        0 20px 38px rgba(0,0,0,.38),
        0 10px 22px rgba(0,0,0,.42),
        0 0 0 2px rgba(253,207,11,.14);
}

/* ==================================================
   IMAGE
================================================== */

.mf-moghamo-news-image,
.mf-home-news-image {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #111;

    line-height: 0;
}

.mf-moghamo-news-image::after,
.mf-home-news-image::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 28%;

    pointer-events: none;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.24),
            rgba(0,0,0,0)
        );
}

.mf-moghamo-news-image img,
.mf-home-news-image img {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    object-fit: cover !important;
    object-position: center center;

    transition:
        transform .4s ease;
}

.mf-moghamo-news-card:hover
.mf-moghamo-news-image img,

.mf-home-news-card:hover
.mf-home-news-image img {
    transform: scale(1.04);
}

/* ==================================================
   PLACEHOLDER
================================================== */

.mf-moghamo-news-placeholder,
.mf-home-news-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: #111;

    color: rgba(255,255,255,.5);

    text-align: center;
}

/* ==================================================
   CONTENT
================================================== */

.mf-moghamo-news-content,
.mf-home-news-content {
    min-height: 180px;

    padding: 17px 18px 18px;

    display: flex;
    flex-direction: column;
}

.mf-moghamo-news-category,
.mf-home-news-category {
    margin-bottom: 9px;

    color: #fdcf0b;

    font-size: 10px;
    line-height: 1.2;

    font-weight: 900;

    letter-spacing: .9px;
    text-transform: uppercase;
}

/* ==================================================
   TITLE
================================================== */

.mf-moghamo-news-title,
.mf-home-news-content h3 {
    margin: 0 0 10px;

    color: #fff;

    font-size: clamp(18px, 1.5vw, 24px);
    line-height: 1.12;
    font-weight: 900;

    display: -webkit-box;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

.mf-moghamo-news-title a,
.mf-home-news-content h3 a {
    color: inherit;
    text-decoration: none;
}

.mf-moghamo-news-title a:hover,
.mf-home-news-content h3 a:hover {
    color: #fdcf0b;
}

/* ==================================================
   EXCERPT
================================================== */

.mf-moghamo-news-excerpt {
    margin: 0 0 12px;

    color:
        rgba(255,255,255,.64);

    font-size: 13px;
    line-height: 1.45;

    display: -webkit-box;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

/* ==================================================
   FOOTER
================================================== */

.mf-moghamo-news-bottom {
    margin-top: auto;

    padding-top: 12px;

    border-top:
        1px solid rgba(255,255,255,.06);

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;
}

.mf-moghamo-news-date,
.mf-home-news-date {
    color:
        rgba(255,255,255,.48);

    font-size: 11px;
}

.mf-moghamo-news-read {
    color: #fdcf0b;

    font-size: 12px;
    font-weight: 900;

    text-decoration: none;
}

.mf-home-news-date {
    margin-top: auto;

    padding-top: 12px;

    border-top:
        1px solid rgba(255,255,255,.06);

    text-align: right;
}

/* ==================================================
   OTHER NEWS SECTION
================================================== */

.mf-home-news-other {
    padding-top: 36px;
}

.mf-home-news-other
.mf-home-news-card {
    min-height: 100%;
}

/* ==================================================
   TABLET
================================================== */

@media (max-width: 1100px) {

    .mf-moghamo-news-grid,
    .mf-home-news-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 640px) {

    .mf-moghamo-news-section,
    .mf-home-news {
        padding:
            36px 16px;
    }

    .mf-moghamo-news-header,
    .mf-home-news-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /*
     * Horizontal swipe carousel behaviour.
     */

    .mf-moghamo-news-grid,
    .mf-home-news-grid {
        display: flex;

        gap: 14px;

        overflow-x: auto;

        scroll-snap-type:
            x mandatory;

        padding-bottom: 12px;

        scrollbar-width: none;
    }

    .mf-moghamo-news-grid::-webkit-scrollbar,
    .mf-home-news-grid::-webkit-scrollbar {
        display: none;
    }

    .mf-moghamo-news-card,
    .mf-home-news-card {
        width: 78vw;
        min-width: 78vw;

        scroll-snap-align: start;
    }

    .mf-moghamo-news-content,
    .mf-home-news-content {
        min-height: 170px;
    }

}
/* ==================================================
   FAN EXPERIENCE — LATEST RESULT
================================================== */

.mf-fans-latest-result {
    width: 100%;
    max-width: 850px;

    margin: 28px 0 26px;
    padding: 18px 24px;

    background: rgba(8, 8, 8, .88);

    border: 1px solid rgba(255,255,255,.13);
    border-radius: 18px;

    box-shadow:
        0 14px 30px rgba(0,0,0,.28),
        0 4px 10px rgba(0,0,0,.22);

    backdrop-filter: blur(8px);
}

.mf-fans-result-heading {
    margin-bottom: 14px;

    color: #fdcf0b;

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.mf-fans-result-match {
    display: grid;
    grid-template-columns: 1fr auto 1fr;

    align-items: center;
    gap: 24px;
}


/* TEAM */

.mf-fans-result-team {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 12px;
}

.mf-fans-result-team-away {
    flex-direction: row-reverse;
    text-align: right;
}

.mf-fans-result-logo {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    object-fit: contain;
}

.mf-fans-result-team-name {
    color: #fff;

    font-size: 15px;
    line-height: 1.2;
    font-weight: 800;
}


/* SCORE */

.mf-fans-result-score-wrap {
    min-width: 110px;

    text-align: center;
}

.mf-fans-result-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    color: #fff;

    font-size: 32px;
    line-height: 1;
    font-weight: 950;
}

.mf-fans-result-divider {
    color: #fdcf0b;
}

.mf-fans-result-status {
    margin-top: 6px;

    color: #fdcf0b;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 1px;
    text-transform: uppercase;
}

.mf-fans-result-date {
    margin-top: 3px;

    color: rgba(255,255,255,.52);

    font-size: 9px;
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 650px) {

    .mf-fans-latest-result {
        padding: 16px;
    }

    .mf-fans-result-match {
        gap: 10px;
    }

    .mf-fans-result-team {
        flex-direction: column;
        gap: 7px;

        text-align: center;
    }

    .mf-fans-result-team-away {
        flex-direction: column;
    }

    .mf-fans-result-logo {
        width: 40px;
        height: 40px;
    }

    .mf-fans-result-team-name {
        font-size: 11px;
    }

    .mf-fans-result-score-wrap {
        min-width: 80px;
    }

    .mf-fans-result-score {
        font-size: 26px;
        gap: 6px;
    }
}

/* ==================================================
   FINAL HOMEPAGE NEWS OVERRIDES
================================================== */

/* The shortcode sections always inherit the global site background. */
.mf-moghamo-news-section,
.mf-home-news,
.mf-home-news-other {
    background: transparent !important;
}

/* Remove a hardcoded Elementor container background when the container
   exists only to hold one of these news shortcodes. */
.elementor-element.e-con:has(> .elementor-widget-shortcode .mf-moghamo-news-section),
.elementor-element.e-con:has(> .elementor-widget-shortcode .mf-home-news),
.elementor-widget-shortcode:has(.mf-moghamo-news-section),
.elementor-widget-shortcode:has(.mf-home-news),
.elementor-widget-shortcode:has(.mf-home-news-other),
.elementor-widget-shortcode:has(.mf-moghamo-news-section) > .elementor-widget-container,
.elementor-widget-shortcode:has(.mf-home-news) > .elementor-widget-container {
    background: transparent !important;
}

/* Permanent Moghamo gold border. */
.mf-moghamo-news-card,
.mf-home-news-card {
    border: 3px solid rgba(253,207,11,.78) !important;
}

.mf-moghamo-news-card:hover,
.mf-home-news-card:hover {
    border-color: #fdcf0b !important;
}