/* =============================================
   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;
    margin-right: 30px; /* tambah jarak ke tombol chatbot */
}

/* 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;
}
/* =============================================
   PAGE HEADER
============================================= */
.page-header {
    background: #ffffff;
    border-bottom: 1px solid #eeeeF6;
    padding: 32px 0 36px;
}

.page-header-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: 1fr 0.6fr;
    align-items: flex-end;
    gap: 40px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}

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

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

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

.page-header-left h1 {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.page-header-left p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.75;
    max-width: 480px;
}

/* SEARCH BOX */
.search-box {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #9ca3af;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    outline: none;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #374151;
    background: #f9f9ff;
    transition: all 0.25s ease;
}

.search-box input::placeholder {
    color: #9ca3af;
}

.search-box input:focus {
    border-color: #3b4bdf;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 75, 223, 0.1);
}

/* =============================================
   KATEGORI SECTION  (identik dengan home.css)
============================================= */
.kategori-section {
    background: #f5f5fa;
    padding: 80px 0 100px;
}

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

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

/* =============================================
   FOOTER  (identik dengan home.css)
============================================= */
.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;
}

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

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

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

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

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

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

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

/* =============================================
   FLOATING CHATBOT  (identik dengan home.css)
============================================= */
.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 {
    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;
}

.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) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 992px) {
    .navbar-right {
        display: none;
    }

    .page-title {
        font-size: 34px;
    }
}

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

    .page-header-inner,
    .section-inner {
        padding-left: 24px;
        padding-right: 24px;
    }

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

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

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

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

    .page-header {
        padding: 48px 0 40px;
    }
}
