/* General Resets & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif; /* Menggunakan Poppins jika tersedia, atau sans-serif generik */
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    overflow-x: hidden; /* Mencegah scroll horizontal yang tidak diinginkan */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    margin-bottom: 15px;
    color: #4A0082; /* Deep Purple, bisa diganti ke warna branding Cherry jika ada */
    font-weight: 700;
}

p {
    margin-bottom: 15px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: #4A0082; /* Deep Purple */
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.05em;
}

.btn-primary:hover {
    background-color: #800000; /* Darker Red/Cherry */
    transform: translateY(-2px);
}

.btn-primary i,
.btn-secondary i,
.btn-outline i {
    margin-left: 8px;
    font-size: 0.95em;
    vertical-align: middle; /* Tetap pertahankan ini */
    position: relative; /* Untuk penyesuaian top */
    top: 1px; /* Coba geser 1px ke bawah, atau -1px ke atas. Sesuaikan nilainya */
}

.btn-secondary {
    display: inline-block;
    background-color: #a80000; /* Cherry Red */
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.05em;
}

.btn-secondary:hover {
    background-color: #4A0082; /* Deep Purple */
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: #a80000; /* Cherry Red */
    padding: 10px 25px;
    border: 2px solid #4A0082; /* Deep Purple */
    border-radius: 30px;
    transition: all 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95em;
}

.btn-outline:hover {
    background-color: #4A0082; /* Deep Purple */
    color: #fff;
    transform: translateY(-2px);
}

/* Header */
header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(65, 0, 116, 0.1); /* Adjusted shadow for better visibility */
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 55px; /* Atur ukuran logo */
    width: auto;
    object-fit: contain;
}
/* Jika menggunakan teks sebagai logo */
.site-title {
    font-size: 1.8em;
    font-weight: bold;
    color: #a80000; /* Cherry Red */
}


.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 600;
    color: #4A0082; /* Deep Purple */
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #a80000; /* Cherry Red */
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a:hover {
    color: #a80000; /* Cherry Red */
}

/* Dropdown/Submenu styles */
.main-nav ul li.has-submenu {
    position: relative; /* Important for submenu positioning */
}

