/* ==========================================
   HALAMAN DAFTAR ARTIKEL
========================================== */

/* 1. Reset Global (Sangat Penting agar tidak ada margin/padding siluman) */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 2. Pastikan halaman tidak meluber ke kanan */
body, html {
    width: 100%;
    overflow-x: hidden; /* Mencegah scrollbar horizontal muncul */
}



/* SPESIFIK INDIKATOR HALAMAN PROFIL SEDANG AKTIF (Gelap & Emas) */
/* .sub-menu-item.active-page {
/*    background: #195E8E !important; /* Latar belakang gelap penanda */
/*    color: #bfa454 !important; /* Font warna emas */
/*    font-weight: 600;
}

.sub-menu-item.active-page:hover {
    background: #195E8E !important;
}

/* Penanda khusus tombol Login di mobile dropdown */
    .login-highlight {
    border-top: 1px solid #f0f0f0;
    margin-top: 4px;
    color: #195E8E;
}

/* Animasi muncul smooth dari atas */
@keyframes slideDownMenu {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*BATAS/


/* HERO */

.article-hero{
    padding-top:120px !important;
    padding-bottom:20px !important;
    text-align: center;
}

.article-hero .section-heading{
     margin: 0 auto 10px auto;
    color:#011638;
    text-align: center;
}

.article-hero .section-subheading{
    max-width:700px;
    margin-top:15px;
    margin:auto;
    color:#666;
    text-transform:none;
    font-size:1.05rem;
}

/* GRID */

.article-section{
    padding-top:20px !important;
    padding-bottom:80px !important;
}

.article-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(340px,1fr));
    padding: 0 40px;
    gap:15px;
}

/* CARD */

.article-card{
    display:block;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    margin: 0 0px 0 0px;
    box-shadow:4px 8px 25px rgba(0,0,0,.08);
    transition:.35s ease;
    max-width: 1200px;
    padding: 0 0px;
}

.article-card:hover{

    transform:translateY(-8px);

    box-shadow:0 15px 40px rgba(0,0,0,.15);

}

/* IMAGE */

.article-card img{
    width:100%;
    height:180px;
    object-fit:cover;
    transition:.4s;
}

.article-card:hover img{

    transform:scale(1.05);

}

/* CONTENT */

.card-content{

    padding:10px;
    margin:10px 10px 10px 10px;
}

/* CATEGORY */

.article-category{

    display:inline-block;

    background:#eaf4fb;
    color:#195E8E;
    padding:5px 14px;
    border-radius:30px;
    font-size:.82rem;
    font-weight:600;
    margin-bottom:10px;

}

/* TITLE */

.card-content h2{

    color:#011638;

    font-size:1.45rem;

    line-height:1.4;

    margin-bottom:15px;

    transition:.3s;

}

.article-card:hover h2{

    color:#195E8E;

}

/* DESCRIPTION */

.card-content p{

    color:#666;

    line-height:1.8;

    font-size:.95rem;

    margin-bottom:25px;

}

/* META */

.article-meta{

    display:flex;

    justify-content:space-between;

    align-items:center;

    flex-wrap:wrap;

    gap:10px;

    font-size:.85rem;

    color:#777;

    border-top:1px solid #eee;

    padding-top:18px;

}

.article-meta span{

    display:flex;

    align-items:center;

    gap:6px;

}

.article-meta i{

    color:#FFC300;

}

/* PAGINATION CONTAINER */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px; /* Memberi jarak dari batas bawah grid artikel */
}

/* TOMBOL UTAMA (PREV/NEXT) */
.page-btn {
    background: #fff;
    color: #195E8E;
    border: 1px solid #e0e0e0;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: #eaf4fb;
    border-color: #195E8E;
}

