/* ==========================
RESET
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#ececec;
    font-family:'Poppins',sans-serif;
}

/* ==========================
CONTAINER
========================== */

.container{
    width:100%;
    max-width:1300px;
    margin:0 auto;
    background:#fff;
    min-height:100vh;

    overflow:visible;
}

/* area utama tetap 1200px */
.slider-section,
.news-wrapper{
    max-width:1200px;
    margin-left:auto;
    margin-right:auto;
}

/* ==========================
TOP BAR
========================== */

.top-bar{
    height:40px;
    background:#0f172a;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 15px;
    font-size:14px;
}

.social-media{
    display:flex;
    align-items:center;
    gap:15px;
}

/* ==========================
BANNER DAN LOGO WEB DI ATAS MENU
========================== */

.banner-top{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    padding:5px 15px;
    margin:0;
}

/* Logo diperbesar */

.banner-logo{
    flex-shrink:0;
}

.banner-logo img{
    width:260px;
    height:auto;
    display:block;
}

/* Banner */

.banner-image{
    flex:1;
    min-width:0;
}

.banner-image img{
    width:100%;
    height:auto;
    display:block;
    border-radius:10px;
}

/* Mobile */

@media(max-width:768px){

    /* sembunyikan top bar dan banner */

    .top-bar,
    .banner-top{
        display:none;
    }

    /* tampilkan logo di tengah header */

    .mobile-logo{
        display:flex !important;
        align-items:center;
        justify-content:center;

        position:absolute;
        top:50%;
        left:50%;

        transform:translate(-50%, -50%);

        z-index:999;

    }

    .mobile-logo img{
        width:130px;
        height:auto;
        display:block;
    }

}

/* ==========================
HEADER
========================== */

.header{
    position:sticky;
    top:0;
    z-index:99999;

    display:flex;
    align-items:center;

    height:60px;
    padding:0 15px;

    background:#fff;
    border-bottom:1px solid #ddd;

    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.header.scrolled{
    box-shadow:0 4px 20px rgba(0,0,0,.15);
}

.header.fixed{
    position:fixed;
    top:0;
    left:50%;
    transform:translateX(-50%);

    width:100%;
    max-width:1300px;

    z-index:99999;

    background:#fff;

    box-shadow:0 2px 15px rgba(0,0,0,.15);
}

.header-actions{
    display:flex;
    align-items:center;
    gap:8px;
    margin-left:auto;
    z-index:10;
}

.menu{
    display:flex;
    align-items:center;
    list-style:none;
    flex:1;
}

.menu li{
    position:relative;
}

.menu li a{
    display:block;
    padding:20px 10px;
    text-decoration:none;
    color:#222;
    font-size:14px;
    font-weight:600;
    transition:.3s;
}

.menu li a:hover{
    color:#1d4ed8;
}

.menu li a.active{
    color:#1d4ed8;
}

/* ==========================
ICON MENU
========================== */

.menu > li > a{
    display:flex;
    align-items:center;
    gap:4px; /* sebelumnya 8px */
    position:relative;
    padding:18px 7px; /* menu desktop lebih rapat */
}

/* icon menu utama */
.menu > li > a i:first-child{
    width:15px; /* sebelumnya 18px */
    text-align:center;
    font-size:14px;
    color:inherit;
    flex-shrink:0;
}

/* icon panah dropdown */
.menu > li.has-submenu > a .fa-chevron-down{
    font-size:9px;
    margin-left:1px;
    transition:.3s ease;
}

/* animasi panah */
@media(min-width:769px){

    .menu > li.has-submenu:hover > a .fa-chevron-down{
        transform:rotate(180deg);
    }

}


/* ==========================
SUBMENU DESKTOP
========================== */

.has-submenu{
    position:relative;
}

.submenu{
    position:absolute;
    top:100%;
    left:0;
    min-width:240px; /* sebelumnya 260px */

    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:12px;

    list-style:none;
    margin-top:8px;
    padding:6px 0;

    box-shadow:
        0 12px 30px rgba(0,0,0,.12);

    opacity:0;
    visibility:hidden;
    transform:translateY(10px);

    transition:.25s ease;
    z-index:9999;
}

.has-submenu:hover > .submenu{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}


.submenu li{
    position:relative;
    width:100%;
}

.submenu li:not(:last-child){
    border-bottom:1px solid #e5e7eb;
}

.submenu li a{
    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:11px 16px !important;

    font-size:13px;
    font-weight:500;

    color:#334155;
    background:transparent;

    transition:.25s ease;
}

.submenu li a:hover{
    background:#eff6ff;
    color:#2563eb;
}


/* ==========================
SUBMENU LEVEL 2
========================== */

.submenu-right{
    top:0;
    left:100%;
    margin-left:6px;

    min-width:220px;

    opacity:0;
    visibility:hidden;

    transform:translateX(8px);
    transition:.25s ease;
}


.submenu li:hover > .submenu-right{
    opacity:1;
    visibility:visible;
    transform:translateX(0);
}


.submenu-right li a{
    white-space:nowrap;
}

.submenu-right li:not(:last-child){
    border-bottom:1px solid #e5e7eb;
}


/* desktop fix */

@media(min-width:769px){

    .menu{
        overflow:visible !important;
    }

}

body.dark-mode .submenu li{
    border-bottom:1px solid #374151;
}

body.dark-mode .submenu-right li{
    border-bottom:1px solid #374151;
}

/* ==========================
SUBMENU MOBILE
========================== */

@media(max-width:768px){

    .submenu,
    .submenu-right{
        position:static;
        width:100%;
        min-width:100%;

        margin:0;
        border:none;
        border-radius:0;
        box-shadow:none;

        opacity:1;
        visibility:visible;
        transform:none;

        display:none;
        background:#f8fafc;
    }


    .has-submenu.active > .submenu{
        display:block;
    }


    .submenu li a{
        height:46px;
        padding-left:50px !important;
        font-size:13px;
    }


    .submenu-right li a{
        padding-left:70px !important;
    }

}

.submenu li{
    border-bottom:1px solid #e5e7eb;
}

.submenu li:last-child{
    border-bottom:none;
}

.submenu-right li{
    border-bottom:1px solid #e5e7eb;
}

.submenu-right li:last-child{
    border-bottom:none;
}

/* ==========================
BUTTON & LOGO
========================== */

.search-btn,
.theme-toggle{
    width:36px;
    height:36px;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;
}


.menu-toggle{
    display:none;
    border:none;
    background:none;
    font-size:24px;
    cursor:pointer;
}


.mobile-logo{
    display:none;
}


.mobile-logo img{
    width:140px;
    height:auto;
    display:block;
}


/* ==========================
SIDEBAR OVERLAY
========================== */

.sidebar-overlay{
    position:fixed;
    inset:0;

    background:rgba(0,0,0,.55);
    backdrop-filter:blur(3px);

    opacity:0;
    visibility:hidden;

    transition:.3s;
    z-index:998;
}


.sidebar-overlay.active{
    opacity:1;
    visibility:visible;
}


/* ==========================
MOBILE SIDEBAR
========================== */

@media(max-width:768px){

    .menu{
        position:fixed !important;

        top:0 !important;
        left:-100%;

        width:80%;
        max-width:320px;

        height:100vh;

        background:#ffffff;

        display:flex;
        flex-direction:column;

        /* FIX SIDEBAR MENEMPEL KE ATAS */
        padding:0 !important;

        overflow-y:auto;

        box-shadow:0 0 35px rgba(0,0,0,.18);

        transition:.35s ease;
        z-index:99999;
    }

    .menu.active{
        left:0;
    }

    /* SEARCH */
    .mobile-sidebar-search{
        display:block;

        padding:15px 18px;

        margin:0;

        width:100%;
        flex-shrink:0;

        border-bottom:1px solid #f1f5f9;
    }


    .mobile-sidebar-search form{
        position:relative;
    }

    .mobile-sidebar-search input{
        width:100%;
        height:46px;

        padding:0 48px 0 16px;

        border:1px solid #dbe2ea;
        border-radius:25px;

        background:#fff;

        font-size:13px;
        outline:none;
    }

    .mobile-sidebar-search button{
        position:absolute;
        top:50%;
        right:16px;
        transform:translateY(-50%);

        border:none;
        background:none;

        color:#64748b;
        cursor:pointer;
    }

    /* MENU ITEM */
    .menu li{
        width:100%;
    }

    .menu li a{
        width:100%;
        height:54px;

        display:flex;
        align-items:center;

        padding-left:30px !important;
        padding-right:18px !important;

        font-size:14px;
        font-weight:600;

        border-bottom:1px solid #f1f5f9;
    }

    /* HILANGKAN FOOTER */
    .mobile-sidebar-footer{
        display:none !important;
    }
}


/* ==========================
SIDEBAR SEARCH MOBILE
========================== */

.mobile-sidebar-search{
    display:none;
}

.mobile-sidebar-footer{
    display:none !important;
}

@media(max-width:768px){

    .mobile-sidebar-search{

        display:block;

        margin:0;

        padding:15px 18px;

        background:transparent;

        border:none;
    }

    .mobile-sidebar-search form{
        position:relative;
    }

    .mobile-sidebar-search input{

        width:100%;
        height:46px;

        padding:0 48px 0 16px;

        border:1px solid #dbe2ea;
        border-radius:25px;

        background:#fff;

        font-size:13px;

        outline:none;
    }

    .mobile-sidebar-search button{

        position:absolute;

        top:50%;
        right:16px;

        transform:translateY(-50%);

        border:none;
        background:none;

        color:#64748b;

        cursor:pointer;
    }

    .mobile-sidebar-footer{
        display:none !important;
    }

}

/* ==========================
DARK MODE MENU
========================== */

body.dark-mode .submenu{
    background:#1e293b;
    border-color:#334155;
    box-shadow:
        0 15px 35px rgba(0,0,0,.45);
}


body.dark-mode .submenu li a{
    color:#e2e8f0;
}


body.dark-mode .submenu li a:hover{
    background:#334155;
    color:#60a5fa;
}


body.dark-mode .menu-toggle{
    color:#e2e8f0;
}


@media(max-width:768px){

    body.dark-mode .menu{
        background:#111827;
    }


    body.dark-mode .menu li a{
        color:#e2e8f0;
        border-color:#1f2937;
    }


    body.dark-mode .menu li a:hover{
        background:#1e293b;
        color:#60a5fa;
    }


    body.dark-mode .menu li a.active{
        background:#1e3a8a;
        color:#93c5fd;
        border-left-color:#60a5fa;
    }


    body.dark-mode .submenu,
    body.dark-mode .submenu-right{
        background:#0f172a;
    }

}


/* ==========================
SEARCH PANEL
========================== */

.header{
    position:relative;
    z-index:1000;
}

/* SEARCH PANEL */
.search-panel{
    position:absolute;

    top:calc(100% + 10px);
    right:15px;

    width:380px;
    max-width:calc(100vw - 30px);

    display:none;

    background:#fff;

    padding:12px;

    border:1px solid #e5e7eb;
    border-radius:12px;

    box-shadow:
        0 12px 30px rgba(0,0,0,.15);

    z-index:9999;
}

/* Panah kecil */
.search-panel::before{
    content:"";

    position:absolute;

    top:-8px;
    right:18px;

    width:14px;
    height:14px;

    background:#fff;

    border-top:1px solid #e5e7eb;
    border-left:1px solid #e5e7eb;

    transform:rotate(45deg);
}

.search-panel.active{
    display:block;
}

.search-panel-inner{
    position:relative;
}

.search-panel input{
    width:100%;
    height:48px;

    padding:0 45px 0 15px;

    border:1px solid #d1d5db;
    border-radius:8px;

    outline:none;

    font-size:14px;
    font-family:inherit;

    background:#fff;

    transition:.3s;
}

.search-panel input:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.1);
}