.main-nav ul li.has-submenu .submenu {
    display: none; /* Hide by default */
    position: absolute;
    background-color: #fff; /* Pop-up background */
    min-width: 180px; /* Minimum width of pop-up */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001; /* Ensure it's above other content */
    list-style: none; /* Remove bullet points */
    padding: 10px 0;
    border-radius: 8px;
    left: 50%; /* Center submenu relative to parent item */
    transform: translateX(-50%); /* Adjustment for centering */
    top: calc(100% + 10px); /* Position below parent item with some space */
    opacity: 0; /* For fade animation */
    visibility: hidden; /* For fade animation */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.main-nav ul li.has-submenu:hover .submenu {
    display: block; /* Show on hover */
    opacity: 1; /* Fade-in animation */
    visibility: visible; /* Fade-in animation */
}

.main-nav ul li.has-submenu .submenu li {
    clear: both; /* Important for horizontal layout */
    width: 100%;
    padding: 0; /* Remove default li padding */
    margin: 0; /* Remove default li margin */
}

.main-nav ul li.has-submenu .submenu li a {
    color: #4A0082; /* Submenu link text color */
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    text-align: left; /* Left-align text */
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap; /* Prevent text wrapping */
}

.main-nav ul li.has-submenu .submenu li a:hover {
    background-color: #f1f1f1; /* Hover background */
    color: #a80000; /* Hover text color */
}

.menu-toggle {
    display: none; /* Sembunyikan secara default untuk desktop */
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #333;
}

.body {
    font-family: 'Poppins', sans-serif; /* Terapkan font ke seluruh body atau spesifik elemen */
}


/* Hero Section */
.hero {
    background: url('assets/images/red_overlay.jpg') no-repeat center center / cover,
                /* Layer 2: Gradasi Warna Dasar (Biru seperti gambar referensi) */
                linear-gradient(to right, #eb8787, #b44646); /* Gradasi dari Sky Blue ke Steel Blue */
    color: #fff;
    padding: 50px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 550px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    flex-direction: column; /* Default for mobile */
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 40px;
}

.hero-content {
    flex: 1; /* Ambil ruang yang tersedia */
    max-width: 550px; /* Batasi lebar konten teks */
    text-align: center; /* Teks rata kiri seperti di gambar */
    padding-right: 0; /* Jarak dari gambar di desktop */
    padding-left: 0; /* Jarak dari gambar di desktop */
    z-index: 3; /* Pastikan teks di atas gambar latar */
}

.hero-motto {
        font-size: 1.9em; /* Sesuaikan ukuran font agar pas dalam satu baris. Coba nilai yang lebih kecil jika masih pecah */
        white-space: nowrap; /* Ini penting: Mencegah teks melipat ke baris baru */
        overflow: hidden; /* Sembunyikan jika teks terlalu panjang dan nowrap */
        text-overflow: ellipsis; /* Tambahkan elipsis (...) jika teks terpotong */
        margin-bottom: 15px; /* Jaga margin bawah */
        text-align: center; /* Pastikan rata tengah */
    color: #ffffff; /* Pastikan warnanya putih */
}

.hero-content h1 {
font-size: 1.7em; /* Ukuran font untuk judul utama, sesuaikan */
    font-weight: 500; /* Membuat teks tebal */
    line-height: 1.2; /* Jarak antar baris */
    margin-bottom: 20px; /* Jarak bawah dari paragraf */
     color: #ffffff; /* Pastikan baris ini ada dan tidak ditimpa */
     text-align: center; /* Tambahkan ini untuk memastikan paragraf juga rata tengah */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3); /* Sedikit bayangan teks agar lebih jelas */
}

/* Untuk perangkat mobile, sesuaikan ukuran font */

/* Styling untuk paragraf di bawah judul (opsional, jika ada) */
.hero-content p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9; /* Sedikit transparan */
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(74, 0, 130, 0.1); /* Using rgba for the Deep Purple shadow */
    transition: transform 0.5s ease;
}
.hero-image img:hover {
    transform: scale(1.02);
}


/* **********************************************
   Media Queries untuk Responsif
   ********************************************** */

/* Untuk layar dengan lebar maksimum 768px (umumnya untuk tablet dan ponsel) */
@media (max-width: 768px) {
    /* --- Penyesuaian Header (Logo dan Menu Toggle) --- */
        .main-header .container {
        display: flex;
        flex-direction: column;
        align-items: center; /* Ini yang menengahkan item flex (logo, nav) secara horizontal */
        padding: 0px 0; /* Sesuaikan padding atas/bawah container header */
        position: relative;
        width: 100%;
        /* border: 1px solid blue; */ /* DEBUGGING: Lihat batas container */
    }

    .logo {
        display: block;
        width: 100%; /* Pastikan .logo mengambil lebar penuh dari container */
        text-align: center; /* Menengahkan konten inline di dalamnya */
        margin: 0px auto 0px auto; /* Margin atas/bawah dan otomatis di tengah */
        /* border: 1px solid red; */ /* DEBUGGING: Lihat batas div .logo */
    }

    .logo img {
        display: block; /* Penting! Jadikan gambar block-level */
        margin: 0 auto; /* Menengahkan gambar logo itu sendiri */
        max-width: 160px; /* Coba KECILKAN LAGI ukuran ini. Mungkin 160px, atau 150px. */
        height: auto;
        /* border: 1px solid green; */ /* DEBUGGING: Lihat batas gambar */
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 15px;
        z-index: 1000;
        background-color: transparent;
        border: none;
        font-size: 1.5em;
        color: #a80000;
    }

    .main-nav {
        display: none;
        width: 100%;
        text-align: center;
        background-color: #333;
        position: absolute;
        top: 55px;
        left: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }
    .main-nav.active {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
        padding: 20px 0;
    }
    .main-nav ul li a {
        padding: 10px 0;
        display: block;
        color: #fff;
    }

    /* --- Penyesuaian Hero Section --- */
    /* ... (CSS Hero Section lainnya tetap sama seperti sebelumnya) ... */
    .hero {
        min-height: 450px;
        padding: 50px 0;
        background-position: center 20%;
        background-size: cover;
    }

    .hero .container {
        flex-direction: column;
        gap: 20px;
    }

    .hero-motto {
        font-size: 1.9em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 15px;
        text-align: center;
        color: #ffffff;
    }

    .hero-content h1 {
        font-size: 1.0em;
        text-align: center;
        padding-right: 0;
        padding-left: 0;
    }

    .hero-content p {
        font-size: 1.6em;
        margin-bottom: 25px;
        text-align: center;
        padding-right: 0;
        padding-left: 0;
    }

    .hero-image img {
        max-width: 90%;
        object-fit: cover;
        object-position: center top;
    }
}

