/* =========================================================
   PERISTIWAPALU - HEADER / CATEGORY / DROPDOWN
========================================================= */

:root {
    --container-width: 1130px;

    /* Satu acuan lebar untuk header, menu, dan banner publik. */
    --public-content-width: min(var(--container-width), calc(100% - 32px));

    --nav-height: 64px;

    --blue: #0b168f;
    --blue-dark: #07106d;
    --blue-soft: #eef0ff;

    --text: #172033;
    --muted: #6d7485;

    --border: #e7e9ef;

    --surface: #ffffff;
    --page: #f6f7fb;

    --shadow:
        0 12px 35px rgba(15, 23, 42, .10);
}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    min-width: 320px;

    background: var(--page);
    color: var(--text);

    font-family: "Inter", sans-serif;

    -webkit-font-smoothing: antialiased;
}


/* =========================================================
   DARK MODE
========================================================= */

body.dark-mode {
    --text: #f3f5ff;
    --muted: #aeb5c8;

    --border: #29304a;

    --surface: #151a2b;
    --page: #0d1120;

    --blue-soft: #202751;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    width: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    overflow: visible;
}


.header-container {
    width: var(--public-content-width);

    min-height: 96px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        190px
        minmax(320px, 1fr)
        auto;

    align-items: center;

    gap: 28px;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    display: flex;

    align-items: center;

    width: 190px;
    height: 100%;

    text-decoration: none;
}


.brand-logo {
    display: block;

    width: 184px;

    height: auto;

    max-height: 62px;

    object-fit: contain;
}


/* =========================================================
   SEARCH
========================================================= */

.search-wrapper {
    min-width: 0;
}


.search-box {
    position: relative;

    width: 100%;
    height: 56px;

    display: flex;

    align-items: center;

    padding: 6px;

    background: #f1f3f8;

    border-radius: 18px;
}


.search-icon {
    position: absolute;

    left: 22px;

    color: #7a8292;

    font-size: 18px;

    pointer-events: none;
}


.search-box input {
    width: 100%;

    height: 100%;

    min-width: 0;

    border: 0;

    outline: 0;

    padding:
        0
        100px
        0
        54px;

    background: transparent;

    color: var(--text);

    font:
        500 16px/1
        "Inter", sans-serif;
}


.search-box input::placeholder {
    color: #8b92a2;
}


.search-button {
    position: absolute;

    top: 6px;
    right: 6px;

    height: 44px;

    min-width: 66px;

    padding: 0 18px;

    border: 0;

    border-radius: 14px;

    background: #ffb900;

    color: #fff;

    font:
        700 15px
        "Inter", sans-serif;

    cursor: pointer;

    transition:
        transform .18s ease,
        filter .18s ease;
}


.search-button:hover {
    filter: brightness(.96);

    transform: translateY(-1px);
}


/* =========================================================
   HEADER ACTIONS
========================================================= */

.header-actions {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 18px;

    white-space: nowrap;
}


.icon-button,
.login-button,
.write-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    text-decoration: none;

    border: 0;

    font-family: inherit;
}


.icon-button {
    position: relative;

    width: 38px;
    height: 44px;

    padding: 0;

    background: transparent;

    color: var(--text);

    font-size: 19px;

    cursor: pointer;
}


.notification-badge {
    position: absolute;

    top: 1px;
    right: -2px;

    min-width: 18px;

    height: 18px;

    padding: 0 5px;

    border-radius: 999px;

    display: grid;

    place-items: center;

    background: #ff9f00;

    color: #fff;

    font-size: 10px;

    font-weight: 800;

    line-height: 1;
}


.login-button {
    gap: 9px;

    color: var(--text);

    font-size: 15px;

    font-weight: 700;
}


.login-button i {
    font-size: 17px;
}

.header-logout-form {
    margin: 0;
}

.logout-button {
    min-height: 44px;
    padding: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.logout-button:hover {
    color: var(--blue);
}


.write-button {
    gap: 9px;

    min-height: 52px;

    padding: 0 20px;

    border-radius: 15px;

    background: var(--blue);

    color: #fff;

    font-size: 14px;

    font-weight: 700;

    box-shadow:
        0 10px 24px
        rgba(11, 22, 143, .18);

    transition:
        background .18s ease,
        transform .18s ease;
}


.write-button:hover {
    background: var(--blue-dark);

    transform: translateY(-1px);
}


/* =========================================================
   CATEGORY NAVIGATION
========================================================= */

.category-nav {
    position: relative;

    z-index: 1900;

    width: 100%;

    min-height: var(--nav-height);

    background: var(--surface);

    border-top: 1px solid var(--border);
    border-bottom: 0;

    overflow: visible;
}


.category-container {
    position: relative;

    z-index: 1901;

    width: var(--public-content-width);

    min-height: var(--nav-height);

    margin: 0 auto;

    overflow: visible;
}


.category-scroll {
    position: relative;

    z-index: 1902;

    min-height: var(--nav-height);

    display: flex;

    align-items: center;

    justify-content: flex-start;

    gap: 2px;

    overflow: visible;
}


/* =========================================================
   CATEGORY ITEM
========================================================= */

.category-item {
    position: relative;

    flex: 0 0 auto;

    min-height: 50px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 0 12px;

    border: 0;

    border-radius: 12px;

    background: transparent;

    color: #4f5869;

    text-decoration: none;

    font:
        700 15px/1
        "Inter", sans-serif;

    cursor: pointer;

    white-space: nowrap;

    transition:
        color .18s ease,
        background .18s ease;
}


.category-item:hover,
.category-dropdown.submenu-open
> .category-toggle {
    color: var(--blue);

    background: #f1f2f8;
}


.category-item.active {
    color: var(--blue);

    background: #eef0f8;
}


.category-item i {
    font-size: 13px;
}


/* =========================================================
   CATEGORY DROPDOWN
========================================================= */

.category-dropdown {
    position: relative;

    z-index: 2000;

    flex: 0 0 auto;

    overflow: visible;
}


/* =========================================================
   SUBMENU DESKTOP / DEFAULT
========================================================= */

.category-submenu {
    position: absolute;

    z-index: 99999;

    top: calc(100% + 2px);

    left: 0;

    min-width: 310px;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(145px, 1fr)
        );

    gap: 20px;

    padding: 18px;

    border: 1px solid var(--border);

    border-radius: 16px;

    background: var(--surface);

    box-shadow: var(--shadow);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform: translateY(8px);

    transition:
        opacity .16s ease,
        transform .16s ease,
        visibility .16s ease;
}


.category-dropdown.submenu-open
> .category-submenu {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: translateY(0);
}


/* =========================================================
   SUBMENU COLUMN
========================================================= */

.submenu-column {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 2px;
}


.submenu-column a {
    display: block;

    padding: 10px 11px;

    border-radius: 9px;

    color: var(--text);

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    line-height: 1.25;

    white-space: nowrap;

    transition:
        color .16s ease,
        background .16s ease;
}


.submenu-column a:hover {
    color: var(--blue);

    background: var(--blue-soft);
}


.submenu-column a.submenu-highlight {
    color: var(--blue);

    font-weight: 700;
}


/* =========================================================
   LAINNYA
   SUBMENU MEMBUKA KE KIRI
========================================================= */

.more-menu {
    position: relative;
}


.more-menu .category-submenu {
    right: 0;

    left: auto;
}


/* =========================================================
   INTERNATIONAL
========================================================= */

.international-menu {
    position: relative;
}


.international-menu .category-submenu {
    left: 0;

    right: auto;
}


/* =========================================================
   BANNER
========================================================= */

main {
    position: relative;

    z-index: 1;
}


.banner-wrapper {
    position: relative;

    z-index: 1;

    width: var(--public-content-width);

    margin:
        22px auto 0;
}


.banner-link {
    display: block;

    position: relative;

    z-index: 1;

    overflow: hidden;

    text-decoration: none;
}


.banner-image {
    display: block;

    width: 100%;

    height: auto;

    border: 0;
}


/* =========================================================
   DARK MODE
========================================================= */

body.dark-mode .search-box {
    background: #20263a;
}


body.dark-mode
.category-item:hover,

body.dark-mode
.category-dropdown.submenu-open
> .category-toggle,

body.dark-mode
.category-item.active {
    background: #202751;
}


body.dark-mode .category-submenu {
    box-shadow:
        0 16px 40px
        rgba(0, 0, 0, .35);
}


/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 1101px) {

    .category-scroll {
        justify-content: flex-start;
    }


    .category-dropdown {
        align-self: center;
    }


    .category-submenu {
        max-height:
            calc(100vh - 110px);

        overflow-y: auto;
    }
}


/* =========================================================
   TABLET
   851px - 1100px
========================================================= */

@media (min-width: 851px) and (max-width: 1100px) {

    :root {
        --container-width: 100%;
    }


    .header-container {
        grid-template-columns:
            165px
            minmax(240px, 1fr)
            auto;

        gap: 18px;
    }


    .brand {
        width: 165px;
    }


    .brand-logo {
        width: 158px;
    }


    .header-actions {
        gap: 12px;
    }


    .write-button {
        padding: 0 15px;
    }


    .category-container {
        width: 100%;

        padding:
            0 12px;
    }


    .category-item {
        padding-inline: 9px;

        font-size: 14px;
    }


    /*
     * TABLET:
     * submenu tetap 2 kolom seperti desktop
     */

    .category-submenu {
        min-width: 310px;

        max-width:
            min(420px, calc(100vw - 24px));

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

        gap: 12px;

        padding: 16px;
    }


    .submenu-column a {
        white-space: normal;

        font-size: 13px;
    }
}


/* =========================================================
   MOBILE
   320px - 850px
========================================================= */

@media (max-width: 850px) {

    .site-header {
        z-index: 2000;
    }


    .header-container {
        width:
            calc(100% - 24px);

        min-height: auto;

        padding: 12px 0;

        grid-template-columns:
            1fr auto;

        gap: 12px;
    }


    .brand {
        width: auto;
    }


    .brand-logo {
        width: 150px;

        max-height: 52px;
    }


    .search-wrapper {
        grid-column: 1 / -1;

        grid-row: 2;
    }


    .header-actions {
        gap: 7px;
    }


    .login-button span,
    .write-button span {
        display: none;
    }


    .login-button {
        width: 38px;

        height: 44px;
    }


    .write-button {
        width: 44px;

        min-height: 44px;

        padding: 0;

        border-radius: 12px;
    }


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

    .category-nav {
        min-height: 58px;

        overflow: visible;
    }


    .category-container {
        width: 100%;

        min-height: 58px;

        padding:
            0 10px;

        overflow: visible;
    }


    .category-scroll {
        min-height: 58px;

        overflow-x: auto;

        overflow-y: visible;

        scrollbar-width: none;

        -webkit-overflow-scrolling:
            touch;
    }


    .category-scroll::-webkit-scrollbar {
        display: none;
    }


    .category-item {
        min-height: 44px;

        padding-inline: 11px;

        font-size: 13px;
    }


    /* =====================================================
       MOBILE SUBMENU
       TETAP 2 KOLOM
    ===================================================== */

    .category-submenu {
        position: fixed;

        top: auto;

        left: 10px;

        right: 10px;

        width: auto;

        min-width: 0;

        /*
         * PENTING:
         * tetap 2 kolom di mobile
         */

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

        gap: 10px;

        padding: 14px;

        max-height: 65vh;

        overflow-y: auto;

        overflow-x: hidden;

        border-radius: 14px;
    }


    /*
     * Jangan ubah menjadi 1 kolom
     */

    .submenu-column {
        min-width: 0;
    }


    .submenu-column a {
        white-space: normal;

        padding:
            9px 8px;

        font-size: 12px;

        line-height: 1.3;
    }


    /*
     * Lainnya di mobile tetap
     * menggunakan lebar layar
     */

    .more-menu .category-submenu {
        left: 10px;

        right: 10px;
    }


    /*
     * Internasional di mobile
     * menggunakan panel layar penuh
     */

    .international-menu .category-submenu {
        left: 10px;

        right: 10px;
    }


    /* =====================================================
       BANNER
    ===================================================== */

    .banner-wrapper {
        width:
            calc(100% - 20px);

        margin-top: 14px;
    }
}


