/* style.css - Warna Merah Maroon Gerindra, Slider Hero, & Optimasi Presisi Mobile */
:root {
    --primary-navy: #700000;       /* Merah Maroon Gerindra */
    --primary-blue: #550000;       /* Maroon Tua */
    --accent-orange: #ff8c00;      /* Aksen Oranye */
    --accent-gold: #d4af37;
    --accent-blue: #1877f2;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --bg-light: #f7f9fa;
    --card-border: #e8ecf1;
}

body {
    background-color: var(--bg-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ==============================================================
   HEADER & LOGO UTUH
   ============================================================== */
.portal-top-bar {
    background-color: #ffffff;
    border-bottom: 1px solid #ebebeb;
    font-size: 0.85rem;
}

.portal-brand {
    background-color: #ffffff;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo-img {
    height: 75px;
    width: auto;
    max-width: 85px;
    object-fit: contain !important;
    border-radius: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    flex-shrink: 0;
}

.brand-title {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #111;
    font-size: 1.5rem;
    line-height: 1.15;
    margin-bottom: 2px;
}

.brand-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.4px;
    display: block;
}

.sidebar-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain !important;
    border-radius: 0 !important;
    border: none !important;
    background-color: transparent !important;
    flex-shrink: 0;
}

/* ==============================================================
   NAVBAR MENU - MERAH MAROON GERINDRA
   ============================================================== */
.navbar-portal {
    background-color: var(--primary-navy) !important;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-portal .nav-link {
    color: #ffffff !important;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.85rem 1.15rem !important;
    transition: all 0.2s ease-in-out;
}

.navbar-portal .nav-link:hover,
.navbar-portal .nav-link.active {
    background-color: var(--accent-orange) !important;
    color: #ffffff !important;
}

.dropdown-menu {
    border-radius: 0;
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.dropdown-item {
    font-size: 0.9rem;
    padding: 0.55rem 1.25rem;
    transition: all 0.15s ease-in-out;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--accent-orange);
    padding-left: 1.45rem;
}

/* ==============================================================
   BANNER HERO DENGAN SLIDER MULTI-FOTO FADE IN/OUT BLUR
   ============================================================== */
.portal-hero-banner {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    color: #ffffff;
    margin-bottom: 2rem;
    border-bottom: 4px solid var(--accent-orange);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    min-height: 350px;
    display: flex;
    align-items: center;
    background-color: #0b1526;
}

.banner-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.banner-slide-item {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    opacity: 0;
    filter: blur(12px);
    transform: scale(1.08);
    transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1), 
                filter 1.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.banner-slide-item.active {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1.0);
    z-index: 2;
}

.portal-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(15, 23, 42, 0.96) 0%,
        rgba(15, 23, 42, 0.85) 45%,
        rgba(15, 23, 42, 0.35) 75%,
        rgba(15, 23, 42, 0.10) 100%
    );
    z-index: 3;
}

.portal-hero-banner .banner-inner {
    padding: 3rem 2.5rem;
    position: relative;
    z-index: 4;
    width: 100%;
}

.portal-hero-banner .banner-title {
    font-size: 2.15rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.25;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* Sub Judul 1 & 2 Berhenti 15 Detik */
.moving-subtitles-wrapper {
    margin-top: 0.35rem;
    max-width: 650px;
}

.moving-subtitle-box {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    margin-bottom: 2px;
    line-height: 1.25;
}

.moving-subtitle-text-1 {
    display: inline-block;
    color: #eab308;
    font-size: 0.98rem;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    animation: slide-pause-left 22s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.moving-subtitle-text-2 {
    display: inline-block;
    color: #eab308;
    font-size: 0.92rem;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    animation: slide-pause-right 22s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.moving-subtitles-wrapper:hover .moving-subtitle-text-1,
.moving-subtitles-wrapper:hover .moving-subtitle-text-2 {
    animation-play-state: paused;
}

@keyframes slide-pause-left {
    0% { transform: translate3d(100%, 0, 0); opacity: 0; }
    12% { transform: translate3d(0, 0, 0); opacity: 1; }
    82% { transform: translate3d(0, 0, 0); opacity: 1; }
    98% { transform: translate3d(-100%, 0, 0); opacity: 0; }
    100% { transform: translate3d(-100%, 0, 0); opacity: 0; }
}

@keyframes slide-pause-right {
    0% { transform: translate3d(-100%, 0, 0); opacity: 0; }
    12% { transform: translate3d(0, 0, 0); opacity: 1; }
    82% { transform: translate3d(0, 0, 0); opacity: 1; }
    98% { transform: translate3d(100%, 0, 0); opacity: 0; }
    100% { transform: translate3d(100%, 0, 0); opacity: 0; }
}

/* ==============================================================
   KOTAK LEAD KUNING STABILO & TAMPILAN PROFIL
   ============================================================== */
.article-lead-box {
    background-color: #fffb75 !important; /* Kuning Stabilo Nyata */
    border-left: 6px solid #eab308 !important;
    padding: 1.35rem 1.6rem;
    margin-top: 1.2rem;
    margin-bottom: 2.2rem !important; /* Jarak terpisah yang jelas dengan isi artikel */
    border-radius: 0 8px 8px 0;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #1e293b;
    font-style: italic !important;
    box-shadow: 0 3px 12px rgba(234, 179, 8, 0.22);
}

.article-lead-box strong {
    font-style: normal;
    color: #000000;
    font-weight: 700;
}

/* Foto Profil Portrait di Dalam Isi Profil */
.profile-portrait-card {
    float: right;
    width: 290px;
    margin-left: 1.8rem;
    margin-bottom: 1.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.profile-portrait-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
    display: block;
}

.profile-portrait-card .profile-caption {
    padding-top: 9px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #700000;
    line-height: 1.3;
}

.profile-portrait-card .profile-subcaption {
    font-size: 0.74rem;
    color: #64748b;
    margin-top: 2px;
}

/* Footer Maroon */
.footer-maroon {
    background-color: var(--primary-navy) !important;
    color: #ffffff;
    border-top: 4px solid var(--accent-orange) !important;
}

/* Section Header Bar */
.section-badge-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-navy);
    border-bottom: 2px solid var(--primary-navy);
    padding-bottom: 8px;
    margin-bottom: 1.5rem;
}

/* Headline News Card */
.headline-card {
    border: none;
    background: transparent;
}

.headline-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
}

