/* =============================================
   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: 32px; /* bisa 28px-32px */
    padding: 0;
    margin-left: auto;
    margin-right: 10px; /* sebelumnya 30px */
}
/* 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.active-dropdown {
    background: #eef0ff;
    color: #5f67ff;
    font-weight: 700;
}

.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;
}

/* =============================================
   HERO SECTION
============================================= */
.hero {
    background: linear-gradient(160deg, #f8f8ff 0%, #eef0ff 100%);
    padding: 80px 0 70px;
    overflow: hidden;
}

.hero-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

/* HERO BADGE */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef0ff;
    color: #3b4bdf;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 22px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: #3b4bdf;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* HERO TEXT */
.hero-text h1 {
    font-size: 54px;
    line-height: 1.08;
    margin: 0 0 24px;
    letter-spacing: -1.5px;
}

.h1-black {
    color: #111827;
    font-weight: 800;
}

.h1-accent {
    color: #3b4bdf;
    font-weight: 800;
    font-style: italic;
}

.hero-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #6b7280;
    max-width: 480px;
    margin-bottom: 36px;
}

/* HERO BUTTONS */
.hero-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: #3b4bdf;
    color: #ffffff;
    padding: 13px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 18px rgba(59, 75, 223, 0.35);
}

.btn-primary:hover {
    background: #2d3ac0;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(59, 75, 223, 0.45);
}

.btn-secondary {
    display: inline-block;
    background: #ffffff;
    color: #374151;
    padding: 13px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid #e5e7eb;
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    border-color: #3b4bdf;
    color: #3b4bdf;
    transform: translateY(-2px);
}

/* HERO IMAGE */
.hero-image {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 440px;
    border-radius: 24px;
    background: white;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* =============================================
   SECTION SHARED
============================================= */
.section {
    padding: 90px 0;
}

.section-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 60px;
}

.section-header-left {
    margin-bottom: 48px;
}

.section-header-center {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 34px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px;
}

.section-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 16px;
    max-width: 500px;
}

.section-header-center .section-subtitle {
    margin: 0 auto 16px;
}

.title-underline {
    width: 48px;
    height: 3px;
    background: #3b4bdf;
    border-radius: 2px;
}

.title-underline.center {
    margin: 0 auto;
}

/* =============================================
   ARTIKEL EDUKASI
============================================= */
.artikel {
    background: #ffffff;
}

.artikel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* CARD ARTIKEL */
.artikel-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.artikel-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f0f0f8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.artikel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.artikel-img-wrap {
    position: relative;
    overflow: hidden;
}

.artikel-img-wrap img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.artikel-card:hover .artikel-img-wrap img {
    transform: scale(1.04);
}

.artikel-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(59, 75, 223, 0.9);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.artikel-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.artikel-date {
    font-size: 12px;
    color: #9ca3af;
    display: block;
    margin-bottom: 8px;
}

.artikel-body h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #111827;
    margin: 0 0 10px;
}

.artikel-excerpt {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 14px;
    flex: 1;
}

.artikel-read-more {
    font-size: 13px;
    color: #3b4bdf;
    font-weight: 600;
    display: inline-block;
    margin-top: auto;
}

/* LIHAT SEMUA */
.lihat-semua {
    text-align: center;
    margin-top: 48px;
}

.btn-lihat-semua {
    display: inline-block;
    padding: 11px 28px;
    border: 1.5px solid #3b4bdf;
    color: #3b4bdf;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-lihat-semua:hover {
    background: #3b4bdf;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(59, 75, 223, 0.3);
}

/* =============================================
   KATEGORI EDUKASI
============================================= */
.kategori-section {
    background: #f5f5fa;
}

.kategori-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}

.kategori-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 24px;
    border: 1px solid #ececf4;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    text-align: left;
}

.kategori-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
    border-color: #d8dcff;
}

.kategori-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #eef0ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.kategori-icon-wrap img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.kategori-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px;
}