/* =========================================================
   SMALL MOBILE
   <= 520px
========================================================= */

@media (max-width: 520px) {

    .header-container {
        width:
            calc(100% - 20px);
    }


    .brand-logo {
        width: 135px;
    }


    .header-actions {
        gap: 2px;
    }


    .theme-button,
    .notification-button,
    .login-button {
        width: 34px;
    }


    .search-box {
        height: 52px;
    }


    .search-button {
        height: 40px;
    }


    /*
     * SUBMENU TETAP 2 KOLOM
     */

    .category-submenu {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 8px;

        padding: 12px;
    }


    .submenu-column a {
        padding:
            8px 7px;

        font-size: 11.5px;

        line-height: 1.3;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   <= 380px
========================================================= */

@media (max-width: 380px) {

    .category-submenu {
        left: 6px;

        right: 6px;

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

        gap: 6px;

        padding: 10px;
    }


    .more-menu .category-submenu,
    .international-menu .category-submenu {
        left: 6px;

        right: 6px;
    }


    .submenu-column a {
        padding:
            7px 6px;

        font-size: 11px;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.category-item:focus-visible,
.icon-button:focus-visible,
.login-button:focus-visible,
.write-button:focus-visible,
.search-button:focus-visible,
.search-box input:focus-visible,
.submenu-column a:focus-visible {

    outline:
        3px solid
        rgba(255, 185, 0, .45);

    outline-offset: 2px;
}

/* =========================================================
   BERITA HOME
========================================================= */

.news-home {
    position: relative;

    z-index: 1;

    width: 100%;

    padding:
        28px 0 50px;
}

.news-home-container {
    width: min(
        var(--container-width),
        calc(100% - 32px)
    );

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        330px;

    gap: 26px;

    align-items: start;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 14px;
}

.section-kicker {
    display: block;

    margin-bottom: 5px;

    color: var(--blue);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .12em;

    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;

    color: var(--text);

    font-size: 24px;

    line-height: 1.1;

    font-weight: 800;

    letter-spacing: -.03em;
}

.headline-counter {
    display: flex;

    align-items: center;

    gap: 5px;

    color: var(--muted);

    font-size: 13px;

    font-weight: 700;
}

.headline-counter #headlineCurrent {
    color: var(--blue);

    font-size: 16px;
}


/* =========================================================
   HEADLINE SLIDER
========================================================= */

.headline-slider {
    position: relative;

    width: 100%;

    height: 430px;

    overflow: hidden;

    border-radius: 20px;

    background: #111827;

    box-shadow:
        0 14px 35px
        rgba(15, 23, 42, .12);
}

.headline-slide {
    position: absolute;

    inset: 0;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform: scale(1.025);

    transition:
        opacity .45s ease,
        transform .65s ease,
        visibility .45s ease;
}

.headline-slide.active {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: scale(1);
}

.headline-link {
    position: relative;

    display: block;

    width: 100%;

    height: 100%;

    color: #fff;

    text-decoration: none;
}


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

.headline-image-wrap {
    position: absolute;

    inset: 0;

    overflow: hidden;
}

.headline-image-wrap::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, .86) 0%,
            rgba(0, 0, 0, .55) 38%,
            rgba(0, 0, 0, .08) 75%
        );
}

.headline-image {
    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform .7s ease;
}

.headline-link:hover .headline-image {
    transform: scale(1.035);
}


/* =========================================================
   CATEGORY LABEL
========================================================= */

.headline-category {
    position: absolute;

    top: 18px;

    left: 18px;

    z-index: 3;

    display: inline-flex;

    align-items: center;

    min-height: 28px;

    padding:
        0 11px;

    border-radius: 999px;

    background: #ffb900;

    color: #fff;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .02em;
}


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

.headline-content {
    position: absolute;

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

    z-index: 3;

    padding:
        30px 26px 22px;
}

.headline-content h3 {
    max-width: 850px;

    margin:
        0 0 10px;

    color: #fff;

    font-size: clamp(
        24px,
        3vw,
        38px
    );

    line-height: 1.12;

    font-weight: 800;

    letter-spacing: -.035em;
}

.headline-content p {
    max-width: 720px;

    margin:
        0 0 15px;

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

    font-size: 13px;

    line-height: 1.55;
}

.headline-meta {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 16px;

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

    font-size: 11px;

    font-weight: 600;
}

.headline-meta span {
    display: inline-flex;

    align-items: center;

    gap: 6px;
}


/* =========================================================
   HEADLINE CONTROLS
========================================================= */

.headline-controls {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    margin-top: 13px;
}

.headline-arrow {
    width: 34px;

    height: 34px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--surface);

    color: var(--text);

    font-size: 11px;

    cursor: pointer;

    transition:
        color .18s ease,
        background .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.headline-arrow:hover {
    color: #fff;

    background: var(--blue);

    border-color: var(--blue);

    transform: translateY(-1px);
}

.headline-dots {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 5px;
}

.headline-dot {
    width: 6px;

    height: 6px;

    padding: 0;

    border: 0;

    border-radius: 999px;

    background: #c8ccd7;

    cursor: pointer;

    transition:
        width .2s ease,
        background .2s ease;
}

.headline-dot.active {
    width: 20px;

    background: var(--blue);
}


/* =========================================================
   TERPOPULER
========================================================= */

.popular-section {
    min-width: 0;
}

.popular-heading {
    margin-bottom: 10px;
}

.popular-list {
    display: flex;

    flex-direction: column;

    border:
        1px solid var(--border);

    border-radius: 18px;

    background: var(--surface);

    overflow: hidden;
}

.popular-item {
    position: relative;

    display: grid;

    grid-template-columns:
        38px
        minmax(0, 1fr);

    gap: 9px;

    padding:
        16px 15px;

    border-bottom:
        1px solid var(--border);

    color: var(--text);

    text-decoration: none;

    transition:
        background .18s ease;
}

.popular-item:last-child {
    border-bottom: 0;
}

.popular-item:hover {
    background: var(--blue-soft);
}

.popular-number {
    color: #d4d7df;

    font-size: 22px;

    line-height: 1;

    font-weight: 900;

    letter-spacing: -.04em;
}

.popular-item:first-child .popular-number {
    color: var(--blue);
}

.popular-content {
    min-width: 0;
}

.popular-category {
    display: block;

    margin-bottom: 4px;

    color: var(--blue);

    font-size: 10px;

    line-height: 1;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .06em;
}

.popular-content h3 {
    margin:
        0 0 7px;

    color: var(--text);

    font-size: 13px;

    line-height: 1.4;

    font-weight: 750;
}

.popular-views {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: var(--muted);

    font-size: 10px;

    font-weight: 600;
}


/* =========================================================
   4 BERITA MINI
========================================================= */

.mini-headline-container {
    width: min(
        var(--container-width),
        calc(100% - 32px)
    );

    margin:
        24px auto 0;
}

.mini-headline-heading {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 12px;
}

.mini-headline-heading .section-kicker {
    margin: 0;
}

.mini-headline-description {
    color: var(--muted);

    font-size: 11px;

    font-weight: 500;
}

.mini-headline-grid {
    display: grid;

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

    gap: 14px;
}


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

.mini-headline-card {
    min-width: 0;

    display: flex;

    flex-direction: column;

    border:
        1px solid var(--border);

    border-radius: 15px;

    background: var(--surface);

    overflow: hidden;

    text-decoration: none;

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

.mini-headline-card:hover {
    transform: translateY(-3px);

    border-color:
        rgba(11, 22, 143, .16);

    box-shadow:
        0 10px 25px
        rgba(15, 23, 42, .09);
}

.mini-headline-image-wrap {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #e9ebf0;
}

.mini-headline-image {
    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform .45s ease;
}

.mini-headline-card:hover
.mini-headline-image {
    transform: scale(1.04);
}

.mini-headline-body {
    padding:
        12px 13px 14px;
}

.mini-headline-category {
    display: block;

    margin-bottom: 5px;

    color: var(--blue);

    font-size: 9px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .07em;
}

.mini-headline-title {
    display: -webkit-box;

    margin: 0;

    overflow: hidden;

    color: var(--text);

    font-size: 13px;

    line-height: 1.4;

    font-weight: 750;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;
}

.mini-headline-meta {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 9px;

    color: var(--muted);

    font-size: 9px;

    font-weight: 600;
}


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

@media (max-width: 1100px) {

    .news-home {
        padding-top: 22px;
    }

    .news-home-container {
        grid-template-columns:
            minmax(0, 1fr)
            300px;

        gap: 18px;
    }

    .headline-slider {
        height: 400px;
    }

    .headline-content {
        padding:
            26px 21px 20px;
    }

    .headline-content h3 {
        font-size: 28px;
    }

    .popular-item {
        padding:
            14px 12px;
    }

    .mini-headline-grid {
        gap: 10px;
    }
}


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

@media (max-width: 850px) {

    .news-home {
        padding:
            18px 0 35px;
    }

    .news-home-container {
        width:
            calc(100% - 20px);

        display: block;
    }

    .headline-section {
        width: 100%;
    }

    .section-heading h2 {
        font-size: 21px;
    }

    .headline-slider {
        height: 390px;

        border-radius: 16px;
    }

    .headline-category {
        top: 13px;

        left: 13px;

        min-height: 26px;

        padding-inline: 9px;

        font-size: 10px;
    }

    .headline-content {
        padding:
            25px 17px 17px;
    }

    .headline-content h3 {
        font-size: 24px;

        line-height: 1.15;
    }

    .headline-content p {
        display: none;
    }

    .headline-meta {
        gap: 10px;

        font-size: 10px;
    }


    /* =====================================================
       TERPOPULER DI BAWAH HEADLINE
    ===================================================== */

    .popular-section {
        margin-top: 28px;
    }

    .popular-list {
        border-radius: 15px;
    }


    /* =====================================================
       MINI HEADLINE
    ===================================================== */

    .mini-headline-container {
        width:
            calc(100% - 20px);

        margin-top: 22px;
    }

    .mini-headline-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 3px;
    }

    .mini-headline-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 10px;
    }
}


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