.headline-img-wrap img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.headline-img-wrap:hover img {
    transform: scale(1.03);
}

.category-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: rgba(112, 0, 0, 0.9);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.headline-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 10px 0;
}

.headline-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
}

.headline-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s;
}

.headline-title a:hover {
    color: var(--accent-orange);
}

.headline-summary {
    font-size: 0.92rem;
    color: #4a4a4a;
    line-height: 1.6;
}

/* Sub News Items */
.news-item-horizontal {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ebebeb;
}

.news-item-horizontal img {
    width: 95px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    cursor: pointer;
}

.news-item-horizontal .item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.news-item-horizontal .item-title {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 4px;
}

.news-item-horizontal .item-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}

.news-item-horizontal .item-title a:hover {
    color: var(--accent-orange);
}

/* Sidebar Widgets */
.sidebar-widget {
    background-color: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 1.35rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.sidebar-title {
    font-size: 1.15rem;
    font-weight: 700;
    border-bottom: 2px solid #eef0f2;
    padding-bottom: 8px;
    margin-bottom: 16px;
    color: var(--primary-navy);
}

.social-follow-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    border-radius: 6px;
    margin-bottom: 10px;
    text-decoration: none;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: background 0.15s;
}

.social-follow-btn:hover {
    background-color: #f1f3f5;
}

.popular-rank-badge {
    width: 28px;
    height: 28px;
    background-color: var(--primary-navy);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
}

.read-more-btn {
    display: inline-block;
    background-color: var(--primary-navy);
    color: #fff !important;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 10px;
    transition: background 0.2s;
    cursor: pointer;
}

.read-more-btn:hover {
    background-color: var(--accent-orange);
}

/* Penataan Isi Paragraf Artikel Profil */
.article-body-text {
    font-size: 1.05rem;
    line-height: 1.95;
    color: #272c35;
    text-align: justify;
    text-justify: inter-word;
}

.article-body-text p {
    margin-bottom: 1.55rem;
    letter-spacing: 0.1px;
}

/* ==============================================================
   RESPONSIF MOBILE / GAWAI
   ============================================================== */
@media (max-width: 991.98px) {
    .navbar-portal .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .navbar-portal .dropdown-menu {
        background-color: #4a0000;
        box-shadow: none;
    }
    .navbar-portal .dropdown-item {
        color: #e2e8f0;
        padding: 0.55rem 1.5rem;
    }
    .navbar-portal .dropdown-item:hover {
        background-color: var(--accent-orange);
        color: #fff;
    }
}

@media (max-width: 767.98px) {
    .portal-top-bar {
        padding-top: 0.4rem !important;
        padding-bottom: 0.4rem !important;
    }
    .portal-top-bar .container {
        flex-direction: column !important;
        gap: 6px !important;
        text-align: center;
    }

    .portal-brand {
        padding: 0.55rem 0;
    }
    .brand-logo-img {
        height: 52px;
        max-width: 60px;
    }
    .brand-title {
        font-size: 1.15rem;
        line-height: 1.2;
    }
    .brand-subtitle {
        font-size: 0.65rem;
    }

    .portal-hero-banner {
        min-height: 300px;
        align-items: flex-end;
        border-radius: 6px;
        margin-bottom: 1.35rem;
    }
    .portal-hero-banner .banner-inner {
        padding: 1.2rem 1rem 0.9rem 1rem;
    }
    .portal-hero-banner .banner-title {
        font-size: 1.28rem;
    }

    /* Foto Profil di Ponsel Menjadi Tengah (Full Width) */
    .profile-portrait-card {
        float: none !important;
        width: 100% !important;
        max-width: 280px;
        margin: 0 auto 1.5rem auto !important;
    }

    .article-lead-box {
        padding: 1.1rem 1.2rem;
        font-size: 0.98rem;
        margin-bottom: 1.8rem !important;
    }
}