/* Variabel CSS untuk warna dan font */
:root {
    --primary-blue: #4564FF;
    --new-button-blue: #4564FF;
    /* Biru utama seperti di desain */
    --light-blue-bg: #E8F0FE;
    /* Latar belakang biru muda di hero section */
    --dark-blue-text: #1A202C;
    /* Warna teks gelap */
    --gray-text: #4A5568;
    /* Warna teks abu-abu */
    --black: #000000;
    --white: #FFFFFF;
    --border-color: #CBD5E0;
    /* Warna border untuk FAQ, dll. */
    --shadow-light: rgba(0, 0, 0, 0.05);

    --font-poppins: 'Poppins', sans-serif;
}

/* Reset CSS dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-poppins);
    line-height: 1.6;
    color: var(--dark-blue-text);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Gaya tombol umum */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 35px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    padding: 0;
    box-sizing: border-box;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: #357ae8;
}

.btn-icon-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.btn-icon-arrow svg {
    width: 24px;
    height: 24px;
}

.btn-icon-arrow:hover {
    background-color: #357ae8;
}

.hero-buttons {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-blue);
    border-radius: 50px;
    padding: 10px;
    gap: 10px;
    text-decoration: none;
}

/* Gaya untuk tombol utama "Mulai Tes Sekarang" */
.hero-main-button {
    background-color: transparent;
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: 50px;
}

.hero-main-button:hover {
    background-color: #4564FF;
}

.hero-buttons .btn-primary {
    padding: 15px 30px;
    font-size: 1.1em;
    line-height: 1.2;
    text-align: center;
    min-width: 185px;
}

/* Gaya untuk tombol panah */
.hero-arrow-button {
    background-color: var(--primary-blue);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 205px;
    margin-top: -50px;
    font-size: 18px;
}

.hero-arrow-button svg {
    width: 24px;
    height: 24px;
}

.hero-arrow-button:hover {
    /* background-color: rgba(255, 255, 255, 0.1); */
}

.btn-daftar {
    background-color: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.hero-arrow-button i {
    font-size: 1.2em;
}

.btn-daftar:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.btn-masuk {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
}

.btn-masuk:hover {
    background-color: #357ae8;
}

/* --- Header / Navbar --- */
.header {
    background-color: var(--light-blue-bg);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.2em;
    color: var(--dark-blue-text);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

/* Nav Menu untuk Desktop */
.nav-menu {
    display: flex;
    /* Nav menu defaultnya tampil di desktop */
    list-style: none;
    gap: 30px;
    margin-bottom: 0;
}

.nav-menu .close-menu {
    display: none;
    /* Sembunyikan tombol close di desktop */
}

.nav-menu .nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
    margin-bottom: 0;
}

.nav-menu .nav-list a {
    text-decoration: none;
    color: var(--dark-blue-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu .nav-list a:hover {
    color: var(--primary-blue);
}

/* Tombol Auth untuk Desktop (menggunakan nav-auth yang ada) */
.nav-auth {
    display: flex;
    /* Tombol auth defaultnya tampil sejajar di desktop */
    gap: 6px;
}

/* Sembunyikan Hamburger Menu di Desktop */
.hamburger-menu {
    display: none;
}


/* --- Hero Section (kode ini tidak berubah) --- */
.hero-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-image: url('../assets/images/bg-hero.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-text-area {
    flex: 1;
    min-width: 450px;
    padding-right: 40px;
}

.hero-text-area h1 {
    font-size: 3em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-blue-text);
}

.hero-text-area p {
    font-size: 1.1em;
    color: var(--gray-text);
    margin-bottom: 30px;
}

.hero-info-box {
    background-color: var(--primary-blue);
    border-radius: 12px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    margin-top: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    max-width: 450px;
    position: absolute;
    bottom: 1px;
    left: 0%;
    transform: translateX(0);
    z-index: 10;
}

.hero-info-box img {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.hero-info-box p {
    margin: 0;
    font-size: 0.95em;
    color: var(--white);
    line-height: 1.4;
}

.hero-image-area {
    flex: 1;
    min-width: 450px;
    position: relative;
    text-align: center;
}

.hero-info-icon {
    width: 52px;
    height: 52px;
    margin-right: 15px;
    flex-shrink: 0;
}

.main-hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.emoticon {
    position: absolute;
    width: 233.87px;
    height: 239.93px;
    /* animation: float 3s ease-in-out infinite; */
}

.emoticon-happy {
    top: 36%;
    right: 5%;
}

.emoticon-love {
    bottom: 5%;
    left: -1%;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* --- Feature Section (kode ini tidak berubah) --- */
.features-section {
    padding: 80px 0;
    text-align: center;
}

.features-section h2 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--dark-blue-text);
}

.feature-item-alt {
    padding: 0;
    text-align: left;
    transition: none;
    height: auto;
    display: block;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
}

.feature-item-alt img {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    display: block;
}

.feature-item-alt h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-blue-text);
}

.feature-item-alt p {
    font-size: 0.9em;
    color: var(--gray-text);
    line-height: 1.5;
}

.phone-mockup-area {
    margin-top: 0;
    text-align: center;
}

.phone-mockup {
    max-width: 508px;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
    width: 100%;
}

/* --- Process Section (kode ini tidak berubah) --- */
.process-section {
    background-color: var(--white);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.card-process {
    background-color: #4564FF;
    border: none;
    border-radius: 24px;
    padding: 60px;
    text-align: left;
}

.process-section h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--white);
}

.process-item {
    background-color: #4564FF;
    padding: 0px;
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex: 1 1 calc(25% - 22.5px);
    max-width: calc(25% - 22.5px);
    min-width: 200px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.process-number {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    font-weight: 700;
    margin: 0;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.process-item h3 {
    font-size: 19.2px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
    text-align: left;
    margin-top: 80px;
    text-align: left;
}

.process-item p {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
}

/* --- FAQ Section (kode ini tidak berubah) --- */
.faq-section {
    padding: 80px 0;
    text-align: center;
}

.faq-section h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--dark-blue-text);
}

