/* ================================================================\n * DESIGN SYSTEM - AKFAR BHUMI HUSADA\n * ================================================================ */

/* 1. IMPORTS & VARIABLES\n * ---------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Inter:wght@400;500&display=swap');

:root {
    /* Color System */
    --color-primary: #1B5E20;
    --color-secondary: #2E7D32;
    --color-background: #FFFFFF;
    --color-surface: #F7F9F7; /* Slightly off-white for cards/sections */
    --color-text-primary: #333333;
    --color-text-secondary: #555555;
    --color-border: #E0E0E0;
    --color-accent: #4CAF50; /* A slightly brighter green for accents/CTA */
    --color-white: #FFFFFF;
    --color-error: #D32F2F;
    --color-success: #388E3C;

    /* Typography System */
    --font-heading: 'Poppins', 'Inter', Arial, sans-serif;
    --font-body: 'Inter', Arial, sans-serif;
    --h1-size-desktop: 36px;
    --h1-size-mobile: 28px;
    --line-height-body: 1.6;

    /* Spacing & Layout System */
    --spacing-section-desktop: 64px;
    --spacing-section-mobile: 32px;
    --spacing-card: 24px;
    --spacing-gutter: 16px;

    /* UI Component System */
    --border-radius: 8px;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition-fast: all 0.2s ease-in-out;
}

/* 2. GLOBAL RESETS & BASE STYLES\n * ---------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: var(--line-height-body);
    color: var(--color-text-primary);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--spacing-gutter);
}

section {
    padding: var(--spacing-section-desktop) 0;
}

@media (max-width: 768px) {
    section {
        padding: var(--spacing-section-mobile) 0;
    }
}

/* 3. TYPOGRAPHY\n * ---------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.75em;
}

h1 {
    font-size: var(--h1-size-desktop);
    font-weight: 700; /* Poppins Bold */
}

h2 {
    font-size: 28px;
    font-weight: 600; /* Poppins SemiBold */
}

h3 {
    font-size: 22px;
    font-weight: 500; /* Poppins Medium */
}

p {
    margin-bottom: 1em;
    color: var(--color-text-secondary);
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    h1 {
        font-size: var(--h1-size-mobile);
    }
    h2 {
        font-size: 24px;
    }
}

/* 4. UI COMPONENTS\n * ---------------------------------------------------------------- */

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500; /* Medium */
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
}

/* Cards */
.card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: var(--spacing-card);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-fast);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.form-control {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-family: var(--font-body);
    font-size: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background-color: var(--color-white);
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.2);
}

/* 5. HEADER & NAVIGATION\n * ---------------------------------------------------------------- */
.main-header {
    background-color: var(--color-background);
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    color: var(--color-primary);
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 16px;
    color: var(--color-text-primary);
    text-decoration: none;
    padding: 8px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    cursor: pointer;
    width: 24px;
    height: 20px;
    position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
}
.nav-toggle span { top: 9px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }


@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-white);
        box-shadow: var(--shadow-soft);
    }
    .nav-toggle {
        display: block;
    }
    .main-nav.active {
        display: flex;
    }
    .main-nav.active ul {
        flex-direction: column;
        width: 100%;
        padding: 16px 0;
        gap: 0;
    }
    .main-nav.active li {
        width: 100%;
        text-align: center;
    }
    .main-nav.active a {
        padding: 16px;
        display: block;
        width: 100%;
    }
    .main-nav.active .btn {
        margin: 16px auto;
        width: 90%;
    }
}

/* 6. HERO SECTION\n * ---------------------------------------------------------------- */
.hero {
    position: relative; /* Diperlukan untuk overlay */
    background-image: url('../images/hero.jfif');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    text-align: center;
    color: #fff;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(16, 44, 87, 0.7); /* Overlay biru gelap agar teks terbaca */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1; /* Memastikan konten berada di atas overlay */
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 0.25em;
    color: #fff;
}

.hero-content h2 {
    font-size: 32px;
    margin-bottom: 0.5em;
    color: #fff;
    font-weight: 400;
}

.hero-content p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 1.5em;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.btn-link-hero {
    display: inline-block;
    font-weight: 500;
    color: #fff; /* Diubah agar terlihat di atas background gelap */
    text-decoration: none;
    transition: var(--transition-fast);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    padding-bottom: 2px;
}

.btn-link-hero:hover {
    color: #fff;
    border-bottom-color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }
    .hero-content h1 {
        font-size: 36px;
    }
    .hero-content h2 {
        font-size: 24px;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons .btn {
        width: 80%;
        max-width: 320px;
    }
}