.search-panel button{
    position:absolute;

    top:50%;
    right:14px;

    transform:translateY(-50%);

    border:none;
    background:none;

    color:#64748b;

    cursor:pointer;

    padding:0;
    font-size:15px;
}

.search-panel button:hover{
    color:#2563eb;
}

/* MOBILE */
@media(max-width:768px){

    .search-panel{
        top:calc(100% + 8px);
        right:10px;

        width:calc(100vw - 20px);
        max-width:none;
    }

    .search-panel::before{
        right:18px;
    }

}

/* ==========================================================
PROFILE BUTTON
========================================================== */

.profile-btn{
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#f8fafc;
    border:1px solid #e5e7eb;
    color:#374151;
    text-decoration:none;
    transition:.25s ease;
    flex-shrink:0;
}

.profile-btn i{
    font-size:16px;
}

.profile-btn:hover{
    background:#2563eb;
    border-color:#2563eb;
    color:#fff;
    transform:translateY(-2px);
}

body.dark-mode .profile-btn{
    background:#1f2937;
    border-color:#374151;
    color:#e5e7eb;
}

body.dark-mode .profile-btn:hover{
    background:#2563eb;
    border-color:#2563eb;
}

.mobile-profile{
    display:none;
}

.profile-login{
    display:flex;
    align-items:center;
    justify-content:center;
}

.profile-avatar{
    width:42px;
    height:42px;
    border-radius:50%;
    object-fit:cover;
    border:2px solid #fff;
}

/* ==========================================================
PROFILE PAGE
========================================================== */

.profile-page{

    max-width:1300px;

    margin:40px auto;

    padding:20px;

}

.profile-card{

    background:#fff;

    border-radius:24px;

    overflow:hidden;

    box-shadow:0 20px 45px rgba(0,0,0,.08);

    transition:.3s;

}

.profile-card:hover{

    transform:translateY(-2px);

    box-shadow:0 25px 55px rgba(0,0,0,.10);

}

body.dark-mode .profile-card{

    background:#1f2937;

}

/* ==========================================================
HEADER
========================================================== */

.profile-header{

    padding:50px 30px;

    text-align:center;

    background:linear-gradient(135deg,#2563eb,#1d4ed8);

    color:#fff;

}

.profile-photo{

    width:140px;

    height:140px;

    border-radius:50%;

    object-fit:cover;

    border:5px solid rgba(255,255,255,.35);

    margin-bottom:18px;

}

.profile-header h2{

    font-size:32px;

    margin-bottom:8px;

}

.profile-header p{

    opacity:.9;

    font-size:15px;

}

.profile-role{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:8px 22px;

    margin-top:15px;

    border-radius:999px;

    background:rgba(255,255,255,.18);

    font-size:14px;

    font-weight:600;

}

/* ==========================================================
CONTENT
========================================================== */

.profile-content{

    display:grid;

    grid-template-columns:2fr 1fr;

    gap:25px;

    padding:30px;

}

.profile-info,
.profile-stat{

    background:#f8fafc;

    border-radius:18px;

    padding:25px;

}

body.dark-mode .profile-info,
body.dark-mode .profile-stat{

    background:#111827;

}

.profile-info h3,
.profile-stat h3{

    margin-bottom:22px;

    font-size:20px;

}

/* ==========================================================
TABLE
========================================================== */

.profile-info table{

    width:100%;

    border-collapse:collapse;

}

.profile-info tr{

    border-bottom:1px solid #e5e7eb;

}

body.dark-mode .profile-info tr{

    border-color:#374151;

}

.profile-info th{

    width:220px;

    text-align:left;

    padding:14px 12px;

    font-weight:600;

}

.profile-info td{

    padding:14px 12px;

    color:#475569;

    word-break:break-word;

}

body.dark-mode .profile-info td{

    color:#d1d5db;

}

/* ==========================================================
STATISTIK
========================================================== */

.stat-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:16px;

}

.stat-box{

    background:#fff;

    padding:20px;

    border-radius:15px;

    text-align:center;

    transition:.25s;

}

.stat-box:hover{

    transform:translateY(-3px);

}

body.dark-mode .stat-box{

    background:#1f2937;

}

.stat-box h4{

    font-size:28px;

    color:#2563eb;

    margin-bottom:8px;

}

.stat-box p{

    font-size:13px;

    color:#64748b;

}

body.dark-mode .stat-box p{

    color:#cbd5e1;

}

/* ==========================================================
ACTION BUTTON
========================================================== */

.profile-action{

    display:flex;

    justify-content:center;

    align-items:center;

    flex-wrap:wrap;

    gap:18px;

    padding:30px;

    border-top:1px solid #e5e7eb;

}

body.dark-mode .profile-action{

    border-color:#374151;

}

.btn-primary,
.btn-secondary,
.btn-danger{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    min-width:190px;

    height:50px;

    padding:0 24px;

    border-radius:12px;

    text-decoration:none;

    color:#fff;

    font-weight:600;

    transition:.25s;

}

.btn-primary{

    background:#2563eb;

}

.btn-primary:hover{

    background:#1d4ed8;

    transform:translateY(-2px);

}

.btn-secondary{

    background:#374151;

}

.btn-secondary:hover{

    background:#1f2937;

    transform:translateY(-2px);

}

.btn-danger{

    background:#dc2626;

}

.btn-danger:hover{

    background:#b91c1c;

    transform:translateY(-2px);

}

body.dark-mode .btn-secondary{

    background:#4b5563;

}

body.dark-mode .btn-secondary:hover{

    background:#374151;

}

/* ==========================================================
DESKTOP BESAR
========================================================== */

@media (min-width:1400px){

    .profile-page{

        max-width:1450px;

    }

}

/* ==========================================================
TABLET
========================================================== */

@media (max-width:992px){

    .profile-content{

        grid-template-columns:1fr;

    }

    .stat-grid{

        grid-template-columns:repeat(4,1fr);

    }

}

/* ==========================================================
MOBILE
========================================================== */

@media (max-width:768px){

    .profile-btn{

        display:none;

    }

    .mobile-profile{

        display:block;

    }

    .profile-page{

        padding:12px;

        margin:20px auto;

    }

    .profile-header{

        padding:35px 20px;

    }

    .profile-header h2{

        font-size:26px;

    }

    .profile-photo{

        width:100px;

        height:100px;

    }

    .profile-content{

        padding:18px;

    }

    .profile-info,
    .profile-stat{

        padding:18px;

    }

    .profile-info table,
    .profile-info tbody,
    .profile-info tr,
    .profile-info th,
    .profile-info td{

        display:block;

        width:100%;

    }

    .profile-info tr{

        padding:12px 0;

    }

    .profile-info th{

        padding:0;

        margin-bottom:5px;

    }

    .profile-info td{

        padding:0;

    }

    .stat-grid{

        grid-template-columns:repeat(2,1fr);

    }

    .profile-action{

        flex-direction:column;

        align-items:stretch;

    }

    .btn-primary,
    .btn-secondary,
    .btn-danger{

        width:100%;

    }

}

/* ==========================================================
HP KECIL
========================================================== */

@media (max-width:480px){

    .profile-header{

        padding:30px 15px;

    }

    .profile-photo{

        width:85px;

        height:85px;

    }

    .profile-header h2{

        font-size:22px;

    }

    .profile-role{

        font-size:12px;

        padding:6px 16px;

    }

    .stat-grid{

        grid-template-columns:1fr;

    }

    .stat-box h4{

        font-size:24px;

    }

}

/* ==========================================================
   GANTI PASSWORD
========================================================== */

.change-password-page{
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:calc(100vh - 120px);
    padding:40px 20px;
    box-sizing:border-box;
}

.change-password-card{
    width:100%;
    max-width:520px;
    background:#ffffff;
    padding:35px;
    border-radius:16px;
    box-shadow:0 12px 30px rgba(0,0,0,.08);
    box-sizing:border-box;
}

.change-password-card h2{
    margin:0 0 25px;
    text-align:center;
    font-size:28px;
    font-weight:700;
    color:#1f2937;
}

.form-group{
    margin-bottom:20px;
}

.form-group label{
    display:block;
    margin-bottom:8px;
    font-size:15px;
    font-weight:600;
    color:#374151;
}

.form-group input{
    width:100%;
    padding:14px 16px;
    border:1px solid #d1d5db;
    border-radius:10px;
    font-size:15px;
    outline:none;
    transition:.25s;
    box-sizing:border-box;
    background:#fff;
}

.form-group input:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.15);
}

.alert{
    padding:14px 16px;
    border-radius:10px;
    margin-bottom:20px;
    font-size:14px;
    font-weight:500;
}

.alert-success{
    color:#166534;
    background:#dcfce7;
    border:1px solid #86efac;
}

.alert-danger{
    color:#991b1b;
    background:#fee2e2;
    border:1px solid #fca5a5;
}

/* ==========================================================
   TOMBOL
========================================================== */

.change-password-card form{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.btn-primary,
.btn-secondary{
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    padding:14px;
    border:none;
    border-radius:10px;
    text-decoration:none;
    cursor:pointer;
    font-size:15px;
    font-weight:600;
    transition:.25s;
    box-sizing:border-box;
}

.btn-primary{
    background:#2563eb;
    color:#fff;
}

.btn-primary:hover{
    background:#1d4ed8;
}

.btn-secondary{
    background:#6b7280;
    color:#fff;
}

.btn-secondary:hover{
    background:#4b5563;
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width:992px){

    .change-password-page{
        padding:30px 20px;
    }

    .change-password-card{
        max-width:600px;
        padding:30px;
    }

    .change-password-card h2{
        font-size:25px;
    }

}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width:768px){

    .change-password-page{
        padding:20px 15px;
        align-items:flex-start;
    }

    .change-password-card{
        padding:25px 20px;
        border-radius:14px;
    }

    .change-password-card h2{
        font-size:22px;
        margin-bottom:20px;
    }

    .form-group{
        margin-bottom:18px;
    }

    .form-group input{
        padding:13px 14px;
        font-size:14px;
    }

    .change-password-card form{
        flex-direction:column;
    }

    .btn-primary,
    .btn-secondary{
        width:100%;
    }

}

/* ==========================================================
   MOBILE KECIL
========================================================== */

@media (max-width:480px){

    .change-password-page{
        padding:15px 10px;
    }

    .change-password-card{
        padding:20px 15px;
        border-radius:12px;
    }

    .change-password-card h2{
        font-size:20px;
    }

    .form-group label{
        font-size:14px;
    }

    .form-group input{
        font-size:14px;
        padding:12px;
    }

    .btn-primary,
    .btn-secondary{
        padding:13px;
        font-size:14px;
    }

}

/* CSS EDIT PROFIL */
/* ==========================================================
   EDIT PROFIL
========================================================== */

.edit-profile-page{
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:calc(100vh - 120px);
    padding:40px 20px;
    box-sizing:border-box;
}

.edit-profile-card{
    width:100%;
    max-width:650px;
    background:#ffffff;
    border-radius:16px;
    padding:35px;
    box-shadow:0 12px 30px rgba(0,0,0,.08);
    box-sizing:border-box;
}

