/* =============================================
   BASE RESET & TYPOGRAPHY
============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: #f5f5fa;
    color: #1f2937;
}

/* =========================================
   NAVBAR MODERN
========================================= */

.navbar {

    position: sticky;
    top: 0;

    z-index: 1000;

    margin: 18px;

    padding: 18px 34px;

    background: rgba(255, 255, 255, 0.92);

    backdrop-filter: blur(12px);

    border: 1px solid #ececf5;

    border-radius: 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.04);
}

/* LEFT */
.navbar-left {

    display: flex;
    align-items: center;
}

/* LOGO */
.logo {

    display: flex;
    align-items: center;

    gap: 14px;

    margin-left: 0;

    color: #1f2a63;

    font-size: 15px;
    font-weight: 700;
}

.logo img {

    width: 42px;
    height: 42px;

    object-fit: contain;
}

/* =========================================
   MENU
========================================= */

.menu {

    display: flex;
    align-items: center;

    gap: 42px;

    padding: 0;

    margin-left: auto;
}

/* LINK */
.menu a,
.dropdown-toggle {

    text-decoration: none;

    color: #1f2a63;

    font-size: 15px;
    font-weight: 500;

    transition: 0.25s ease;

    cursor: pointer;
}

/* HOVER */
.menu a:hover,
.dropdown-toggle:hover {

    color: #5f67ff;
}

/* ACTIVE */
.menu a.active {

    color: #5f67ff;

    font-weight: 700;
}

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

.menu-dropdown {

    position: relative;
}

.dropdown-toggle {

    display: flex;
    align-items: center;

    gap: 6px;
}

/* MENU DROPDOWN */
.dropdown-menu {

    position: absolute;

    top: 42px;
    left: 0;

    min-width: 220px;

    background: white;

    border-radius: 18px;

    padding: 10px;

    display: none;

    border: 1px solid #ececf5;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.08);
}

/* SHOW */
.menu-dropdown.open .dropdown-menu {

    display: flex;
    flex-direction: column;
}

/* ITEM */
.dropdown-menu a {

    padding: 12px 16px;

    border-radius: 12px;

    font-size: 14px;
}

.dropdown-menu a:hover {

    background: #f4f5ff;
}

/* =========================================
   CHATBOT BUTTON MENU
========================================= */

.menu a:last-child {

    padding: 12px 22px;

    border-radius: 14px;

    background: linear-gradient(135deg,
            #6f73ff,
            #8b63ff);

    color: white;

    font-weight: 600;

    box-shadow:
        0 10px 24px rgba(111, 115, 255, 0.25);
}

.menu a:last-child:hover {

    transform: translateY(-2px);

    color: white;
}

/* =========================================
   HAMBURGER
========================================= */

.menu-toggle {

    display: none;

    font-size: 28px;

    color: #1f2a63;

    cursor: pointer;
}

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

@media (max-width: 768px) {

    .navbar {

        padding: 16px 20px;

        border-radius: 18px;

        margin: 10px;
    }

    .menu-toggle {

        display: block;
    }

    .navbar-left {

        width: 100%;

        justify-content: space-between;
    }

    .menu {

        display: none;

        flex-direction: column;

        align-items: flex-start;

        width: 100%;

        margin-top: 20px;

        gap: 18px;

        padding-top: 18px;

        border-top: 1px solid #ececf5;
    }

    .menu.show {

        display: flex;
    }

    .menu a:last-child {

        width: 100%;

        text-align: center;
    }

    .dropdown-menu {

        position: static;

        width: 100%;

        margin-top: 10px;
    }
}

/* CHATBOT NAVBAR RIGHT BUTTONS */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-btn-ghost {
    text-decoration: none;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-btn-ghost:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.nav-btn-primary {
    text-decoration: none;
    background: #3b4bdf;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 10px;
    transition: all 0.2s;
}

.nav-btn-primary:hover {
    background: #2d3ac0;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(59, 75, 223, 0.35);
}

/* HAMBURGER */
.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: #3b4bdf;
}

/* =============================================
   BREADCRUMB
============================================= */
.breadcrumb-bar {
    background: #ffffff;
    border-bottom: 1px solid #eeeef6;
    padding: 12px 0;
}

.breadcrumb-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    flex-wrap: wrap;
}

.breadcrumb-inner a {
    text-decoration: none;
    color: #6b7280;
    transition: color 0.2s;
}

.breadcrumb-inner a:hover {
    color: #3b4bdf;
}

.breadcrumb-inner .sep {
    color: #d1d5db;
}

.breadcrumb-inner .current {
    color: #3b4bdf;
    font-weight: 600;
}

/* =============================================
   ARTIKEL LAYOUT
============================================= */
.artikel-wrapper {
    max-width: 1160px;
    margin: 36px auto 60px;
    padding: 0 60px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 36px;
    align-items: flex-start;
}

/* =============================================
   KONTEN UTAMA
============================================= */
.artikel-main {
    min-width: 0;
}

.artikel-header {
    margin-bottom: 20px;
}

.artikel-category-badge {
    display: inline-block;
    background: #eef0ff;
    color: #3b4bdf;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.artikel-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    line-height: 1.35;
    margin: 0 0 12px;
    letter-spacing: -0.3px;
}

.artikel-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #9ca3af;
    flex-wrap: wrap;
}

.artikel-meta-row span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* GAMBAR */
.artikel-gambar {
    margin-bottom: 28px;
    border-radius: 16px;
    overflow: hidden;
    background: #e8e8f0;
}

