:root {
    --primary: #0f766e;
    --bg: #f0fdf4;
    --text: #4e4106;
    --yellow: #facc15;
    --yellow-hover: #fde047;
}

/* ================= BASE ================= */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* ================= CONTAINER ================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5px;
}

@media (max-width:768px) {
    .container { padding: 0 15px; }
}

/* ================= TOPBAR (MINIMAL) ================= */
.topbar {
    background: #045222;
}

/* tinggi dikunci kecil */
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    height: 30px;        /* <<< PALING PENTING */
    padding: 0;          /* jangan pakai padding vertikal */
}

/* teks judul di topbar */
.topbar .site-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #facc15;
    line-height: 1;
}

/* tombol bahasa */
.lang-switch {
    display: flex;
    gap: 6px;
}

.lang-switch button {
    padding: 1px 6px;     /* KECIL */
    font-size: 0.7rem;
    line-height: 1;
}


/* LANGUAGE SWITCH */
.lang-switch {
    display: flex;
    gap: 6px;
}

.lang-switch button {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #fff;
    padding: 3px 8px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
}

.lang-switch button.active {
    background: #0f766e;
}

/* ================= HEADER ================= */
header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 6px 12px rgba(0,0,0,.12);
}

/* LOGO + TITLE */
.page-header {
    background: transparent;
}

.page-header-inner {
    display: flex;
    align-items: center;
    padding: 16px 0;
}

.page-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    height: 52px;
    width: auto;
}

.header-left .site-title,
.page-header-left .site-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--yellow);
    white-space: nowrap;
}

/* ================= NAVBAR ================= */
.navbar {
    height: 64px;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 6px;
    text-decoration: none;
    font-weight: 600;
    color: var(--yellow);
}

.nav-links a:hover {
    color: var(--yellow-hover);
}

.nav-links a.active {
    border-bottom: 2px solid var(--yellow-hover);
}

/* DROPDOWN */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    display: none;
}

.dropdown:hover > .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    color: #064e3b;
}

/* ================= FOOTER ================= */
footer {
    background: #064e3b;
    color: #ecfdf5;
    text-align: center;
    padding: 30px 0;
}

/* ================= MOBILE ================= */
.menu-toggle {
    display: none;
    font-size: 22px;
    cursor: pointer;
}

@media (max-width:768px) {

    .menu-toggle { display: block; }

    .navbar-inner {
        justify-content: space-between;
    }

    .nav-links {
        position: absolute;
        top: 64px;
        right: 0;
        width: 100%;
        flex-direction: column;
        background: #065f46;
        padding: 15px;
        display: none;
    }

    .nav-links a {
        width: 100%;
        padding: 12px 0;
    }
}
/* HEADER ROW */

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 30px;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

/* LEFT SIDE */
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* LOGO */
.site-logo {
    height: 52px;
    width: auto;
}

/* TITLE */
.site-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #facc15;
    white-space: nowrap;
}

/* NAVBAR */
.navbar {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 24px;
}


/* ===== TOPBAR RIGHT ===== */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* SOCIAL ICON */
.topbar-social {
    display: flex;
    gap: 10px;
}

.topbar-social a {
    color: #facc15;      /* kuning emas */
    font-size: 0.9rem;
    line-height: 1;
}

.topbar-social a:hover {
    color: #fde047;
}

/* WhatsApp special */
.topbar-social .fa-whatsapp {
    color: #22c55e;
}


/* ================= FULL SLIDER ================= */
.hero-slider {
    position: relative;
    width: 100vw;          /* FULL LEBAR LAYAR */
    height: 680px;         /* TINGGI DESKTOP */
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* slide */
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

/* gambar full */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* KUNCI UTAMA */
    display: block;
}

/* MOBILE */
@media (max-width: 768px) {
    .hero-slider {
        height: 260px;
    }
}

/* ===== STICKY FOOTER LAYOUT ===== */
html, body {
    height: 100%;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
}

/* FOOTER */
.site-footer {
    background: #064e3b;
    color: #ecfdf5;
    padding: 30px 0;
    text-align: center;
}