.edit-profile-card h2{
    margin:0 0 30px;
    text-align:center;
    color:#1f2937;
    font-size:28px;
    font-weight:700;
}

/* ==========================================================
   AVATAR
========================================================== */

.avatar-preview{
    display:flex;
    justify-content:center;
    margin-bottom:25px;
}

.avatar-preview img{
    width:130px;
    height:130px;
    object-fit:cover;
    border-radius:50%;
    border:4px solid #2563eb;
    box-shadow:0 8px 20px rgba(37,99,235,.15);
}

/* ==========================================================
   FORM
========================================================== */

.form-group{
    margin-bottom:20px;
}

.form-group label{
    display:block;
    margin-bottom:8px;
    font-size:15px;
    font-weight:600;
    color:#374151;
}

.form-group input{
    width:100%;
    padding:14px 16px;
    font-size:15px;
    border:1px solid #d1d5db;
    border-radius:10px;
    outline:none;
    transition:.25s;
    box-sizing:border-box;
    background:#fff;
}

.form-group input:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.15);
}

.form-group input[type=file]{
    padding:10px;
    cursor:pointer;
}

/* ==========================================================
   ALERT
========================================================== */

.alert{
    padding:14px 16px;
    margin-bottom:20px;
    border-radius:10px;
    font-size:14px;
    font-weight:500;
}

.alert-success{
    color:#166534;
    background:#dcfce7;
    border:1px solid #86efac;
}

.alert-danger{
    color:#991b1b;
    background:#fee2e2;
    border:1px solid #fca5a5;
}

/* ==========================================================
   BUTTON
========================================================== */

.edit-profile-card form{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.btn-primary,
.btn-secondary{
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    padding:14px;
    border:none;
    border-radius:10px;
    text-decoration:none;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:.25s;
    box-sizing:border-box;
}

.btn-primary{
    background:#2563eb;
    color:#fff;
}

.btn-primary:hover{
    background:#1d4ed8;
    transform:translateY(-2px);
}

.btn-secondary{
    background:#6b7280;
    color:#fff;
}

.btn-secondary:hover{
    background:#4b5563;
    transform:translateY(-2px);
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width:992px){

    .edit-profile-page{
        padding:30px 20px;
    }

    .edit-profile-card{
        max-width:600px;
        padding:30px;
    }

    .edit-profile-card h2{
        font-size:25px;
    }

}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width:768px){

    .edit-profile-page{
        padding:20px 15px;
        align-items:flex-start;
    }

    .edit-profile-card{
        padding:25px 20px;
        border-radius:14px;
    }

    .edit-profile-card h2{
        font-size:22px;
        margin-bottom:25px;
    }

    .avatar-preview img{
        width:110px;
        height:110px;
    }

    .form-group{
        margin-bottom:18px;
    }

    .form-group input{
        padding:13px 14px;
        font-size:14px;
    }

    .edit-profile-card form{
        flex-direction:column;
    }

    .btn-primary,
    .btn-secondary{
        width:100%;
    }

}

/* ==========================================================
   MOBILE KECIL
========================================================== */

@media (max-width:480px){

    .edit-profile-page{
        padding:15px 10px;
    }

    .edit-profile-card{
        padding:20px 15px;
        border-radius:12px;
    }

    .edit-profile-card h2{
        font-size:20px;
    }

    .avatar-preview img{
        width:90px;
        height:90px;
    }

    .form-group label{
        font-size:14px;
    }

    .form-group input{
        font-size:14px;
        padding:12px;
    }

    .btn-primary,
    .btn-secondary{
        padding:13px;
        font-size:14px;
    }

}

/* ==========================================
   USER INFO SIDEBAR MOBILE
========================================== */

/* Sembunyikan secara default (Desktop & Tablet) */
.mobile-user-info{
    display:none;
    list-style:none;
    padding:18px 20px;
    border-bottom:1px solid #ececec;
}

.mobile-user-info a{
    display:flex;
    align-items:center;
    text-decoration:none;
    color:#222;
}

.mobile-user-info img{
    width:52px;
    height:52px;
    border-radius:50%;
    object-fit:cover;
    margin-right:14px;
    border:2px solid #2563eb;
}

.mobile-user-text{
    display:flex;
    flex-direction:column;
}

.mobile-user-name{
    font-size:16px;
    font-weight:700;
    color:#111827;
}

.mobile-user-text small{
    color:#6b7280;
    font-size:13px;
    margin-top:3px;
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width:768px){

    .mobile-user-info{
        display:block;
    }

}

/* ==================================================
FIX POSISI
================================================== */

.header{

    position:relative;

    overflow:visible !important;
}


/* ==========================
SLIDER
========================== */

.slider-section{
    padding:15px;
}

.slider{
    position:relative;
    overflow:hidden;
    border-radius:16px;
    box-shadow:
        0 6px 15px rgba(0,0,0,.08),
        0 15px 35px rgba(0,0,0,.12);

    max-height:500px;
}

.slide{
    display:none;
}

.slide.active{
    display:block;
}

.slide img{
    width:100%;
    height:500px;
    object-fit:cover;
    display:block;
}

@media(max-width:991px){

    .slide img{
        height:400px;
    }

}

@media(max-width:768px){

    .slide img{
        height:280px;
    }

}

@media(max-width:480px){

    .slide img{
        height:220px;
    }

}

/* ==========================
DOTS
========================== */

.slider-dots{
    text-align:center;
    margin-top:15px;
}

.dot{
    width:8px;
    height:8px;
    background:#cbd5e1;
    border-radius:50%;
    display:inline-block;
    margin:0 4px;
    cursor:pointer;
    transition:.3s ease;
}

.dot.active{
    width:20px;
    border-radius:20px;
    background:#2563eb;
}

/* ==========================
TABLET
========================== */

@media(max-width:991px){

    .menu li a{
        font-size:13px;
        padding:20px 8px;
    }

}

/* ==========================
MOBILE
========================== */

@media(max-width:768px){

    .header{
        position:relative;
        flex-wrap:wrap;
        min-height:70px;
        padding:10px 15px;
    }

    .header-actions{
        display:flex;
        align-items:center;
        gap:4px;
        margin-left:auto;
        z-index:10;
    }

    .menu-toggle{
        display:block;
        z-index:10;
    }

    .menu{
        display:none;
        width:100%;
        flex-direction:column;
        margin-top:15px;
    }

    .menu.active{
        display:flex;
    }

    .menu li{
        width:100%;
    }

    .menu li a{
        width:100%;
        padding:15px 0;
        border-bottom:1px solid #eee;
    }

    .search-btn{
        margin-left:auto;
    }

}

/* ==========================
SMALL MOBILE
========================== */

@media(max-width:480px){

    .slider-section{
        padding:10px;
    }

}

/* ==========================
TOP BAR
========================== */

.top-bar{
    height:40px;
    background:#0f172a;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 15px;
    font-size:14px;
}

.current-time{
    font-weight:500;
}

.social-media{
    display:flex;
    align-items:center;
    gap:15px;
}

.social-media a{
    color:#fff;
    text-decoration:none;
    font-size:15px;
    transition:.3s;
}

.social-media a:hover{
    color:#3b82f6;
    transform:translateY(-2px);
}

/* ==========================
THEME TOGGLE
========================== */

.theme-toggle{
    width:36px;
    height:36px;
    border-radius:50%;
    background:#f1f5f9;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:.3s;
    font-size:16px;
    color:#111827;
}

.theme-toggle:hover{
    transform:scale(1.08);
}

/* ==========================
DARK MODE
========================== */

body.dark-mode{
    background:#0f172a;
    color:#e2e8f0;
}

body.dark-mode .container{
    background:#111827;
}

body.dark-mode .header{
    background:#111827;
    border-color:#374151;
}

body.dark-mode .menu li a{
    color:#e2e8f0;
}

body.dark-mode .menu li a:hover{
    color:#60a5fa;
}

body.dark-mode .menu li a.active{
    color:#60a5fa;
}

body.dark-mode .banner-top{
    background:#111827;
}

body.dark-mode .slider{
    border-color:#374151;
}

body.dark-mode .dot{
    background:#475569;
}

body.dark-mode .dot.active{
    background:#60a5fa;
}

body.dark-mode .theme-toggle{
    background:#1e293b;
    color:#facc15;
}

body.dark-mode .search-btn{
    color:#e2e8f0;
}

body.dark-mode .menu-toggle{
    color:#e2e8f0;
}

body.dark-mode .top-bar{
    background:#020617;
}



/* ==========================
BERITA SECTION (FULL UPDATE)
========================== */

.news-wrapper{
    display:grid;
    grid-template-columns: 2fr 1fr;
    gap:22px;
    padding:15px 12px 25px;
}

.news-content{
    display:block;
}

/* ==========================
SLIDE BERITA
========================== */

.news-slide{
    display:grid;
    grid-template-columns:1.35fr 1fr;
    gap:18px;
    width:100%;
}

.news-slide .headline-news{
    width:100%;
}

.news-slide .news-list{
    width:100%;
}

.small-news{
    text-decoration:none;
    color:inherit;
}

.headline-news h2 a{
    color:inherit;
    text-decoration:none;
}

.headline-news h2 a:hover{
    color:#2563eb;
}

.headline-image{
    display:block;
    text-decoration:none;
}

.news-area{
    width:100%;
    min-width:0;
}

/* ==========================
ELLIPSIS JUDUL BERITA
========================== */

