/* =========================================================
   MJ STUDIO65
   HOMEPAGE
   DESKTOP / DEFAULT
   ========================================================= */


/* =========================
   HOMEPAGE SHELL
   ========================= */

.mj-homepage {
    width: 100%;
}


/* =========================
   SECTION INTRO
   ========================= */

.mj-home-section-heading {
    margin-bottom: 28px;
}


.mj-home-section-heading h1,
.mj-home-latest-header h2,
.mj-coverage-heading h2 {
    margin: 5px 0 0;

    color: var(--mj-text);

    font-size: clamp(
        2rem,
        4vw,
        3rem
    );

    line-height: 1.06;

    letter-spacing: -0.035em;
}


.mj-home-section-heading p,
.mj-coverage-heading p {
    max-width: 650px;

    margin: 12px 0 0;

    color: var(--mj-text-secondary);

    font-size: 1rem;
}


/* =========================================================
   TODAY'S HIGHLIGHTS
   ========================================================= */

.mj-home-highlights {
    padding: 52px 0 70px;
}


.mj-highlight-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(300px, 0.82fr);

    gap: 18px;
}


/* =========================
   MAIN FEATURE
   ========================= */

.mj-highlight-main {
    position: relative;

    min-height: 520px;

    overflow: hidden;

    border-radius: var(--mj-radius-lg);

    background: var(--mj-dark);

    box-shadow: var(--mj-shadow-soft);
}


.mj-highlight-main__link {
    position: absolute;
    inset: 0;

    display: block;

    color: #ffffff;

    text-decoration: none;
}


.mj-highlight-main__image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.45s ease;
}


.mj-highlight-main:hover
.mj-highlight-main__image {
    transform: scale(1.025);
}


.mj-highlight-main__shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.86) 0%,
            rgba(0, 0, 0, 0.44) 48%,
            rgba(0, 0, 0, 0.05) 78%
        );
}


.mj-highlight-main__content {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 34px 36px;
}


.mj-highlight-category {
    display: inline-block;

    margin-bottom: 12px;

    color: #ff914d;

    font-size: 0.74rem;
    font-weight: 800;

    letter-spacing: 0.11em;
    text-transform: uppercase;
}


.mj-highlight-main h2 {
    max-width: 850px;

    margin: 0;

    font-size: clamp(
        2rem,
        3.6vw,
        3.2rem
    );

    line-height: 1.04;

    letter-spacing: -0.04em;
}


.mj-highlight-main__content > p {
    max-width: 730px;

    margin: 16px 0 0;

    color: rgba(255, 255, 255, 0.86);

    font-size: 1rem;

    line-height: 1.55;
}


.mj-highlight-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 22px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 0.82rem;
}


.mj-highlight-read {
    color: #ffffff;

    font-weight: 700;
}


/* =========================
   SUPPORTING FEATURES
   ========================= */

.mj-highlight-supporting {
    display: grid;

    grid-template-rows:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}


.mj-highlight-small {
    position: relative;

    min-height: 250px;

    overflow: hidden;

    border-radius: var(--mj-radius-lg);

    background: var(--mj-dark);

    box-shadow: var(--mj-shadow-soft);
}


.mj-highlight-small__link {
    position: absolute;
    inset: 0;

    display: block;

    color: #ffffff;

    text-decoration: none;
}


.mj-highlight-small__image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.4s ease;
}


.mj-highlight-small:hover
.mj-highlight-small__image {
    transform: scale(1.035);
}


.mj-highlight-small__shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.88),
            rgba(0, 0, 0, 0.12) 75%
        );
}


.mj-highlight-small__content {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 22px;
}


.mj-highlight-small h3 {
    margin: 0;

    font-size: 1.28rem;
    line-height: 1.15;

    letter-spacing: -0.02em;
}


.mj-highlight-small__date {
    display: block;

    margin-top: 12px;

    color: rgba(255, 255, 255, 0.67);

    font-size: 0.76rem;
}



/* =========================================================
   LATEST ARTICLES
   ========================================================= */

.mj-home-latest {
    padding: 70px 0 80px;

    background: var(--mj-surface-soft);

    border-top: 1px solid var(--mj-border);
    border-bottom: 1px solid var(--mj-border);
}


.mj-home-latest-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 30px;
}


/* =========================
   FILTER LINKS
   ========================= */

.mj-home-filter {
    display: flex;
    align-items: center;

    gap: 7px;
}