/* 7. PAGE-SPECIFIC STYLES\n * ---------------------------------------------------------------- */

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 0.25em;
}

.section-header p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Highlights Section on Homepage */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    text-align: center;
}

.highlights-grid .card i {
    font-size: 36px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.highlights-grid .card h3 {
    margin-top: 0.5em;
    color: var(--color-secondary);
}

/* Alur Pendaftaran Section - Horizontal Layout */
.timeline-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.timeline-step {
    text-align: center;
}

.timeline-dot {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px auto;
    background-color: var(--color-surface);
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-fast);
}

.timeline-dot i {
    font-size: 24px;
    color: var(--color-primary);
    transition: var(--transition-fast);
}

.timeline-step:hover .timeline-dot {
    background-color: var(--color-primary);
    transform: scale(1.05);
}

.timeline-step:hover .timeline-dot i {
    color: var(--color-white);
}

.timeline-content h4 {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 15px;
    line-height: 1.5;
}

/* Detailed Timeline on Alur Page */
.timeline-detailed {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.timeline-detailed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 4px;
    background: var(--color-border);
}

.timeline-detailed .timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 60px;
}

.timeline-detailed .timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-detailed .timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    background: var(--color-background);
    border: 4px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.timeline-detailed .timeline-icon i {
    color: var(--color-primary);
    font-size: 18px;
}

.timeline-detailed .timeline-content.card {
    position: relative;
    border-left: 4px solid var(--color-primary);
}

.timeline-detailed .timeline-content h3 {
    font-size: 20px;
    color: var(--color-primary);
}

.timeline-detailed .timeline-content ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 16px;
}

.timeline-detailed .timeline-content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--color-text-secondary);
}

.timeline-detailed .timeline-content ul li::before {
    content: '\2022'; /* Bullet character */
    color: var(--color-primary);
    font-weight: bold;
    display: inline-block;
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .timeline-detailed {
        padding: 0;
    }
    .timeline-detailed::before {
        left: 10px;
    }
    .timeline-detailed .timeline-item {
        padding-left: 40px;
    }
    .timeline-detailed .timeline-icon {
        width: 40px;
        height: 40px;
    }
}

/* 8. DASHBOARD & ADMIN STYLES\n * ---------------------------------------------------------------- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 32px;
}

.dashboard-nav {
    background: #fff;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    padding: 16px;
    align-self: start;
}

.dashboard-nav ul {
    list-style: none;
}

.dashboard-nav a {
    display: block;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
    background-color: var(--color-surface);
    color: var(--color-primary);
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    color: #fff;
}

.progress-bar {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    height: 20px;
}

.progress-bar-inner {
    height: 100%;
    width: 0%; /* Default width, will be overridden by inline style */
    background-color: var(--color-primary);
    transition: width 0.5s ease;
    text-align: center;
    color: white;
    font-weight: bold;
    line-height: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    background-color: var(--color-surface);
    font-family: var(--font-heading);
}

.admin-table tr:nth-child(even) {
    background-color: var(--color-surface);
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}


/* 9. WHATSAPP STYLES\n * ---------------------------------------------------------------- */
.whatsapp-floating-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
    z-index: 1000;
    transition: var(--transition-fast);
}

.whatsapp-floating-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.whatsapp-floating-button i {
    font-size: 24px;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    border: none;
}

.btn-whatsapp:hover {
    background-color: #1EBE57;
    color: #fff;
}

.whatsapp-help-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    color: var(--color-text-secondary);
    text-decoration: none;
}

.whatsapp-help-link i {
    color: #25D366;
    margin-right: 6px;
}

.whatsapp-help-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}


/* ================================================================
   Public Footer Styles
   ================================================================ */
.site-footer {
    background-color: #1d2c4d; /* Biru tua */
    color: #f0f0f0; /* Abu terang */
    padding: 50px 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col {
    min-width: 0;
}

.footer-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #4CAF50; /* Hijau farmasi sebagai aksen */
}

.footer-tagline {
    font-style: italic;
    color: #a0a8b8;
    margin-top: -10px;
}

.site-footer p {
    margin-bottom: 10px;
}

.site-footer a {
    color: #b0bacc; /* Warna sedikit lebih terang untuk kontras */
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #ffffff;
}

.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin-bottom: 10px;
}

/* PERBAIKAN: Mengganti gaya Tautan Cepat yang salah */
.quick-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Jarak antara ikon dan teks */
    transition: transform 0.3s ease;
}

.quick-links a:hover {
    transform: translateX(5px); /* Efek geser saat di-hover */
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 18px;
    transition: background-color 0.3s, transform 0.3s;
}