/* headline judul */
.headline-news h2{
    display: -webkit-box;
    -webkit-line-clamp: 2; /* maksimal 2 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* small news judul */
.small-news h4{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ==========================
NEWSFLASH
========================== */

.newsflash{
    display:flex;
    align-items:center;
    width:100%;
    height:42px;
    border:1px solid #e2e8f0;
    margin-bottom:25px;
    overflow:hidden;
    background:#fff;
}

.newsflash-label{
    height:100%;
    padding:0 16px;
    background:#2563eb;
    color:#fff;

    display:flex;
    align-items:center;
    gap:8px;

    font-size:13px;
    font-weight:700;
    flex-shrink:0;
}

.newsflash-text{
    flex:1;
    min-width:0;
    padding:0 15px;

    font-size:13px;
    color:#334155;

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;

    transition:.4s ease;
}

.newsflash-text.fade{
    opacity:0;
    transform:translateY(6px);
}

.newsflash-control{
    display:flex;
    flex-shrink:0;
}

.newsflash-control button{
    width:38px;
    height:40px;
    background:#fff;
    border:none;
    border-left:1px solid #e2e8f0;
    cursor:pointer;
    color:#334155;
    transition:.3s;
}

.newsflash-control button:hover{
    background:#f8fafc;
}

@media (max-width: 991px) {

    /* sembunyikan teks NEWSFLASH */
    .newsflash-label span {
        display: none;
    }

    /* rapikan label jadi icon saja */
    .newsflash-label {
        padding: 0 12px;
        gap: 0;
    }

    /* optional: icon lebih clean */
    .newsflash-label i {
        font-size: 15px;
    }
}

/* ==========================
SECTION TITLE
========================== */

.section-title{
    margin-bottom:18px;
    padding-bottom:12px;
    border-bottom:1px solid #e2e8f0;
}

.section-title h3{
    font-size:16px;
    font-weight:700;
    color:#111827;
    position:relative;
}

.section-title h3 span{
    color:#2563eb;
}

.section-title h3::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-13px;

    width:45px;
    height:3px;

    background:#2563eb;
}

/* ==========================
HEADLINE NEWS
========================== */

.headline-news{
    width:100%;
}

.headline-image{
    position:relative;
    overflow:hidden;
    border-radius:10px;
    margin-bottom:12px;
}

.headline-image img{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
    transition:.4s;
}

.headline-image:hover img{
    transform:scale(1.05);
}

.category{
    position:absolute;
    left:10px;
    bottom:10px;

    background:#2563eb;
    color:#fff;

    padding:4px 10px;
    font-size:11px;
    font-weight:600;
    border-radius:3px;
}

.headline-news h2{
    font-size:26px;
    line-height:1.4;
    color:#111827;
    margin-bottom:8px;
}

.news-meta{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    font-size:12px;
    color:#64748b;
    margin-bottom:12px;
}

.news-meta i{
    color:#2563eb;
}

.headline-news p{
    color:#475569;
    line-height:1.7;
    font-size:14px;
}

.btn-read{
    display:inline-block;
    margin-top:14px;
    padding:8px 18px;
    border:1px solid #cbd5e1;
    color:#334155;
    text-decoration:none;
    font-size:12px;
    font-weight:600;
    transition:.3s;
}

.btn-read:hover{
    background:#2563eb;
    color:#fff;
    border-color:#2563eb;
}

/* ==========================
LIST BERITA
========================== */

.news-list{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.small-news{
    display:flex;
    gap:12px;
}

.small-news img{
    width:120px;
    height:75px;
    object-fit:cover;
    border-radius:6px;
}

.small-news h4{
    font-size:14px;
    color:#111827;
    margin-bottom:6px;
    transition:.3s;
}

.small-news:hover h4{
    color:#2563eb;
}

.small-news span{
    font-size:11px;
    color:#ffffff;
}

/* ==========================
SIDEBAR
========================== */

.sidebar{
    display:flex;
    flex-direction:column;
    gap:22px;
}

.widget h3{
    font-size:16px;
    font-weight:700;
    color:#111827;
    margin-bottom:18px;
    position:relative;
    padding-bottom:12px;
    border-bottom:1px solid #e2e8f0;
}

.widget h3::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-1px;

    width:45px;
    height:3px;

    background:#2563eb;
}

.widget ul{
    list-style:none;
}

.widget li{
    padding:12px 0;
    border-bottom:1px solid #e2e8f0;
    font-size:14px;
    color:#334155;
}

/* ==========================
RESPONSIVE
========================== */

@media(max-width:991px){

    .news-wrapper{
        grid-template-columns:1fr;
    }

    .news-slide{
        grid-template-columns:1fr;
    }

    .headline-news h2{
        font-size:22px;
    }
}

@media(max-width:600px){

    .headline-image img{
        height:200px;
    }

    .headline-news h2{
        font-size:20px;
    }

    .widget h3{
        font-size:20px;
    }
}

/* ==========================
FORCE NEWS LIST HORIZONTAL (MOBILE + TABLET)
========================== */

@media(max-width:991px){

    .small-news{
        display:flex;
        flex-direction:row !important;
        align-items:flex-start;
        gap:12px;
    }

    .small-news img{
        width:120px;
        height:75px;
        object-fit:cover;
        flex-shrink:0;
    }
}

@media(max-width:600px){

    .small-news{
        flex-direction:row !important;
    }

    .small-news img{
        width:110px;
        height:75px;
    }
}

/* ==========================
DARK MODE NEWS SECTION
========================== */

body.dark-mode .news-wrapper,
body.dark-mode .news-content{
    background:transparent;
}

body.dark-mode .headline-news h2,
body.dark-mode .small-news h4,
body.dark-mode .widget h3{
    color:#e2e8f0;
}

body.dark-mode .headline-news p{
    color:#cbd5e1;
}

body.dark-mode .small-news span{
    color:#94a3b8;
}

body.dark-mode .widget li{
    border-color:#334155;
    color:#cbd5e1;
}

body.dark-mode .section-title h3{
    color:#e2e8f0;
}

body.dark-mode .newsflash{
    background:#0f172a;
    border-color:#334155;
}

body.dark-mode .newsflash-text{
    color:#e2e8f0;
}

body.dark-mode .newsflash-control button{
    background:#0f172a;
    color:#e2e8f0;
    border-color:#334155;
}

body.dark-mode .btn-read{
    color:#e2e8f0;
    border-color:#475569;
}

body.dark-mode .btn-read:hover{
    background:#2563eb;
    color:#fff;
}


/* ==========================
NAVIGASI BERITA
========================== */

.news-navigation{
    grid-column: 1 / -1;

    display:flex;
    align-items:center;
    justify-content:center;

    margin-top:16px;
}


.nav-line{
    flex:1;
    height:1px;
    background:#e2e8f0;
}


.news-arrow{
    display:flex;
    gap:8px;
    margin:0 16px;
}


.news-arrow button{
    width:34px;
    height:34px;

    border:1px solid #d1d5db;
    background:#fff;

    cursor:pointer;

    font-size:13px;
    color:#334155;

    transition:.25s ease;
}


.news-arrow button:hover{
    background:#2563eb;
    color:#fff;
    border-color:#2563eb;
}


/* ==========================
DARK MODE
========================== */

body.dark-mode .nav-line{
    background:#334155;
}


body.dark-mode .news-arrow button{
    background:#111827;
    color:#e2e8f0;
    border-color:#334155;
}


body.dark-mode .news-arrow button:hover{
    background:#2563eb;
    border-color:#2563eb;
    color:#fff;
}

/* ==========================
AGENDA MODERN
========================== */

.agenda-widget{
    background:#ffffff;
}


.agenda-header{

    display:flex;
    align-items:center;
    justify-content:center;

    gap:15px;

    padding:12px;
    margin-bottom:10px;

    background:#f8fafc;
    border-radius:10px;
}


.agenda-header button{

    width:30px;
    height:30px;

    border:none;
    border-radius:50%;

    background:#ffffff;
    color:#334155;

    cursor:pointer;
    transition:.3s;
}


.agenda-header button:hover{

    background:#2563eb;
    color:#fff;

}


.agenda-header span{

    font-weight:600;
    color:#111827;

}


/* LIST AGENDA */

.agenda-list{

    max-height:350px;
    overflow-y:auto;

    border:1px solid #e2e8f0;
    border-radius:12px;
}


/* SCROLL */

.agenda-list::-webkit-scrollbar{

    width:7px;

}


.agenda-list::-webkit-scrollbar-thumb{

    background:#cbd5e1;
    border-radius:10px;

}


.agenda-item{

    display:flex;

    gap:15px;

    padding:15px;

    border-bottom:1px solid #e2e8f0;

}


.agenda-item:last-child{

    border-bottom:none;

}


/* TANGGAL */

.agenda-date{

    min-width:65px;

    font-size:13px;
    font-weight:700;

    color:#2563eb;

}


/* ISI AGENDA */

.agenda-info{

    display:flex;

    gap:8px;

    font-size:14px;

    color:#334155;

    line-height:1.5;

}


.agenda-info .dot{

    width:8px;
    height:8px;

    margin-top:7px;

    background:#16a34a;

    border-radius:50%;

    flex-shrink:0;

}


/* ==========================
RESPONSIVE
========================== */

@media(max-width:600px){

    .agenda-item{

        flex-direction:column;

        gap:6px;

    }


    .agenda-date{

        min-width:auto;

    }

}

@media(max-width:768px){

    .agenda-widget{
        margin-top:35px;
    }

}


/* ==========================
AGENDA LIGHT & DARK MODE FIX (FULL SYNC)
========================== */

/* default (light mode) */
.agenda-widget{
    background:#ffffff;
    color:#111827;
}

/* header sudah oke, kita tambah stabilitas */
.agenda-header{
    background:#f8fafc;
}

/* list background */
.agenda-list{
    background:#ffffff;
}

/* item hover feel (biar modern) */
.agenda-item{
    transition:.2s;
}

.agenda-item:hover{
    background:#f8fafc;
}

/* tanggal lebih konsisten */
.agenda-date{
    color:#2563eb;
}

/* dot tetap hijau (light mode) */
.agenda-info .dot{
    background:#16a34a;
}

/* ==========================
DARK MODE FIX
========================== */

body.dark-mode .agenda-widget{
    background:#111827;
    color:#e2e8f0;
}

body.dark-mode .agenda-header{
    background:#1e293b;
}

body.dark-mode .agenda-list{
    background:#111827;
}

body.dark-mode .agenda-item:hover{
    background:#1e293b;
}

body.dark-mode .agenda-date{
    color:#60a5fa;
}

body.dark-mode .agenda-info{
    color:#cbd5e1;
}

body.dark-mode .agenda-info .dot{
    background:#22c55e;
}

body.dark-mode .agenda-header span{
    color:#e2e8f0 !important;
}

/* ==========================
FIX GRID OVERFLOW MOBILE
========================== */

.news-wrapper,
.news-content,
.news-area,
.sidebar{
    min-width:0;
}

.headline-news,
.news-list,
.small-news{
    min-width:0;
}

.newsflash{
    width:100%;
    max-width:100%;
}

.newsflash-text{
    min-width:0;
    width:0;
    flex:1;
}

html,
body{
    overflow-x:hidden;
}


/* MOBILE */
@media(max-width:768px){

    .container{
        width:100%;
        max-width:100%;
        overflow:hidden;
    }

    .news-wrapper{
        display:block;
        padding:15px;
    }

    .news-content{
        display:block;
    }

    .headline-news{
        margin-bottom:20px;
    }

}

/* ==========================
TERHUBUNG DENGAN KAMI
========================== */

.connect-widget{
    margin-top:20px;
    padding:18px;
    border:1px solid #e2e8f0;
    border-radius:12px;
}

.connect-widget h4{
    font-size:18px;
    font-weight:600;
    color:#111827;
    margin-bottom:15px;
}

.connect-social{
    display:flex;
    justify-content:center;
    gap:15px;
}

.connect-social a{
    width:48px;
    height:48px;
    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    text-decoration:none;
    font-size:20px;

    background:#f8fafc;
    color:#334155;

    transition:.3s;
}

.connect-social a:hover{
    transform:translateY(-3px);
}

.connect-social .tiktok:hover{
    background:#000;
    color:#fff;
}

.connect-social .instagram:hover{
    background:#E4405F;
    color:#fff;
}

.connect-social .facebook:hover{
    background:#1877F2;
    color:#fff;
}

.connect-social .youtube:hover{
    background:#FF0000;
    color:#fff;
}

/* DARK MODE */

body.dark-mode .connect-widget{
    border-color:#334155;
    background:#111827;
}

body.dark-mode .connect-widget h4{
    color:#e2e8f0;
}

body.dark-mode .connect-social a{
    background:#1e293b;
    color:#e2e8f0;
}

/* ==========================
WARTA & OPINI
========================== */

.warta-opini{
    max-width:1200px;
    margin:25px auto;
    padding:0 15px;

    display:grid;
    grid-template-columns:2fr 1fr;
    gap:30px;
}

/* HEADER */

.section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:18px;
    padding-bottom:12px;

    border-bottom:1px solid #e2e8f0;
}

.section-header h3{
    font-size:16px;
    font-weight:700;
    color:#111827;
    position:relative;
}

.section-header h3::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-13px;

    width:45px;
    height:3px;

    background:#2563eb;
}

