* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(187, 215, 155, 0.85)), url('https://www.shutterstock.com/image-photo/gambar-pemandangan-sawah-padi-pada-260nw-2676715397.jpg');
    
 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* Header dan Navigasi */
header {
    background-color: #2e7d32;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2.5rem;
    color: #ffeb3b;
}

.logo-text h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Dropdown Menu */
.dropdown-menu {
    position: relative;
    display: inline-block;
}

.menu-button {
    background-color: #1b5e20;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.menu-button:hover {
    background-color: #0d3c12;
}

.menu-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 5px;
    z-index: 1;
    top: 100%;
    right: 0;
    margin-top: 5px;
}

.menu-content.show {
    display: block;
}

.menu-content a {
    color: #333;
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.menu-content a:hover,
.menu-content a.active {
    background-color: #f0f7f0;
    color: #2e7d32;
    padding-left: 25px;
}

.menu-content a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Halaman Konten */
.page {
    display: none;
    padding: 40px 0;
    min-height: 70vh;
}

.page.active {
    display: block;
}

.page-title {
    text-align: center;
    margin-bottom: 30px;
    color: #2e7d32;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
}

.page-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #4caf50;
    border-radius: 2px;
}

.page-content {
  background-color: transparent;
    padding: 30px;
    border-radius: none;
    box-shadow: none;
}

/* Beranda */
.hero {
    background: linear-gradient(rgba(175, 195, 176, 0.85), rgba(27, 94, 32, 0.9)), url('foto1.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 40px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* =========================================
   PERBAIKAN TENTANG KAMI (MODERN STYLE)
   ========================================= */

#tentang {
    background-color:transparent; /* Background section sedikit abu-hijau */
    padding: 60px 0;
}


.tentang {
    background: transparent;
    max-width: 900px; /* Agar tidak terlalu lebar ke samping */
    margin: 0 auto;   /* Posisi di tengah (Center) */
    padding: 20px;
    border-radius:0; /* Sudut lebih membulat */
    box-shadow: none; /* Bayangan hijau halus */
    text-align: center; /* Teks rata tenah */
    position: relative;
    border-bottom: 5px solid #2e7d32; /* Aksen garis hijau di bawah */
    transition: transform 0.3s ease;
}

.mission:hover {
    transform: translateY(-5px); /* Efek naik sedikit saat di-hover */
}
.mission h3 {
    margin-bottom: 25px;
    display: block; /* Pastikan blok agar bisa di-tengah */
}


/* Menghilangkan titik bullet pada list */
.mission ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Styling Teks Deskripsi */
.mission p {
    font-size: 1.2rem;
    line-height: 1.8; /* Jarak antar baris lebih lega */
    color: #555;
    font-weight: 500;
}

/* Responsif untuk layar HP */
@media (max-width: 600px) {
    .mission {
        padding: 30px 20px;
        margin: 0 10px; /* Memberi jarak kiri kanan di HP */
    }
    
    .mission h3 i {
        width: 80px;
        height: 80px;
        line-height: 80px;
        font-size: 2.5rem;
    }
    
    .mission li {
        font-size: 1rem;
    }
}.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background-color: #c8e6c9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #2e7d32;
}