/* Untuk layar yang sangat kecil (misal: ponsel di bawah 480px) */
@media (max-width: 480px) {
    /* ... (CSS untuk 480px tetap sama seperti sebelumnya) ... */
    .hero {
        min-height: 400px;
        padding: 40px 0;
        background-position: center 15%;
    }

    .hero-motto {
        font-size: 1.9em;
    }

    .hero-content h1 {
        font-size: 1.2em;
    }

    .hero-content p {
        font-size: 0.9em;
    }
}

/* Styling untuk paragraf di bawah judul (opsional, jika ada) */
.hero-content p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(74, 0, 130, 0.1);
    transition: transform 0.5s ease;
}
.hero-image img:hover {
    transform: scale(1.02);
}

/* Alumni Section (Grid of small photos) */
.alumni-section {
    background-color: #FDF2F8; /* Light Pinkish */
    padding: 80px 0 40px;
    text-align: center;
}

.alumni-section h2 {
    font-size: 2.2em;
    margin-bottom: 40px;
    color: #4A0082; /* Deep Purple */
}

.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.alumni-grid img {
    width: 120px; /* Fixed size for alumni images */
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.alumni-grid img:hover {
    transform: scale(1.1);
    border-color: #a80000; /* Cherry Red */
}
.alumni-note {
    margin-top: 30px;
    font-size: 1.1em;
    font-style: italic;
    color: #555;
}









/* Alumni Gallery */
.alumni-gallery {
    padding: 60px 0 80px;
    text-align: center;
    background-color: #fff;
}

.alumni-gallery h2 {
    font-size: 2.2em;
    margin-bottom: 40px;
    color: #4A0082; /* Deep Purple */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-grid img {
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.gallery-grid img:hover {
    transform: translateY(-5px);
}


/* About Us Section */
.about-us {
    padding: 80px 0;
    background-color: #f0f8ff; /* Light bluish */
}

.about-us .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    text-align: center;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.2em;
    margin-bottom: 25px;
    color: #a80000; /* Cherry Red */
}

.about-content p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.5s ease;
}
.about-image img:hover {
    transform: scale(1.02);
}


/* Why Cherry Section */
.why-cherry {
    padding: 80px 0;
    text-align: center;
    background-color: #fff;
}

.why-cherry h2 {
    font-size: 2.2em;
    margin-bottom: 50px;
    color: #4A0082; /* Deep Purple */
}

.why-cherry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.why-cherry-item {
    background-color: #F8F0FF; /* Very light purple */
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.07);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid #a80000; /* Cherry accent */
}

.why-cherry-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.why-cherry-item .icon {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #a80000; /* Cherry Red */
}

.why-cherry-item h3 {
    font-size: 1.6em;
    margin-bottom: 12px;
    color: #4A0082; /* Deep Purple */
}

.why-cherry-item p {
    font-size: 1em;
    color: #666;
}

/* Programs Overview Section */
.programs-overview {
    padding: 80px 0;
    text-align: center;
    background-color: #E6E6FA; /* Lavender Blusih */
}