/* TAB */

.warta-tabs{
    display:flex;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;
}

.warta-tabs a{
    text-decoration:none;
    color:#64748b;
    font-size:13px;
    font-weight:600;
    transition:.3s;
}

.warta-tabs a:hover{
    color:#2563eb;
}

.warta-tabs a.active{
    color:#111827;
}

/* ==========================
DESKTOP TAB
========================== */

.desktop-tabs{
    display:flex;
    align-items:center;
    gap:18px;
}

.desktop-tabs a{
    text-decoration:none;
    color:#64748b;
    font-size:13px;
    font-weight:600;
    transition:.3s;
}

.desktop-tabs a:hover{
    color:#2563eb;
}


/* ==========================
MORE MENU
========================== */

.warta-more{
    position:relative;
}

/* Tombol titik tiga modern */

.more-btn{
    width:28px;
    height:28px;
    border:none;
    background:none;
    cursor:pointer;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:3px;

    transition:0.3s;
}

.more-btn span{
    width:4px;
    height:4px;
    background:#111827;
    border-radius:50%;
    transition:0.3s;
}


/* Ketika menu terbuka berubah menjadi X */

.warta-more.active .more-btn span:nth-child(1){
    transform:
        translateY(7px)
        rotate(45deg);

    width:16px;
    height:2px;
    border-radius:2px;
}


.warta-more.active .more-btn span:nth-child(2){
    opacity:0;
}


.warta-more.active .more-btn span:nth-child(3){
    transform:
        translateY(-7px)
        rotate(-45deg);

    width:16px;
    height:2px;
    border-radius:2px;
}

.more-menu{
    position:absolute;
    top:30px;
    right:0;

    width:130px;

    background:#ffffff;
    border:1px solid #e5e7eb;

    box-shadow:0 5px 15px rgba(0,0,0,.12);

    display:none;
    z-index:999;
}

.more-menu a{
    display:block;
    padding:12px 15px;

    color:#64748b;
    font-size:13px;
    text-decoration:none;
}

.more-menu a:hover{
    background:#f8fafc;
}

/* Dropdown aktif */
.warta-more.active .more-menu{
    display:block;
}


/* GRID */

.warta-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;

    align-items:start;
    grid-auto-rows:auto;
}

.warta-item{
    display:flex;
    gap:12px;

    align-items:flex-start;
}

.warta-item img{
    width:120px;
    height:75px;
    object-fit:cover;
    border-radius:6px;
    flex-shrink:0;
}

.warta-item h4{

    margin:0;

    font-size:14px;
    font-weight:600;
    line-height:1.6;

    color:#111827;

    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;

    overflow:hidden;
    text-overflow:ellipsis;

    transition:.3s;
}

.warta-item:hover h4{
    color:#2563eb;
}


/* NAV */

.warta-navigation{
    display:flex;
    justify-content:center;
    gap:8px;

    margin:25px 0;
}

.warta-navigation button{
    width:34px;
    height:34px;

    border:1px solid #d1d5db;
    background:#fff;

    cursor:pointer;

    font-size:13px;
    color:#334155;

    transition:.25s ease;
}

.warta-navigation button:hover{
    background:#2563eb;
    color:#fff;
    border-color:#2563eb;
}


/* BANNER */

.event-banner{
    width:100%;
    margin-top:20px;
    overflow:hidden;
    border-radius:10px;
}

.event-banner a{
    display:block;
    width:100%;
}

.event-banner img{
    width:100%;
    height:auto;
    display:block;
    border-radius:10px;
}


/* OPINI */

.opini-feature{
    position:relative;
    overflow:hidden;
    border-radius:10px;
    margin-bottom:20px;
}

.opini-feature img{
    width:100%;
    height:280px;
    object-fit:cover;
    display:block;
}

.opini-feature .overlay{
    position:absolute;
    left:0;
    right:0;
    bottom:0;

    padding:20px;
    padding-bottom:38px;   /* beri ruang bawah */

    color:#fff;
    font-size:20px;
    font-weight:700;
    line-height:1.45;

    background:linear-gradient(
        transparent,
        rgba(0,0,0,.88)
    );

    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
    overflow:hidden;
}

.opini-feature a{
    display:block;
    color:inherit;
    text-decoration:none;
}

.opini-item a{
    color:inherit;
    text-decoration:none;
}

.opini-item h4 a{
    color:inherit;
}


.opini-list{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.opini-item{
    display:flex;
    gap:12px;
    align-items:flex-start;
}

.opini-item img{
    width:120px;
    height:75px;
    object-fit:cover;
    border-radius:6px;
    flex-shrink:0;
}

.opini-item h4{
    font-size:14px;
    font-weight:600;
    line-height:1.6;
    color:#111827;

    overflow:hidden;
    text-overflow:ellipsis;

    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;

    transition:.3s;
}

.opini-item:hover h4{
    color:#2563eb;
}

/* Default Desktop */
.desktop-tabs{
    display:flex;
    align-items:center;
    gap:18px;
}

.warta-more{
    display:none;
}


/* ==========================
DARK MODE
========================== */

body.dark-mode .section-header{
    border-color:#334155;
}

body.dark-mode .section-header h3,
body.dark-mode .warta-item h4,
body.dark-mode .opini-item h4{
    color:#e2e8f0;
}

body.dark-mode .warta-tabs a{
    color:#94a3b8;
}

body.dark-mode .warta-tabs a.active{
    color:#ffffff;
}

/* Dark dropdown */
body.dark-mode .more-btn span{
    background:#ffffff;
}

body.dark-mode .more-menu{
    background:#1e293b;
    border-color:#334155;
}

body.dark-mode .more-menu a{
    color:#cbd5e1;
}

body.dark-mode .more-menu a:hover{
    background:#334155;
}

body.dark-mode .event-banner{
    background:#1e293b;
    color:#cbd5e1;
}

body.dark-mode .warta-navigation button{
    background:#111827;
    color:#e2e8f0;
    border-color:#334155;
}

body.dark-mode .warta-navigation button:hover{
    background:#2563eb;
    border-color:#2563eb;
    color:#fff;
}


/* ==========================
TABLET
========================== */

@media(max-width:991px){

    .warta-opini{
        grid-template-columns:1fr;
    }

    .opini-feature img{
        height:240px;
    }

    .opini-feature .overlay{
        font-size:18px;
    }
}


/* ==========================
MOBILE
========================== */

@media(max-width:768px){

    .section-header{
        display:flex;
        justify-content:space-between;
        align-items:center;
    }

    .warta-tabs{
        display:flex;
        align-items:center;
        gap:14px;
        flex-wrap:nowrap;
    }

    .warta-tabs a{
        font-size:12px;
    }

    .more-btn{
        font-size:16px;
    }

    .warta-grid{
        grid-template-columns:1fr;
    }

    .event-banner{
        height:150px;
        font-size:20px;
    }

    .opini-feature img{
        height:250px;
    }

    .opini-feature .overlay{
        font-size:18px;
        padding:15px;
    }

    .warta-item,
    .opini-item{
        gap:12px;
    }

    .warta-item img,
    .opini-item img{
        width:110px;
        height:75px;
    }
}

/* ==========================
DESKTOP & TABLET
========================== */

@media(min-width:769px){

    .warta-more{
        display:none;
    }

}

/* ==========================
MOBILE
========================== */

@media(max-width:768px){

    .desktop-tabs{
        display:none;
    }

    .warta-more{
        display:block;
    }

    .section-header{
        display:flex;
        justify-content:space-between;
        align-items:center;
    }

    .warta-tabs{
        display:flex;
        align-items:center;
        gap:14px;
        flex-wrap:nowrap;
    }

    .warta-tabs a{
        font-size:12px;
    }

    .more-btn{
        font-size:16px;
    }

    .warta-grid{
        grid-template-columns:1fr;
    }

    .event-banner{
        height:150px;
        font-size:20px;
    }

    .opini-feature img{
        height:250px;
    }

    .opini-feature .overlay{
        font-size:18px;
        padding:15px;
    }

    .warta-item,
    .opini-item{
        gap:12px;
    }

    .warta-item img,
    .opini-item img{
        width:110px;
        height:75px;
    }
}

.warta-item h4 a{
    color:inherit;
    text-decoration:none;
}

.warta-item h4 a:hover{
    color:inherit;
}

.warta-item a{
    text-decoration:none;
}

/* ==========================
FOTO KEGIATAN
========================== */

.foto-section{
    max-width:1200px;
    margin:30px auto;
    padding:0 15px;
}


.foto-wrapper{
    overflow:hidden;
}


.foto-slider{
    display:flex;
    gap:18px;
    transition:0.6s ease;
}


.foto-item{
    flex:0 0 calc(20% - 15px);
    cursor:pointer;
}


.foto-image{
    position:relative;
    overflow:hidden;
    border-radius:10px;
}


.foto-image img{
    width:100%;
    height:190px;
    object-fit:cover;
    display:block;
    transition:.4s;
}


.foto-item:hover img{
    transform:scale(1.07);
}

.foto-link{
    display:block;
    text-decoration:none;
    color:inherit;
}

.foto-link:hover h4{
    color:#2563eb;
}

.foto-image{
    overflow:hidden;
}

.foto-image img{
    transition:.3s ease;
}

.foto-link:hover .foto-image img{
    transform:scale(1.05);
}

/* icon tengah */

.foto-image span{
    position:absolute;
    top:50%;
    left:50%;

    transform:translate(-50%, -50%);

    width:42px;
    height:42px;

    background:rgba(255,255,255,.9);
    color:#334155;

    border-radius:8px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:18px;
}


.foto-item h4{
    margin-top:12px;

    font-size:14px;
    line-height:1.6;

    color:#111827;
    font-weight:600;

    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
}


.foto-item:hover h4{
    color:#2563eb;
}


/* TABLET */

@media(max-width:991px){

    .foto-item{
        flex:0 0 calc(25% - 14px);
    }

}


/* MOBILE 2 KOLOM */

@media(max-width:768px){

    .foto-item{
        flex:0 0 calc(50% - 9px);
    }


    .foto-image img{
        height:140px;
    }


    .foto-item h4{
        font-size:13px;
    }

}


/* DARK MODE */

body.dark-mode .foto-item h4{
    color:#e2e8f0;
}

body.dark-mode .foto-image span{
    background:#1e293b;
    color:#fff;
}

/* ==========================
VIDEO SECTION
========================== */

.video-section{
    max-width:1200px;
    margin:35px auto;
    padding:0 15px;
}


.video-container{
    display:grid;
    grid-template-columns:2fr 1fr;
    background:#000;
    overflow:hidden;
}


/* ==========================
VIDEO UTAMA
========================== */

.video-player{
    position:relative;
    overflow:hidden;
}


.video-player img{
    width:100%;
    height:520px;
    object-fit:cover;
    display:block;
}


/* Overlay judul di dalam video */

.video-overlay{
    position:absolute;
    left:0;
    right:0;
    top:0;
    padding:18px 20px;

    background:linear-gradient(
        rgba(0,0,0,.75),
        transparent
    );

    color:#fff;
    z-index:2;
}


.video-overlay span{
    display:block;
    font-size:13px;
    color:#cbd5e1;
    margin-bottom:5px;
}


.video-overlay h3{
    font-size:18px;
    font-weight:700;
    line-height:1.5;
}


/* Tombol Play */

.play-button{
    position:absolute;
    top:50%;
    left:50%;

    transform:translate(-50%, -50%);

    width:90px;
    height:65px;

    border:none;
    background:#ff0000;
    color:#fff;

    border-radius:16px;
    font-size:40px;

    cursor:pointer;
    z-index:3;

    transition:.3s;
}


.play-button:hover{
    transform:translate(-50%, -50%) scale(1.1);
}


/* ==========================
PLAYLIST KANAN
========================== */

.video-list{
    background:#0f0f0f;
    display:flex;
    flex-direction:column;
    height:520px;
}


/* Header Currently Playing */
.playlist-header{
    background:#6b3fa0;
    padding:15px 18px;
    flex-shrink:0;
}


.playlist-header small{
    display:block;
    color:#e9d5ff;
    font-size:12px;
    margin-bottom:5px;
    text-transform:uppercase;
}


.playlist-header h4{
    color:#fff;
    font-size:14px;
    font-weight:600;
    line-height:1.5;

    display:-webkit-box;
    -webkit-line-clamp:1;
    -webkit-box-orient:vertical;
    overflow:hidden;
}


/* Bagian yang bisa di-scroll */

.playlist-scroll{
    flex:1;
    overflow-y:auto;
}


/* Scroll Custom */

.playlist-scroll::-webkit-scrollbar{
    width:7px;
}


.playlist-scroll::-webkit-scrollbar-thumb{
    background:#4b5563;
    border-radius:10px;
}


.playlist-scroll::-webkit-scrollbar-track{
    background:#111827;
}


/* Item Video */

.video-item{
    display:flex;
    gap:12px;

    padding:14px;
    background:#0f0f0f;

    border-bottom:1px solid #27272a;

    cursor:pointer;
    transition:.3s;
}


.video-item:hover{
    background:#1f2937;
}


/* Video yang aktif */

.video-item.active{
    background:#27272a;
    border-left:4px solid #7c3aed;
}


.video-item img{
    width:100px;
    height:65px;

    object-fit:cover;
    flex-shrink:0;
}


.video-item h4{
    color:#fff;
    font-size:14px;
    line-height:1.45;

    margin-bottom:6px;

    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
}


.video-item span{
    font-size:12px;
    color:#9ca3af;
    text-transform:uppercase;
}


/* ==========================
TABLET
========================== */

@media(max-width:991px){

    .video-container{
        grid-template-columns:1fr;
    }


    .video-player img{
        height:400px;
    }


    .video-list{
        height:360px;
    }
}


/* ==========================
MOBILE
========================== */

@media(max-width:768px){

    .video-player img{
        height:240px;
    }


    .video-overlay{
        padding:12px;
    }


    .video-overlay span{
        font-size:11px;
    }


    .video-overlay h3{
        font-size:15px;
        line-height:1.4;
    }


    .play-button{
        width:65px;
        height:45px;
        font-size:28px;
    }


    .playlist-header{
        padding:12px 15px;
    }


    .playlist-header h4{
        font-size:13px;
    }


    .video-item{
        padding:10px;
    }


    .video-item img{
        width:90px;
        height:60px;
    }


    .video-item h4{
        font-size:13px;
    }


    .video-list{
        height:300px;
    }
}

.video-player{
    position:relative;
}

#videoThumbnailContainer{
    position:relative;
}

