:root {
    --primary-green: #2d4a22;
    --soft-green: #f1f8ee;
    --light-green: #6CA651; /* Variabel yang tadi hilang */
    --nav-bg: #f1f8ee;      /* Variabel yang tadi hilang */
}

.herbal-services-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    font-family: 'Lexend', sans-serif;
    background-color: #fff;
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.title {
    font-size: 2.5rem;
    color: var(--primary-green);
    font-weight: 700;
}

.view-all-btn {
    background-color: var(--light-green);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.services-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
}

/* Kolom Kiri: Deskripsi */
.description-side {
    flex: 1; /* Memberikan porsi lebar yang sama */
    min-width: 200px;
}

.description-side p {
    font-family: 'Lexend', sans-serif;
    font-size: 15px;      /* Ukuran standar agar enak dibaca */
    line-height: 1.6;    /* Memberi spasi antar baris agar tidak rapat */
    text-wrap: balance;  /* JURUS AMPUH: Menghindari 1 kata "nanggung" di bawah */
    color: #4b5563;      /* Warna abu-abu gelap agar lebih elegan */
}

/* Kolom Tengah: Gambar */
.image-center {
    flex: 1.5;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    width: 400px; 
    height: 550px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Kolom Kanan: Navigasi (Accordion) */
.services-nav {
    flex: 1.2; /* Sedikit lebih lebar untuk teks navigasi */
    display: flex;
    flex-direction: column;
    gap: 10px;
}
/* ITEM BIASA */
.nav-item {
    background-color: #f1f8ee;
    padding: 15px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-weight: 700;
    color: #2d4a22;
}

.nav-item .text {
    font-size: 1.1rem;
    font-weight: 600;
}

/* DESKRIPSI (Sembunyi secara default) */
.nav-desc {
   max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s;
    opacity: 0;
    display: none;
}

.icon {
     display: inline-block;
    transition: transform 0.3s ease; /* Durasi animasi */
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
}

.nav-desc p {
    margin-top: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
}

/* STATE AKTIF */
.nav-item.active {
    background-color: var(--primary-green);
    color: white !important;
}

.nav-item.active .nav-header {
    color: white;
}

.nav-item.active .nav-desc {
    max-height: 200px; /* Sesuaikan dengan panjang teks */
    opacity: 1;
    display: block;
    margin-top: 10px;
}

.nav-item.active .icon {
    transform: rotate(45deg);
    color: white;
    opacity: 1;
}


.nav-item:not(.active):hover {
    transform: translateX(10px);
    background-color: #e5f1e0;
}

/* ==========================================
   RESPONSIVE UNTUK IPAD & TABLET (max-width: 1024px)
   ========================================== */
@media (max-width: 1024px) {
    .herbal-services-container {
        padding: 20px;
    }

    .title {
        font-size: 2rem;
    }

    .services-content {
        flex-direction: column; /* Berubah jadi menumpuk ke bawah */
        gap: 40px;
    }

    /* Deskripsi di atas */
    .description-side {
        width: 100%;
        text-align: center;
    }

    /* Gambar di tengah */
    .image-center {
        width: 100%;
        order: 2; /* Mengatur urutan agar gambar tetap di tengah */
    }

    .image-wrapper {
        width: 100%;
        max-width: 500px; /* Gambar melebar menyesuaikan tablet */
        height: 400px;
    }

    /* Navigasi di bawah */
    .services-nav {
        width: 100%;
        order: 3;
    }
}

/* ==========================================
   RESPONSIVE UNTUK HP (max-width: 768px)
   ========================================== */
@media (max-width: 768px) {
    .services-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .title {
        font-size: 1.8rem;
    }

    .view-all-btn {
        width: 100%;
        justify-content: center;
    }

    .image-wrapper {
        height: 300px; /* Gambar lebih pendek di HP */
    }

    .nav-item {
        padding: 12px 15px;
    }

    .nav-item .text {
        font-size: 1rem;
    }

    .nav-desc p {
        font-size: 0.85rem;
    }
}