.mj-home-filter a {
    padding: 8px 13px;

    border: 1px solid transparent;
    border-radius: 999px;

    color: var(--mj-text-secondary);

    font-size: 0.82rem;
    font-weight: 650;

    text-decoration: none;

    white-space: nowrap;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


.mj-home-filter a:hover {
    color: var(--mj-orange);

    border-color: var(--mj-border);
}


.mj-home-filter a.is-active {
    background: var(--mj-orange);
    color: #ffffff;
}


/* =========================
   ARTICLE GRID
   ========================= */

.mj-latest-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 22px;
}


/* =========================
   ARTICLE CARD
   ========================= */

.mj-latest-card {
    min-width: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: var(--mj-surface);

    border: 1px solid var(--mj-border);
    border-radius: var(--mj-radius-md);

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.025);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.mj-latest-card:hover {
    transform: translateY(-3px);

    box-shadow: var(--mj-shadow-soft);
}


.mj-latest-card__image-link {
    display: block;

    overflow: hidden;

    aspect-ratio: 16 / 10;

    background: #dedbd5;
}


.mj-latest-card__image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.4s ease;
}


.mj-latest-card:hover
.mj-latest-card__image {
    transform: scale(1.035);
}


.mj-latest-card__placeholder {
    width: 100%;
    height: 100%;

    display: grid;
    place-items: center;

    color: var(--mj-text-light);

    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.mj-latest-card__content {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 18px;
}


.mj-latest-card h3 {
    margin: 8px 0 0;

    font-size: 1.08rem;
    line-height: 1.3;

    letter-spacing: -0.015em;
}


.mj-latest-card h3 a {
    color: var(--mj-text);

    text-decoration: none;
}


.mj-latest-card h3 a:hover {
    color: var(--mj-orange);
}


.mj-latest-card__excerpt {
    display: -webkit-box;

    margin: 11px 0 0;

    overflow: hidden;

    color: var(--mj-text-secondary);

    font-size: 0.86rem;
    line-height: 1.55;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}


.mj-latest-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-top: auto;
    padding-top: 20px;
}


.mj-latest-card__date {
    color: var(--mj-text-light);

    font-size: 0.72rem;
}


/* =========================
   SOCIAL ACTIONS
   ========================= */

.mj-latest-actions {
    display: flex;
    align-items: center;

    gap: 5px;
}


.mj-article-action {
    min-width: 30px;
    height: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 3px;

    padding: 0 6px;

    border: 0;
    border-radius: 999px;

    background: transparent;

    color: var(--mj-text-light);

    font: inherit;
    font-size: 0.7rem;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.mj-article-action:hover {
    background: var(--mj-surface-soft);

    color: var(--mj-text);
}


.mj-article-action.is-selected {
    color: var(--mj-orange);
}



/* =========================================================
   EXPLORE OUR COVERAGE
   ========================================================= */

.mj-home-coverage {
    padding: 82px 0 88px;
}


.mj-coverage-heading {
    max-width: 700px;

    margin-bottom: 30px;
}


.mj-coverage-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}


/* =========================
   COVERAGE CARD
   ========================= */

.mj-coverage-card {
    position: relative;

    min-height: 360px;

    overflow: hidden;

    border-radius: var(--mj-radius-lg);

    background: #222222;

    color: #ffffff;

    text-decoration: none;

    box-shadow: var(--mj-shadow-soft);

    isolation: isolate;
}


.mj-coverage-card__image {
    position: absolute;
    inset: 0;

    z-index: -3;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.45s ease;
}


.mj-coverage-card:hover
.mj-coverage-card__image {
    transform: scale(1.04);
}


.mj-coverage-card__shade {
    position: absolute;
    inset: 0;

    z-index: -2;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.9),
            rgba(0, 0, 0, 0.18)
        );
}


.mj-coverage-card__accent {
    position: absolute;
    inset: 0;

    z-index: -2;

    background:
        linear-gradient(
            145deg,
            #3b3b3b 0%,
            #171717 65%
        );
}


.mj-coverage-card::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 4px;

    background: var(--mj-orange);

    transform: scaleX(0);
    transform-origin: left;

    transition:
        transform 0.25s ease;
}


.mj-coverage-card:hover::after {
    transform: scaleX(1);
}


.mj-coverage-card__content {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 25px;
}