.page-btn:disabled {
    color: #ccc;
    background: #f5f5f5;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

/* WRAPPER ANGKA */
.page-numbers {
    display: flex;
    gap: 8px;
}

/* TOMBOL ANGKA (1, 2, 3) */
.page-number-btn {
    background: #fff;
    color: #011638;
    border: 1px solid #e0e0e0;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.page-number-btn:hover {
    border-color: #195E8E;
    color: #195E8E;
}

/* HALAMAN YANG SEDANG AKTIF */
.page-number-btn.active {
    background: #195E8E;
    color: #fff;
    border-color: #195E8E;
    box-shadow: 0 4px 10px rgba(25, 94, 142, 0.25);
}

/* RESPONSIVE */

@media(max-width:992px){

    .article-grid{

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

    }

}

@media(max-width:768px){

    .article-hero{

        padding-top:110px !important;

    }

    .article-grid{

        grid-template-columns:1fr;

        gap:25px;

    }

    .card-content{

        padding:20px;

    }

    .card-content h2{

        font-size:1.2rem;

    }

    .article-card img{

        height:220px;

    }

    .article-meta{

        flex-direction:column;

        align-items:flex-start;

    }

}

/* ==========================================================================
   1. VARIABLES & RESET STYLE (Wajib agar font, warna, & ukuran sesuai)
   ========================================================================== */
@import url(https://fonts.googleapis.com/css?family=Overpass:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic);
@import url(https://fonts.googleapis.com/css?family=Poppins:100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic);

:root {
    --primary-color: #000000;
    --secondary-color: #111111;
    --primary-font: 'Poppins', sans-serif;
    --secondary-font: 'Overpass', sans-serif;
    --bg-color: transparent;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--primary-font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--secondary-font);
    margin-bottom: 1rem;
}

/* UTILITY CLASSES */
.article.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.text-center { text-align: center; }

section {
    position: relative;
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.section-heading {
    font-size: 3rem;
    max-width: 800px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.gradient {
    height: 100%;
    width: 100%;
    background-image: 
        radial-gradient(at 20% 33%, #195E8E 0px, transparent 60%),
        radial-gradient(at 65% 33%, #FFC300 0px, transparent 60%), 
        radial-gradient(at 52% 99%, #011638 0px, transparent 20%),
        radial-gradient(at 10% 29%, #FFFFFF 0px, transparent 20%),
        radial-gradient(at 97% 96%, #F6F5F2 0px, transparent 20%),
        radial-gradient(at 33% 50%, #000000 0px, transparent 20%);
    position: absolute;
    filter: blur(100px) saturate(150%);
    top: 80px;
    z-index: -1;
    opacity: 0.2;
}


/* ==========================================================================
   2. CONTACT SECTION STYLES
   ========================================================================== */
.contact {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

.contact-info {
    flex: 1;
    max-width: 50%;
}

.contact-map {
    flex: 1;
    max-width: 50%;
    margin: 0;
    padding: 0;
}

#map {
    width: 100%;
    height: 300px;
    display: block;
    border: 1px solid #ddd;
}

.contact-info .detail h3, 
.contact-info .detail p {
    font-size: 1.25rem;
}

.contact-info .detail a {
    font-size: 1.1rem;
}

.contact-details .details {
    display: flex;
    gap: 2rem;
    flex-direction: column;
}

.detail{
    display: flex;
    align-items: flex-start;
    gap: 0px;
    margin-bottom: 24px;
}

.detail i{
    font-size: 1.8rem;   /* sebelumnya 2.5rem */
    width: 30px;
    text-align: center;
    margin-top: 4px;      /* sesuaikan sampai sejajar */
    flex-shrink: 0;
}

.detail.i i {
    font-size: 1.6rem;
    width: 30px;
    text-align: center;
    margin-left: 0;
    margin-top: 4px;
    flex-shrink: 0;
}

.detail__content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;            
    flex: 1;                 
}

.detail__content h3 {
    margin: 10px auto 0px 30px;
    font-size: 1.25rem;
    line-height: 0.4;
}

.detail__content p {
    margin: 0px auto auto 30px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Opsional: Style untuk link biar rapi */
.detail__content p a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   3. FOOTER SECTION STYLES
   ========================================================================== */
footer {
    padding: 2rem 0;
}

.footer__content {
    display: grid;
    gap: 5rem;
    grid-template-columns: 2fr 1fr 1fr 1fr;
}

.footer__logo {
    width: 300px;
    margin-bottom: 0rem;
    margin: auto auto auto 100px;
}

.footer__text {
    font-size: 1rem;
    opacity: 0.8;
    margin: auto auto auto 100px;
}

.footer__newsletter {
    position: relative;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 3rem;
}

.footer__bottom-icons {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

/* Warna Khusus Ikon Sosmed */
.instagram { color: #e4405f; }
.linkedin { color: #0e76a8; } /* Digunakan untuk OA Line di HTML Anda */


/* CONTACT & MAP */
.contact{
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: stretch;
}

.contact-info{
    flex: 0.5;
}

.contact-map{
    flex: 0.45;
    min-height: 180px;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    margin-right:120px;
}

.contact-map iframe{
    width: 100%;
    height: 100%;
    display: block;
}

/*FOOTER*/

footer {
    padding: 2rem 0;
}

.footer__content {
    display: grid;
    gap: 5rem;
    grid-template-columns: 2fr 1fr 1fr 1fr;
}

.footer__details{
    margin-left: 0px;
}

.footer__newsletter input {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: none;
    outline: none;
    background-color: #f3f9fb;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.footer__newsletter .icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}

.footer__menu-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.8rem;
    opacity: 0.8;
}


.footer__bottom-icons {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.facebook { color: #3b5998; }
.twitter { color: #00acee; }
.instagram { color: #e4405f; }
.linkedin { color: #0e76a8; }

.article-filter{
    display:flex;
    justify-content:center;
    gap:12px;
    margin-bottom:35px;
    flex-wrap:wrap;
}

.filter-btn{
    padding:10px 24px;
    border:none;
    border-radius:999px;
    background:#eef4fb;
    color:#0a3c75;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.filter-btn:hover{
    background:#0a3c75;
    color:white;
}

.filter-btn.active{
    background:#0a3c75;
    color:white;
}

/* =========================================================
   MOBILE — ARTIKEL
   REFERENSI: MOBILE BERANDA
   Desktop layout dipertahankan, hanya diperkecil
   ========================================================= */

@media screen and (max-width: 768px) {

    /* =====================================================
       GLOBAL
       ===================================================== */

    html,
    body {
        width: 100% !important;
        overflow-x: hidden !important;
    }

    .article.container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }

    section {
        padding-top: 2rem !important;
        padding-bottom: 3rem !important;
    }


    /* =====================================================
       HEADER
       SAMA SEPERTI BERANDA
       ===================================================== */

    .header-container {
        padding: 0 12px !important;
    }

    .header__logo img {
        width: 95px !important;
        max-height: 40px !important;
    }

    .header__nav-wrapper {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        min-width: 0 !important;
    }

    .header__menu-desktop {
        display: flex !important;
        align-items: center !important;
        gap: 7px !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
    }

    .header__menu-desktop li a {
        font-size: 0.68rem !important;
        white-space: nowrap !important;
    }

    .hamburger-btn {
        font-size: 1rem !important;
        padding: 5px !important;
    }

    .hamburger-dropdown {
        top: 60px !important;
        right: 12px !important;
        width: 170px !important;
    }


    /* =====================================================
       HERO ARTIKEL
       ===================================================== */

    .article-hero {
        padding-top: 90px !important;
        padding-bottom: 15px !important;
    }

    .article-hero .section-heading {
        font-size: 1.35rem !important;
        line-height: 1.2 !important;
        margin: 0 auto 8px auto !important;
    }

    .article-hero .section-subheading {
        max-width: 330px !important;

        margin: 0 auto !important;

        font-size: 0.72rem !important;
        line-height: 1.4 !important;
    }


    /* =====================================================
       ARTICLE SECTION
       ===================================================== */

    .article-section {
        padding-top: 15px !important;
        padding-bottom: 35px !important;
    }


    /* =====================================================
       ARTICLE GRID
       
       TETAP 3 KOLOM
       seperti desktop, tapi diperkecil
       ===================================================== */

    .article-grid {
        display: grid !important;

        grid-template-columns: repeat(3, 1fr) !important;

        width: calc(100% - 20px) !important;
        max-width: 360px !important;

        margin: 0 auto !important;
        padding: 0 !important;

        gap: 6px !important;
    }


    /* =====================================================
       ARTICLE CARD
       ===================================================== */

    .article-card {
        width: 100% !important;
        min-width: 0 !important;

        margin: 0 !important;

        border-radius: 9px !important;

        box-shadow: 2px 4px 12px rgba(0,0,0,.08) !important;

        overflow: hidden !important;
    }

    .article-card:hover {
        transform: translateY(-3px) !important;

        box-shadow: 0 7px 18px rgba(0,0,0,.12) !important;
    }


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

    .article-card img {
        width: 100% !important;

        height: 72px !important;

        object-fit: cover !important;
    }


    /* =====================================================
       CARD CONTENT
       ===================================================== */

    .card-content {
        padding: 5px !important;
        margin: 3px !important;
    }


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

    .article-category {
        display: inline-block !important;

        padding: 2px 5px !important;

        margin-bottom: 4px !important;

        border-radius: 20px !important;

        font-size: 0.38rem !important;

        line-height: 1.2 !important;
    }


    /* =====================================================
       TITLE
       ===================================================== */

    .card-content h2 {
        font-size: 0.58rem !important;

        line-height: 1.2 !important;

        margin-bottom: 5px !important;

        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }


    /* =====================================================
       DESCRIPTION
       ===================================================== */

    .card-content p {
        font-size: 0.42rem !important;

        line-height: 1.35 !important;

        margin-bottom: 6px !important;

        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }


    /* =====================================================
       META
       TETAP HORIZONTAL
       ===================================================== */

    .article-meta {
        display: flex !important;

        flex-direction: row !important;

        justify-content: space-between !important;
        align-items: center !important;

        flex-wrap: nowrap !important;

        gap: 3px !important;

        font-size: 0.34rem !important;

        padding-top: 5px !important;

        border-top: 1px solid #eee !important;
    }

    .article-meta span {
        display: flex !important;

        align-items: center !important;

        gap: 2px !important;

        white-space: nowrap !important;

        min-width: 0 !important;
    }

    .article-meta i {
        font-size: 0.32rem !important;
    }


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

    .pagination-container {
        display: flex !important;

        justify-content: center !important;
        align-items: center !important;

        gap: 5px !important;

        margin-top: 20px !important;
    }

    .page-btn {
        padding: 4px 7px !important;

        border-radius: 5px !important;

        font-size: 0.45rem !important;
    }

    .page-numbers {
        display: flex !important;
        gap: 3px !important;
    }

    .page-number-btn {
        width: 22px !important;
        height: 22px !important;

        border-radius: 5px !important;

        font-size: 0.45rem !important;
    }


    /* =====================================================
       CONTACT
       TETAP 2 KOLOM SEPERTI BERANDA
       ===================================================== */

    #contact {
        width: 100% !important;

        padding: 25px 8px 30px !important;

        overflow: hidden !important;
    }

    #contact .section-heading {
        font-size: 1.15rem !important;

        line-height: 1.2 !important;

        margin: 0 auto 22px !important;
    }

    .contact {
        display: flex !important;

        flex-direction: row !important;

        align-items: flex-start !important;

        width: 100% !important;
        max-width: 330px !important;

        margin: 0 auto !important;

        padding: 0 !important;

        gap: 6px !important;

        box-sizing: border-box !important;
    }


    /* =====================================================
       CONTACT INFO — KIRI
       ===================================================== */

    .contact-info {
        flex: 0 0 calc(58% - 3px) !important;

        width: calc(58% - 3px) !important;
        max-width: calc(58% - 3px) !important;

        min-width: 0 !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    /* =====================================================
       MAP — KANAN
       ===================================================== */

    .contact-map {
        flex: 0 0 calc(42% - 3px) !important;

        width: calc(42% - 3px) !important;
        max-width: calc(42% - 3px) !important;

        min-width: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        min-height: 115px !important;
        height: 115px !important;

        border-radius: 7px !important;

        overflow: hidden !important;

        box-shadow: 0 4px 10px rgba(0,0,0,.12) !important;
    }

    .contact-map iframe {
        width: 100% !important;
        height: 100% !important;

        display: block !important;
    }


    /* =====================================================
       CONTACT DETAIL
       ===================================================== */

    .details {
        width: 100% !important;
        max-width: 100% !important;
    }

    .detail {
        display: flex !important;

        gap: 4px !important;

        margin-bottom: 8px !important;
    }

    .detail i,
    .detail.i i {
        flex: 0 0 10px !important;

        width: 10px !important;
        min-width: 10px !important;

        font-size: 0.48rem !important;

        margin-top: 1px !important;
    }

    .detail__content {
        min-width: 0 !important;
        max-width: 100% !important;

        gap: 0 !important;
    }

    .detail__content h3 {
        font-size: 0.48rem !important;

        line-height: 1.15 !important;

        margin: 0 0 2px !important;
    }

    .detail__content p {
        font-size: 0.42rem !important;

        line-height: 1.25 !important;

        margin: 0 !important;

        overflow-wrap: anywhere !important;
    }

    .detail__content p a {
        font-size: inherit !important;
    }


    /* =====================================================
       FOOTER
       SAMA SEPERTI BERANDA
       ===================================================== */

    footer {
        padding: 1rem 0 !important;

        text-align: left !important;
    }

    .footer__content {
        display: block !important;

        width: 100% !important;

        text-align: left !important;
    }

    .footer__details {
        width: 100% !important;

        margin: 0 !important;

        text-align: left !important;
    }

    .footer__logo {
        width: 115px !important;

        margin: 15px 0 6px !important;
    }

    .footer__logo img {
        display: block !important;

        width: 100% !important;
        height: auto !important;
    }

    .footer__text {
        font-size: 0.62rem !important;

        line-height: 1.5 !important;

        margin: 0 !important;

        text-align: left !important;
    }

    .footer__bottom {
        display: flex !important;

        flex-direction: column !important;

        justify-content: flex-start !important;
        align-items: flex-start !important;

        gap: 6px !important;

        margin: 18px 0 0 !important;

        text-align: left !important;
    }

    .footer__bottom-icons {
        display: flex !important;

        justify-content: flex-start !important;
        align-items: center !important;

        gap: 10px !important;

        font-size: 0.85rem !important;
    }

    .footer__bottom p {
        margin: 0 !important;

        font-size: 0.52rem !important;

        text-align: left !important;
    }

}