#videoFrameContainer{
    width:100%;
    height:100%;
}

#mainVideoFrame{
    width:100%;
    height:100%;
    aspect-ratio:16/9;
}

/* ==========================
MATERI & SURAT EDARAN
========================== */

.materi-edaran-section{
    max-width:1200px;
    margin:30px auto;
    padding:0 15px;

    display:grid;
    grid-template-columns:2fr 1fr;
    gap:20px;
}

.materi-left{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.sidebar-right{
    display:flex;
    flex-direction:column;
    gap:20px;
}

/* ==========================================
   SURAT EDARAN LINK
========================================== */

.edaran-item h4 a{
    color: inherit;
    text-decoration: none;
    transition: .25s;
}

.edaran-item h4 a:hover{
    color: #2563eb;
    text-decoration: none;
}

/* ==========================
MATERI
========================== */

.content-box{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:20px;

    box-shadow:0 2px 8px rgba(0,0,0,.04);
    transition:.3s;
}

.content-box:hover{
    box-shadow:0 8px 25px rgba(0,0,0,.08);
}

.box-title{
    font-size:18px;
    font-weight:700;
    color:#111827;

    border-bottom:1px solid #e5e7eb;
    padding-bottom:12px;
    margin-bottom:25px;

    position:relative;
}

.box-title span{
    color:#2563eb;
}

.box-title::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-1px;

    width:50px;
    height:3px;

    background:#2563eb;
    border-radius:20px;
}

.box-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:22px;
}

.mini-post{
    display:flex;
    gap:15px;
    align-items:flex-start;
}

.mini-post img{
    width:140px;
    height:90px;

    object-fit:cover;
    border-radius:10px;

    flex-shrink:0;
}

.mini-post h4{
    font-size:14px;
    line-height:1.5;
    margin-bottom:8px;

    color:#111827;
    font-weight:600;

    transition:.3s;

    overflow:hidden;
    text-overflow:ellipsis;

    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
}

.mini-post:hover h4{
    color:#2563eb;
}

.mini-post span{
    font-size:12px;
    color:#94a3b8;
}

.mini-post i{
    color:#3b82f6;
}

.box-nav{
    margin-top:25px;
    display:flex;
    gap:10px;
}

.box-nav button{
    height:38px;
    padding:0 18px;

    border:1px solid #d1d5db;
    border-radius:8px;

    background:#fff;

    cursor:pointer;

    font-size:13px;
    font-weight:600;

    transition:.3s;
}

.box-nav button:hover{
    background:#2563eb;
    border-color:#2563eb;
    color:#fff;
}

/* ==========================
SURAT EDARAN
(TETAP SAMA SEPERTI CSS AWAL)
========================== */

.surat-edaran{
    border:1px solid #e5e7eb;
    background:#fff;
    padding:20px;
}

.edaran-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:25px 20px;
}

.edaran-item img{
    width:100%;
    height:170px;
    object-fit:cover;
    border-radius:12px;
    margin-bottom:12px;
}

.edaran-item h4{
    font-size:14px;
    line-height:1.6;
    color:#374151;
    font-weight:500;

    overflow:hidden;
    text-overflow:ellipsis;

    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
}

.edaran-nav{
    margin-top:30px;

    display:flex;
    justify-content:center;
    gap:12px;
}

.edaran-nav button{
    width:46px;
    height:46px;
    border:1px solid #d1d5db;
    background:#fff;
    cursor:pointer;

    transition:.3s;
}

.edaran-nav button:hover{
    background:#2563eb;
    color:#fff;
}

/* ==========================
DARK MODE
========================== */

body.dark-mode .content-box{
    background:#111827;
    border-color:#1f2937;
}

body.dark-mode .box-title{
    color:#f8fafc;
    border-color:#1f2937;
}

body.dark-mode .mini-post h4{
    color:#e5e7eb;
}

body.dark-mode .mini-post:hover h4{
    color:#60a5fa;
}

body.dark-mode .box-nav button{
    background:#1e293b;
    border-color:#334155;
    color:#e2e8f0;
}

body.dark-mode .box-nav button:hover{
    background:#2563eb;
    border-color:#2563eb;
}

/* Dark mode Surat Edaran */

body.dark-mode .surat-edaran{
    background:#111827;
    border-color:#1f2937;
}

body.dark-mode .edaran-item h4{
    color:#e5e7eb;
}

body.dark-mode .edaran-nav button{
    background:#1e293b;
    border-color:#334155;
    color:#e2e8f0;
}

body.dark-mode .edaran-nav button:hover{
    background:#2563eb;
    border-color:#2563eb;
}

/* ==========================
RESPONSIVE TABLET
========================== */

@media(max-width:991px){

    .materi-edaran-section{
        grid-template-columns:1fr;
    }

    .box-grid{
        grid-template-columns:1fr;
    }
}

/* ==========================
RESPONSIVE MOBILE
========================== */

@media(max-width:600px){

    .content-box,
    .surat-edaran{
        padding:15px;
    }

    /* tetap horizontal */
    .mini-post{
        flex-direction:row;
        gap:12px;
        align-items:flex-start;
    }

    .mini-post img{
        width:95px;
        height:68px;
        flex-shrink:0;
    }

    .mini-post h4{
        font-size:14px;
        line-height:1.4;
        margin-bottom:6px;

        -webkit-line-clamp:3;
    }

    .mini-post span{
        font-size:11px;
    }

    .box-grid{
        gap:18px;
    }

    .edaran-grid{
        grid-template-columns:1fr;
    }
}



/* ==========================
TAG POPULER
========================== */

.tag-populer{
    background:#fff;
    border:1px solid #e5e7eb;
    padding:20px;
}