/* ===== NAV RIGHT ===== */
.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* ===== BUTTON DAFTAR NAV ===== */
.btn-daftar-nav {
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;

    color: #064e3b;
    background: linear-gradient(135deg, #facc15, #fde047);

    border-radius: 999px;
    white-space: nowrap;

    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    transition: all 0.25s ease;
}

.btn-daftar-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .nav-right {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn-daftar-nav {
        width: 100%;
        text-align: center;
    }
}


#chatbot {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 320px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    overflow: hidden;
    z-index: 9999;
    font-size: 14px;
}

#chatbot-header {
    background: #065f46;
    color: #facc15;
    padding: 12px;
    font-weight: 700;
}

#chatbot-body {
    height: 260px;
    padding: 10px;
    overflow-y: auto;
    background: #f0fdf4;
}

.chat-user {
    text-align: right;
    margin-bottom: 6px;
}

.chat-bot {
    background: #e6f7f1;
    color: #000000;
    padding: 12px 14px;
    border-radius: 12px;
    max-width: 90%;
    margin: 6px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-line; /* ⬅️ PENTING */
}


.chat-user span,
.chat-bot span {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 85%;
}

.chat-user span {
    background: #22c55e;
    color: #064e3b;
}

.chat-bot span {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

#chatbot-input {
    display: flex;
    border-top: 1px solid #031029;
}

#chatbot-input input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
}

#chatbot-input button {
    background: #facc15;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    font-weight: bold;
}
/* Bubble bot */
.chat-bot {
    background: #e6f7f1;
    color: #000000;   /* HITAM */
    padding: 10px 12px;
    border-radius: 12px;
    max-width: 85%;
    margin: 6px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Bubble user */
.chat-user {
    background: #22c55e;
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 12px;
    max-width: 85%;
    margin: 6px 0 6px auto;
    font-size: 0.95rem;
}
/* ===== CHATBOT ===== */

/* Bubble bot */
.chat-bot {
    background: #e6f7f1;
    color: #000000 !important;   /* PAKSA HITAM */
    padding: 10px 12px;
    border-radius: 12px;
    max-width: 85%;
    margin: 6px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Pastikan SEMUA isi bot hitam */
.chat-bot * {
    color: #000000 !important;
    text-decoration: none !important;
}

/* Jika ada <a> link di jawaban */
.chat-bot a {
    color: #000000 !important;
    pointer-events: none; /* opsional: nonaktifkan link */
}

/* Bubble user */
.chat-user {
    background: #22c55e;
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 12px;
    max-width: 85%;
    margin: 6px 0 6px auto;
    font-size: 0.95rem;
}

#chatbot {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 320px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    overflow: hidden;
    z-index: 9999;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* HEADER */
#chatbot-header {
    background: #065f46;
    color: #facc15;
    padding: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* TOGGLE ICON */
#chatbot-toggle {
    font-size: 12px;
}

/* CONTENT */
#chatbot-content {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 400px;
    opacity: 1;
}

/* MINIMIZED STATE */
#chatbot.minimized #chatbot-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

/* BODY */
#chatbot-body {
    height: 260px;
    padding: 10px;
    overflow-y: auto;
    background: #f0fdf4;
}

/* INPUT */
#chatbot-input {
    display: flex;
    border-top: 1px solid #e5e7eb;
}

#chatbot-input input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
}

#chatbot-input button {
    background: #facc15;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    font-weight: bold;
}


/* ===== FOOTER ===== */
.footer {
    background: #064e3b; /* biru gelap ala kampus */
    color: #ffffff;
    padding: 40px 0 0;
    font-size: 0.95rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

/* COLUMN */
.footer-col {
    flex: 1;
    min-width: 280px;
}

/* TITLE */
.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

/* INFO LIST */
.footer-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-info i {
    margin-top: 4px;
    color: #facc15;
}

.footer-info a {
    color: #ffffff;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

/* SOCIAL MEDIA */
.footer-social {
    display: flex;
    gap: 14px;
    margin-top: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: #facc15;
    color: #064e3b;
}

/* BOTTOM */
.footer-bottom {
    margin-top: 30px;
    padding: 15px 0;
    text-align: center;
    background: #064e3b;
    font-size: 0.85rem;
    color: #e5e7eb;
}

/* MOBILE */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
    }
}
