@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #fdfdfd;
    --text-color: #333;
    --main-color: #45e629;
    --white-color: #fdfdfd;
    --shadow-color: rgba(0, 0, 0, .2);
}

*::selection {
    background: var(--main-color);
    color: var(--bg-color);
}

.dark-mode {
    --bg-color: #0b061f;
    --text-color: #fdfdfd;
    --shadow-color: rgba(0, 0, 0, .7);
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

/* BAGIAN HEADER & NAVIGASI (DIPERTAHANKAN & DIRAPIKAN) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 7%;
    background: transparent;
    display: flex;
    align-items: center;
    z-index: 100;
    transition: .5s;
}

.header.sticky {
    background: var(--bg-color);
    box-shadow: 0 .1rem 1rem var(--shadow-color);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 2.5rem;
    color: var(--main-color);
    font-weight: 600;
    margin-right: auto;
}

.logo img {
    width: 70px;
    margin-right: 1rem;
}

.logo-text {
    font-size: 2rem;
    color: var(--white-color); /* Teks logo putih saat transparan */
    font-weight: 500;
}

.header.sticky .logo-text {
    color: var(--text-color); /* Teks logo mengikuti warna teks saat sticky */
}

/* GANTI CSS .navbar a dan turunannya dengan kode ini */

.navbar a {
    position: relative;
    font-size: 1.7rem;
    color: var(--white-color);
    font-weight: 500;
    margin: 0 1.5rem;
    padding-bottom: 8px;
    transition: color 0.3s;
}

.header.sticky .navbar a {
    color: var(--text-color);
}

/* Efek hover hanya mengubah warna teks, tidak lagi memunculkan garis */
.header.sticky .navbar a:hover,
.navbar a:hover {
    color: var(--main-color);
}

/* Garis bawah default (tersembunyi) */
.navbar a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--main-color);
    transform: scaleX(0); /* Sembunyikan dengan skala 0 */
    transform-origin: center;
    transition: transform 0.4s ease;
}

/* Garis bawah HANYA muncul saat link memiliki class .active */
.navbar a.active::before {
    transform: scaleX(1); /* Tampilkan dengan animasi skala */
}

/* Warna teks untuk link yang aktif */
.navbar a.active {
    color: var(--main-color);
}

/* ... sisa kode navigasi, dropdown, dark mode dipertahankan ... */
.navbar a.active::before { content: ''; position: absolute; left: 0; bottom: -6px; width: 100%; height: .2rem; background: var(--white-color); }
.header.sticky .navbar a.active::before { background: var(--main-color); }
#darkMode-icon { font-size: 2.4rem; color: var(--white-color); cursor: pointer; }
.header.sticky #darkMode-icon { color: var(--text-color); opacity: .9; }
#menu-icon { font-size: 3.6rem; color: var(--text-color); display: none; }
.navbar .dropdown { position: relative; display: inline-block; }
.navbar .dropbtn { font-size: 1.7rem; color: var(--white-color); font-weight: 500; background-color: transparent; cursor: pointer; padding: 0; margin: 0 1.5rem; }
.header.sticky .navbar .dropbtn { color: var(--text-color); }
.navbar .dropdown-content { display: none; position: absolute; background-color: var(--bg-color); min-width: 160px; box-shadow: 0px 8px 16px 0px var(--shadow-color); z-index: 1; border-radius: .8rem; overflow: hidden; }
.navbar .dropdown-content a { color: var(--text-color); padding: 12px 16px; display: block; font-size: 1.5rem; margin: 0; }
.navbar .dropdown-content a:hover { background-color: var(--main-color); color: var(--bg-color); }
.navbar .dropdown:hover .dropdown-content { display: block; }


section {
    min-height: 100vh;
    padding: 10rem 7% 2rem;
}

