/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.nav-wrapper {
    padding: 0.3rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo h1 {
    font-size: 1.5rem;
    color: #6B8DD6;
    margin-bottom: 0;
}

.logo .tagline {
    font-size: 0.9rem;
    color: #8FA9D8;
    display: block;
    margin-top: -7px;
    margin-left: 1px;;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #E8F0FE 0%, #F5E6F9 100%);
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #6B8DD6;
    color: white;
}

.btn-primary:hover {
    background-color: #5A7BC5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 141, 214, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #6B8DD6;
    border: 2px solid #6B8DD6;
}

.btn-secondary:hover {
    background-color: #6B8DD6;
    color: white;
}

.btn-link {
    color: #6B8DD6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: #5A7BC5;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

/* Program Section */
.program {
    background-color: #fff;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.program-card {
    background: linear-gradient(135deg, #FFF9F0 0%, #FFF 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 2px solid #97b1e9;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.program-card.featured {
    background: linear-gradient(135deg, #E8F0FE 0%, #F5E6F9 100%);
    border: 2px solid #6B8DD6;
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #6B8DD6;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.program-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.program-card h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.program-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.program-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.program-features li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.program-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #6B8DD6;
    font-weight: bold;
}

/* Keunggulan Section */
.keunggulan {
    background: linear-gradient(135deg, #FFF9F0 0%, #FFF 100%);
}

.keunggulan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.keunggulan-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.keunggulan-card:hover {
    transform: translateY(-5px);
}

.keunggulan-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.keunggulan-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.8rem;
}

.keunggulan-card p {
    color: #666;
    line-height: 1.6;
}

/* Testimoni Section */
.testimoni {
    background-color: #fff;
}

.testimoni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimoni-card {
    background: linear-gradient(135deg, #E8F0FE 0%, #FFF 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.stars {
    color: #FFB800;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimoni-text {
    color: #555;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimoni-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    font-size: 2.5rem;
}

.testimoni-author h4 {
    color: #333;
    margin-bottom: 0.2rem;
}

.testimoni-author p {
    color: #888;
    font-size: 0.9rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #6B8DD6 0%, #8FA9D8 100%);
    color: white;
    text-align: center;
    padding: 60px 0;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta .btn-primary {
    background-color: white;
    color: #6B8DD6;
}

.cta .btn-primary:hover {
    background-color: #f0f0f0;
}

/* Kontak Section */
.kontak {
    background: linear-gradient(135deg, #FFF9F0 0%, #FFF 100%);
}

.kontak-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.kontak-info h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-item h4 {
    color: #333;
    margin-bottom: 0.3rem;
}

.info-item p {
    color: #666;
    line-height: 1.6;
}

/* Form Styles */
.kontak-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.whatsapp-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Reset margin for form groups inside a row to avoid double spacing */
.form-row .form-group {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #E8F0FE;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6B8DD6;
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background-color: #2C3E50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 0.1rem;
    color: #6B8DD6;
}

.footer-section h4 {
    margin-bottom: 0.1rem;
    color: #8FA9D8;
}

.footer-section p {
    color: #bbb;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #6B8DD6;
}

a{
    text-decoration: none;
    color: #bbb;
    transition: color 0.3s ease;
}

a:hover {
    color: #6B8DD6;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-link {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #6B8DD6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid #8b8a3c;
    color: #bbb;
    padding-bottom: 1rem;
}

/* Tombol Kembali ke Atas */
.to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #2C3E50; /* Warna sama dengan footer */
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top-btn span {
    display: inline-block;
}

/* Animasi Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform; /* Optimasi performa animasi */
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Overlay untuk menu mobile */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none; /* non-interaktif saat tidak aktif */
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* aktifkan klik untuk menutup menu */
}

/* body lock saat menu terbuka */
.no-scroll {
    overflow: hidden;
    touch-action: none;
}

/* Pastikan tombol toggle selalu di atas overlay */
.mobile-menu-toggle {
    position: relative;
    z-index: 1004; /* lebih tinggi dari overlay (1001) dan nav (1002) */
    pointer-events: auto;
}

/* Pastikan nav berada di bawah toggle tapi di atas konten */
.nav-menu {
    z-index: 1002;
}

/* override safety untuk elemen yang mungkin menutup tombol */
header, .site-header {
    z-index: 1000;
}

/* Promo Popup */
.promo-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #203D43;
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    max-width: 320px;
    text-align: center;
    transform: translateY(150%);
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.promo-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.promo-popup p {
    margin-bottom: 1rem;
    line-height: 1.4;
}

#closePromo {
    background: #DC4E4E;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#closePromo:hover {
    background: #c74242; /* A slightly darker shade of primary */
}

.popup-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.popup-link {
    color: #F8C674;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.popup-link:hover {
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex; 
        z-index: 1004; /* Pastikan tombol SELALU di atas segalanya */
    }

    /* Saat menu aktif, tombol 'X' pindah ke pojok kanan atas */
    .mobile-menu-toggle.active {
        position: fixed; /* Posisi relatif terhadap viewport */
        top: 1.2rem;     /* Sesuaikan dengan padding nav-wrapper */
        right: 20px;     /* Sesuaikan dengan padding container */
    }

    .nav-menu {
        /* Mengubah menjadi side-nav dari kanan */
        position: fixed;
        top: 0;
        right: 0;
        width: 70%; /* Lebar 70% agar lebih nyaman di layar kecil */
        max-width: 320px; /* Batas lebar maksimum */
        height: 100vh; /* Tinggi penuh */
        background-color: #2C3E50; /* Warna background seperti footer */
        flex-direction: column;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        z-index: 1002; /* Di atas overlay */
        padding: 6rem 2rem 2rem 2rem; /* Padding atas untuk memberi ruang */
        transform: translateX(100%); /* Sembunyikan ke kanan */
        transition: transform 0.4s ease-in-out;
    }

    .nav-menu.active {
        transform: translateX(0); /* Tampilkan dengan slide dari kanan */
    }

    /* Gaya link di menu mobile */
    .nav-menu li a {
        display: block;
        background-color: #4A6580; /* Warna latar tombol */
        color: #FFFFFF;
        padding: 0.75rem;
        border-radius: 8px;
        text-align: center;
        font-weight: 500;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .nav-menu li a:hover, .nav-menu li a:focus {
        background-color: #6B8DD6; /* Warna utama saat hover */
        color: #FFFFFF;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .program-grid,
    .keunggulan-grid,
    .testimoni-grid {
        grid-template-columns: 1fr;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .program-card,
    .keunggulan-card,
    .testimoni-card {
        padding: 1.5rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }
}