.kategori-card p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 18px;
}

.btn-pelajari {
    display: inline-block;
    background: #eef0ff;
    color: #3b4bdf;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-pelajari:hover {
    background: #3b4bdf;
    color: #fff;
    transform: translateY(-1px);
}

/* =============================================
   CTA SIKAP & LANGKAH AMAN
============================================= */
.cta-aman {
    background: #1e2476;
    padding: 0;
    overflow: hidden;
    min-height: 420px;
}

.cta-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 80px 60px;
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    align-items: center;
    gap: 60px;
}

/* CTA BADGE */
.cta-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #c7d2fe;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cta-aman-content {
    color: #ffffff;
}

.cta-aman-content h2 {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 20px;
}

.cta-desc {
    font-size: 15px;
    color: #c7d2fe;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 480px;
}

.cta-list {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
}

.cta-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #e0e7ff;
    line-height: 1.6;
}

.cta-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    top: 2px;
    color: #818cf8;
    font-size: 10px;
}

.cta-btn {
    display: inline-block;
    background: #ffffff;
    color: #1e2476;
    padding: 13px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.cta-btn:hover {
    background: #eef0ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* CTA IMAGE */
.cta-wrapper {
    padding: 50px 40px;
}

.cta-aman-image {
    display: flex;
    justify-content: center;
}

.cta-image-wrapper {
    position: relative;
    display: inline-block;
}

.cta-image-wrapper img {
    width: 100%;
    max-width: 340px;
    border-radius: 20px;
}

.cta-image-badge {
    position: absolute;
    bottom: -12px;
    right: -12px;
    background: #3b4bdf;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(59, 75, 223, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* =============================================
   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;
}

/* =============================================
   FLOATING CHATBOT
============================================= */
.chatbot-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #3b4bdf);
    box-shadow: 0 10px 30px rgba(59, 75, 223, 0.45);
    cursor: pointer;
    z-index: 99999;
    transition: all 0.3s ease;
}

.chatbot-float:hover {
    transform: scale(1.08);
    box-shadow: 0 14px 40px rgba(59, 75, 223, 0.55);
}

.chatbot-float img {
    width: 80px;
}

/* CHATBOT MODAL */
.chatbot-modal {
    position: fixed;
    right: 24px;
    bottom: 100px;
    width: 380px;
    height: min(680px, calc(100vh - 140px));
    max-height: calc(100vh - 140px);
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    z-index: 99999;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.96);
    transition: all 0.28s ease;
    display: flex;
    flex-direction: column;
}

.chatbot-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-modal-header {
    min-height: 72px;
    background: linear-gradient(135deg, #3b4bdf, #6366f1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    color: white;
    flex-shrink: 0;
}

.chatbot-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.chatbot-modal-header span {
    font-size: 12px;
    opacity: 0.9;
}

.chatbot-modal-header button {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
}

.chatbot-modal-header button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chatbot-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* OVERLAY */
.chatbot-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(3px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.chatbot-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1100px) {
    .artikel-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text p {
        margin: 0 auto 36px;
    }

    .hero-image {
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-badge {
        margin: 0 auto 22px;
    }

    .hero-actions {
        justify-content: center;
    }

    .cta-inner {
        grid-template-columns: 1fr;
        text-align: left;
        padding: 50px 40px;
    }

    .cta-aman-image {
        justify-content: flex-start;
    }

    .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;
    }

    .hero-container,
    .section-inner,
    .cta-inner {
        padding-left: 24px;
        padding-right: 24px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    .artikel-grid {
        grid-template-columns: 1fr;
    }

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

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

    .cta-inner {
        padding: 40px 24px;
    }

    .cta-aman-content h2 {
        font-size: 28px;
    }

    .chatbot-modal {
        width: calc(100% - 20px);
        right: 10px;
        bottom: 90px;
        height: 88vh;
    }
}

@media (max-width: 576px) {
    .kategori-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 60px 0 50px;
    }
}
