:root {
    --portal-green: #0b7a53;
    --portal-green-dark: #07563b;
    --portal-green-soft: #eaf7f1;
    --portal-gold: #f7b731;
    --portal-ink: #15202b;
    --portal-muted: #6b7280;
    --portal-border: #e8edf2;
    --portal-bg: #f6f8fb;
    --portal-radius: 18px;
    --portal-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

body {
    background: var(--portal-bg);
    color: var(--portal-ink);
}

a {
    color: var(--portal-green);
    transition: .2s ease;
}

a:hover {
    color: var(--portal-green-dark);
    text-decoration: none;
}

.portal-topbar {
    background: linear-gradient(90deg, var(--portal-green-dark), var(--portal-green));
    color: rgba(255, 255, 255, .92);
    font-size: 13px;
}

.portal-topbar a {
    color: #fff;
}

.portal-topbar .topbar-link {
    opacity: .9;
}

.portal-topbar .topbar-link:hover {
    opacity: 1;
}

.portal-header {
    background: #fff;
    box-shadow: 0 10px 35px rgba(15, 23, 42, .06);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.portal-brand-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.portal-brand-title {
    font-weight: 900;
    color: var(--portal-green-dark);
    letter-spacing: -.02em;
    line-height: 1.05;
}

.portal-brand-subtitle {
    color: var(--portal-muted);
    font-size: 13px;
}

.portal-search-btn,
.portal-wa-btn {
    border-radius: 999px;
    padding: .55rem .9rem;
    font-weight: 700;
}

.portal-wa-btn {
    background: var(--portal-green-soft);
    color: var(--portal-green-dark);
}

.portal-search-btn {
    background: var(--portal-green);
    color: #fff;
    border: 0;
}

.portal-search-btn:hover {
    color: #fff;
    background: var(--portal-green-dark);
}

.portal-nav {
    border-top: 1px solid var(--portal-border);
}

.portal-nav .navbar {
    padding: 0;
}

.portal-nav .navbar-nav>.nav-item>.nav-link {
    color: var(--portal-ink) !important;
    font-weight: 750;
    padding: 1rem .85rem;
}

.portal-nav .navbar-nav>.nav-item>.nav-link:hover,
.portal-nav .navbar-nav>.nav-item.active>.nav-link {
    color: var(--portal-green) !important;
}

.portal-nav .dropdown-menu {
    border: 0;
    box-shadow: var(--portal-shadow);
    border-radius: 14px;
    padding: .65rem;
}

.portal-nav .dropdown-item {
    border-radius: 10px;
    font-weight: 650;
}

.portal-nav .dropdown-item:hover {
    background: var(--portal-green-soft);
    color: var(--portal-green-dark);
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -.65rem;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

.portal-search-panel {
    display: none;
    background: linear-gradient(135deg, rgba(7, 86, 59, .96), rgba(11, 122, 83, .96));
    padding: 34px 0;
    color: #fff;
}

.portal-search-panel.is-open {
    display: block;
}

.portal-search-panel .form-control {
    height: 54px;
    border-radius: 999px 0 0 999px;
    border: 0;
    padding-left: 24px;
}

.portal-search-panel .btn {
    border-radius: 0 999px 999px 0;
    padding-left: 24px;
    padding-right: 24px;
}

.portal-main {
    min-height: 60vh;
}

.hero-card,
.portal-card,
.portal-widget,
.portal-list-item,
.portal-page-card {
    background: #fff;
    border: 1px solid var(--portal-border);
    border-radius: var(--portal-radius);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.portal-card,
.portal-list-item,
.service-card,
.gallery-card,
.infographic-card {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.portal-card:hover,
.portal-list-item:hover,
.service-card:hover,
.gallery-card:hover,
.infographic-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--portal-shadow);
    border-color: rgba(11, 122, 83, .25);
}

.hero-card {
    overflow: hidden;
    position: relative;
    min-height: 520px;
}

.hero-card img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .05) 10%, rgba(4, 33, 23, .88) 100%);
    display: flex;
    align-items: flex-end;
    padding: 34px;
}

.hero-title {
    color: #fff;
    font-weight: 900;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.06;
    letter-spacing: -.04em;
}

.hero-meta {
    color: rgba(255, 255, 255, .86);
}

.portal-section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.portal-section-title h2,
.portal-section-title h1 {
    font-weight: 900;
    letter-spacing: -.03em;
    margin: 0;
    color: var(--portal-ink);
}

.portal-section-title .eyebrow {
    color: var(--portal-green);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 900;
}