.home {
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.home-content { max-width: 60rem; position: relative; z-index: 1; }
.home::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.home h1 { font-size: 4rem; color: var(--white-color); }
.home h3 { font-size: 2.5rem; color: var(--white-color); }
.home-content p { font-size: 1.6rem; margin: 1.5rem 0; color: #fff;}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: .8rem;
    font-size: 1.6rem;
    color: var(--white-color);
    font-weight: 600;
    transition: .3s;
}
.btn:hover { background-color: #333; color: var(--main-color); }
.more-btn { /* Gaya sama dengan .btn */
    padding: 1rem 2rem; background-color: var(--main-color); color: #fff;
    border-radius: 5px; font-size: 1.2rem; cursor: pointer;
}

.heading { font-size: 4.5rem; text-align: center; }
span { color: var(--main-color); }
.about { display: flex; justify-content: center; align-items: center; gap: 4rem; }
.about-img img { width: 25vw; border-radius: 1.5rem; }
.about-content h2 { text-align: left; line-height: 1.2; }
.about-content h3 { font-size: 2rem; }
.about-content p { font-size: 1.6rem; margin: 1.5rem 0; }

/* PERBAIKAN UTAMA 1: UKURAN GAMBAR SERAGAM */
.news-container, .photos-container, .videos-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
.news-box, .photo-box, .video-box {
    background: var(--bg-color);
    border-radius: 2rem;
    box-shadow: 0 4px 10px var(--shadow-color);
    overflow: hidden;
    transition: transform .3s ease;
}
.news-box:hover, .photo-box:hover, .video-box:hover {
    transform: translateY(-5px);
}
.news-box img, .photo-box img {
    width: 100%;
    height: 250px; /* Tentukan tinggi yang sama untuk semua gambar */
    object-fit: cover; /* Ini kuncinya: gambar akan mengisi ruang tanpa distorsi */
}
.news-content { padding: 2rem; }
.news-content h4 { font-size: 1.8rem; margin-bottom: 1rem; }
.news-content p { font-size: 1.4rem; color: #666; margin-bottom: 1.5rem; }

.photo-layer { /* Gaya untuk hover foto dipertahankan */
    position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); color: var(--white-color);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.photo-box:hover .photo-layer { opacity: 1; }
.photo-layer h4 { font-size: 2rem; text-align: center; padding: 0 1rem; }
.video-box iframe, .video-box video {
    width: 100%;
    height: 250px; /* Tinggi disamakan dengan gambar berita/foto */
}
.video-content { padding: 2rem; }
.video-content h4 { font-size: 1.8rem; }

/* PERBAIKAN UTAMA 2: FORM KOMENTAR / KONTAK */
.contact { min-height: auto; padding-bottom: 7rem; }
.contact h2 { margin-bottom: 3rem; }
.location { height: 400px; margin-bottom: 4rem; }
.location iframe { width: 100%; height: 100%; border-radius: 1.5rem; }
.contact-form { padding: 4rem; background-color: var(--bg-color); border-radius: 1.5rem; max-width: 80rem; margin: 0 auto; }
.contact-form h2 { text-align: center; margin-bottom: 2rem; }
.contact-form .inputBox { display: flex; justify-content: space-between; flex-wrap: wrap; }
.contact-form .inputBox input, .contact-form textarea {
    width: 100%; padding: 1.5rem; font-size: 1.6rem; color: var(--text-color);
    background: var(--bg-color); border-radius: .8rem; margin: .7rem 0;
    box-shadow: inset 0 .1rem .3rem var(--shadow-color);
    border: 1px solid #ccc;
}
.contact-form .inputBox input { width: 49%; }
.contact-form textarea { resize: vertical; }
.contact-form .btn { margin-top: 2rem; cursor: pointer; }

/* BAGIAN KHUSUS UNTUK SLIDER ANGGOTA */
.testimonial-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.testimonial-wrapper {
    position: relative;
    max-width: 90rem;
    width: 100%;
}

/* Ini adalah kontainer utama yang diberi border */
.testimonial-box {
    padding: 3rem 2rem; /* Padding di dalam kartu */
    border-radius: 2rem;
    background: var(--bg-color);
    box-shadow: 0 .5rem 1.5rem var(--shadow-color);
    border-top: .8rem solid var(--main-color);
    border-bottom: .8rem solid var(--main-color);
    overflow: hidden; /* Penting untuk menjaga panah navigasi tetap di dalam */
}

/* Konten setiap slide sekarang tidak perlu border */
.testimonial-content .testimonial-slide {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-top: 2rem;
}

.testimonial-slide img {
    width: 14rem;
    height: 14rem;
    object-fit: cover;
    border-radius: 50%;
    border: .5rem solid var(--bg-color);
    outline: .5rem solid var(--main-color);
}

.testimonial-slide h3 {
    font-size: 2.5rem;
    margin: 2rem 0 0.5rem;
}

.testimonial-slide p {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Menyesuaikan posisi panah navigasi */
.testimonial-box .swiper-button-next,
.testimonial-box .swiper-button-prev {
    color: var(--main-color);
}

.testimonial-box .swiper-button-next {
    right: 2rem; /* Sedikit ke dalam */
}

.testimonial-box .swiper-button-prev {
    left: 2rem; /* Sedikit ke dalam */
}

/* Menghilangkan pagination (titik-titik) agar lebih bersih */
.testimonial-box .swiper-pagination {
    display: none;
}

/* Sisa kode (footer, group, modal, dll) dipertahankan dan dirapikan */
.group-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 4rem; }
.group-box { position: relative; overflow: hidden; border-radius: 1rem; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); padding: 2.5rem; background: var(--bg-color); }
.group-box h3 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--text-color); }
.group-box ul { list-style-type: none; padding: 0; }
.group-box li { margin-bottom: 0.5rem; font-size: 1.4rem; color: #666; }
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.8); }
.modal-content { background-color: var(--bg-color); margin: 10% auto; padding: 3rem; border: 1px solid #ddd; width: 90%; max-width: 50rem; box-shadow: 0 0 10px var(--shadow-color); border-radius: 1rem; position: relative; transform: scale(0.7); transition: transform 0.3s ease; }
.modal .close { position: absolute; top: 1rem; right: 2rem; color: #aaa; font-size: 3rem; font-weight: bold; cursor: pointer; }
/* ========================================================== */
/* 8. FOOTER MODERN                                         */
/* ========================================================== */

.footer {
    background-color: #111827; /* Latar belakang gelap modern */
    color: var(--white-color); 
    padding: 6rem 7% 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 4rem;
    padding-bottom: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    width: 5rem;
    border-radius: 50%;
}

.footer-logo span {
    color: var(--white-color);
    font-size: 2.4rem;
    font-weight: 700;
}

.footer-about p {
    font-size: 1.4rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.footer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white-color);
    border-radius: 50%;
    font-size: 2rem;
    margin-right: 1rem;
    transition: background-color 0.3s, color 0.3s;
}

.footer-social a:hover {
    background-color: var(--main-color);
    color: var(--white-color);
}

.footer-links h3, .footer-contact h3 {
    font-size: 2rem;
    color: var(--white-color);
    margin-bottom: 2.5rem;
    position: relative;
}

/* Garis bawah judul footer */
.footer-links h3::before, .footer-contact h3::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background-color: var(--main-color);
}