.tag-list{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.tag-list a{
    text-decoration:none;

    padding:8px 14px;

    background:#f3f4f6;
    color:#374151;

    font-size:13px;
    font-weight:500;

    border-radius:30px;

    transition:.3s;
}

.tag-list a:hover{
    background:#2563eb;
    color:#fff;
}

/* ==========================
DARK MODE
========================== */

body.dark-mode .tag-populer{
    background:#111827;
    border-color:#1f2937;
}

body.dark-mode .tag-list a{
    background:#1e293b;
    color:#e5e7eb;
}

body.dark-mode .tag-list a:hover{
    background:#2563eb;
    color:#fff;
}

/* ==========================
KOMENTAR TERBARU
========================== */

.komentar-terbaru{
    margin-top:20px;

    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:12px;

    padding:20px;
}

.komentar-list{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.komentar-item{
    display:flex;
    gap:12px;

    padding-bottom:15px;
    border-bottom:1px solid #f1f5f9;
}

.komentar-item:last-child{
    border-bottom:none;
    padding-bottom:0;
}

.komentar-avatar{
    width:42px;
    height:42px;

    min-width:42px;
    min-height:42px;

    overflow:hidden;

    border-radius:50%;

    background:#2563eb;

    display:flex;
    align-items:center;
    justify-content:center;

    flex-shrink:0;
}

.komentar-avatar img{
    width:42px;
    height:42px;
    border-radius:50%;
    object-fit:cover;
    display:block;
}

.komentar-content h5{
    font-size:14px;
    color:#111827;
    margin-bottom:4px;
}

.komentar-content p{
    font-size:13px;
    line-height:1.6;
    color:#64748b;

    overflow:hidden;
    text-overflow:ellipsis;

    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
}

/* DARK MODE */

body.dark-mode .komentar-terbaru{
    background:#111827;
    border-color:#1f2937;
}

body.dark-mode .komentar-item{
    border-color:#1f2937;
}

body.dark-mode .komentar-content h5{
    color:#f8fafc;
}

body.dark-mode .komentar-content p{
    color:#94a3b8;
}



/* ==========================
SIDEBAR KANAN
========================== */

.sidebar-right{
    display:flex;
    flex-direction:column;
    gap:20px;
}

/* ==========================
STATISTIK
========================== */

.statistik-section{
    max-width:1200px;
    margin:25px auto;
    padding:0 15px;
}

.statistik-grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:18px;
}

.stat-card{

    background:#fff;

    border:1px solid #e5e7eb;
    border-radius:16px;

    padding:22px 18px;

    display:flex;
    align-items:center;
    gap:16px;

    transition:.3s;

    box-shadow:
        0 4px 14px rgba(15,23,42,.05);

}

.stat-card:hover{

    transform:translateY(-6px);

    border-color:#2563eb;

    box-shadow:
        0 12px 28px rgba(37,99,235,.15);

}

.stat-icon{

    width:58px;
    height:58px;

    border-radius:14px;

    background:#eff6ff;

    color:#2563eb;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:24px;

    flex-shrink:0;

}

.stat-content{
    flex:1;
}

.stat-content h3{

    font-size:28px;
    font-weight:700;

    color:#111827;

    line-height:1;

    margin-bottom:8px;

}

.stat-content p{

    font-size:13px;
    font-weight:500;

    color:#64748b;

    line-height:1.5;

}

/* ==========================
TABLET
========================== */

@media(max-width:992px){

    .statistik-grid{
        grid-template-columns:repeat(2,1fr);
        gap:18px;
    }

    .stat-card{
        padding:20px;
    }

}

/* ==========================
MOBILE
========================== */

@media(max-width:768px){

    .statistik-section{
        padding:0 12px;
    }

    .statistik-grid{
        grid-template-columns:repeat(2,1fr);
        gap:15px;
    }

    .stat-card{

        flex-direction:column;
        justify-content:center;
        align-items:center;

        text-align:center;

        padding:18px 15px;
    }

    .stat-icon{
        width:52px;
        height:52px;
        font-size:22px;
        margin-bottom:8px;
    }

    .stat-content h3{
        font-size:24px;
        margin-bottom:5px;
    }

    .stat-content p{
        font-size:13px;
        line-height:1.4;
    }

}

/* ==========================
SMALL MOBILE
========================== */

@media(max-width:420px){

    .statistik-grid{
        gap:12px;
    }

    .stat-card{
        padding:15px 10px;
    }

    .stat-content h3{
        font-size:22px;
    }

    .stat-content p{
        font-size:12px;
    }

}

/* ==========================
DARK MODE
========================== */

body.dark-mode .stat-card{

    background:#111827;

    border-color:#334155;

    box-shadow:none;

}

body.dark-mode .stat-card:hover{

    border-color:#60a5fa;

    box-shadow:
        0 12px 28px rgba(96,165,250,.15);

}

body.dark-mode .stat-icon{

    background:#1e3a8a;

    color:#93c5fd;

}

body.dark-mode .stat-content h3{
    color:#f8fafc;
}

body.dark-mode .stat-content p{
    color:#cbd5e1;
}

/* =====================================================
VIDEO STORY
===================================================== */

.video-story-section{
    max-width:1200px;
    margin:0px auto 40px; /* ⬅️ ini yang bikin lebih nempel ke Warta */
    padding:0 15px;
    position:relative;
}


/* =====================================================
BUTTON NAVIGATION
===================================================== */

.story-navigation{
    display:flex;
    gap:12px;
}

.story-navigation button{
    width:46px;
    height:46px;

    border:none;
    border-radius:50%;

    background:#ffffff;
    color:#374151;

    cursor:pointer;

    font-size:16px;

    transition:.3s;

    box-shadow:0 8px 25px rgba(0,0,0,.08);
}

.story-navigation button:hover{
    background:#2563eb;
    color:#fff;
    transform:translateY(-3px);
}

/* =====================================================
SLIDER
===================================================== */

.video-story-wrapper{
    overflow:hidden;
    position:relative;
}

.video-story-slider{
    display:flex;
    gap:18px;

    overflow-x:auto;
    overflow-y:hidden;

    scroll-behavior:smooth;

    scrollbar-width:none;

    cursor:grab;

    user-select:none;
}

.video-story-slider::-webkit-scrollbar{
    display:none;
}

.video-story-slider.active{
    cursor:grabbing;
}

/* =====================================================
CARD
===================================================== */

.story-card{
    flex:0 0 220px;
}

.story-card a{
    display:block;
    text-decoration:none;
    color:inherit;
}

/* =====================================================
IMAGE
===================================================== */

.story-image{
    position:relative;

    width:100%;
    aspect-ratio:9/16;

    overflow:hidden;

    border-radius:18px;

    background:#f5f5f5;

    box-shadow:
        0 10px 30px rgba(0,0,0,.10);
}

.story-image{

    position:relative;

    width:100%;

    aspect-ratio:9/16;

    overflow:hidden;

    border-radius:18px;

    background:#000;

    display:flex;
    align-items:center;
    justify-content:center;

}

.story-image img{

    width:100%;
    height:100%;

    object-fit:contain;

    display:block;

    transition:.45s;

}

/* =====================================================
PLAY BUTTON
===================================================== */

.story-play{
    position:absolute;
    left:12px;
    bottom:12px;

    width:36px;
    height:36px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#14b8a6;
    color:#fff;

    font-size:13px;

    box-shadow:0 8px 18px rgba(0,0,0,.25);
}

/* =====================================================
DURATION
===================================================== */

.story-duration{
    position:absolute;
    right:10px;
    bottom:10px;

    background:rgba(0,0,0,.82);

    color:#fff;

    padding:4px 10px;

    border-radius:8px;

    font-size:12px;
    font-weight:600;

    letter-spacing:.3px;
}

/* =====================================================
CONTENT
===================================================== */

.story-content{
    padding-top:14px;
}

.story-content h4{
    font-size:20px;
    font-weight:700;
    line-height:1.45;

    color:#111827;

    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;

    overflow:hidden;

    min-height:58px;
}

/* =====================================================
CHANNEL
===================================================== */

.story-channel{
    display:flex;
    align-items:center;
    gap:8px;

    margin-top:10px;

    font-size:15px;

    color:#6b7280;
}

.story-channel span{
    font-weight:500;
}

.story-channel i{
    color:#14b8a6;
    font-size:14px;
}

/* =====================================================
HOVER EFFECT
===================================================== */

.story-card{
    transition:.35s ease;
}

.story-card:hover{
    transform:translateY(-8px);
}

.story-card:hover .story-image img{
    transform:scale(1.08);
}

.story-card:hover .story-play{
    transform:scale(1.08);
    background:#2563eb;
}

.story-card:hover h4{
    color:#2563eb;
}

.story-play,
.story-image img,
.story-content h4{
    transition:.35s ease;
}

/* =====================================================
FOCUS
===================================================== */

.story-navigation button:focus-visible,
.story-card a:focus-visible{
    outline:3px solid #3b82f6;
    outline-offset:3px;
    border-radius:12px;
}

/* =====================================================
SCROLL SNAP
===================================================== */

.video-story-slider{
    scroll-snap-type:x mandatory;
}

.story-card{
    scroll-snap-align:start;
}

/* =====================================================
DESKTOP BESAR
===================================================== */

@media (min-width:1400px){

    .story-card{
        flex:0 0 225px;
    }

}

/* =====================================================
DESKTOP
===================================================== */

@media (max-width:1200px){

    .video-story-section{
        padding:0 20px;
    }

    .story-card{
        flex:0 0 210px;
    }

}

/* =====================================================
LAPTOP
===================================================== */

@media (max-width:992px){

    .story-card{
        flex:0 0 195px;
    }

    .story-content h4{
        font-size:17px;
        min-height:52px;
    }

    .story-channel{
        font-size:14px;
    }

    .story-navigation button{
        width:42px;
        height:42px;
    }

}

/* =====================================================
TABLET
===================================================== */

@media (max-width:768px){

    .video-story-section{
        margin:45px auto;
        padding:0 15px;
    }

    .video-story-header{
        margin-bottom:18px;
    }

    .video-story-header h3{
        font-size:26px;
    }

    .story-card{
        flex:0 0 180px;
    }

    .story-content{
        padding-top:12px;
    }

    .story-content h4{
        font-size:16px;
        min-height:48px;
        line-height:1.4;
    }

    .story-channel{
        font-size:13px;
    }

    .story-play{
        width:34px;
        height:34px;
        font-size:12px;
    }

    .story-duration{
        font-size:11px;
        padding:4px 8px;
    }

    .story-navigation{
        gap:8px;
    }

    .story-navigation button{
        width:38px;
        height:38px;
        font-size:14px;
    }

}

/* =====================================================
MOBILE
===================================================== */

@media (max-width:576px){

    .video-story-section{
        margin:35px auto;
    }

    .video-story-header{
        align-items:center;
    }

    .video-story-header h3{
        font-size:22px;
    }

    .video-story-header .title-line{
        height:22px;
    }

    .story-card{
        flex:0 0 155px;
    }

    .story-content h4{
        font-size:14px;
        min-height:42px;
    }

    .story-channel{
        margin-top:8px;
        font-size:12px;
    }

    .story-navigation button{
        width:34px;
        height:34px;
        font-size:12px;
    }

    .story-play{
        width:30px;
        height:30px;
        font-size:11px;
        left:10px;
        bottom:10px;
    }

    .story-duration{
        right:8px;
        bottom:8px;
        font-size:10px;
        padding:3px 7px;
    }

}

/* =====================================================
SMALL MOBILE
===================================================== */

@media (max-width:420px){

    .story-card{
        flex:0 0 145px;
    }

    .video-story-header h3{
        font-size:20px;
    }

}

/* =====================================================
LIGHT MODE
===================================================== */

body{

    --story-bg:#ffffff;
    --story-text:#111827;
    --story-sub:#6b7280;
    --story-button:#ffffff;
    --story-shadow:0 10px 30px rgba(0,0,0,.10);

}

/* =====================================================
DARK MODE
===================================================== */

body.dark-mode{

    --story-bg:#0f172a;
    --story-text:#f8fafc;
    --story-sub:#cbd5e1;
    --story-button:#1e293b;
    --story-shadow:0 12px 30px rgba(0,0,0,.45);

}

body.dark-mode .video-story-section{
    background:transparent;
}

body.dark-mode .video-story-header h3{
    color:var(--story-text);
}

body.dark-mode .story-content h4{
    color:var(--story-text);
}

body.dark-mode .story-channel{
    color:var(--story-sub);
}

body.dark-mode .story-image{
    box-shadow:var(--story-shadow);
}

body.dark-mode .story-navigation button{

    background:var(--story-button);
    color:#f8fafc;

}

body.dark-mode .story-navigation button:hover{

    background:#2563eb;
    color:#fff;

}

body.dark-mode .story-card:hover h4{
    color:#60a5fa;
}

/* =====================================================
SMOOTH ANIMATION
===================================================== */

.story-card,
.story-image,
.story-content,
.story-navigation button{
    transition:all .3s ease;
}

/* =====================================================
REDUCE MOTION
===================================================== */

@media (prefers-reduced-motion:reduce){

    .story-card,
    .story-image img,
    .story-navigation button,
    .story-play{
        transition:none;
    }

}


/* =======================================
VIDEO STORY MODAL
======================================= */

.story-modal{

    position:fixed;
    inset:0;
    background:rgba(0,0,0,.75);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:99999;
    padding:30px;

}

.story-comment-section{

    margin-top:28px;

}

.story-comment-list{

    min-height:180px;

    max-height:220px;

    overflow-y:auto;

    border:1px solid #e5e7eb;

    border-radius:16px;

    padding:18px;

    background:#fff;

    color:#777;

    margin-top:12px;

}

.story-comment-form{

    display:flex;
    align-items:center;
    gap:14px;

    margin-top:18px;

    padding:10px 14px 8px;   /* ← tambahkan space kiri & kanan */

    background:#fff;

    flex-shrink:0;

    box-sizing:border-box;

}

.story-comment-form input{

    flex:1;

    height:52px;

    border:1px solid #d1d5db;

    border-radius:14px;

    padding:0 16px;

    font-size:15px;

    outline:none;

}

.story-comment-form button{

    width:56px;

    height:56px;

    border:none;

    border-radius:50%;

    background:#2563eb;

    color:#fff;

    cursor:pointer;

    display:flex;

    align-items:center;

    justify-content:center;

    transition:.3s;

}

.story-comment-form button{

    flex-shrink:0;

}

.story-comment-form button:hover{

    background:#1d4ed8;

    transform:scale(1.05);

}

.story-comment-form button svg{

    width:24px;

    height:24px;

}

.story-comment-list::-webkit-scrollbar{

    width:6px;

}

.story-comment-list::-webkit-scrollbar-thumb{

    background:#cbd5e1;

    border-radius:20px;

}

.story-comment-list::-webkit-scrollbar-track{

    background:transparent;

}

.story-modal.active{

    display:flex;

}

.story-modal-box{

    position:relative;

    display:flex;

    align-items:stretch;

    width:auto;

    max-width:1100px;

    height:82vh;

    background:#fff;

    border-radius:20px;

    overflow:hidden;

    box-shadow:0 20px 60px rgba(0,0,0,.28);

    animation:storyPopup .25s ease;

}

@keyframes storyPopup{

    from{
        transform:scale(.95);
        opacity:0;
    }

    to{
        transform:scale(1);
        opacity:1;
    }

}

/* ==========================
VIDEO
========================== */

.story-modal-video{

    height:100%;

    aspect-ratio:9 / 16;

    flex:none;

    background:#000;

}

.story-modal-video video{

    width:100%;

    height:100%;

    display:block;

    object-fit:fill;

}

/* ==========================
DETAIL
========================== */

.story-modal-detail{

    width:430px;

    background:#fff;

    display:flex;

    flex-direction:column;

    overflow:hidden;

}

.story-modal-detail h2{

    font-size:22px;

    font-weight:800;

    line-height:1.35;

    margin:0 0 16px;

    color:#111;

}

.story-detail-scroll{

    flex:1;

    overflow-y:auto;

    min-height:0;

    padding:26px 28px 35px;

    box-sizing:border-box;

}

.story-meta{

    color:#666;

    font-size:15px;

    margin-bottom:22px;

}

.story-description{

    font-size:16px;

    line-height:1.9;

    color:#333;

    white-space:pre-line;

}

/* Scroll */

.story-modal-detail{

    scrollbar-width:thin;

}

.story-modal-detail::-webkit-scrollbar{

    width:7px;

}

.story-modal-detail::-webkit-scrollbar-track{

    background:transparent;

}

.story-modal-detail::-webkit-scrollbar-thumb{

    background:#c4c4c4;

    border-radius:30px;

}

/* ==========================
CLOSE
========================== */

.story-modal-close{

    position:absolute;

    top:18px;

    right:18px;

    width:42px;

    height:42px;

    border:none;

    border-radius:50%;

    background:#fff;

    cursor:pointer;

    font-size:22px;

    font-weight:bold;

    box-shadow:0 6px 18px rgba(0,0,0,.2);

    z-index:100;

    transition:.25s;

}

.story-modal-close:hover{

    transform:scale(1.08);

}

/* ==========================
TABLET
========================== */

@media(max-width:991px){

.story-modal{

    padding:0;

}

.story-modal-box{

    width:100%;

    height:100%;

    display:block;

    border-radius:0;

}

.story-modal-video{

    width:100%;

    height:55vh;

    aspect-ratio:auto;

}

.story-modal-detail{

    width:100%;

    height:45vh;

    padding:22px;

}

}

/* ==========================
MOBILE
========================== */

@media(max-width:576px){

.story-modal-video{

    height:45vh;

}

.story-modal-detail{

    height:55vh;

    padding:18px;

}

.story-modal-detail h2{

    font-size:20px;

}

.story-meta{

    font-size:14px;

}

.story-description{

    font-size:15px;

}

.story-modal-close{

    width:38px;

    height:38px;

    top:12px;

    right:12px;

}

}

/* =======================================
DESKRIPSI VIDEO
======================================= */

.story-description{

    font-size:16px;

    line-height:1.9;

    color:#333;

    white-space:pre-line;

    overflow:hidden;

    display:-webkit-box;

    -webkit-line-clamp:3;

    -webkit-box-orient:vertical;

    transition:.3s;

}

/* saat dibuka */

.story-description.show{

    display:block;

    overflow:visible;

}

/* tombol */

.story-read-more{

    margin-top:10px;

    border:none;

    background:none;

    color:#2563eb;

    font-weight:700;

    cursor:pointer;

    padding:0;

    font-size:15px;

}

.story-read-more:hover{

    text-decoration:underline;

}

/* =====================================================
VIDEO ACTION BAR
===================================================== */

.story-actions{

    display:flex;
    align-items:center;
    gap:16px;

    margin-top:28px;
    padding-top:18px;

    border-top:1px solid #ececec;

}

/* =====================================================
BUTTON
===================================================== */

.story-action-btn{

    display:flex;
    align-items:center;
    gap:8px;

    border:none;
    background:#f4f4f5;

    padding:10px 16px;

    border-radius:999px;

    cursor:pointer;

    transition:.25s;

    font-size:15px;

    font-weight:600;

    color:#444;

}

.story-action-btn:hover{

    background:#e5e7eb;

    transform:translateY(-2px);

}

/* =====================================================
ICON
===================================================== */

.action-icon{

    width:22px;
    height:22px;

    transition:.25s;

}

/* =====================================================
LOVE ACTIVE
===================================================== */

.story-action-btn.active-love{

    background:#ffe7ea;

    color:#e11d48;

}

.story-action-btn.active-love .love-icon{

    fill:#e11d48;
    stroke:#e11d48;

}

/* =====================================================
SAVE ACTIVE
===================================================== */

.story-action-btn.active-save{

    background:#fff7d6;

    color:#eab308;

}

.story-action-btn.active-save .save-icon{

    fill:#facc15;
    stroke:#eab308;

}

/* =====================================================
COUNTER
===================================================== */

.story-action-btn span{

    min-width:12px;

    text-align:center;

    font-weight:700;

}

/* =====================================================
SHARE POPUP
===================================================== */

.story-share-popup{

    position:absolute;

    right:30px;

    bottom:90px;

    display:none;

    flex-direction:column;

    min-width:220px;

    background:#fff;

    border-radius:16px;

    overflow:hidden;

    box-shadow:0 20px 45px rgba(0,0,0,.18);

    z-index:999;

}

.story-share-popup.show{

    display:flex;

}

.story-share-popup a{

    text-decoration:none;

    color:#333;

    padding:14px 18px;

    border-bottom:1px solid #f2f2f2;

    transition:.25s;

    font-weight:600;

}

.story-share-popup a:last-child{

    border-bottom:none;

}

.story-share-popup a:hover{

    background:#2563eb;

    color:#fff;

}

/* =====================================================
TABLET
===================================================== */

@media(max-width:991px){

.story-actions{

    justify-content:center;

    flex-wrap:wrap;

}

.story-share-popup{

    right:15px;
    bottom:85px;

}

}

/* =====================================================
MOBILE
===================================================== */

@media(max-width:576px){

.story-action-btn{

    flex:1;

    justify-content:center;

    padding:12px;

}

.action-icon{

    width:20px;
    height:20px;

}

.story-share-popup{

    width:calc(100% - 30px);

    left:15px;

    right:15px;

}

}

/* ==========================================
MODAL ARROW
========================================== */

.story-modal-nav{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:56px;

    height:56px;

    border:none;

    border-radius:50%;

    background:rgba(255,255,255,.95);

    color:#111;

    cursor:pointer;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:22px;

    z-index:100001;

    box-shadow:0 10px 30px rgba(0,0,0,.25);

    transition:.25s;

}

.story-modal-nav:hover{

    transform:translateY(-50%) scale(1.08);

    background:#2563eb;

    color:#fff;

}

.story-modal-prev{

    left:300px;

}

.story-modal-next{

    right:300px;

}

@media(max-width:1200px){

.story-modal-prev{

    left:15px;

}

.story-modal-next{

    right:15px;

}

}

@media(max-width:991px){

.story-modal-nav{

    display:none;

}

}


/* ==========================
FOOTER
========================== */

.footer-pramuka{
    background:#111827;
    color:#e2e8f0;
    margin-top:40px;
    border-top:1px solid #334155;
}

.footer-content{
    max-width:850px;
    margin:auto;
    padding:40px 20px 35px;
    text-align:center;
}

.footer-logo img{
    width:200px;
    max-width:100%;
    display:block;
    margin:0 auto 18px;
}

.footer-desc{
    max-width:650px;
    margin:0 auto;
    color:#94a3b8;
    font-size:15px;
    line-height:1.7;
}

.footer-desc strong{
    color:#ffffff;
    font-weight:600;
}

/* ==========================
SOSIAL MEDIA
========================== */

.footer-social{
    display:flex;
    justify-content:center;
    gap:12px;
    margin-top:22px;
}

.footer-social a{
    width:42px;
    height:42px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:#1e293b;
    border:1px solid #334155;

    color:#e2e8f0;
    text-decoration:none;

    transition:.3s ease;
}

.footer-social a:hover{
    background:#2563eb;
    border-color:#2563eb;
    color:#fff;
    transform:translateY(-3px);
}

.footer-social i{
    font-size:16px;
}

/* ==========================
BOTTOM
========================== */

.footer-bottom{
    border-top:1px solid #334155;
    padding:16px 25px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    color:#94a3b8;
}

.footer-copy{
    font-size:14px;
}

.footer-menu{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    align-items:center;
    gap:12px;
}

.footer-menu a{
    color:#94a3b8;
    text-decoration:none;
    font-size:14px;
    transition:.3s;
}

.footer-menu a:hover{
    color:#60a5fa;
}

.footer-menu a:not(:last-child)::after{
    content:"/";
    color:#475569;
    margin-left:12px;
}

.footer-menu span{
    display:none;
}

/* ==========================
RESPONSIVE
========================== */

@media(max-width:768px){

    .footer-content{
        padding:30px 18px;
    }

    .footer-logo img{
        width:160px;
    }

    .footer-desc{
        font-size:14px;
        line-height:1.6;
    }

    .footer-social a{
        width:38px;
        height:38px;
    }

    .footer-social i{
        font-size:15px;
    }

    .footer-bottom{
        flex-direction:column;
        gap:12px;
        text-align:center;
    }

    .footer-copy{
        font-size:13px;
    }

    .footer-menu a{
        font-size:13px;
    }
}

/* ==========================
DARK MODE
========================== */

body.dark-mode .footer-pramuka{
    background:#111827;
    border-top:1px solid #334155;
}

body.dark-mode .footer-desc{
    color:#94a3b8;
}

body.dark-mode .footer-bottom{
    border-color:#334155;
}

body.dark-mode .footer-menu a{
    color:#94a3b8;
}

body.dark-mode .footer-menu a:hover{
    color:#60a5fa;
}

body.dark-mode .footer-social a{
    background:#1e293b;
    border-color:#334155;
    color:#e2e8f0;
}

body.dark-mode .footer-social a:hover{
    background:#2563eb;
    border-color:#2563eb;
    color:#fff;
}

body.dark-mode .footer-logo img{
    filter:brightness(0) invert(1);
}