@media (max-width: 520px) {

    .headline-slider {
        height: 360px;
    }

    .headline-content h3 {
        font-size: 21px;
    }

    .headline-content {
        padding:
            20px 14px 15px;
    }

    .headline-meta span:nth-child(2) {
        display: none;
    }

    .headline-controls {
        margin-top: 10px;
    }

    .mini-headline-grid {
        gap: 8px;
    }

    .mini-headline-body {
        padding:
            10px 10px 11px;
    }

    .mini-headline-title {
        font-size: 12px;
    }

    .mini-headline-meta {
        font-size: 8px;
    }
}


/* =========================================================
   DARK MODE
========================================================= */

body.dark-mode .headline-slider {
    box-shadow:
        0 14px 35px
        rgba(0, 0, 0, .28);
}

body.dark-mode .popular-list,
body.dark-mode .mini-headline-card {
    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, .14);
}

body.dark-mode .mini-headline-image-wrap {
    background: #20263a;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .headline-slide,
    .headline-image,
    .headline-arrow,
    .headline-dot,
    .mini-headline-card,
    .mini-headline-image {
        transition: none;
    }
}

/* =========================================================
   NAVIGASI KATEGORI DINAMIS DARI DASHBOARD
========================================================= */

.legacy-category-nav {
    display: none !important;
}

.category-nav--dynamic {
    display: block;
}

.category-nav--dynamic .category-container {
    /*
     * Gunakan batas yang sama dengan header utama agar sisi kiri
     * menu sejajar dengan logo dan sisi kanannya sejajar dengan
     * tombol Tulis Berita.
     */
    width: var(--public-content-width) !important;
    max-width: none;
    padding-inline: 0;
    margin-inline: auto;
}

.category-nav--dynamic .category-scroll {
    width: 100% !important;
    max-width: none;
    margin-inline: 0;
    padding-inline: 0;
    gap: 2px;
    flex-wrap: nowrap;
    justify-content: space-between !important;
}

.category-nav--dynamic .category-item {
    min-height: 48px;
    padding-inline: 7px;
    font-size: 13px;
}

.category-nav--dynamic .category-menu-link-group {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.category-nav--dynamic .category-menu-link {
    padding-right: 2px;
    border-radius: 12px 0 0 12px;
}

.category-nav--dynamic .category-menu-toggle {
    width: 22px;
    padding: 0 6px 0 1px;
    border-radius: 0 12px 12px 0;
}

.category-nav--dynamic .category-menu-link-group:hover .category-menu-link,
.category-nav--dynamic .category-dropdown.submenu-open .category-menu-link,
.category-nav--dynamic .category-dropdown.submenu-open .category-menu-toggle,
.category-nav--dynamic .category-menu-toggle:hover {
    color: var(--blue);
    background: #f1f2f8;
}

body.dark-mode .category-nav--dynamic .category-menu-link-group:hover .category-menu-link,
body.dark-mode .category-nav--dynamic .category-dropdown.submenu-open .category-menu-link,
body.dark-mode .category-nav--dynamic .category-dropdown.submenu-open .category-menu-toggle,
body.dark-mode .category-nav--dynamic .category-menu-toggle:hover {
    color: var(--blue);
    background: #202751;
}

.category-toggle-chevron {
    margin-left: 2px;
    color: #8a93a4;
    font-size: 9px !important;
    transition: transform .18s ease;
}

.category-dropdown.submenu-open .category-toggle-chevron {
    transform: rotate(180deg);
}

.category-submenu--dynamic {
    display: block;
    min-width: 260px;
    max-width: min(460px, calc(100vw - 24px));
    padding: 12px;
}

.dynamic-category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 10px;
}

.dynamic-category-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dynamic-category-group {
    min-width: 0;
}

.dynamic-category-parent,
.dynamic-category-link,
.dynamic-category-grandchildren a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--text);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.3;
    text-decoration: none;
}

.dynamic-category-parent:hover,
.dynamic-category-link:hover,
.dynamic-category-grandchildren a:hover {
    background: var(--blue-soft);
    color: var(--blue);
}

.dynamic-category-parent i {
    color: #9aa4b5;
    font-size: 9px;
}

.dynamic-category-grandchildren {
    display: grid;
    gap: 1px;
    margin: 0 0 5px 10px;
    padding-left: 8px;
    border-left: 1px solid #dce4f3;
}

.dynamic-category-grandchildren a {
    justify-content: flex-start;
    padding: 7px 8px;
    color: #65728a;
    font-size: 11px;
    font-weight: 600;
}

@media (max-width: 850px) {
    :root {
        --public-content-width: 100%;
    }

    .category-nav--dynamic .category-container {
        width: 100%;
        padding-inline: 0;
    }

    .category-nav--dynamic .category-scroll {
        overflow-x: auto;
        overflow-y: visible;
        justify-content: flex-start !important;
        gap: 2px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .category-nav--dynamic .category-item {
        min-height: 44px;
        padding-inline: 7px;
        font-size: 12.5px;
    }

    .category-nav--dynamic .category-menu-toggle {
        width: 21px;
        padding-right: 5px;
    }

    .category-nav--dynamic .category-scroll::-webkit-scrollbar {
        display: none;
    }

    .category-submenu--dynamic {
        min-width: 0;
        max-width: none;
    }

    .dynamic-category-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dynamic-category-column {
        gap: 0;
    }
}

@media (max-width: 420px) {
    .dynamic-category-list {
        gap: 3px 6px;
    }

    .dynamic-category-parent,
    .dynamic-category-link {
        padding: 8px 7px;
        font-size: 11px;
    }

    .category-nav--dynamic .category-item {
        padding-inline: 6px;
        font-size: 12px;
    }

    .category-nav--dynamic .category-menu-toggle {
        width: 20px;
        padding-right: 5px;
    }

    .dynamic-category-grandchildren {
        margin-left: 6px;
        padding-left: 5px;
    }

    .dynamic-category-grandchildren a {
        padding: 7px 5px;
        font-size: 10px;
    }
}

@media (min-width: 851px) and (max-width: 1320px) {
    .category-nav--dynamic .category-container {
        width: var(--public-content-width) !important;
    }

    .category-nav--dynamic .category-scroll {
        overflow-x: auto;
        overflow-y: visible;
        scrollbar-width: none;
    }

    .category-nav--dynamic .category-scroll::-webkit-scrollbar {
        display: none;
    }
}

/* =========================================================
   FOOTER MODERN PERISTIWAPALU
========================================================= */

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.site-footer {
    position: relative;
    isolation: isolate;
    width: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 15%, rgba(37, 99, 235, .20), transparent 32%),
        linear-gradient(145deg, #070b25 0%, #080c3d 48%, #06091c 100%);
    color: #fff;
}

.footer-glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(4px);
    pointer-events: none;
}

.footer-glow--one {
    top: -180px;
    right: -100px;
    width: 420px;
    height: 420px;
    background: rgba(255, 174, 0, .10);
}

.footer-glow--two {
    bottom: -240px;
    left: -160px;
    width: 500px;
    height: 500px;
    background: rgba(37, 99, 235, .14);
}

.footer-container {
    position: relative;
    width: min(var(--container-width), calc(100% - 32px));
    margin-inline: auto;
    padding: 56px 0 24px;
}

.footer-newsletter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, .85fr);
    gap: 36px;
    align-items: center;
    padding: 28px 30px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035));
    box-shadow: 0 22px 60px rgba(0, 0, 0, .22);
    backdrop-filter: blur(14px);
}

.footer-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    color: #ffbe0b;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.footer-newsletter-copy h2 {
    max-width: 590px;
    margin: 0;
    color: #fff;
    font-size: clamp(22px, 3vw, 31px);
    line-height: 1.17;
    font-weight: 850;
    letter-spacing: -.04em;
}

.footer-newsletter-copy p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .62);
    font-size: 11px;
    line-height: 1.6;
}

.footer-subscribe-field {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 54px;
    padding: 5px 5px 5px 16px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 13px;
    background: rgba(2, 5, 23, .45);
}

.footer-subscribe-field > i {
    color: rgba(255, 255, 255, .55);
}

.footer-subscribe-field input {
    min-width: 0;
    height: 42px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
}

.footer-subscribe-field input::placeholder {
    color: rgba(255, 255, 255, .38);
}

.footer-subscribe-field:focus-within {
    border-color: rgba(255, 190, 11, .6);
    box-shadow: 0 0 0 4px rgba(255, 190, 11, .08);
}

.footer-subscribe-field button {
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, #ffcb05, #ff9100);
    color: #08103f;
    font-family: inherit;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.footer-subscribe-field button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(255, 153, 0, .22);
}

.footer-form-message {
    min-height: 18px;
    margin: 7px 2px 0;
    color: #82f6b2;
    font-size: 10px;
}

.footer-form-message.is-error {
    color: #ff9c9c;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(120px, .65fr));
    gap: 44px;
    padding: 50px 0 38px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    max-width: 190px;
    min-height: 54px;
    padding: 7px 12px;
    border-radius: 10px;
    background: #fff;
}

.footer-brand img {
    display: block;
    width: 100%;
    max-height: 42px;
    object-fit: contain;
}

.footer-brand-column > p {
    max-width: 330px;
    margin: 17px 0 20px;
    color: rgba(255, 255, 255, .58);
    font-size: 11px;
    line-height: 1.7;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    background: rgba(255, 255, 255, .055);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.footer-socials a:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 190, 11, .5);
    background: linear-gradient(135deg, #ffcb05, #ff9200);
    color: #09113d;
}

.footer-links-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
}

.footer-links-column h3 {
    position: relative;
    margin: 0 0 7px;
    padding-bottom: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 820;
}

.footer-links-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, #ffcb05, #ff7900);
}

.footer-links-column a,
.footer-legal a {
    color: rgba(255, 255, 255, .58);
    text-decoration: none;
    font-size: 10px;
    line-height: 1.4;
    transition: color .18s ease, transform .18s ease;
}

.footer-links-column a:hover {
    color: #ffbe0b;
    transform: translateX(3px);
}