.footer-links ul, .footer-contact ul {
    list-style: none;
}

.footer-links li a, .footer-contact li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--sidebar-text);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-links li a:hover {
    color: var(--main-color);
    padding-left: 5px; /* Efek geser saat hover */
}

.footer-copyright {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid #374151; /* Garis pemisah */
    font-size: 1.4rem;
}
/* Menata gaya khusus untuk nama developer di footer */
.footer-copyright a {
    color: var(--main-color); /* Mengubah warna nama menjadi hijau sesuai tema */
    font-weight: 600;         /* Membuat teks nama Anda menjadi tebal (bold) */
    transition: color 0.3s;   /* Menambahkan efek transisi halus saat hover */
}

/* Efek saat mouse diarahkan ke nama Anda */
.footer-copyright a:hover {
    color: var(--white-color); /* Mengubah warna menjadi putih saat disentuh mouse */
}
.project-box img {
    width: 100%;
    transition: .7s ease;
}

.project-box:hover img {
    transform: scale(0.9);
}

/* ========================================================== */
/* ## STYLE UNTUK MODAL (POP-UP) BERITA                      */
/* ========================================================== */

.modal {
    display: none; /* Sembunyikan secara default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7); /* Latar belakang gelap transparan */
}

.modal-content {
    background-color: var(--bg-color);
    margin: 10% auto;
    padding: 3rem 4rem;
    border-radius: 1.5rem;
    width: 90%;
    max-width: 700px; /* Lebar maksimum pop-up */
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease-out;
}