.social-media a:hover {
    background-color: #4CAF50;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid #3a4a6b;
    font-size: 14px;
    color: #a0a8b8;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-media {
        justify-content: center;
    }
}

/* TAMBAHKAN KODE DI BAWAH INI */
.site-footer p {
    color: #a0a8b8; /* Menyamakan warna teks paragraf */
}

.site-footer p strong {
    color: #ffffff; /* Membuat label seperti 'Alamat:' lebih terang */
    font-weight: 500;
}

// ... existing code ...
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}


/* PERBAIKAN: Gaya untuk konten teks seperti di halaman 'Tentang' */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
}

.page-content h3 {
    margin-top: 1.5em;
}

.page-content ul {
    list-style-position: inside;
    padding-left: 20px;
}

/* PERBAIKAN: Di layar kecil, ubah perataan teks agar lebih mudah dibaca */
@media (max-width: 768px) {
    .page-content {
        text-align: left;
    }
}


// ... existing code ...
.site-footer p strong {
    color: #ffffff; /* Membuat label seperti 'Alamat:' lebih terang */
    font-weight: 500;
}

/* ================================================================
   PERBAIKAN FINAL: Gaya untuk Peta yang Langsung Mengarahkan
   ================================================================ */

/* Wrapper untuk link peta */
.map-link {
    display: block;
    position: relative; /* Diperlukan untuk menumpuk overlay */
    border-radius: var(--border-radius);
    overflow: hidden; /* Memastikan sudut iframe juga membulat */
    box-shadow: var(--shadow-soft);
    margin-top: 1.5em;
}

/* Container untuk iframe */
.map-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* Aspect Ratio 16:9, membuat peta responsif */
}

/* Iframe peta itu sendiri */
.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    /* PENTING: Membuat iframe tidak bisa diklik, sehingga link di atasnya yang berfungsi */
    pointer-events: none;
}

/* Overlay yang berisi teks petunjuk */
.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

/* Efek saat kursor diarahkan ke link peta */
.map-link:hover .map-overlay {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Teks di tengah overlay */
.map-overlay-text {
    color: white;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    padding: 20px;
}

.map-overlay-text i {
    display: block;
    font-size: 32px;
    margin-bottom: 10px;
}


// ... existing code ...
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }


/* HAPUS BLOK @media DI BAWAH INI ... */
/*
@media (max-width: 768px) {
    .main-nav {
        display: none;
        ...
    }
    ...
}
*/

/* ... DAN GANTI DENGAN BLOK BARU INI */
@media (max-width: 768px) {
    .main-header .container {
        /* Memastikan ada ruang untuk logo dan tombol */
        justify-content: space-between;
    }

    .main-nav {
        display: none; /* Sembunyikan menu secara default di mobile */
        position: absolute;
        top: 100%; /* Muncul tepat di bawah header */
        left: 0;
        width: 100%;
        background: var(--color-white);
        box-shadow: var(--shadow-soft);
        border-top: 1px solid var(--color-border);
    }

    /* Tampilkan tombol hamburger di mobile */
    .nav-toggle {
        display: block;
        z-index: 1001; /* Pastikan di atas elemen lain */
    }

    /* PERBAIKAN UTAMA: Paksa garis hamburger untuk terlihat */
    .nav-toggle span,
    .nav-toggle span::before,
    .nav-toggle span::after {
        background-color: var(--color-primary) !important; /* Paksa warna menjadi hijau tua */
    }

    /* Aturan saat menu aktif (setelah diklik) */
    .main-nav.active {
        display: flex; /* Tampilkan menu */
    }

    .main-nav.active ul {
        flex-direction: column;
        width: 100%;
        padding: 16px 0;
        gap: 0;
    }

    .main-nav.active li {
        width: 100%;
        text-align: center;
    }

    .main-nav.active a {
        padding: 16px;
        display: block;
        width: 100%;
    }

    .main-nav.active .btn {
        margin: 16px auto;
        width: 90%;
    }

    /* Animasi untuk tombol hamburger saat aktif */
    .nav-toggle.active span {
        background-color: transparent; /* Sembunyikan garis tengah */
    }
    .nav-toggle.active span::before {
        transform: rotate(45deg);
        top: 0;
    }
    .nav-toggle.active span::after {
        transform: rotate(-45deg);
        top: 0;
    }
}

// ... existing code ...
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }


/* HAPUS BLOK @media DI BAWAH INI ... */
/*
@media (max-width: 768px) {
    .main-nav {
        display: none;
        ...
    }
    ...
}
*/