.values {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.value-item {
    flex: 1;
    min-width: 200px;
    background-color: #f9f9f9;
    padding: 15px;
    border-left: 4px solid #2e7d32;
}

/* Produk */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img {
    height: 200px;
    background-color: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #2e7d32;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
    color: #2e7d32;
}

/* Galeri */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
    background-color:none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #2e7d32;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Artikel */
.articles-grid {
    display: grid;
    /* Membuat kolom otomatis (minimal lebar 300px) */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
    margin-top: 30px;
}

/* Desain Kartu Artikel */
.article-card {
    background: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* Bayangan halus */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

/* Efek saat mouse diarahkan ke kartu */
.article-card:hover {
    transform: translateY(-8px); /* Naik sedikit */
    box-shadow: 0 12px 25px rgba(46, 125, 50, 0.2); /* Bayangan hijau */
}

/* Bagian Gambar/Ilustrasi di Atas */
.article-thumb {
    height: 180px;
    background: linear-gradient(135deg, #a5d6a7, #66bb6a); /* Gradasi hijau */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;

}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Style untuk Link Pembungkus Kartu */
.article-card-link {
    text-decoration: none; /* Hilangkan garis bawah link */
    color: inherit;        /* Warna teks mengikuti desain, bukan biru link */
    display: block;        /* Agar link membungkus satu blok penuh */
    height: 100%;          /* Agar tinggi sama rata */
}

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
    height: 100%; /* PENTING: Agar semua kartu tingginya sama */
}

/* Efek Hover pada Link */
.article-card-link:hover .article-card {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(46, 125, 50, 0.2);
    border-color: #a5d6a7; /* Border jadi hijau muda saat disentuh */
}

/* Header Gambar/Ikon */
.article-thumb {
    height: 180px;
    background: transparent; /* Hijau segar */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 4rem;
    flex-grow: 1;
}

.article-thumb i {
    transform: rotate(-10deg);
    transition: transform 0.3s;
}

.article-card-link:hover .article-thumb i {
    transform: rotate(0deg) scale(1.1); /* Ikon bergerak saat dihover */
}

.article-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

.article-content h3 {
    font-size: 1.25rem;
    color: #2e7d32;
    margin-bottom: 12px;
    font-weight: 700;
}

.article-content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    /* Potong teks jika kepanjangan */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tombol Baca */
.article-action {
    margin-top: auto; 
}

.read-more {
    font-weight: bold;
    color: #2e7d32;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-card-link:hover .read-more {
    text-decoration: underline; /* Garis bawah muncul hanya saat dihover */
}
.read-more:hover {
    padding-left: 5px; /* Efek geser kanan saat hover */
    color: #1b5e20;
}
/* Hubungi Kami */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
    
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    background-color: #e8f5e9;
    color: #2e7d32;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: #2e7d32;
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.submit-btn:hover {
    background-color: #1b5e20;
}

/* Footer */
footer {
    background-color: #1b5e20;
    color: white;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #ffeb3b;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffeb3b;
}

.social-links {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- Tambahan untuk Footer Map --- */
.footer-map-container { 
    width: 100%; 
    height: 200px; 
    border-radius: 8px; 
    overflow: hidden; 
    border: 2px solid #34495e; 
    margin-top: 10px;
}

/* Memastikan layout footer responsif (Grid) */
.footer-content { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px; 
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .menu-content {
        position: static;
        width: 100%;
        margin-top: 15px;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-content {
        padding: 20px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    /* --- Tambahan untuk Detail Produk --- */

/* Menghilangkan garis bawah pada link kartu produk */
a.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Memastikan warna teks tetap konsisten saat di-hover */
a.product-card-link .product-card {
    height: 100%; /* Agar tinggi kartu seragam */
    cursor: pointer;
}

/* Tombol kecil di dalam item detail */
.detail-btn {
    background-color: #2e7d32;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    width: 100%;
    transition: background-color 0.2s;
}

.detail-btn:hover {
    background-color: #1b5e20;
}
/* Styling untuk gambar produk */
.product-img-container {
    width: 100%;
    height: 200px; /* Tinggi gambar seragam */
    overflow: hidden;
    background-color: #f1f1f1;
}

.prod-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Agar gambar mengisi kotak tanpa gepeng */
    transition: transform 0.3s;
}

.product-card:hover .prod-img {
    transform: scale(1.1); /* Efek zoom saat hover */
}

/* Fallback jika tidak ada gambar (kotak abu-abu dengan ikon) */
.default-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
}
}
/* =========================================
   RESPONSIVE (MEDIA QUERIES)
   ========================================= */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .menu-content {
        position: static;
        width: 100%;
        margin-top: 15px;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-content {
        padding: 20px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
}

/* =========================================
   PERBAIKAN TAMPILAN KARTU PRODUK (GLOBAL)
   Pastikan kode ini DILUAR media query
   ========================================= */

/* Membuat Grid agar tinggi card otomatis sama rata */
.products-grid {
    display: grid;
    /* Mengatur kolom: minimal lebar 250px, sisanya menyesuaikan */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
    align-items: stretch; /* PENTING: Agar semua card tingginya sama */
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    
    /* Flexbox untuk menyusun konten ke bawah */
    display: flex;
    flex-direction: column;
    height: 100%; 
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* WADAH GAMBAR (KOTAK) */
.product-img-container {
    width: 100%;
    height: 220px; /* Tinggi gambar dibatasi 220px */
    overflow: hidden;
    background-color: #fff; /* Background putih agar bersih */
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* GAMBAR PRODUK */
.prod-img {
    width: 100%;
    height: 100%;
    /* Object-fit: contain agar gambar UTUH (tidak terpotong) */
    /* Jika ingin gambar full memenuhi kotak meski terpotong, ganti jadi 'cover' */
    object-fit: contain; 
    padding: 10px; /* Jarak sedikit agar gambar tidak mepet pinggir */
    transition: transform 0.3s;
}

.product-card:hover .prod-img {
    transform: scale(1.05);
}

/* INFO PRODUK */
.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Mengisi sisa ruang kosong */
}

.product-info h3 {
    margin-bottom: 10px;
    color: #2e7d32;
    font-size: 1.1rem;
    line-height: 1.4;
}

/* HARGA */
.product-info p:nth-of-type(1) {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* DESKRIPSI (Dibatasi 3 baris agar rapi) */
.product-info p:nth-of-type(2) {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    
    /* Trik memotong teks kepanjangan dengan titik-titik (...) */
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1; /* Dorong tombol ke bawah */
}

/* TOMBOL */
.detail-btn {
    background-color: #2e7d32;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: auto; /* PENTING: Memaksa tombol selalu di dasar kartu */
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.2s;
}

.detail-btn:hover {
    background-color: #1b5e20;
}

/* Ikon Default jika tidak ada gambar */
.default-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #e0e0e0;
}
/* =========================================
   STYLE KHUSUS HALAMAN ADMIN (DASHBOARD)
   ========================================= */

/* Container Utama Admin (Kotak Putih) */
.admin-panel {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Bayangan halus */
    margin: 20px auto;
    max-width: 1100px; /* Lebar maksimal agar enak dilihat */
}

/* Header Admin (Judul & Link Navigasi) */
.admin-header {
    display: flex;
    justify-content: space-between; /* Judul kiri, Link kanan */
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.admin-header h2 {
    color: #2e7d32;
    font-size: 1.8rem;
    margin: 0;
}

.admin-links a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    margin-left: 20px;
    padding: 8px 15px;
    border-radius: 5px;
    background-color: #f5f5f5;
    transition: all 0.3s;
}

.admin-links a:hover {
    background-color: #2e7d32;
    color: white;
}

/* --- TABEL DATA --- */
.table-responsive {
    overflow-x: auto; /* Agar bisa digeser jika layar kecil */
}

.data-table {
    width: 100%;
    border-collapse: collapse; /* Menghilangkan celah antar border */
    margin-top: 10px;
    font-size: 0.95rem;
}

/* Kepala Tabel (Hijau) */
.data-table thead tr {
    background-color: #2e7d32;
    color: white;
    text-align: left;
}

.data-table th, 
.data-table td {
    padding: 12px 15px; /* Jarak dalam sel */
    border-bottom: 1px solid #ddd; /* Garis tipis di bawah setiap baris */
}

/* Mengatur lebar kolom agar rapi */
.data-table th:first-child { width: 5%; text-align: center; } /* Kolom No */
.data-table td:first-child { text-align: center; }

.data-table th:last-child { width: 10%; text-align: center; } /* Kolom Aksi */
.data-table td:last-child { text-align: center; }

/* Efek Hover Baris */
.data-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Tombol Hapus (Merah) */
.btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background-color: #d32f2f; /* Merah */
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-delete:hover {
    background-color: #b71c1c;
}

.btn-delete i {
    font-size: 0.9rem;
}
/* =========================================
   LAYOUT BARU GALERI (DESKRIPSI KIRI - FOTO KANAN)
   ========================================= */

.gallery-split {
    display: flex;
    align-items: center; /* Agar vertikal rata tengah */
    justify-content: space-between;
    gap: 40px; /* Jarak antara teks dan foto */
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Bagian Teks (Kiri) */
.gallery-desc {
    flex: 1; /* Mengambil 50% lebar */
}

.gallery-desc h3 {
    color: #2e7d32;
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-left: 5px solid #ffeb3b; /* Aksen garis kuning di samping judul */
    padding-left: 15px;
}

.gallery-desc p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05rem;
    text-align: justify;
}

/* Bagian Foto (Kanan) */
/* Cari class ini dan ganti isinya dengan yang baru di bawah ini */

.gallery-photo {
    flex: 1; 
    display: flex;
    justify-content: center; /* Mengatur posisi tengah secara Horizontal (Kiri-Kanan) */
    align-items: center;     /* Mengatur posisi tengah secara Vertikal (Atas-Bawah) */
    padding: 10px;           /* Memberi sedikit jarak dari tepi kotak */
}

/* Bagian Gambar */
.gallery-photo img {
    width: auto;             /* Biarkan lebar menyesuaikan proporsi asli */
    height: auto;            /* Biarkan tinggi menyesuaikan proporsi asli */
    
    max-width: 300px;        /* PENTING: Membatasi lebar agar tidak terlalu besar */
    max-height: 400px;       /* PENTING: Membatasi tinggi agar seimbang dengan teks */
    
    object-fit: contain;     /* Menampilkan gambar secara utuh (tidak di-crop/zoom) */
    
    border-radius: 10px;     /* Sudut membulat */
    box-shadow: 0 10px 25px rgba(46, 125, 50, 0.3); /* Bayangan hijau */
    transition: transform 0.3s ease;
}

.gallery-photo img:hover {
transform: scale(1.05);
}
@media (max-width: 768px) {
    .gallery-split {
        flex-direction: column-reverse; /* Foto di atas, Teks di bawah saat di HP */
        padding: 20px;
    }

    .gallery-desc h3 {
        font-size: 1.5rem;
        margin-top: 20px;
    }
}
/* =========================================
   PERBAIKAN LAYOUT GALERI (KIRI-KANAN)
   ========================================= */

/* Wadah Utama: Menggunakan Flexbox untuk mensejajarkan anak-anaknya */
/* =========================================
   LAYOUT GALERI (FULL FILL)
   ========================================= */

.gallery-container {
    display: flex;
    align-items: stretch; /* PENTING: Memaksa tinggi kolom gambar mengikuti tinggi kolom teks */
    justify-content: space-between;
    gap: 0; /* Hilangkan gap agar menyatu, atau beri sedikit jika ingin terpisah */
    margin-top: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden; /* Agar sudut gambar membulat mengikuti container */
}

/* Bagian Teks (Kiri) */
.gallery-text {
    flex: 1; /* Mengambil 50% ruang */
    padding: 40px; /* Memberi jarak lega di dalam kotak teks */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Teks rata tengah secara vertikal */
}

.gallery-text h3 {
    color: #2e7d32;
    margin-bottom: 20px;
    font-size: 1.6rem;
    position: relative;
}

.gallery-text h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #ffeb3b;
    margin-top: 10px;
}

.gallery-text p {
    margin-bottom: 0;
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
    text-align: justify;
}

/* Bagian Gambar (Kanan) */
.gallery-image {
    flex: 1; /* Mengambil 50% ruang (Sama besar dengan teks) */
    position: relative;
    min-height: 300px; /* Jaga-jaga agar foto tidak terlalu pendek */
}

.gallery-image img {
    width: 100%;  /* Lebar Penuh */
    height: 100%; /* Tinggi Penuh mengikuti teks di sebelahnya */
    
    object-fit: cover; /* Memenuhi area tanpa gepeng */
    object-position: top center; /* TRIK: Mengunci posisi di ATAS (Wajah), jadi yang terpotong adalah bagian bawah baju */
    
    display: block;
    border-radius: 0; /* Radius dimatikan karena sudah dihandle container */
    border: none;
    box-shadow: none;
}

/* --- RESPONSIF (HP) --- */
@media (max-width: 768px) {
    .gallery-container {
        flex-direction: column-reverse; /* Foto di atas, teks di bawah */
    }
    
    .gallery-image {
        height: 300px; /* Tinggi fix saat di HP */
    }
    
    .gallery-text {
        padding: 30px;
    }
}/* --- RESPONSIF (HP) --- */
@media (max-width: 768px) {
    .gallery-container {
        flex-direction: column-reverse; /* Gambar di atas, Teks di bawah saat di HP */
        gap: 30px;
    }
    
    .gallery-text {
        flex: auto; /* Reset porsi flex di HP */
        padding-right: 0;
        text-align: center;
    }

    .gallery-text h3::after {
        margin: 10px auto; /* Garis aksen jadi rata tengah di HP */
    }
    
    .gallery-image {
        flex: auto; /* Reset porsi flex di HP */
        width: 100%;
    }

  .gallery-image img {
    /* Mengatur ukuran agar mirip proporsi Pas Foto 4x6 */
    width: 200px;            /* Lebar fix (kecil) */
    height: 300px;           /* Tinggi menyesuaikan rasio 4:6 (200px x 1.5) */
    
    /* PENTING: Agar gambar mengisi kotak 4x6 tanpa gepeng */
    object-fit: cover;       
    
    border-radius: 8px;      /* Sudut sedikit membulat agar manis */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* Bayangan halus */
    border: 3px solid #fff;  /* Bingkai putih tipis */
    
    /* Agar tidak bergeser */
    display: block; 
}
}