.portal-section-title .more-link {
    font-weight: 800;
    font-size: 14px;
    white-space: nowrap;
}

.news-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .32rem .65rem;
    border-radius: 999px;
    background: var(--portal-green-soft);
    color: var(--portal-green-dark);
    font-size: 12px;
    font-weight: 850;
}

.news-badge.gold {
    background: rgba(247, 183, 49, .18);
    color: #9a6500;
}

.news-title {
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -.02em;
}

.news-title a {
    color: var(--portal-ink);
}

.news-title a:hover {
    color: var(--portal-green);
}

.news-meta {
    color: var(--portal-muted);
    font-size: 13px;
}

.portal-card {
    overflow: hidden;
    height: 100%;
}

.portal-card-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    background: #e5e7eb;
}

.portal-card-body {
    padding: 18px;
}

.portal-list-item {
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.portal-list-thumb {
    width: 150px;
    height: 104px;
    flex: 0 0 150px;
    object-fit: cover;
    border-radius: 14px;
    background: #e5e7eb;
}

.portal-mini-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--portal-border);
}

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

.portal-mini-thumb {
    width: 82px;
    height: 64px;
    flex: 0 0 82px;
    border-radius: 12px;
    object-fit: cover;
    background: #e5e7eb;
}

.portal-banner-carousel,
.portal-soft-panel {
    border-radius: var(--portal-radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--portal-green-soft), #fff);
    border: 1px solid var(--portal-border);
}

.portal-banner-carousel img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
}

.portal-widget {
    padding: 20px;
    margin-bottom: 22px;
}

.portal-widget-title {
    font-weight: 900;
    font-size: 20px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--portal-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portal-widget-title a {
    color: var(--portal-ink);
}

.portal-widget-title a:hover {
    color: var(--portal-green);
}

.service-card {
    background: #fff;
    border: 1px solid var(--portal-border);
    border-radius: 18px;
    padding: 18px;
    height: 100%;
    text-align: center;
}

.service-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: var(--portal-green-soft);
    color: var(--portal-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 12px;
}

.service-card img {
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
    margin-bottom: 12px;
}

.gallery-card,
.infographic-card {
    overflow: hidden;
    border-radius: var(--portal-radius);
    background: #fff;
    border: 1px solid var(--portal-border);
    height: 100%;
}

.gallery-card img,
.infographic-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.infographic-card img {
    height: 280px;
    object-fit: contain;
    background: #fff;
}

.gallery-card .caption,
.infographic-card .caption {
    padding: 14px 16px;
    font-weight: 800;
}

.video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #111827;
    border-radius: 16px;
    overflow: hidden;
}

.video-frame iframe,
.video-frame embed,
.video-frame object {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.archive-hero {
    background:
        radial-gradient(circle at top left, rgba(247, 183, 49, .26), transparent 32%),
        linear-gradient(135deg, var(--portal-green-dark), var(--portal-green));
    color: #fff;
    padding: 54px 0;
    margin-bottom: 34px;
}

.archive-hero .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0 0 12px;
    color: rgba(255, 255, 255, .75);
}

.archive-hero .breadcrumb a {
    color: #fff;
}

.archive-hero h1 {
    font-weight: 950;
    letter-spacing: -.04em;
    margin: 0;
}

.article-cover {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: var(--portal-shadow);
}

.article-content {
    font-size: 18px;
    line-height: 1.82;
    color: #263238;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.article-content iframe {
    max-width: 100%;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border-radius: 999px;
    padding: .55rem .85rem;
    background: #fff;
    border: 1px solid var(--portal-border);
    color: var(--portal-ink);
    font-weight: 750;
    margin: 0 6px 8px 0;
}

.share-button:hover {
    background: var(--portal-green-soft);
    color: var(--portal-green-dark);
}

.satker-hero {
    background: linear-gradient(135deg, var(--portal-green-dark), var(--portal-green));
    border-radius: 28px;
    color: #fff;
    padding: 38px;
    overflow: hidden;
    position: relative;
}

.satker-hero:after {
    content: '';
    position: absolute;
    right: -70px;
    top: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}

.satker-logo {
    max-width: 170px;
    max-height: 130px;
    object-fit: contain;
    background: #fff;
    border-radius: 20px;
    padding: 14px;
}

.portal-footer {
    background: #0f2f24;
    color: rgba(255, 255, 255, .78);
    padding-top: 52px;
}

.portal-footer a {
    color: #fff;
}