/* ... DAN GANTI DENGAN BLOK BARU INI */
@media (max-width: 768px) {
    .main-header .container {
        /* Memastikan ada ruang untuk logo dan tombol */
        justify-content: space-between;
    }

    .main-nav {
        display: none; /* Sembunyikan menu secara default di mobile */
        position: absolute;
        top: 100%; /* Muncul tepat di bawah header */
        left: 0;
        width: 100%;
        background: var(--color-white);
        box-shadow: var(--shadow-soft);
        border-top: 1px solid var(--color-border);
    }

    /* Tampilkan tombol hamburger di mobile */
    .nav-toggle {
        display: block;
        z-index: 1001; /* Pastikan di atas elemen lain */
    }

    /* PERBAIKAN UTAMA: Paksa garis hamburger untuk terlihat */
    .nav-toggle span,
    .nav-toggle span::before,
    .nav-toggle span::after {
        background-color: var(--color-primary) !important; /* Paksa warna menjadi hijau tua */
    }

    /* Aturan saat menu aktif (setelah diklik) */
    .main-nav.active {
        display: flex; /* Tampilkan menu */
    }

    .main-nav.active ul {
        flex-direction: column;
        width: 100%;
        padding: 16px 0;
        gap: 0;
    }

    .main-nav.active li {
        width: 100%;
        text-align: center;
    }

    .main-nav.active a {
        padding: 16px;
        display: block;
        width: 100%;
    }

    .main-nav.active .btn {
        margin: 16px auto;
        width: 90%;
    }

    /* Animasi untuk tombol hamburger saat aktif */
    .nav-toggle.active span {
        background-color: transparent; /* Sembunyikan garis tengah */
    }
    .nav-toggle.active span::before {
        transform: rotate(45deg);
        top: 0;
    }
    .nav-toggle.active span::after {
        transform: rotate(-45deg);
        top: 0;
    }
}


// ... existing code ...
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }


/* HAPUS BLOK @media DI BAWAH INI ... */
/*
@media (max-width: 768px) {
    .main-nav {
        display: none;
        ...
    }
    ...
}
*/

/* ... DAN GANTI DENGAN BLOK BARU INI */
@media (max-width: 768px) {
    .main-header .container {
        /* Memastikan ada ruang untuk logo dan tombol */
        justify-content: space-between;
    }

    .main-nav {
        display: none; /* Sembunyikan menu secara default di mobile */
        position: absolute;
        top: 100%; /* Muncul tepat di bawah header */
        left: 0;
        width: 100%;
        background: var(--color-white);
        box-shadow: var(--shadow-soft);
        border-top: 1px solid var(--color-border);
    }

    /* Tampilkan tombol hamburger di mobile */
    .nav-toggle {
        display: block;
        z-index: 1001; /* Pastikan di atas elemen lain */
    }

    /* PERBAIKAN UTAMA: Paksa garis hamburger untuk terlihat */
    .nav-toggle span,
    .nav-toggle span::before,
    .nav-toggle span::after {
        background-color: var(--color-primary) !important; /* Paksa warna menjadi hijau tua */
    }

    /* Aturan saat menu aktif (setelah diklik) */
    .main-nav.active {
        display: flex; /* Tampilkan menu */
    }

    .main-nav.active ul {
        flex-direction: column;
        width: 100%;
        padding: 16px 0;
        gap: 0;
    }

    .main-nav.active li {
        width: 100%;
        text-align: center;
    }

    .main-nav.active a {
        padding: 16px;
        display: block;
        width: 100%;
    }

    .main-nav.active .btn {
        margin: 16px auto;
        width: 90%;
    }

    /* Animasi untuk tombol hamburger saat aktif */
    .nav-toggle.active span {
        background-color: transparent; /* Sembunyikan garis tengah */
    }
    .nav-toggle.active span::before {
        transform: rotate(45deg);
        top: 0;
    }
    .nav-toggle.active span::after {
        transform: rotate(-45deg);
        top: 0;
    }
}
/* ... DAN GANTI DENGAN BLOK BARU INI */
@media (max-width: 768px) {
    .main-header .container {
        /* Memastikan ada ruang untuk logo dan tombol */
        justify-content: space-between;
    }

    .main-nav {
        display: none; /* Sembunyikan menu secara default di mobile */
        position: absolute;
        top: 100%; /* Muncul tepat di bawah header */
        left: 0;
        width: 100%;
        background: var(--color-white);
        box-shadow: var(--shadow-soft);
        border-top: 1px solid var(--color-border);
    }

    /* Tampilkan tombol hamburger di mobile */
    .nav-toggle {
        display: block;
        z-index: 1001; /* Pastikan di atas elemen lain */
    }

    /* PERBAIKAN UTAMA: Paksa garis hamburger untuk terlihat */
    .nav-toggle span,
    .nav-toggle span::before,
    .nav-toggle span::after {
        background-color: var(--color-primary) !important; /* Paksa warna menjadi hijau tua */
    }

    /* Aturan saat menu aktif (setelah diklik) */
    .main-nav.active {
        display: flex; /* Tampilkan menu */
    }

    .main-nav.active ul {
        flex-direction: column;
        width: 100%;
        padding: 16px 0;
        gap: 0;
    }

    .main-nav.active li {
        width: 100%;
        text-align: center;
    }

    .main-nav.active a {
        padding: 16px;
        display: block;
        width: 100%;
    }

    .main-nav.active .btn {
        margin: 16px auto;
        width: 90%;
    }

    /* Animasi untuk tombol hamburger saat aktif */
    .nav-toggle.active span {
        background-color: transparent; /* Sembunyikan garis tengah */
    }
    .nav-toggle.active span::before {
        transform: rotate(45deg);
        top: 0;
    }
    .nav-toggle.active span::after {
        transform: rotate(-45deg);
        top: 0;
    }
}