.faq-subtitle {
    font-size: 1em;
    color: var(--gray-text);
    margin-bottom: 40px;
    line-height: 1.6;
}

.faq-subtitle .chat-admin-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.faq-subtitle .chat-admin-link:hover {
    text-decoration: underline;
}

.faq-tabs-custom {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline-flex;
    gap: 20px;
}

.faq-tabs-custom li {
    margin-bottom: 0;
}

.faq-tabs {
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    border-bottom: none;
}

.faq-tabs .nav-item {
    margin-bottom: 0;
}

.faq-tab {
    background-color: transparent;
    border: 1px solid var(--primary-blue);
    border-radius: 29px;
    padding: 12px 30px;
    font-size: 1em;
    font-weight: 500;
    color: var(--primary-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.faq-tab:hover {
    background-color: rgba(69, 100, 255, 0.1);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.faq-tab.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.faq-tab-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.accordion-item {
    border: none;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
    border-radius: 0;
    overflow: hidden;
    background-color: transparent;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-button {
    background-color: var(--white);
    padding: 20px 0;
    width: 100%;
    text-align: left;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--dark-blue-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    border-radius: 0;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-blue);
    background-color: var(--white);
    border-bottom: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    content: "";
    width: 1.25rem;
    height: 1.25rem;
    transform: rotate(-90deg);
    transition: transform 0.2s ease-in-out;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(0deg);
}

.accordion-body {
    padding: 0 0 20px 0;
    background-color: var(--white);
    color: var(--gray-text);
    font-size: 14px;
    font-weight: 400;
}

/* --- Footer (kode ini tidak berubah) --- */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding-top: 50px;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
    flex: 1;
    min-width: 180px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 30px;
    margin-right: 10px;
    filter: brightness(0) invert(1);
}

.footer-col h3 {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li span {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-col ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-blue);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.6);

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

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin-bottom: 0;
}

.footer-bottom .back-to-top {
    margin-top: 0;
}

.footer-bottom .copyright-links {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* --- Responsif (Mobile First Approach, lalu desktop) --- */

@media (max-width: 992px) {


    .header {
        background-color: var(--light-blue-bg);
        padding: 15px 0;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 960px;
    }

    .hero-section {
        width: auto;
        margin-left: 0;
    }

    /* Tampilkan hamburger menu di mobile */
    .hamburger-menu {
        display: block;
        font-size: 2em;
        cursor: pointer;
        color: var(--dark-blue-text);
        z-index: 1002;
        /* Paling atas di header mobile, lebih tinggi dari .nav-auth */
    }

    .logo {
        display: none;
    }

    /* Tombol Daftar/Masuk di header mobile */
    .nav-auth {
        display: flex;
        gap: 6px;
        position: relative;
        /* Pastikan .nav-auth memiliki positioning context untuk z-index */
        z-index: 1001;
        /* Di atas logo tapi di bawah hamburger, dan PENTING: lebih rendah dari .nav-menu */
    }

    /* Nav Menu untuk Mobile (Dropdown dari atas) */
    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: -100vh;
        /* Sembunyikan ke atas layar saat tidak aktif */
        left: 0;
        width: 100%;
        /* Lebar penuh */
        height: auto;
        /* Tinggi otomatis sesuai konten */
        max-height: 100vh;
        /* Batasi tinggi agar tidak meluap jika konten sangat banyak */
        background-color: var(--dark-blue-text);
        /* Latar belakang gelap */
        padding: 80px 20px 20px;
        /* Padding di dalam menu */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
        transition: top 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        z-index: 1005;
        /* PENTING: Atur z-index lebih tinggi dari .nav-auth (misal 1005) */
        align-items: flex-start;
        justify-content: flex-start;
        overflow-y: auto;
        /* Izinkan scroll jika konten melebihi max-height */

        opacity: 0;
        visibility: hidden;
    }

    .nav-menu.active {
        top: 0;
        /* Geser ke bawah agar terlihat */
        opacity: 1;
        visibility: visible;
    }

    /* Tombol Close (X) di dalam menu mobile */
    .nav-menu .close-menu {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 2em;
        color: var(--white);
        cursor: pointer;
        z-index: 1006;
        /* Pastikan di atas menu dan semua elemen lain di dalamnya */
    }

    .nav-menu .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        margin-bottom: 30px;
        padding: 0;
        list-style: none;
    }

    .nav-menu .nav-list li {
        width: 100%;
    }

    .nav-menu .nav-list a {
        color: var(--white);
        font-size: 16px;
        /* Font size 16px sesuai permintaan */
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
        text-align: left;
        text-decoration: none;
    }

    .nav-menu .nav-list a:hover {
        color: var(--primary-blue);
    }
}

@media (max-width: 576px) {
    .hero-text-area h1 {
        font-size: 1.8em;
    }

    .hero-text-area p {
        font-size: 0.9em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .logo span {
        font-size: 1em;
    }

    .feature-item-alt {
        text-align: center;
    }

    .feature-item-alt img {
        margin-left: auto;
        margin-right: auto;
    }

    .faq-tabs-custom {
        gap: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .faq-tab {
        font-size: 0.9em;
        padding: 10px 20px;
    }
}

.footer-bottom .footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-left: 10px;
}

.footer-bottom .footer-link:hover {
    color: var(--primary-blue);
}

.footer-bottom .back-to-top {
    margin-top: 10px;
}

.footer-bottom .back-to-top a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.footer-bottom .back-to-top a:hover {
    color: var(--primary-blue);
}