.portal-footer h5 {
    color: #fff;
    font-weight: 900;
}

.portal-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 28px;
    padding: 18px 0;
    font-size: 13px;
}

.footer-tag {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    padding: .35rem .7rem;
    margin: 0 .35rem .5rem 0;
}

.bg-light-soft {
    background: #f6f8f7;
}

.reels-wrapper {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 2px 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.reels-wrapper::-webkit-scrollbar {
    height: 8px;
}

.reels-wrapper::-webkit-scrollbar-track {
    background: #e9efec;
    border-radius: 999px;
}

.reels-wrapper::-webkit-scrollbar-thumb {
    background: #0f6b3a;
    border-radius: 999px;
}

.reels-item {
    flex: 0 0 220px;
    scroll-snap-align: start;
}

.reels-card {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 24px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 18px 45px rgba(15, 35, 25, .18);
    border: 1px solid rgba(255, 255, 255, .35);
}

.reels-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.reels-media iframe,
.reels-media video,
.reels-media embed,
.reels-media object {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    display: block;
}

.reels-media iframe {
    object-fit: cover;
}

.reels-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .48) 36%, rgba(0, 0, 0, .05) 70%),
        linear-gradient(to bottom, rgba(0, 0, 0, .25), transparent 35%);
    pointer-events: none;
}

.reels-content {
    position: absolute;
    left: 14px;
    right: 48px;
    bottom: 16px;
    z-index: 3;
    color: #fff;
}

.reels-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .25);
    padding: 5px 9px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.reels-title {
    font-size: 15px;
    line-height: 1.25;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}

.reels-caption {
    font-size: 12px;
    line-height: 1.35;
    color: rgba(255, 255, 255, .86);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reels-action {
    position: absolute;
    right: 12px;
    bottom: 18px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reels-action span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(8px);
}

@media (min-width: 992px) {
    .reels-item {
        flex-basis: 205px;
    }
}

@media (max-width: 767.98px) {
    .reels-wrapper {
        gap: 14px;
        padding-bottom: 14px;
    }

    .reels-item {
        flex-basis: 72%;
    }

    .reels-card {
        border-radius: 22px;
    }
}

.portal-pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.portal-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    margin: 0;
    list-style: none;
    background: #ffffff;
    border: 1px solid #e7ece9;
    border-radius: 999px;
    box-shadow: 0 12px 35px rgba(15, 35, 25, .08);
}

.portal-pagination li a,
.portal-pagination li span {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f6b3a;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .2s ease;
}

.portal-pagination li a:hover {
    background: #eef8f2;
    border-color: #cce9d7;
    color: #07542b;
}