// ... existing code ...

/* Pathway Selection on Homepage */
.pathway-selection {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
    text-align: left;
}

.pathway-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    color: var(--color-text-light);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.pathway-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.pathway-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
}

.pathway-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 992px) {
    .pathway-selection {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   Hero Section & Pathway Selection Styles
   ========================================================================== */

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 70vh; /* Memberi tinggi minimum pada hero section */
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.pathway-selection {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pathway-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 290px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pathway-card:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.4);
}

.pathway-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.pathway-card p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .pathway-selection {
        flex-direction: column;
        align-items: center;
    }

    .pathway-card {
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content h2 {
        font-size: 1.5rem;
    }
}

/* ... existing code ... */

/* Tambahkan kode ini di bagian paling bawah file */

// ... existing code ...
/* Hapus blok @media query lama dan ganti dengan yang ini */

/* Responsive Styles */
@media (max-width: 768px) {
    .main-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* PERBAIKAN: Menghapus flex-direction: column agar logo dan teks sejajar */
    .main-header .logo {
        /* Tidak perlu properti flex tambahan, karena sudah diatur inline di HTML */
    }

    .main-header .logo img {
        height: 40px; /* Perkecil logo di mobile */
        margin-right: 10px; /* Sesuaikan jarak kanan */
        margin-bottom: 0; /* Hapus margin bawah */
    }

    .main-header .logo span {
        font-size: 18px; /* Perkecil font di mobile */
    }

    .nav-toggle {
        display: flex; /* Tampilkan tombol hamburger */
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 1001;
    }

    .nav-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--color-primary);
        transition: all 0.3s ease;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .main-nav {
        display: none; /* Sembunyikan navigasi utama */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .main-nav.active {
        display: block; /* Tampilkan saat tombol hamburger di-klik */
    }

    .main-nav ul {
        flex-direction: column;
        padding: 0;
    }

    .main-nav ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .main-nav ul li a {
        padding: 15px;
        display: block;
    }

    .main-nav ul li .btn {
        margin: 10px auto;
        display: inline-block;
        width: auto;
    }
}

/* ... existing code ... */
/* Tambahkan kode ini di dekat style header lainnya */
.main-header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.main-header .logo-image {
    height: 50px;
    margin-right: 15px;
}

.main-header .brand-name {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 24px;
}

.main-header .brand-subtitle {
    display: none; /* Sembunyikan subjudul di desktop */
}

// ... existing code ...
/* Hapus @media query yang lama di bagian bawah file, dan ganti dengan ini */

@media (max-width: 768px) {
    .main-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .main-header .logo-image {
        height: 45px;
        margin-right: 10px;
    }

    .logo-text {
        display: flex;
        flex-direction: column;
    }

    .main-header .brand-name {
        font-size: 18px; /* PERUBAHAN: Ukuran font diperbesar dari 16px menjadi 18px */
        white-space: nowrap; /* Paksa teks tetap satu baris */
    }

    .main-header .brand-subtitle {
        display: block; /* Tampilkan subjudul di mobile */
        font-size: 12px;
        color: #555;
        white-space: nowrap;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 1001;
    }

    .nav-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--color-primary);
        transition: all 0.3s ease;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 85px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 0;
    }

    .main-nav ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .main-nav ul li a {
        padding: 15px;
        display: block;
    }

    .main-nav ul li .btn {
        margin: 10px auto;
        display: inline-block;
        width: auto;
    }
}