.footer-bottom {
    min-height: 60px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.footer-bottom p,
.footer-made {
    margin: 0;
    color: rgba(255, 255, 255, .48);
    font-size: 9px;
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.footer-made {
    justify-self: end;
}

.footer-made i {
    margin-left: 3px;
    color: #ff5a54;
}

.footer-back-top {
    position: fixed;
    z-index: 1700;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 13px;
    background: linear-gradient(135deg, #ffcb05, #ff9000);
    color: #08103f;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .25);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.footer-back-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 1000px) {

    .footer-newsletter {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-main {
        grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(110px, .65fr));
        gap: 26px;
    }
}

@media (max-width: 780px) {

    .footer-container {
        width: calc(100% - 24px);
        padding-top: 38px;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 24px;
    }

    .footer-brand-column {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
        padding: 20px 0 4px;
        text-align: center;
    }

    .footer-made {
        justify-self: center;
    }
}

@media (max-width: 520px) {

    .footer-container {
        width: calc(100% - 20px);
        padding-top: 30px;
    }

    .footer-newsletter {
        padding: 22px 16px;
        border-radius: 14px;
    }

    .footer-newsletter-copy h2 {
        font-size: 21px;
    }

    .footer-subscribe-field {
        grid-template-columns: 18px minmax(0, 1fr);
        padding: 7px 10px;
    }

    .footer-subscribe-field button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 18px;
        padding: 38px 0 30px;
    }

    .footer-links-column:last-child {
        grid-column: 1 / -1;
    }

    .footer-brand {
        max-width: 170px;
    }

    .footer-back-top {
        right: 14px;
        bottom: 14px;
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }
}

@media (max-width: 360px) {

    .footer-main {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-brand-column,
    .footer-links-column:last-child {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {

    .footer-socials a,
    .footer-links-column a,
    .footer-subscribe-field button,
    .footer-back-top {
        transition: none;
    }
}

/* =========================================================
   FOTO PILIHAN
========================================================= */

.foto-pilihan-section {
    padding: 10px 0 52px;
}

.foto-pilihan-container {
    width: min(var(--container-width), calc(100% - 32px));
    margin: 0 auto;
}

.foto-pilihan-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.foto-pilihan-heading h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--text);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.foto-pilihan-heading h2 > span {
    display: block;
    width: 4px;
    height: 25px;
    background: linear-gradient(180deg, #ff6a00, #ffad00);
}

.foto-pilihan-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ff4f12;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: gap .2s ease, color .2s ease;
}

.foto-pilihan-more:hover {
    gap: 11px;
    color: var(--blue);
}

.foto-pilihan-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr);
    gap: 16px;
    height: 430px;
}

.foto-pilihan-side {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 16px;
    min-width: 0;
}

.foto-pilihan-card,
.foto-pilihan-link {
    position: relative;
    display: block;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #101626;
}

.foto-pilihan-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

.foto-pilihan-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(4, 8, 18, .88) 100%);
    pointer-events: none;
}

.foto-pilihan-count {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 27px;
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 7px;
    background: rgba(7, 11, 22, .68);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    backdrop-filter: blur(7px);
}

.foto-pilihan-content {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 20px;
}

.foto-pilihan-content h3 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.foto-pilihan-card--mini .foto-pilihan-content {
    padding: 15px;
}

.foto-pilihan-card--mini .foto-pilihan-content h3 {
    font-size: 15px;
    line-height: 1.32;
    -webkit-line-clamp: 2;
}

.foto-pilihan-card:hover .foto-pilihan-image,
.foto-pilihan-card.is-focused .foto-pilihan-image {
    transform: scale(1.045);
}

.foto-pilihan-link:focus-visible {
    outline: 3px solid #ffb300;
    outline-offset: 3px;
}

body.dark-mode .foto-pilihan-card,
body.dark-mode .foto-pilihan-link {
    background: #080c15;
}

@media (max-width: 1000px) {

    .foto-pilihan-grid {
        grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
        height: 380px;
    }

    .foto-pilihan-content h3 {
        font-size: 19px;
    }

    .foto-pilihan-card--mini .foto-pilihan-content h3 {
        font-size: 14px;
    }
}

@media (max-width: 768px) {

    .foto-pilihan-section {
        padding: 6px 0 44px;
    }

    .foto-pilihan-grid {
        grid-template-columns: minmax(0, 1.45fr) minmax(220px, 1fr);
        gap: 12px;
        height: 340px;
    }

    .foto-pilihan-side {
        gap: 12px;
    }

    .foto-pilihan-card,
    .foto-pilihan-link {
        border-radius: 10px;
    }

    .foto-pilihan-content {
        padding: 15px;
    }

    .foto-pilihan-content h3 {
        font-size: 16px;
    }

    .foto-pilihan-card--mini .foto-pilihan-content {
        padding: 11px;
    }

    .foto-pilihan-card--mini .foto-pilihan-content h3 {
        font-size: 12px;
    }

    .foto-pilihan-count {
        top: 9px;
        right: 9px;
        min-height: 24px;
        padding: 4px 7px;
        font-size: 10px;
    }
}

@media (max-width: 650px) {

    .foto-pilihan-container {
        width: calc(100% - 20px);
    }

    .foto-pilihan-heading {
        margin-bottom: 12px;
    }

    .foto-pilihan-heading h2 {
        font-size: 20px;
    }

    .foto-pilihan-heading h2 > span {
        width: 3px;
        height: 21px;
    }

    .foto-pilihan-more {
        font-size: 11px;
    }

    .foto-pilihan-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .foto-pilihan-card--utama {
        height: 245px;
    }

    .foto-pilihan-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }

    .foto-pilihan-card--mini {
        height: 145px;
    }

    .foto-pilihan-content h3 {
        font-size: 15px;
    }

    .foto-pilihan-card--mini .foto-pilihan-content h3 {
        font-size: 11px;
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 390px) {

    .foto-pilihan-card--utama {
        height: 220px;
    }

    .foto-pilihan-card--mini {
        height: 132px;
    }

    .foto-pilihan-more span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .foto-pilihan-image,
    .foto-pilihan-more {
        transition: none;
    }
}


/* =========================================================
   BANNER BAWAH SOROTAN + FOLLOW US
========================================================= */

.after-sorotan-section {
    width: 100%;
    padding: 0 0 44px;
}

.after-sorotan-container {
    width: min(var(--container-width), calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    align-items: stretch;
}

.after-sorotan-banner {
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .09);
    line-height: 0;
}

.after-sorotan-banner img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: opacity .2s ease, transform .35s ease;
}

.after-sorotan-banner:hover img {
    opacity: .96;
    transform: scale(1.012);
}

.follow-us-card {
    min-width: 0;
    min-height: 180px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0, rgba(11, 22, 143, .12), transparent 38%),
        var(--surface);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.follow-us-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.follow-us-heading span {
    display: block;
    margin-bottom: 3px;
    color: var(--blue);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .1em;
}

.follow-us-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: 21px;
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: -.035em;
}

.follow-us-heading > i {
    color: #ffb900;
    font-size: 20px;
}

.follow-us-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.follow-us-link {
    min-width: 0;
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 7px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-size: 9px;
    font-weight: 750;
    transition:
        color .18s ease,
        background .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.follow-us-link i {
    font-size: 15px;
}

.follow-us-link:hover,
.follow-us-link.is-active {
    transform: translateY(-2px);
    color: #fff;
    border-color: transparent;
}

.follow-us-link.facebook:hover,
.follow-us-link.facebook.is-active {
    background: #1877f2;
}

.follow-us-link.tiktok:hover,
.follow-us-link.tiktok.is-active,
.follow-us-link.x-twitter:hover,
.follow-us-link.x-twitter.is-active,
.follow-us-link.threads:hover,
.follow-us-link.threads.is-active {
    background: #111;
}

.follow-us-link.instagram:hover,
.follow-us-link.instagram.is-active {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.follow-us-link.youtube:hover,
.follow-us-link.youtube.is-active {
    background: #ff0000;
}

body.dark-mode .after-sorotan-banner,
body.dark-mode .follow-us-card {
    box-shadow: 0 14px 34px rgba(0, 0, 0, .2);
}

@media (max-width: 1100px) {

    .after-sorotan-container {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 16px;
    }

    .follow-us-link span {
        display: none;
    }
}

@media (max-width: 1000px) {

    .after-sorotan-container {
        grid-template-columns: 1fr;
    }

    .follow-us-link span {
        display: inline;
    }
}

@media (max-width: 650px) {

    .after-sorotan-section {
        padding-bottom: 34px;
    }

    .after-sorotan-container {
        width: calc(100% - 20px);
        gap: 12px;
    }

    .after-sorotan-banner,
    .after-sorotan-banner img {
        height: 120px;
    }

    .follow-us-card {
        min-height: 0;
        padding: 14px;
        border-radius: 15px;
    }

    .follow-us-heading h2 {
        font-size: 19px;
    }

    .follow-us-link {
        min-height: 42px;
        border-radius: 10px;
    }
}

@media (max-width: 390px) {

    .follow-us-link span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .after-sorotan-banner img,
    .follow-us-link {
        transition: none;
    }
}


/* =========================================================
   UPDATE 2026 - HEADLINE BESAR, MINI, DAN POPULER GEN Z
========================================================= */

.news-home {
    padding: 22px 0 56px;
}

.news-home-container {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
}

.headline-section {
    min-width: 0;
}

.section-heading {
    margin-bottom: 12px;
}

.section-heading h2 {
    font-size: 26px;
}

.headline-slider {
    height: 445px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .15);
}

.headline-image-wrap::after {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .03) 24%, rgba(0, 0, 0, .88) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, .28), transparent 68%);
}

.headline-category {
    top: auto;
    bottom: 142px;
    left: 26px;
    min-height: 27px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow: 0 8px 22px rgba(37, 99, 235, .3);
    text-transform: uppercase;
}

.headline-content {
    padding: 30px 26px 24px;
}

.headline-content h3 {
    max-width: 700px;
    margin-bottom: 10px;
    overflow: hidden;
    font-size: clamp(23px, 2.15vw, 30px);
    line-height: 1.18;
    letter-spacing: -.025em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .26);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.headline-content p {
    display: none;
}

.headline-meta {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.headline-controls {
    justify-content: flex-end;
    margin-top: 10px;
}

.headline-arrow {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.headline-dot {
    width: 7px;
    height: 7px;
}

.headline-dot.active {
    width: 24px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
}


/* BERITA MINI */

.mini-headline-container {
    width: 100%;
    margin: 18px 0 0;
}

.mini-headline-heading {
    margin-bottom: 12px;
}

.mini-headline-heading-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffb900, #ff7a00);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 145, 0, .24);
}

.mini-headline-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: 17px;
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: -.025em;
}

.mini-headline-grid {
    gap: 12px;
}

.mini-headline-card {
    border: 0;
    border-radius: 15px;
    background: transparent;
}

.mini-headline-card:hover {
    border-color: transparent;
    box-shadow: none;
}

.mini-headline-image-wrap {
    aspect-ratio: 16 / 10;
    border-radius: 13px;
}

.mini-headline-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: inherit;
    pointer-events: none;
}

.mini-headline-body {
    padding: 10px 1px 2px;
}

.mini-headline-category {
    margin-bottom: 6px;
    color: #2563eb;
    font-size: 9px;
}

.mini-headline-title {
    font-size: 13px;
    line-height: 1.38;
    -webkit-line-clamp: 3;
}

.mini-headline-meta {
    justify-content: space-between;
    margin-top: 8px;
}


/* POPULER */

.popular-section {
    position: sticky;
    top: 176px;
    padding: 18px;
    border: 1px solid rgba(99, 102, 241, .13);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0, rgba(124, 58, 237, .12), transparent 34%),
        var(--surface);
    box-shadow: 0 16px 44px rgba(15, 23, 42, .09);
}

.popular-heading {
    margin-bottom: 14px;
}

.popular-heading h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 23px;
}

.popular-heading h2 i {
    color: #ff6b00;
    filter: drop-shadow(0 4px 8px rgba(255, 107, 0, .25));
}