.portal-pagination li.active span {
    background: linear-gradient(135deg, #0f6b3a, #21a35b);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 107, 58, .28);
}

.portal-pagination li.disabled span {
    color: #b8c3bd;
    background: #f7f9f8;
    cursor: not-allowed;
}

.portal-pagination li.dots span {
    color: #7c8b83;
    background: transparent;
}

@media (max-width: 576px) {
    .portal-pagination {
        gap: 4px;
        padding: 6px;
        border-radius: 18px;
        flex-wrap: wrap;
    }

    .portal-pagination li a,
    .portal-pagination li span {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
}

.text-limit-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-limit-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bg-soft-green {
    background: var(--portal-green-soft);
}

.rounded-portal {
    border-radius: var(--portal-radius);
}

.shadow-portal {
    box-shadow: var(--portal-shadow);
}

/* =========================
   RESPONSIVE BASE
========================= */

@media (max-width: 991.98px) {
    body {
        overflow-x: hidden;
    }

    .portal-header {
        position: static;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    section {
        padding-top: 36px !important;
        padding-bottom: 36px !important;
    }

    .portal-section-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 18px;
    }

    .portal-section-title h1,
    .portal-section-title h2 {
        font-size: 22px;
        line-height: 1.25;
    }

    .portal-section-title .eyebrow {
        font-size: 12px;
    }

    .portal-widget {
        margin-top: 24px;
        border-radius: 16px !important;
        padding: 16px;
    }

    .portal-widget-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .portal-list-item {
        flex-direction: column;
    }

    .portal-list-thumb {
        width: 100%;
        height: 210px;
        flex: unset;
    }

    .portal-mini-item .news-title {
        font-size: 14px !important;
        line-height: 1.35 !important;
    }
}


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

@media (max-width: 767.98px) {
    .hero-card {
        min-height: 360px !important;
        height: 360px !important;
        border-radius: 20px !important;
    }

    .hero-card img {
        height: 360px !important;
        min-height: 360px !important;
        object-fit: cover;
    }

    .hero-overlay {
        padding: 18px !important;
    }

    .hero-title {
        font-size: 25px !important;
        line-height: 1.15 !important;
        letter-spacing: -0.4px;
    }

    .hero-meta,
    .news-meta {
        font-size: 11px !important;
        flex-wrap: wrap;
        gap: 6px;
    }
}


/* =========================
   CARD BERITA MOBILE
========================= */

@media (max-width: 767.98px) {
    .portal-card {
        border-radius: 18px !important;
        margin-bottom: 16px;
    }

    .portal-card-img,
    .portal-card img {
        height: 190px;
        object-fit: cover;
    }

    .portal-card-body {
        padding: 14px !important;
    }

    .news-title,
    .portal-card h3,
    .portal-card h4 {
        font-size: 17px !important;
        line-height: 1.35 !important;
    }

    .portal-mini-item {
        gap: 10px;
    }

    .portal-mini-thumb {
        width: 76px;
        height: 60px;
        flex: 0 0 76px;
    }
}


/* =========================
   HEADLINE / SIDEBAR MOBILE
========================= */

@media (max-width: 991.98px) {
    .sidebar,
    .portal-sidebar,
    .headline-sidebar {
        margin-top: 24px;
    }

    .headline-card,
    .popular-card,
    .infografis-card,
    .portal-widget {
        border-radius: 16px !important;
    }

    .headline-card img,
    .popular-card img {
        height: 120px !important;
        object-fit: cover;
    }

    .headline-card h3,
    .popular-card h3 {
        font-size: 15px !important;
        line-height: 1.3;
    }
}


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

@media (max-width: 767.98px) {
    .service-card {
        padding: 14px !important;
        border-radius: 16px !important;
    }

    .service-card h3,
    .service-card h4,
    .service-card h5 {
        font-size: 14px !important;
        line-height: 1.35;
    }

    .service-icon {
        width: 46px;
        height: 46px;
        font-size: 20px;
        border-radius: 14px;
    }
}


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

@media (max-width: 767.98px) {
    .reels-wrapper {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        padding-bottom: 14px;
        scroll-snap-type: x mandatory;
    }

    .reels-item {
        flex: 0 0 72%;
        scroll-snap-align: start;
    }

    .reels-card {
        aspect-ratio: 9 / 16;
        border-radius: 22px;
    }
}


/* =========================
   GALERI & INFOGRAFIS MOBILE
========================= */

@media (max-width: 767.98px) {
    .gallery-card,
    .infographic-card {
        border-radius: 18px !important;
        overflow: hidden;
    }

    .gallery-card img {
        height: 180px !important;
        object-fit: cover;
    }

    .infographic-card img {
        height: 240px !important;
        object-fit: contain;
    }
}


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

@media (max-width: 576px) {
    .portal-pagination-wrap {
        margin-top: 24px;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 6px;
    }

    .portal-pagination {
        flex-wrap: nowrap;
        gap: 5px;
        padding: 7px;
        border-radius: 999px;
        min-width: max-content;
    }

    .portal-pagination li a,
    .portal-pagination li span {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
}


/* =========================
   DETAIL BERITA MOBILE
========================= */

@media (max-width: 767.98px) {
    .archive-hero {
        padding: 34px 0;
        margin-bottom: 24px;
    }

    .archive-hero h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .article-cover {
        max-height: 340px;
        border-radius: 18px;
    }

    .article-title,
    .detail-title {
        font-size: 26px !important;
        line-height: 1.2 !important;
    }

    .article-meta,
    .detail-meta {
        font-size: 12px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .article-content {
        font-size: 16px;
        line-height: 1.75;
    }

    .article-content img {
        max-width: 100%;
        height: auto;
        border-radius: 14px;
    }
}


/* =========================
   SHARE BUTTON MOBILE
========================= */

@media (max-width: 767.98px) {
    .share-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .share-button,
    .share-buttons a,
    .share-buttons button {
        min-height: 42px;
        padding: 9px 13px;
        border-radius: 999px;
        font-size: 13px;
        margin: 0;
    }
}


/* =========================
   PRINT MODE
========================= */

@media print {
    .portal-topbar,
    .portal-header,
    .portal-search-panel,
    .portal-footer,
    .d-print-none {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .portal-card,
    .portal-widget,
    .portal-page-card {
        box-shadow: none;
        border: 0;
    }
}