.artikel-gambar img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

/* KONTEN */
.artikel-content {
    font-size: 15px;
    line-height: 1.85;
    color: #374151;
    margin-bottom: 28px;
}

.artikel-content p {
    margin-bottom: 18px;
}

.artikel-content h2 {
    font-size: 21px;
    font-weight: 700;
    color: #111827;
    margin: 32px 0 14px;
}

.artikel-content h3 {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 24px 0 10px;
}

.artikel-content ul,
.artikel-content ol {
    margin: 0 0 18px 4px;
    padding-left: 22px;
}

.artikel-content ul {
    list-style-type: disc;
}

.artikel-content ol {
    list-style-type: decimal;
}

.artikel-content li {
    margin-bottom: 8px;
}

.artikel-content strong,
.artikel-content b {
    font-weight: 700;
}

.artikel-content em,
.artikel-content i {
    font-style: italic;
}

.artikel-content blockquote {
    border-left: 4px solid #3b4bdf;
    background: #f0f1ff;
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    color: #374151;
    font-style: italic;
    margin: 20px 0;
}

.sumber {
    margin-top: 24px;
    font-size: 13px;
    color: #9ca3af;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.sumber a {
    color: #3b4bdf;
    text-decoration: none;
}

.sumber a:hover {
    text-decoration: underline;
}

/* MEDIA PENDUKUNG */
.artikel-media {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 28px;
}

.artikel-media h3 {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
}

.media-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* METADATA BAWAH */
.artikel-metadata {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.artikel-metadata p {
    margin: 0 0 8px;
    font-size: 14px;
    color: #4b5563;
}

.tags-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.tags-row strong {
    font-size: 13px;
    color: #374151;
}

.tag-pill {
    display: inline-block;
    background: #eef0ff;
    color: #3730a3;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.tag-pill:hover {
    background: #c7d2fe;
}

/* =============================================
   SIDEBAR
============================================= */
.artikel-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 90px;
}

.sidebar-widget {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
}

.sidebar-widget-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-widget-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background: #3b4bdf;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ARTIKEL POPULER */
.populer-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.populer-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.populer-item:hover {
    opacity: 0.75;
}

.populer-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e8e8f0;
}

.populer-info {
    flex: 1;
    min-width: 0;
}

.populer-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #3b4bdf;
    background: #eef0ff;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.03em;
}

.populer-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.populer-read {
    font-size: 11px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* KATEGORI TOPIK */
.kategori-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kategori-pill {
    display: inline-block;
    padding: 7px 16px;
    background: #f3f4f6;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
}

.kategori-pill:hover {
    background: #3b4bdf;
    color: #fff;
    border-color: #3b4bdf;
}

/* BUTUH BANTUAN */
.bantuan-box {
    background: linear-gradient(135deg, #3b4bdf 0%, #1e2476 100%);
    border-radius: 16px;
    padding: 22px;
    color: #ffffff;
}

.bantuan-box h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
}

.bantuan-box p {
    font-size: 13px;
    line-height: 1.65;
    opacity: 0.88;
    margin: 0 0 16px;
}

.bantuan-btn {
    display: block;
    text-align: center;
    background: #ffffff;
    color: #3b4bdf;
    font-size: 14px;
    font-weight: 700;
    padding: 11px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.bantuan-btn:hover {
    background: #eef0ff;
}

/* =============================================
   FOOTER
============================================= */
.footer-new {
    background: #f0f0fa;
    padding-top: 80px;
    padding-bottom: 0;
    font-size: 14px;
    color: #374151;
    position: relative;
}

/* .footer-wave {
    position: absolute;
    top: 0;
    width: 100%;
    height: 60px;
    background: #1e2476;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
} */

.footer-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: 1.6fr 0.8fr 1fr 0.6fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 18px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* BRAND COLUMN */
.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
}

.footer-logo img {
    height: 40px;
    width: fit-content;
}

.footer-logo-text strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.footer-logo-text span {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    display: block;
}

/* LINKS */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #3b4bdf;
}

/* CONTACT */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #4b5563;
}

/* SOCIAL */
.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #e8e8f4;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: #3b4bdf;
    transform: translateY(-2px);
}

.footer-social img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.footer-social a:hover img {
    filter: brightness(0) invert(1);
}

/* COPYRIGHT */
.footer-bottom {
    border-top: 1px solid #e2e2ee;
    padding: 20px 60px;
    display: flex;
    justify-content: center;
    /* tengah horizontal */
    align-items: center;
    text-align: center;
    /* teks rata tengah */
    max-width: 100%;
    font-size: 13px;
    color: #6b7280;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1100px) {
    .artikel-wrapper {
        grid-template-columns: 1fr 280px;
        gap: 28px;
        padding: 0 40px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 900px) {
    .artikel-wrapper {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .artikel-sidebar {
        position: static;
    }

    .navbar-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 12px 20px;
    }

    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #f5f5fa;
        margin-top: 10px;
        border-radius: 12px;
        padding: 8px;
        gap: 2px;
        align-items: flex-start;
    }

    .menu a {
        width: 100%;
    }

    .menu.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .menu-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 4px 0 0 16px;
    }

    .menu-dropdown {
        margin-right: 18px;
        margin-right: 28px;
    }

    .breadcrumb-inner {
        padding: 0 20px;
    }

    .artikel-gambar img {
        height: 240px;
    }

    .artikel-header h1 {
        font-size: 22px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        padding: 0 20px 40px;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 20px;
    }
}