.popular-list {
    gap: 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.popular-item {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 12px;
    border: 1px solid transparent;
    border-radius: 14px;
}

.popular-item:last-child {
    border-bottom: 1px solid transparent;
}

.popular-item:hover {
    border-color: rgba(99, 102, 241, .14);
    background: var(--blue-soft);
    transform: translateX(3px);
}

.popular-number {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f1f3f8;
    color: #8a91a1;
    font-size: 15px;
}

.popular-item:first-child .popular-number {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    box-shadow: 0 8px 20px rgba(79, 70, 229, .25);
}

.popular-content h3 {
    margin-bottom: 7px;
    font-size: 13px;
    line-height: 1.38;
}

.popular-category {
    color: #4f46e5;
}

body.dark-mode .popular-number {
    background: #252c42;
}


/* RESPONSIVE UPDATE */

@media (max-width: 1100px) {
    .news-home-container {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 16px;
    }

    .headline-slider {
        height: 410px;
    }

    .headline-category {
        bottom: 132px;
    }

    .popular-section {
        padding: 14px;
    }
}

@media (max-width: 850px) {
    .news-home {
        padding-top: 16px;
    }

    .news-home-container {
        display: block;
    }

    .headline-slider {
        height: 390px;
        border-radius: 18px;
    }

    .headline-category {
        bottom: 124px;
        left: 17px;
    }

    .headline-controls {
        justify-content: center;
    }

    .popular-section {
        position: relative;
        top: auto;
        margin-top: 32px;
        padding: 17px;
    }
}

@media (max-width: 520px) {
    .section-heading h2 {
        font-size: 22px;
    }

    .headline-slider {
        height: 360px;
    }

    .headline-category {
        bottom: 120px;
        left: 14px;
    }

    .headline-content {
        padding: 22px 14px 16px;
    }

    .headline-content h3 {
        font-size: 21px;
    }

    .mini-headline-grid {
        display: flex;
        gap: 10px;
        margin-right: -10px;
        padding-right: 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .mini-headline-grid::-webkit-scrollbar {
        display: none;
    }

    .mini-headline-card {
        flex: 0 0 72%;
        scroll-snap-align: start;
    }

    .popular-section {
        border-radius: 18px;
    }
}


/* =========================================================
   MOBILE COMPACT UPDATE
   Headline, kartu mini, dan populer dibuat lebih kecil
========================================================= */

@media (max-width: 850px) {

    .news-home {
        padding: 12px 0 30px;
    }

    .news-home-container {
        width: calc(100% - 24px);
    }

    .headline-slider {
        height: 300px;
        border-radius: 15px;
        box-shadow: 0 12px 30px rgba(15, 23, 42, .13);
    }

    .headline-category {
        bottom: 105px;
        left: 15px;
        min-height: 23px;
        padding: 0 9px;
        border-radius: 7px;
        font-size: 9px;
    }

    .headline-content {
        padding: 18px 15px 14px;
    }

    .headline-content h3 {
        max-width: 94%;
        margin-bottom: 8px;
        font-size: 19px;
        line-height: 1.18;
        letter-spacing: -.025em;
    }

    .headline-meta {
        gap: 9px;
        font-size: 9px;
    }

    .mini-headline-container {
        margin-top: 13px;
    }

    .mini-headline-grid {
        gap: 9px;
    }

    .mini-headline-image-wrap {
        border-radius: 11px;
    }

    .mini-headline-body {
        padding: 8px 1px 1px;
    }

    .mini-headline-title {
        font-size: 12px;
        line-height: 1.35;
        -webkit-line-clamp: 2;
    }

    .mini-headline-category {
        margin-bottom: 4px;
        font-size: 8px;
    }

    .mini-headline-meta {
        margin-top: 6px;
        font-size: 8px;
    }

    .popular-section {
        margin-top: 25px;
        padding: 14px;
        border-radius: 16px;
    }

    .popular-heading {
        margin-bottom: 9px;
    }

    .popular-heading h2 {
        gap: 7px;
        font-size: 20px;
    }

    .popular-list {
        gap: 5px;
    }

    .popular-item {
        grid-template-columns: 35px minmax(0, 1fr);
        gap: 9px;
        padding: 10px 8px;
        border-radius: 11px;
    }

    .popular-number {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 13px;
    }

    .popular-content h3 {
        margin-bottom: 5px;
        font-size: 12px;
        line-height: 1.35;
    }

    .popular-category,
    .popular-views {
        font-size: 9px;
    }
}


@media (max-width: 520px) {

    .news-home-container {
        width: calc(100% - 20px);
    }

    .headline-slider {
        height: 270px;
        border-radius: 14px;
    }

    .headline-category {
        bottom: 98px;
        left: 12px;
        min-height: 22px;
        padding-inline: 8px;
        font-size: 8px;
    }

    .headline-content {
        padding: 16px 12px 12px;
    }

    .headline-content h3 {
        max-width: 100%;
        font-size: 17px;
        line-height: 1.18;
    }

    .headline-meta {
        font-size: 8px;
    }

    .mini-headline-grid {
        gap: 8px;
        margin-right: -10px;
        padding-right: 10px;
    }

    .mini-headline-card {
        flex: 0 0 60%;
    }

    .mini-headline-image-wrap {
        aspect-ratio: 16 / 9;
        border-radius: 10px;
    }

    .mini-headline-title {
        font-size: 11px;
    }

    .mini-headline-meta span:nth-child(2) {
        display: none;
    }

    .popular-section {
        margin-top: 22px;
        padding: 12px;
    }
}


@media (max-width: 380px) {

    .headline-slider {
        height: 245px;
    }

    .headline-category {
        bottom: 91px;
    }

    .headline-content h3 {
        font-size: 16px;
    }

    .headline-meta span:nth-child(2) {
        display: none;
    }

    .mini-headline-card {
        flex-basis: 64%;
    }
}


/* =========================================================
   POSISI KATEGORI HEADLINE FLEKSIBEL
   Kategori mengikuti judul secara otomatis.
========================================================= */

.headline-category {
    position: static !important;
    inset: auto !important;
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 10px;
}


/* =========================================================
   BANNER MELAYANG KIRI DAN KANAN
   LEBAR: 160px
   TINGGI: OTOMATIS MENGIKUTI RASIO GAMBAR
========================================================= */

.floating-ad {
    --floating-ad-side-gap: 48px;
    --floating-ad-edge-gap: 16px;

    position: fixed;
    top: calc(96px + var(--nav-height) + 28px);
    z-index: 1200;

    display: none;

    width: 160px;
    height: auto;

    transform: none;
}

.floating-ad-left {
    left: max(
        var(--floating-ad-edge-gap),
        calc(50% - (var(--container-width) / 2) - 160px - var(--floating-ad-side-gap))
    );
}

.floating-ad-right {
    right: max(
        var(--floating-ad-edge-gap),
        calc(50% - (var(--container-width) / 2) - 160px - var(--floating-ad-side-gap))
    );
}

.floating-ad-link {
    display: block;

    width: 100%;
    height: auto;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 0;

    background: var(--surface);

    box-shadow:
        0 14px 35px
        rgba(15, 23, 42, .14);

    line-height: 0;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.floating-ad-link:hover {
    transform: translateY(-3px);

    box-shadow:
        0 18px 42px
        rgba(15, 23, 42, .2);
}

.floating-ad-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 0;
}

body.dark-mode .floating-ad-link {
    box-shadow:
        0 14px 35px
        rgba(0, 0, 0, .34);
}


/*
 * Banner hanya tampil saat ruang kiri dan kanan cukup.
 * Tablet dan mobile otomatis disembunyikan agar tidak
 * menutupi isi berita.
 */

@media (min-width: 1520px) {

    .floating-ad {
        display: block;
    }
}


@media (prefers-reduced-motion: reduce) {

    .floating-ad-link {
        transition: none;
    }
}


/* =========================================================
   BERITA SOROTAN - GAYA BERITA MINI
========================================================= */

.sorotan-section {
    width: 100%;
    padding: 6px 0 60px;
}

.sorotan-container {
    width: min(var(--container-width), calc(100% - 32px));
    margin: 0 auto;
}

.sorotan-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    margin-bottom: 17px;
}

.sorotan-heading-main {
    min-width: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.sorotan-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: 27px;
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: -.035em;
}

.sorotan-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    color: #4f46e5;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.sorotan-more i {
    transition: transform .18s ease;
}

.sorotan-more:hover i {
    transform: translateX(3px);
}

.sorotan-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: stretch;
}

.sorotan-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 16px 14px;
}

.sorotan-card {
    min-width: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    transition: transform .2s ease;
}

.sorotan-card:hover {
    transform: translateY(-3px);
}

.sorotan-card-link {
    display: flex;
    height: auto;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.sorotan-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 13px;
    background: #e8ebf2;
}

.sorotan-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: inherit;
    pointer-events: none;
}

.sorotan-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.sorotan-card:hover .sorotan-image {
    transform: scale(1.045);
}

.sorotan-card-body {
    display: block;
    padding: 10px 1px 2px;
}

.sorotan-category {
    position: static;
    min-height: 0;
    display: block;
    margin-bottom: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #2563eb;
    font-size: 9px;
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.sorotan-card-body h3 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 13px;
    line-height: 1.38;
    font-weight: 780;
    letter-spacing: -.015em;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.sorotan-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 650;
}

.sorotan-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sorotan-banner {
    min-width: 0;
    height: 500px;
}

.sorotan-banner-link {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 16px 38px rgba(15, 23, 42, .1);
    line-height: 0;
}

.sorotan-banner-image {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover;
}

body.dark-mode .sorotan-image-wrap {
    background: #20263a;
}

body.dark-mode .sorotan-banner-link {
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}


/* TABLET: 2 ATAS, 2 TENGAH, 2 BAWAH */

@media (max-width: 1100px) {

    .sorotan-heading,
    .sorotan-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 16px;
    }
}

@media (max-width: 1000px) {

    .sorotan-heading,
    .sorotan-layout {
        grid-template-columns: 1fr;
    }

    .sorotan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(3, minmax(0, 1fr));
        gap: 14px 11px;
    }

    .sorotan-banner,
    .sorotan-banner-image {
        width: 100%;
        height: 500px;
    }
}


/* MOBILE: TETAP 2 KOLOM */

@media (max-width: 650px) {

    .sorotan-section {
        padding: 4px 0 38px;
    }

    .sorotan-container {
        width: calc(100% - 20px);
    }

    .sorotan-heading {
        margin-bottom: 13px;
    }

    .sorotan-heading-main {
        align-items: center;
    }

    .sorotan-heading h2 {
        font-size: 23px;
    }

    .sorotan-more {
        font-size: 9px;
    }

    .sorotan-grid {
        gap: 13px 9px;
    }

    .sorotan-image-wrap {
        border-radius: 10px;
    }

    .sorotan-card-body {
        padding: 8px 1px 1px;
    }

    .sorotan-category {
        margin-bottom: 4px;
        font-size: 7px;
    }

    .sorotan-card-body h3 {
        font-size: 11px;
        line-height: 1.35;
    }

    .sorotan-meta {
        margin-top: 6px;
        font-size: 7px;
    }

    .sorotan-meta span:nth-child(2) {
        display: none;
    }
}