.programs-overview h2 {
    font-size: 2.2em;
    margin-bottom: 50px;
    color: #4A0082; /* Deep Purple */
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.program-card {
    background-color: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.program-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.program-card h3 {
    font-size: 1.5em;
    padding: 20px 25px 0;
    color: #a80000; /* Cherry Red */
}

.program-card p {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #555;
}

.program-card .btn-outline {
    display: block;
    width: 90%; /* Ubah dari 100% agar tidak menempel ke tepi */
    padding: 12px 0;
    margin: 20px auto 25px; /* auto kiri-kanan agar tengah */
    border: 2px solid #4a0082; /* warna ungu */
    border-radius: 999px;
    color: #a80000; /* merah */
    font-weight: bold;
    background-color: transparent;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.program-card .btn-outline:hover {
    background-color: #4a0082;
    color: white;
}


/* Program Online & Offline */
.program-delivery {
    padding: 80px 0;
    text-align: center;
    background-color: #fff;
}

.program-delivery h2 {
    font-size: 2.2em;
    margin-bottom: 50px;
    color: #4A0082; /* Deep Purple */
}

.delivery-columns {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    gap: 40px;
    justify-content: center;
}

.delivery-item {
    flex: 1 1 45%; /* Flex-grow, flex-shrink, flex-basis */
    min-width: 300px; /* Minimum width before wrapping */
    background-color: #FDF2F8; /* Light Pinkish */
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 5px solid #00BFFF; /* Blue accent - keeping as per original CSS for contrast */
}

.delivery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.delivery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 25px;
}

.delivery-item h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #4A0082; /* Deep Purple */
}

.delivery-item p {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
}

.delivery-item ul {
    margin-bottom: 25px;
}

.delivery-item ul li {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 8px;
}

.delivery-item ul li i {
    color: #a80000; /* Cherry checkmark */
    margin-right: 8px;
}

.delivery-item .btn-primary {
    width: 100%;
    text-align: center;
    font-size: 1em;
}


/* Testimonials Section */
.testimonials {
    background-color: #F0F8FF; /* Light bluish */
    padding: 80px 0;
    text-align: center;
}

.testimonials h2 {
    font-size: 2.2em;
    margin-bottom: 50px;
    color: #a80000; /* Cherry Red */
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 30px;
    padding-bottom: 20px;
    justify-content: flex-start; /* Ensure items align to start if not enough to fill row */
    padding-left: 20px; /* For padding on the left edge of the slider */
    padding-right: 20px; /* For padding on the right edge of the slider */
}

.testimonial-card {
    flex: 0 0 90%; /* For mobile, take up most of the width */
    max-width: 450px; /* Max width for each card */
    background-color: #fff;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    scroll-snap-align: start;
    text-align: left;
    border-left: 5px solid #4A0082; /* Deep Purple accent */
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: #444;
    font-size: 1.05em;
}

.testimonial-card h4 {
    margin-bottom: 8px;
    color: #a80000; /* Cherry Red */
    font-size: 1.2em;
}

.testimonial-card span {
    font-size: 0.95em;
    color: #777;
}


/* Partners Section */
.partners-section {
    padding: 80px 0;
    text-align: center;
    background-color: #fff;
}

.partners-section h2 {
    font-size: 2.2em;
    margin-bottom: 50px;
    color: #4A0082; /* Deep Purple */
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.partner-logos img {
    max-width: 150px; /* Adjust as needed */
    height: auto;
    filter: grayscale(100%); /* Optional: Make logos grayscale */
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}


/* Footer */
footer {
    background: linear-gradient(to right, #800000, #B20000); /* Red to Darker Red */
    color: #ffffff; /* Goldish yellow as accent */
    padding: 60px 0 20px;
    font-size: 0.95em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-grid h3 {
    color: #ffffff; /* Goldish yellow */
    margin-bottom: 20px;
    font-size: 1.4em;
}

.footer-grid p, .footer-grid ul li {
    color: #ffffff;
    margin-bottom: 10px;
}

.footer-grid ul li a {
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-grid ul li a:hover {
    color: #ffe600; /* Goldish yellow on hover */
}

.footer-grid ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #ffffff; /* Goldish yellow for underline */
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.footer-grid ul li a:hover::after {
    width: 100%;
}


.footer-contact p i {
    margin-right: 10px;
    color: #ffe600; /* Goldish yellow */
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    display: inline-block;
    color: #fff;
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: #ffe600; /* Goldish yellow */
    transform: translateY(-3px);
}

.footer-map iframe {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.copyright {
    border-top: 1px solid #ffe600; /* Goldish yellow */
    padding-top: 20px;
    text-align: center;
    color: #ffffff;
    font-size: 0.85em;
}

/* WhatsApp Floating Button and Tooltip */
.whatsapp-container {
    position: fixed;
    bottom: 25px; /* Jarak dari bawah */
    right: 25px;  /* Jarak dari kanan */
    z-index: 1000; /* Pastikan di atas elemen lain */
    display: flex;
    align-items: center; /* Untuk menengahkan tooltip secara vertikal jika dibutuhkan */
    flex-direction: row-reverse; /* Agar tooltip muncul di kiri tombol */
}

.whatsapp-btn {
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%; /* Bentuk lingkaran */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em; /* Ukuran ikon */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none; /* Hilangkan underline default link */
    position: relative; /* Penting untuk positioning tooltip */
    z-index: 1001; /* Pastikan tombol di atas tooltip saat tidak di-hover */
}

.whatsapp-btn:hover {
    transform: scale(1.05); /* Efek zoom saat hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.whatsapp-tooltip {
    background-color: #4A0082; /* Deep Purple background for tooltip */
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.95em;
    white-space: nowrap; /* Mencegah teks patah baris */
    opacity: 0; /* Sembunyikan secara default */
    visibility: hidden; /* Sembunyikan sepenuhnya dari layout */
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateX(10px); /* Sedikit geser ke kanan untuk efek masuk */
    margin-right: 15px; /* Jarak antara tooltip dan tombol WA */
    line-height: 1.4; /* Untuk spasi antar baris */
    text-align: center;
}

/* Tampilkan tooltip saat container di-hover */
.whatsapp-container:hover .whatsapp-tooltip {
    opacity: 1; /* Tampilkan */
    visibility: visible; /* Buat terlihat */
    transform: translateX(0); /* Geser kembali ke posisi normal */
}


/* Registration Form Section */
.registration-form-section {
    padding: 80px 0;
    background-color: #F8F0FF; /* Light purple-pinkish background */
    text-align: center;
}

.registration-form-section h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #4A0082; /* Deep Purple */
}

.registration-form-section .form-description {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.registration-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    border-top: 5px solid #a80000; /* Cherry accent */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4A0082; /* Deep Purple */
}

/* Styles for all text-based inputs, select, and textarea */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"], /* Ditambahkan untuk tanggal kedatangan */
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #a80000; /* Cherry Red */
    box-shadow: 0 0 0 3px rgba(74, 0, 130, 0.2); /* Soft shadow of Deep Purple */
    outline: none;
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 100px;
}

/* Styles for the new radio button group (Jenis Kelamin) */
.form-group .radio-group {
    display: flex; /* Untuk membuat radio button sejajar */
    gap: 20px; /* Jarak antara opsi radio */
    margin-top: 5px; /* Sedikit jarak dari label */
}

.form-group .radio-group input[type="radio"] {
    /* Mengatur ukuran dan tampilan radio button */
    -webkit-appearance: none; /* Menyembunyikan default browser style */
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #a80000; /* Border warna Cherry Red */
    border-radius: 50%; /* Bentuk lingkaran */
    display: inline-block;
    position: relative;
    cursor: pointer;
    vertical-align: middle; /* Sejajarkan dengan teks label */
    margin-right: 5px; /* Jarak antara radio button dan labelnya */
    outline: none; /* Hilangkan outline fokus default */
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group .radio-group input[type="radio"]:checked {
    background-color: #a80000; /* Isi lingkaran dengan Cherry Red saat terpilih */
    border-color: #a80000; /* Border tetap Cherry Red */
}

.form-group .radio-group input[type="radio"]:checked::before {
    /* Tanda cek di tengah radio button */
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: #fff; /* Warna putih untuk tanda cek */
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-group .radio-group label {
    display: inline-block; /* Agar label sejajar dengan radio button */
    margin-bottom: 0; /* Menghilangkan margin bawah default label */
    font-weight: normal; /* Jadikan label radio tidak terlalu tebal */
    color: #333; /* Warna teks label radio */
    cursor: pointer;
}


.registration-form .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    margin-top: 10px;
}

.privacy-note {
    font-size: 0.9em;
    color: #777;
    margin-top: 25px;
}


/* Blog Section (Homepage Preview) */
.blog-section {
    padding: 80px 0;
    background-color: #fff;
    text-align: center;
}

.blog-section h2 {
    font-size: 2.2em;
    margin-bottom: 50px;
    color: #4A0082; /* Deep Purple */
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-bottom: 50px;
}

.blog-post-card {
    background-color: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.blog-post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-post-card .blog-content {
    padding: 25px;
}

.blog-post-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #a80000; /* Cherry Red */
    line-height: 1.3;
}

.blog-post-card p {
    font-size: 0.95em;
    color: #000000;
    margin-bottom: 20px;
    line-height: 1.6;
}

.blog-post-card .read-more {
    display: inline-block;
    color: #4A0082; /* Deep Purple */
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-post-card .read-more:hover {
    color: #a80000; /* Cherry Red */
}

.blog-post-card .read-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.blog-post-card .read-more:hover i {
    transform: translateX(5px);
}

.blog-cta .btn-secondary:hover {
    background-color: #4A0082; /* Deep Purple on hover */
    transform: translateY(-2px);
}


/* --- Specific Blog Page Styles --- */

.page-hero {
    background: linear-gradient(to right, #4A0082, #800000); /* Consistent brand colors */
    color: #fff;
    padding: 80px 0;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero h1 {
    font-size: 3em;
    margin-bottom: 15px;
    color: #fff;
}

.page-hero p {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto;
}

.blog-section-full {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.blog-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-post-card-full {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-post-card-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-post-card-full img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.blog-post-card-full .blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Ensures content fills remaining space */
}

.blog-post-card-full h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #4A0082; /* Deep Purple */
    flex-grow: 0;
}

.blog-post-card-full .post-meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 15px;
}

.blog-post-card-full p {
    font-size: 1em;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.7;
    flex-grow: 1; /* Ensures paragraph fills available space */
}

.blog-post-card-full .read-more {
    color: #a80000; /* Cherry Red */
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    margin-top: auto; /* Pushes button to the bottom of the card */
}

.blog-post-card-full .read-more:hover {
    text-decoration: underline;
    color: #4A0082; /* Deep Purple */
}

.blog-post-card-full .read-more i {
    margin-left: 8px;
    font-size: 0.9em;
    transition: transform 0.2s ease;
}

.blog-post-card-full .read-more:hover i {
    transform: translateX(3px);
}

/* Style for Article Detail Page */
.article-content {
    padding: 60px 0;
    background-color: #fff;
    max-width: 900px;
    margin: 40px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

.article-content .container {
    padding: 0 40px; /* More padding for article content */
}

.article-content .article-meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.article-content .article-meta a {
    color: #a80000; /* Cherry Red */
    font-weight: 600;
}

.article-content img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.article-content h3 {
    font-size: 2em;
    margin-top: 30px;
    margin-bottom: 20px;
    color: #4A0082; /* Deep Purple */
}

.article-content p {
    font-size: 1.05em;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.article-content ul {
    margin-bottom: 20px;
    list-style: disc;
    padding-left: 20px;
}

.article-content ul li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #444;
}

.article-content ul li i {
    color: #a80000; /* Cherry checkmark */
    margin-right: 8px;
}

.back-to-blog {
    margin-top: 40px;
    text-align: right;
}

.back-to-blog a {
    display: inline-flex;
    align-items: center;
    color: #4A0082; /* Deep Purple */
    font-weight: bold;
    transition: color 0.3s ease;
}

.back-to-blog a:hover {
    color: #a80000; /* Cherry Red */
}

.back-to-blog a i {
    margin-right: 8px;
}


/* Responsive Adjustments */

/* Medium devices (tablets, 769px and up) */
@media (min-width: 769px) {
    /* Hero Section */
    .hero .container {
        flex-direction: row;
        text-align: left;
    }

    .hero-content {
        margin-bottom: 0;
    }

    /* About Us Section */
    .about-us .container {
        flex-direction: row;
        text-align: left;
    }

    .about-image {
        order: 2;
    }

    .about-content {
        order: 1;
    }

    /* Testimonials */
    .testimonial-card {
        flex: 0 0 47%; /* Show two cards */
    }
    .testimonial-slider {
        justify-content: center; /* Center cards if less than full row */
    }

    /* Programs */
    .program-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
    }

    /* Blog Section (Homepage Preview) */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
    h1 { font-size: 3.5em; }
    h2 { font-size: 2.5em; }

    .program-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for main programs */
    }

    .why-cherry-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns */
    }
    .testimonial-card {
        flex: 0 0 31%; /* Show three cards */
    }

    /* Blog Section (Homepage Preview) */
    .blog-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for desktops */
    }
}

/* --- Responsive Adjustments for New Sections --- */
@media (max-width: 768px) {
    .registration-form-section {
        padding: 60px 0;
    }
    .registration-form {
        padding: 30px 20px; /* Smaller padding on mobile */
    }

    /* Adjust radio group for smaller screens if needed */
    .form-group .radio-group {
        flex-direction: column; /* Stack radio buttons vertically on very small screens */
        gap: 10px;
    }

    .blog-section {
        padding: 60px 0;
    }
    .blog-grid {
        grid-template-columns: 1fr; /* Stack blog cards */
    }
    .blog-post-card .blog-content {
        padding: 20px;
    }

    /* Responsive for Blog Page Hero */
    .page-hero h1 {
        font-size: 2.2em;
    }

    .page-hero p {
        font-size: 1em;
    }

    /* Responsive for Article Detail Page */
    .article-content {
        margin: 20px auto;
        padding: 0 20px;
        box-shadow: none; /* Remove shadow on mobile for cleaner look */
    }
    .article-content .container {
        padding: 0;
    }
    .article-content h3 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .page-hero h1 {
        font-size: 1.8em;
    }
    .blog-post-card-full h3 {
        font-size: 1.4em;
    }
}

/* --- Global / Reset (Jika belum ada) --- */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Penting untuk layout responsif */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Padding horizontal untuk konten */
}

/* --- Header Styling --- */
.main-header {
    background-color: #ffffff; /* Latar belakang header putih */
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky; /* Membuat header sticky di atas */
    top: 0;
    z-index: 1000; /* Pastikan header selalu di atas */
}

.main-header .container {
    display: flex;
    justify-content: space-between; /* Logo di kiri, menu di kanan */
    align-items: center;
}

.logo img {
    height: 50px; /* Sesuaikan tinggi logo Anda */
    max-width: 100%; /* Pastikan logo tidak melebihi lebar kontainer */
}

/* --- Navigation Styling (Desktop) --- */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* Menu horizontal */
    gap: 5px; /* Mengurangi jarak antar item menu, sesuaikan nilai */
    align-items: center;
}

.main-nav ul li {
    position: relative; /* Untuk submenu */
    margin-left: 20px; /* Jarak antar item menu */
}

.main-nav ul li a {
    text-decoration: none;
    color: #5b008d; /* Warna teks navigasi, sesuai gambar Anda */
    font-weight: 700;
    font-size: 1em;
    padding: 5px 0;
    display: block;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #8A0436; /* Warna hover */
}

/* Submenu Styling */
.main-nav .submenu {
    display: none; /* Sembunyikan submenu secara default */
    position: absolute;
    top: 100%; /* Di bawah item parent */
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 180px;
    z-index: 1010;
    padding: 10px 0;
    border-radius: 5px;
}

.main-nav .submenu li {
    margin: 0;
}

.main-nav .submenu li a {
    padding: 10px 20px;
    white-space: nowrap; /* Pastikan teks tidak patah */
    color: #333; /* Warna teks submenu */
}

.main-nav .submenu li a:hover {
    background-color: #f0f0f0;
    color: #8A0436;
}

.main-nav ul li.has-submenu:hover .submenu {
    display: block; /* Tampilkan submenu saat hover */
}

/* --- Menu Toggle Button (Hanya di Mobile) --- */
.menu-toggle {
    display: none; /* Sembunyikan di desktop */
    background: none;
    border: none;
    font-size: 1.8em;
    color: #5b008d; /* Warna ikon burger */
    cursor: pointer;
    z-index: 1100; /* Pastikan tombol di atas semuanya */
}


/* --- Responsive Header (Mode Mobile) --- */
@media (max-width: 768px) { /* Sesuaikan breakpoint ini jika perlu */
    .main-header .container {
        justify-content: space-between; /* Logo kiri, toggle kanan */
    }

    .main-nav {
        position: fixed; /* Menu overlay */
        top: 0;
        right: -100%; /* Sembunyikan di luar layar */
        width: 280px; /* Lebar menu mobile */
        height: 100%;
        background-color: #333; /* Background menu mobile (seperti di gambar mobile Anda) */
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        transition: right 0.3s ease-in-out;
        z-index: 1050;
        display: none;
        flex-direction: column; /* Item menu vertikal */
        padding-top: 80px; /* Ruang untuk logo/header internal jika perlu */
    }

    .main-nav.active { /* Kelas yang ditambahkan JavaScript saat menu dibuka */
      display: block;
        position: absolute;
        top: 50px; /* Sesuaikan dengan tinggi header */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        text-align: center;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .main-nav ul li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1); /* Garis pemisah */
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .main-nav ul li a {
        padding: 15px 0;
        color: #ffffff; /* Warna teks menu mobile putih */
        font-size: 1.1em;
        width: 100%;
    }

    .main-nav ul li a:hover {
        background-color: rgba(255,255,255,0.1);
        color: #ffffff;
    }

    /* Submenu di mobile */
    .main-nav .submenu {
        position: static; /* Biarkan submenu mengalir normal */
        display: none; /* Sembunyikan dulu, akan di-toggle dengan JS */
        background-color: rgba(0,0,0,0.2); /* Background sedikit berbeda untuk submenu */
        box-shadow: none;
        padding: 0 0 0 20px; /* Indentasi submenu */
        width: 100%;
        border-radius: 0;
    }

    .main-nav ul li.has-submenu .submenu a {
        color: #e0e0e0; /* Warna teks submenu mobile */
        font-size: 1em;
    }

    .main-nav ul li.has-submenu.active .submenu {
        display: block; /* Tampilkan submenu jika parent aktif */
    }

    .menu-toggle {
        display: block; /* Tampilkan tombol toggle di mobile */
    }

    /* Overlay saat menu mobile terbuka */
    body.menu-open {
        overflow: hidden; /* Mencegah scrolling background saat menu terbuka */
    }
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5); /* Overlay gelap */
        z-index: 1040;
    }

    /* Mengatur posisi logo di dalam menu mobile seperti di gambar WhatsApp Anda */
    .main-nav .logo-in-menu { /* Anda perlu menambahkan elemen ini di HTML jika ingin logo di dalam menu */
        display: flex;
        justify-content: center;
        padding: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .main-nav .logo-in-menu img {
        height: 40px; /* Ukuran logo di dalam menu mobile */
    }
}