.modal-content h3 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.modal-content p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--text-color);
}

.modal .close {
    position: absolute;
    top: 1.5rem;
    right: 2.5rem;
    color: #aaa;
    font-size: 3.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.modal .close:hover,
.modal .close:focus {
    color: var(--text-color);
}

/* ========================================================== */
/* ## PERBAIKAN RESPONSIVE MENYELURUH                        */
/* ========================================================== */

/* -- Untuk Tablet (Layar hingga 991px) -- */
@media (max-width: 991px) {
    html {
        font-size: 60%; /* Sedikit perkecil font dasar */
    }

    .header {
        padding: 2rem 4%; /* Kurangi padding header */
    }

    section {
        padding: 10rem 4% 2rem; /* Kurangi padding section */
    }
    
    .news-container, .photos-container, .videos-container, .group-container {
        grid-template-columns: repeat(2, 1fr); /* 2 kolom untuk tablet */
    }
}

/* -- Untuk HP (Layar hingga 768px) -- */
@media (max-width: 768px) {
    #menu-icon {
        display: block; /* Tampilkan ikon hamburger */
    }
    
    #darkMode-icon {
        position: absolute;
        right: 7rem;
    }
    
    .navbar {
        position: absolute;
        top: 100%;
        left: -100%; /* Sembunyikan di luar layar */
        width: 100%;
        padding: 1rem 4%;
        background: var(--bg-color);
        box-shadow: 0 .5rem 1rem var(--shadow-color);
        transition: left .4s ease; /* Animasi slide */
    }

    .navbar.active {
        left: 0; /* Tampilkan saat menu aktif */
    }

    .navbar a, .navbar .dropbtn {
        display: block;
        font-size: 2rem;
        margin: 2.5rem 0;
        text-align: center;
        color: var(--text-color);
    }
    .header.sticky .navbar a, .header.sticky .navbar .dropbtn {
        color: var(--text-color);
    }
    .navbar a.active {
        color: var(--main-color);
    }
    .navbar .dropdown-content {
        position: static;
        box-shadow: none;
        background: transparent;
        padding-left: 2rem;
        
    }

    .home-content h1 {
        font-size: 4.5rem;
    }

    .home-content h3 {
        font-size: 2.2rem;
    }

    .about {
        flex-direction: column-reverse;
        text-align: center;
    }
    .about-img img {
        width: 60vw;
        margin-top: 4rem;
    }
    
    .news-container, .photos-container, .videos-container, .group-container {
        grid-template-columns: 1fr; /* 1 kolom untuk HP */
    }

    .contact-form .inputBox input {
        width: 100%;
    }

    .footer-container {
        grid-template-columns: 1fr; /* Footer menjadi 1 kolom */
        text-align: center;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-links ul, .footer-contact ul {
        align-items: center;
        justify-content: center;
    }
    .footer-links h3::before, .footer-contact h3::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* -- Untuk HP Layar Kecil (Hingga 450px) -- */
@media (max-width: 450px) {
    html {
        font-size: 55%;
    }

    .home-content h1 {
        font-size: 3.8rem;
    }

    .heading {
        font-size: 3.5rem;
    }
}