@media (max-width: 380px) {

    .sorotan-card-body h3 {
        font-size: 10px;
    }

    .sorotan-meta {
        font-size: 6.5px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .sorotan-card,
    .sorotan-image,
    .sorotan-more i {
        transition: none;
    }
}


/* =========================================================
   POLLING DAN REKOMENDASI
========================================================= */

.engagement-section {
    width: 100%;
    padding: 4px 0 64px;
}

.engagement-container {
    width: min(var(--container-width), calc(100% - 32px));
    margin: 0 auto;
}

.engagement-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    align-items: start;
}

.engagement-heading,
.recommendation-heading {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 15px;
}

.engagement-heading h2,
.recommendation-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: 25px;
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: -.035em;
}

.engagement-heading h2 {
    display: flex;
    align-items: center;
    gap: 9px;
}

.engagement-heading h2 > span {
    width: 5px;
    height: 27px;
    display: block;
    background: linear-gradient(180deg, var(--blue), #ffb900);
}

.polling-next {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.polling-next:hover {
    color: #fff;
    background: var(--blue);
    transform: translateX(2px);
}

.polling-track {
    display: flex;
    gap: 13px;
    padding-bottom: 4px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.polling-track::-webkit-scrollbar {
    display: none;
}

.polling-card {
    flex: 0 0 calc((100% - 13px) / 2);
    min-width: 0;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
    scroll-snap-align: start;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

.polling-image {
    display: block;
    width: calc(100% - 24px);
    height: 175px;
    margin: 12px 12px 0;
    border-radius: 11px;
    object-fit: cover;
}

.polling-body {
    padding: 14px 14px 16px;
}

.polling-body h3 {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    line-height: 1.45;
    font-weight: 800;
}

.polling-author {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 9px 0 13px;
    color: var(--muted);
    font-size: 11px;
}

.polling-author-logo {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b168f, #ffb900);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    overflow: hidden;
}

.polling-author-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.polling-author i {
    color: var(--blue);
    font-size: 11px;
}

.polling-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.polling-option {
    position: relative;
    isolation: isolate;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    overflow: hidden;
    padding: 0 12px;
    border: 1px solid var(--blue);
    border-radius: 5px;
    background: transparent;
    color: var(--blue);
    font-family: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: color .18s ease, background .18s ease;
}

.polling-option::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    z-index: -1;
    width: var(--poll-width, 0%);
    background: rgba(11, 22, 143, .12);
    transition: width .45s ease;
}

.polling-card.voted .polling-option {
    border-color: var(--border);
    color: var(--text);
}

.polling-card.voted .polling-option.selected {
    border-color: var(--blue);
    color: var(--blue);
}

.polling-percentage {
    display: none;
    font-weight: 800;
}

.polling-card.voted .polling-percentage {
    display: inline;
}

.polling-info,
.polling-body time {
    display: block;
    margin: 11px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

.polling-body time {
    margin-top: 7px;
}


/* REKOMENDASI */

.recommendation-section {
    min-width: 0;
}

.recommendation-heading a {
    color: var(--blue);
    text-decoration: none;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.recommendation-featured a,
.recommendation-horizontal a {
    color: inherit;
    text-decoration: none;
}

.recommendation-featured-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    background: #e8ebf2;
}

.recommendation-featured-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.recommendation-featured:hover img {
    transform: scale(1.04);
}

.recommendation-featured-image-wrap span {
    position: absolute;
    left: 11px;
    bottom: 11px;
    padding: 6px 9px;
    border-radius: 7px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.recommendation-featured h3 {
    margin: 10px 0 7px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.4;
    font-weight: 800;
}

.recommendation-featured p {
    margin: 0;
    color: var(--muted);
    font-size: 9px;
}

.recommendation-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 17px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.recommendation-horizontal a {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
}

.recommendation-horizontal img {
    display: block;
    width: 105px;
    height: 78px;
    border-radius: 10px;
    object-fit: cover;
}

.recommendation-horizontal span {
    display: block;
    margin-bottom: 4px;
    color: #2563eb;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.recommendation-horizontal h3 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 11px;
    line-height: 1.38;
    font-weight: 780;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.recommendation-horizontal time {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 8px;
}

body.dark-mode .polling-card {
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}

body.dark-mode .recommendation-featured-image-wrap {
    background: #20263a;
}


/* RESPONSIVE */

@media (max-width: 1100px) {

    .engagement-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 16px;
    }

    .polling-image {
        height: 155px;
    }
}

@media (max-width: 1000px) {

    .engagement-layout {
        grid-template-columns: 1fr;
    }

    .polling-card {
        flex-basis: calc((100% - 13px) / 2);
    }

    .recommendation-section {
        margin-top: 12px;
    }

    .recommendation-featured-image-wrap {
        aspect-ratio: 16 / 7;
    }

    .recommendation-horizontal a {
        grid-template-columns: 130px minmax(0, 1fr);
    }

    .recommendation-horizontal img {
        width: 130px;
        height: 86px;
    }
}

@media (max-width: 650px) {

    .engagement-section {
        padding: 2px 0 42px;
    }

    .engagement-container {
        width: calc(100% - 20px);
    }

    .engagement-heading h2,
    .recommendation-heading h2 {
        font-size: 22px;
    }

    .engagement-heading h2 > span {
        height: 23px;
    }

    .polling-card {
        flex: 0 0 86%;
        min-height: 490px;
    }

    .polling-image {
        height: 160px;
    }

    .polling-body h3 {
        font-size: 14px;
    }

    .polling-option {
        min-height: 42px;
        font-size: 12px;
    }

    .recommendation-featured-image-wrap {
        aspect-ratio: 16 / 9;
        border-radius: 11px;
    }

    .recommendation-featured h3 {
        font-size: 14px;
    }

    .recommendation-horizontal a {
        grid-template-columns: 105px minmax(0, 1fr);
    }

    .recommendation-horizontal img {
        width: 105px;
        height: 75px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .polling-track,
    .polling-option::before,
    .polling-next,
    .recommendation-featured-image-wrap img {
        scroll-behavior: auto;
        transition: none;
    }
}

/* =========================================================
   RESPONSIVE FINAL — POLLING, REKOMENDASI & FOTO PILIHAN
   Diletakkan paling bawah agar tidak tertimpa aturan lama.
========================================================= */

/* DESKTOP BESAR */

.engagement-section {
    width: 100%;
    padding: 20px 0 64px;
    overflow: hidden;
}

.engagement-container,
.foto-pilihan-container {
    width: min(var(--container-width), calc(100% - 32px));
    margin-inline: auto;
}

.engagement-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.engagement-main,
.recommendation-section {
    min-width: 0;
}

.engagement-heading,
.recommendation-heading {
    min-height: 40px;
    margin-bottom: 16px;
}

.engagement-heading h2,
.recommendation-heading h2 {
    font-size: clamp(22px, 2vw, 26px);
}

.polling-track {
    display: flex;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    padding: 2px 2px 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.polling-track::-webkit-scrollbar {
    display: none;
}

.polling-card {
    flex: 0 0 calc((100% - 16px) / 2);
    width: calc((100% - 16px) / 2);
    min-width: 0;
    min-height: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 14px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.polling-image {
    width: calc(100% - 24px);
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 12px 12px 0;
    object-fit: cover;
}

.polling-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 14px 15px 16px;
}

.polling-body h3 {
    display: -webkit-box;
    min-height: 47px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.polling-author {
    flex-wrap: wrap;
    margin: 9px 0 12px;
}

.polling-options {
    margin-top: auto;
}

.polling-option {
    width: 100%;
    min-height: 43px;
    padding: 8px 12px;
    line-height: 1.35;
    text-align: left;
}

.polling-option span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.polling-percentage {
    flex: 0 0 auto;
}

.polling-info,
.polling-body time {
    overflow-wrap: anywhere;
}

.recommendation-featured-image-wrap {
    aspect-ratio: 16 / 10;
}

.recommendation-horizontal a {
    grid-template-columns: 105px minmax(0, 1fr);
}

.recommendation-horizontal img {
    width: 105px;
    height: 78px;
}

.recommendation-horizontal h3 {
    overflow-wrap: anywhere;
}

/* FOTO PILIHAN DESKTOP */

.foto-pilihan-section {
    padding: 8px 0 56px;
    overflow: hidden;
}

.foto-pilihan-grid {
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 16px;
    height: clamp(360px, 34vw, 430px);
}

.foto-pilihan-side {
    gap: 16px;
}

/* LAPTOP KECIL */

@media (max-width: 1100px) {

    .engagement-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 18px;
    }

    .polling-track {
        gap: 13px;
    }

    .polling-card {
        flex-basis: calc((100% - 13px) / 2);
        width: calc((100% - 13px) / 2);
    }

    .polling-body h3 {
        font-size: 14px;
    }

    .recommendation-horizontal a {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 9px;
    }

    .recommendation-horizontal img {
        width: 96px;
        height: 72px;
    }
}

/* TABLET */

@media (max-width: 1000px) {

    .engagement-section {
        padding: 14px 0 52px;
    }

    .engagement-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .polling-card {
        flex: 0 0 calc((100% - 16px) / 2);
        width: calc((100% - 16px) / 2);
    }

    .recommendation-section {
        width: 100%;
        margin-top: 0;
    }

    .recommendation-featured-image-wrap {
        aspect-ratio: 16 / 6.7;
    }

    .recommendation-featured h3 {
        font-size: 17px;
    }

    .recommendation-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 20px;
    }

    .recommendation-horizontal a {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .recommendation-horizontal img {
        width: 120px;
        height: 82px;
    }

    .recommendation-horizontal h3 {
        font-size: 12px;
    }

    .foto-pilihan-grid {
        grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr);
        height: 370px;
    }
}

@media (max-width: 768px) {

    .engagement-container,
    .foto-pilihan-container {
        width: calc(100% - 24px);
    }

    .engagement-heading,
    .recommendation-heading {
        min-height: 36px;
        margin-bottom: 13px;
    }

    .engagement-heading h2,
    .recommendation-heading h2 {
        font-size: 21px;
    }

    .polling-next {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .polling-card {
        flex-basis: calc((100% - 12px) / 2);
        width: calc((100% - 12px) / 2);
    }

    .polling-image {
        width: calc(100% - 20px);
        margin: 10px 10px 0;
    }

    .polling-body {
        padding: 12px 12px 14px;
    }

    .polling-body h3 {
        min-height: 42px;
        font-size: 13px;
        line-height: 1.45;
    }

    .polling-option {
        min-height: 41px;
        font-size: 11px;
    }

    .recommendation-featured-image-wrap {
        aspect-ratio: 16 / 7.5;
    }

    .recommendation-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .recommendation-horizontal a {
        grid-template-columns: 125px minmax(0, 1fr);
    }

    .recommendation-horizontal img {
        width: 125px;
        height: 84px;
    }

    .foto-pilihan-grid {
        grid-template-columns: minmax(0, 1.5fr) minmax(210px, 1fr);
        gap: 12px;
        height: 330px;
    }

    .foto-pilihan-side {
        gap: 12px;
    }
}

/* MOBILE */

@media (max-width: 650px) {

    .engagement-section {
        padding: 8px 0 42px;
    }

    .engagement-container,
    .foto-pilihan-container {
        width: calc(100% - 20px);
    }

    .engagement-layout {
        gap: 30px;
    }

    .engagement-heading h2,
    .recommendation-heading h2 {
        font-size: 19px;
    }

    .engagement-heading h2 > span {
        width: 4px;
        height: 22px;
    }

    .polling-track {
        gap: 10px;
        margin-right: -10px;
        padding-right: 10px;
    }

    .polling-card {
        flex: 0 0 min(88%, 360px);
        width: min(88%, 360px);
        border-radius: 12px;
    }

    .polling-image {
        aspect-ratio: 16 / 8.5;
        border-radius: 9px;
    }

    .polling-body h3 {
        min-height: 0;
        font-size: 13px;
        -webkit-line-clamp: 3;
    }

    .polling-author {
        margin: 8px 0 11px;
        font-size: 10px;
    }

    .polling-option {
        min-height: 40px;
        font-size: 11px;
    }

    .polling-info,
    .polling-body time {
        font-size: 9px;
    }

    .recommendation-featured-image-wrap {
        aspect-ratio: 16 / 9;
        border-radius: 11px;
    }

    .recommendation-featured h3 {
        font-size: 14px;
    }

    .recommendation-horizontal a {
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 10px;
    }

    .recommendation-horizontal img {
        width: 105px;
        height: 74px;
    }

    .recommendation-horizontal h3 {
        font-size: 11px;
    }

    .foto-pilihan-section {
        padding: 4px 0 44px;
    }

    .foto-pilihan-grid {
        grid-template-columns: minmax(0, 1fr);
        height: auto;
    }

    .foto-pilihan-card--utama {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .foto-pilihan-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }

    .foto-pilihan-card--mini {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .foto-pilihan-card--mini .foto-pilihan-content {
        padding: 10px;
    }

    .foto-pilihan-card--mini .foto-pilihan-content h3 {
        font-size: 11px;
        -webkit-line-clamp: 3;
    }
}

/* MOBILE KECIL */

@media (max-width: 420px) {

    .engagement-heading,
    .recommendation-heading {
        gap: 8px;
    }

    .engagement-heading h2,
    .recommendation-heading h2 {
        font-size: 18px;
    }

    .polling-card {
        flex-basis: 92%;
        width: 92%;
    }

    .polling-image {
        width: calc(100% - 16px);
        margin: 8px 8px 0;
    }

    .polling-body {
        padding: 11px;
    }

    .recommendation-horizontal a {
        grid-template-columns: 94px minmax(0, 1fr);
    }

    .recommendation-horizontal img {
        width: 94px;
        height: 68px;
    }

    .foto-pilihan-heading h2 {
        font-size: 18px;
    }

    .foto-pilihan-more {
        font-size: 10px;
    }

    .foto-pilihan-side {
        gap: 9px;
    }

    .foto-pilihan-count {
        top: 7px;
        right: 7px;
        min-height: 22px;
        padding: 3px 6px;
        font-size: 9px;
    }
}

@media (max-width: 350px) {

    .recommendation-horizontal a {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 8px;
    }

    .recommendation-horizontal img {
        width: 86px;
        height: 64px;
    }

    .foto-pilihan-side {
        grid-template-columns: minmax(0, 1fr);
    }

    .foto-pilihan-card--mini {
        aspect-ratio: 16 / 9;
    }
}

@media (prefers-reduced-motion: reduce) {

    .polling-track {
        scroll-behavior: auto;
    }
}

/* =========================================================
   GARIS JUDUL KATEGORI — SERAGAM
   Terpopuler, Sorotan, Follow Us, Polling,
   Rekomendasi, dan Foto Pilihan.
========================================================= */

.section-title-unified {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0;
}

.section-title-unified::before {
    content: "";
    display: block;
    width: 4px;
    height: 26px;
    flex: 0 0 4px;
    border-radius: 0;
    background: linear-gradient(180deg, #ff5a1f 0%, #ffad00 100%);
}

/* Matikan garis lama agar tidak muncul ganda. */

.engagement-heading h2 > span,
.foto-pilihan-heading h2 > span {
    display: none !important;
}

/* Ikon Terpopuler tetap rapi setelah garis. */

.popular-heading .section-title-unified i {
    margin: 0;
    color: #ff6a00;
    font-size: .82em;
}

/* Follow Us sebelumnya memakai layout judul tersendiri. */

.follow-us-heading .section-title-unified {
    gap: 9px !important;
}

.follow-us-heading .section-title-unified::before {
    height: 24px;
}

@media (max-width: 1000px) {

    .section-title-unified {
        gap: 9px !important;
    }

    .section-title-unified::before {
        width: 4px;
        height: 24px;
        flex-basis: 4px;
    }
}

@media (max-width: 650px) {

    .section-title-unified {
        gap: 8px !important;
    }

    .section-title-unified::before,
    .follow-us-heading .section-title-unified::before {
        width: 3px;
        height: 21px;
        flex-basis: 3px;
    }
}

@media (max-width: 390px) {

    .section-title-unified::before,
    .follow-us-heading .section-title-unified::before {
        height: 19px;
    }
}

/* =========================================================
   JARAK POLLING / REKOMENDASI KE FOTO PILIHAN
========================================================= */

/* Desktop: total jarak antarseksi sekitar 18px. */

.engagement-section {
    padding-bottom: 18px;
}

.foto-pilihan-section {
    padding-top: 0;
}

/* Tablet */

@media (max-width: 1000px) {

    .engagement-section {
        padding-bottom: 16px;
    }

    .foto-pilihan-section {
        padding-top: 0;
    }
}

/* Mobile */

@media (max-width: 650px) {

    .engagement-section {
        padding-bottom: 12px;
    }

    .foto-pilihan-section {
        padding-top: 0;
    }
}

/* =========================================================
   SHOWBIZ, BOLA, DAN GLOBAL
========================================================= */

/* Dekatkan blok baru dengan Foto Pilihan. */

.foto-pilihan-section {
    padding-bottom: 24px;
}

.category-news-section {
    width: 100%;
    padding: 4px 0 62px;
    overflow: hidden;
}

.category-news-container {
    width: min(var(--container-width), calc(100% - 32px));
    margin-inline: auto;
}

.category-news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.category-news-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.category-news-heading {
    display: flex;
    align-items: center;
    min-height: 40px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.category-news-heading h2 {
    color: var(--text);
    font-size: 21px;
    line-height: 1.15;
    font-weight: 850;
    letter-spacing: -.03em;
}

.category-news-featured a,
.category-news-item a,
.category-news-more {
    color: inherit;
    text-decoration: none;
}

.category-news-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 8.8;
    overflow: hidden;
    border-radius: 11px;
    background: #e9ecf3;
}

.category-news-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}

.category-news-featured:hover .category-news-image,
.category-news-featured.is-focused .category-news-image {
    transform: scale(1.045);
}

.category-news-featured h3,
.category-news-item h3 {
    margin: 0;
    color: var(--text);
    font-weight: 780;
    overflow-wrap: anywhere;
}

.category-news-featured h3 {
    display: -webkit-box;
    margin-top: 12px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.category-news-featured time,
.category-news-item time {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
}

.category-news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px 10px;
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
}

.category-news-meta time {
    margin-top: 0;
}

.category-news-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ff5a1f;
    font-weight: 750;
}

.category-news-list {
    display: flex;
    flex-direction: column;
    margin-top: 14px;
}

.category-news-item {
    padding: 13px 0;
    border-top: 1px solid var(--border);
}

.category-news-item h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.43;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.category-news-item a:hover h3,
.category-news-featured a:hover h3 {
    color: var(--blue);
}

.category-news-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 12px;
    color: #ff5017;
    font-size: 11px;
    font-weight: 750;
    transition: gap .2s ease, color .2s ease;
}

.category-news-more:hover {
    gap: 10px;
    color: var(--blue);
}

.category-news-featured a:focus-visible,
.category-news-item a:focus-visible,
.category-news-more:focus-visible {
    outline: 3px solid #ffad00;
    outline-offset: 3px;
}

body.dark-mode .category-news-image-wrap {
    background: #20263a;
}

/* TABLET */

@media (max-width: 1000px) {

    .category-news-section {
        padding: 2px 0 52px;
    }

    .category-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 24px;
    }

    .category-news-column:last-child {
        grid-column: auto;
        display: flex;
    }

    .category-news-column:last-child .category-news-heading,
    .category-news-column:last-child .category-news-more {
        grid-column: auto;
    }

    .category-news-column:last-child .category-news-list {
        margin-top: 14px;
    }

    .category-news-column:last-child .category-news-more {
        margin-top: auto;
    }
}

@media (max-width: 768px) {

    .category-news-container {
        width: calc(100% - 24px);
    }

    .category-news-grid {
        gap: 32px 18px;
    }

    .category-news-column:last-child {
        column-gap: 0;
    }

    .category-news-heading {
        margin-bottom: 12px;
    }

    .category-news-heading h2 {
        font-size: 19px;
    }

    .category-news-featured h3 {
        font-size: 14px;
    }

    .category-news-item h3 {
        font-size: 12px;
    }
}

/* MOBILE */

@media (max-width: 650px) {

    .foto-pilihan-section {
        padding-bottom: 20px;
    }

    .category-news-section {
        padding: 0 0 44px;
    }

    .category-news-container {
        width: calc(100% - 20px);
    }

    .category-news-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .category-news-column:last-child {
        grid-column: auto;
        display: flex;
    }

    .category-news-heading {
        min-height: 36px;
        margin-bottom: 11px;
        padding-bottom: 8px;
    }

    .category-news-heading h2 {
        font-size: 18px;
    }

    .category-news-image-wrap {
        aspect-ratio: 16 / 8.7;
        border-radius: 10px;
    }

    .category-news-featured h3 {
        margin-top: 10px;
        font-size: 14px;
    }

    .category-news-item {
        padding: 11px 0;
    }

    .category-news-item h3 {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .category-news-more {
        padding-top: 9px;
        font-size: 10px;
    }
}

@media (max-width: 390px) {

    .category-news-grid {
        gap: 32px;
    }

    .category-news-featured h3 {
        font-size: 13px;
    }

    .category-news-item h3 {
        font-size: 11px;
    }
}

@media (min-width: 1001px) and (max-width: 1180px) {

    .category-news-grid {
        gap: 16px;
    }

    .category-news-heading h2 {
        font-size: 18px;
    }

    .category-news-featured h3 {
        font-size: 13px;
    }

    .category-news-item h3 {
        font-size: 11px;
    }

    .category-news-meta {
        font-size: 9px;
    }
}

/* =========================================================
   FOTO PILIHAN — 4 FOTO MINI DI SAMPING KANAN
   Foto utama tetap memakai ukuran sebelumnya.
========================================================= */

.foto-pilihan-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.foto-pilihan-card--mini .foto-pilihan-content {
    padding: 10px;
}

.foto-pilihan-card--mini .foto-pilihan-content h3 {
    font-size: 11px;
    line-height: 1.3;
    -webkit-line-clamp: 2;
}

.foto-pilihan-card--mini .foto-pilihan-count {
    top: 8px;
    right: 8px;
    min-height: 22px;
    padding: 3px 6px;
    font-size: 9px;
}

@media (max-width: 1000px) {

    .foto-pilihan-side {
        gap: 10px;
    }

    .foto-pilihan-card--mini .foto-pilihan-content {
        padding: 8px;
    }

    .foto-pilihan-card--mini .foto-pilihan-content h3 {
        font-size: 10px;
    }
}

@media (max-width: 768px) {

    .foto-pilihan-side {
        gap: 9px;
    }

    .foto-pilihan-card--mini .foto-pilihan-content h3 {
        font-size: 9px;
        -webkit-line-clamp: 2;
    }

    .foto-pilihan-card--mini .foto-pilihan-count {
        top: 6px;
        right: 6px;
        min-height: 20px;
        font-size: 8px;
    }
}

@media (max-width: 650px) {

    .foto-pilihan-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .foto-pilihan-card--mini {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .foto-pilihan-card--mini .foto-pilihan-content {
        padding: 9px;
    }

    .foto-pilihan-card--mini .foto-pilihan-content h3 {
        font-size: 10px;
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 390px) {

    .foto-pilihan-side {
        gap: 8px;
    }

    .foto-pilihan-card--mini .foto-pilihan-content {
        padding: 7px;
    }

    .foto-pilihan-card--mini .foto-pilihan-content h3 {
        font-size: 9px;
        -webkit-line-clamp: 2;
    }
}

/* =========================================================
   BANNER DI BAWAH FOTO PILIHAN
========================================================= */

.foto-pilihan-section {
    padding-bottom: 0;
}

.photo-bottom-banner {
    width: min(var(--container-width), calc(100% - 32px));
    margin-inline: auto;
    margin-top: 18px;
    margin-bottom: 24px;
    overflow: hidden;
    line-height: 0;
}

.photo-bottom-banner-link {
    display: block;
    width: 100%;
    aspect-ratio: 8 / 1;
    overflow: hidden;
    border-radius: 0;
    background: #e8ebf2;
}

.photo-bottom-banner-image {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    object-fit: cover;
    transition: opacity .22s ease;
}

.photo-bottom-banner-link:hover .photo-bottom-banner-image {
    opacity: .94;
}

.photo-bottom-banner-link:focus-visible {
    outline: 3px solid #ffad00;
    outline-offset: 3px;
}

body.dark-mode .photo-bottom-banner-link {
    background: #20263a;
}

@media (max-width: 1000px) {

    .photo-bottom-banner {
        width: calc(100% - 24px);
        margin-top: 16px;
        margin-bottom: 22px;
    }

    .photo-bottom-banner-link {
        aspect-ratio: 7 / 1;
    }
}

@media (max-width: 650px) {

    .photo-bottom-banner {
        width: calc(100% - 20px);
        margin-top: 13px;
        margin-bottom: 20px;
    }

    .photo-bottom-banner-link {
        aspect-ratio: 4 / 1;
    }
}

@media (max-width: 390px) {

    .photo-bottom-banner-link {
        aspect-ratio: 3.6 / 1;
    }
}

@media (prefers-reduced-motion: reduce) {

    .photo-bottom-banner-image {
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .category-news-image,
    .category-news-more {
        transition: none;
    }
}

/* =========================================================
   BERITA TERBARU DAN OPINI — BLOK PALING BAWAH
========================================================= */

.latest-opinion-section {
    width: 100%;
    padding: 10px 0 70px;
    overflow: hidden;
}

.latest-opinion-container {
    width: min(var(--container-width), calc(100% - 32px));
    margin-inline: auto;
}

.latest-opinion-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 340px;
    gap: 22px;
    align-items: start;
}

.latest-news-main,
.latest-opinion-sidebar {
    min-width: 0;
}

.latest-news-hero,
.latest-news-hero > a {
    position: relative;
    display: block;
    height: 390px;
    overflow: hidden;
    border-radius: 14px;
    background: #101626;
}

.latest-news-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.latest-news-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(5, 10, 24, .9) 100%);
    pointer-events: none;
}

.latest-news-hero:hover .latest-news-image {
    transform: scale(1.035);
}

.latest-news-hero-content {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 24px;
    color: #fff;
}

.latest-news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.latest-news-tags span {
    padding: 5px 8px;
    border-radius: 5px;
    background: #2563eb;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.latest-news-hero-content h2 {
    max-width: 760px;
    margin: 0;
    font-size: 25px;
    line-height: 1.28;
    font-weight: 850;
}

.latest-news-hero-content time {
    display: block;
    margin-top: 10px;
    font-size: 10px;
    font-weight: 650;
    opacity: .9;
}

.latest-news-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.latest-news-mini a,
.latest-news-horizontal a,
.latest-opinion-featured a,
.latest-opinion-item a {
    color: inherit;
    text-decoration: none;
}

.latest-news-mini img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 9px;
    object-fit: cover;
}

.latest-news-mini h3 {
    display: -webkit-box;
    margin: 8px 0 0;
    overflow: hidden;
    color: var(--text);
    font-size: 11px;
    line-height: 1.4;
    font-weight: 780;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.latest-news-list {
    display: flex;
    flex-direction: column;
    margin-top: 24px;
    border-top: 1px solid var(--border);
}

.latest-news-horizontal {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.latest-news-horizontal a {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.latest-news-horizontal img {
    display: block;
    width: 190px;
    height: 112px;
    border-radius: 10px;
    object-fit: cover;
}

.latest-news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 8px;
}

.latest-news-meta span {
    color: #2563eb;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.latest-news-meta time {
    color: var(--muted);
}

.latest-news-horizontal h3 {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    line-height: 1.38;
    font-weight: 820;
}

.latest-news-horizontal p {
    display: -webkit-box;
    margin: 6px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.latest-news-mini a:hover h3,
.latest-news-horizontal a:hover h3,
.latest-opinion-item a:hover h3 {
    color: var(--blue);
}

/* SIDEBAR */

.latest-sidebar-ad {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 0;
    line-height: 0;
}

.latest-sidebar-ad img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.latest-opinion-heading {
    margin-top: 20px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--border);
}

.latest-opinion-heading h2 {
    color: var(--text);
    font-size: 21px;
    font-weight: 850;
}

.latest-opinion-featured {
    margin-top: 14px;
}

.latest-opinion-featured-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 12px;
    background: #101626;
}

.latest-opinion-featured-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.latest-opinion-featured:hover img {
    transform: scale(1.04);
}

.latest-opinion-featured h3 {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 16px;
    color: #fff;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 820;
}

.latest-opinion-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.latest-opinion-item a {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.latest-opinion-item img {
    display: block;
    width: 96px;
    height: 68px;
    border-radius: 8px;
    object-fit: cover;
}

.latest-opinion-item h3 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 11px;
    line-height: 1.4;
    font-weight: 780;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

body.dark-mode .latest-news-hero,
body.dark-mode .latest-news-hero > a,
body.dark-mode .latest-opinion-featured-image {
    background: #080c15;
}

@media (max-width: 1100px) {

    .latest-opinion-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 18px;
    }

    .latest-news-hero,
    .latest-news-hero > a {
        height: 350px;
    }

    .latest-news-hero-content h2 {
        font-size: 22px;
    }
}

/* TABLET */

@media (max-width: 900px) {

    .latest-opinion-section {
        padding: 6px 0 56px;
    }

    .latest-opinion-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .latest-opinion-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 18px 22px;
    }

    .latest-sidebar-ad {
        grid-row: span 2;
    }

    .latest-sidebar-ad img {
        height: 100%;
        min-height: 320px;
    }

    .latest-opinion-heading {
        margin-top: 0;
    }

    .latest-opinion-featured,
    .latest-opinion-list {
        grid-column: 2;
    }

    .latest-opinion-featured-image {
        height: 210px;
    }
}

@media (max-width: 700px) {

    .latest-opinion-container {
        width: calc(100% - 24px);
    }

    .latest-news-hero,
    .latest-news-hero > a {
        height: 300px;
    }

    .latest-news-hero-content {
        padding: 18px;
    }

    .latest-news-hero-content h2 {
        font-size: 18px;
    }

    .latest-news-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .latest-news-horizontal a {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 13px;
    }

    .latest-news-horizontal img {
        width: 150px;
        height: 100px;
    }

    .latest-news-horizontal h3 {
        font-size: 14px;
    }

    .latest-opinion-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .latest-sidebar-ad,
    .latest-opinion-featured,
    .latest-opinion-list {
        grid-column: auto;
        grid-row: auto;
    }

    .latest-sidebar-ad img {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 7;
    }
}

/* MOBILE */

@media (max-width: 520px) {

    .latest-opinion-section {
        padding-bottom: 44px;
    }

    .latest-opinion-container {
        width: calc(100% - 20px);
    }

    .latest-news-hero,
    .latest-news-hero > a {
        height: 245px;
        border-radius: 11px;
    }

    .latest-news-hero-content {
        padding: 14px;
    }

    .latest-news-hero-content h2 {
        font-size: 15px;
        line-height: 1.35;
    }

    .latest-news-mini-grid {
        gap: 10px;
        margin-top: 12px;
    }

    .latest-news-mini h3 {
        font-size: 10px;
    }

    .latest-news-list {
        margin-top: 18px;
    }

    .latest-news-horizontal {
        padding: 11px 0;
    }

    .latest-news-horizontal a {
        grid-template-columns: 108px minmax(0, 1fr);
        gap: 10px;
    }

    .latest-news-horizontal img {
        width: 108px;
        height: 78px;
        border-radius: 8px;
    }

    .latest-news-horizontal h3 {
        display: -webkit-box;
        overflow: hidden;
        font-size: 11px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .latest-news-horizontal p {
        display: none;
    }

    .latest-opinion-featured-image {
        height: 200px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .latest-news-image,
    .latest-opinion-featured-image img {
        transition: none;
    }
}

/* =========================================================
   BANNER MELAYANG MENTOK TEPAT DI ATAS FOOTER
========================================================= */

.site-footer {
    position: relative;
    z-index: 1300;
    background-color: #070b25;
}

.floating-ad {
    z-index: 1200;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    will-change: top;
}

/*
 * Class ini diberikan JavaScript saat banner menyentuh batas
 * footer. Banner tetap terlihat dan benar-benar tertahan.
 */

.floating-ad.is-footer-stopped {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Banner tetap tidak ditampilkan pada tablet dan mobile. */

@media (max-width: 1519px) {

    .floating-ad {
        display: none;
    }
}

/* =========================================================
   MOBILE — BANNER + OPINI DI ATAS BERITA BESAR
   Desktop tetap menggunakan urutan layout sebelumnya.
========================================================= */

@media (max-width: 700px) {

    .latest-opinion-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .latest-opinion-sidebar {
        order: -1;
    }

    .latest-news-main {
        order: 1;
    }
}

/* =========================================================
   BADGE VERIFIKASI PENGGUNA PUBLIK
========================================================= */

.public-user-name {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: .32em;
    vertical-align: middle;
}

.public-user-name > span:first-child {
    min-width: 0;
}

.public-verified-badge {
    flex: 0 0 auto;
    color: #4285f4 !important;
    font-size: .88em;
    line-height: 1;
}

.video-story-channel .public-user-name,
.video-story-page-channel .public-user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