.mj-coverage-card__content > span {
    color: #ff914d;

    font-size: 0.72rem;
    font-weight: 800;

    letter-spacing: 0.12em;
}


.mj-coverage-card h3 {
    margin: 8px 0 0;

    font-size: 1.6rem;
    line-height: 1.1;
}


.mj-coverage-card p {
    margin: 12px 0 18px;

    color: rgba(255, 255, 255, 0.74);

    font-size: 0.87rem;
    line-height: 1.5;
}


.mj-coverage-card strong {
    color: #ffffff;

    font-size: 0.82rem;
}


/* =========================
   NEWS COVERAGE CARD
   ========================= */

.mj-coverage-card--news {
    background-image:
        linear-gradient(
            to bottom,
            rgba(10, 10, 10, 0.05) 0%,
            rgba(10, 10, 10, 0.15) 45%,
            rgba(10, 10, 10, 0.35) 100%
        ),
        url("/static/images/categories/news-card.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* Darken lower area for readable text */

.mj-coverage-card--news
.mj-coverage-card__accent {
    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.48) 42%,
            rgba(0, 0, 0, 0.08) 100%
        );
}


/* =========================================================
   RESPONSIVE
   ALL RESPONSIVE RULES STAY AT THE END
   ========================================================= */


/* =========================
   TABLET
   ========================= */

@media (max-width: 1024px) {

    .mj-highlight-grid {
        grid-template-columns:
            minmax(0, 1.7fr)
            minmax(260px, 0.8fr);
    }


    .mj-highlight-main {
        min-height: 470px;
    }


    .mj-highlight-small {
        min-height: 225px;
    }


    .mj-latest-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .mj-coverage-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .mj-coverage-card {
        min-height: 320px;
    }

}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {

    .mj-home-highlights {
        padding: 38px 0 50px;
    }


    .mj-highlight-grid {
        grid-template-columns: 1fr;
    }


    .mj-highlight-main {
        min-height: 460px;
    }


    .mj-highlight-main__content {
        padding: 26px 24px;
    }


    .mj-highlight-main h2 {
        font-size: 2rem;
    }


    .mj-highlight-main__content > p {
        font-size: 0.92rem;
    }


    .mj-highlight-supporting {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        grid-template-rows: none;
    }


    .mj-highlight-small {
        min-height: 260px;
    }


    .mj-home-latest {
        padding: 52px 0 60px;
    }


    .mj-home-latest-header {
        align-items: flex-start;
        flex-direction: column;

        gap: 20px;
    }


    .mj-home-filter {
        width: 100%;

        overflow-x: auto;

        padding-bottom: 4px;

        scrollbar-width: none;
    }


    .mj-home-filter::-webkit-scrollbar {
        display: none;
    }


    .mj-latest-grid {
        grid-template-columns: 1fr;
    }


    .mj-latest-card {
        display: grid;

        grid-template-columns:
            160px
            minmax(0, 1fr);
    }


    .mj-latest-card__image-link {
        height: 100%;

        aspect-ratio: auto;
    }


    .mj-latest-card__content {
        padding: 15px;
    }


    .mj-latest-card__excerpt {
        -webkit-line-clamp: 2;
    }


    .mj-home-coverage {
        padding: 60px 0;
    }


    .mj-coverage-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================
   SMALL MOBILE
   ========================= */

@media (max-width: 480px) {

    .mj-home-section-heading h1,
    .mj-home-latest-header h2,
    .mj-coverage-heading h2 {
        font-size: 1.9rem;
    }


    .mj-highlight-main {
        min-height: 420px;
    }


    .mj-highlight-main__content {
        padding: 22px 20px;
    }


    .mj-highlight-main h2 {
        font-size: 1.75rem;
    }


    .mj-highlight-main__content > p {
        display: -webkit-box;

        overflow: hidden;

        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }


    .mj-highlight-meta {
        align-items: flex-start;
        flex-direction: column;

        gap: 6px;
    }


    .mj-highlight-supporting {
        grid-template-columns: 1fr;
    }


    .mj-highlight-small {
        min-height: 250px;
    }


    .mj-latest-card {
        display: flex;
    }


    .mj-latest-card__image-link {
        aspect-ratio: 16 / 9;
    }


    .mj-latest-card__excerpt {
        -webkit-line-clamp: 3;
    }


    .mj-coverage-grid {
        grid-template-columns: 1fr;
    }


    .mj-coverage-card {
        min-height: 290px;
    }

}