@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Merriweather:wght@400;700&display=swap');

/* General Styling */
:root {
    --primary-green: #28a745; /* Darker Green */
    --light-green: #d4edda;  /* Lighter Green for sections */
    --text-color: #333;
    --white: #fff;
    --dark-grey: #7a7a7a;
    --border-color: #ddd;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --hover-green: #218838;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Merriweather', serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hover-green);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-grey);
    margin-bottom: 0.8em;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }

.section-padding {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-green);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary-green);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
}

.btn:hover {
    background-color: var(--hover-green);
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--primary-green);
    
}

.btn-secondary {
    background-color: var(--dark-grey);
    
}

.btn-secondary:hover {
    background-color: #333;
}

.btn-hero-primary {
    background-color: var(--primary-green);
    padding: 12px 25px;
    font-size: 1.1em;
}

.btn-hero-secondary {
    background-color: var(--dark-grey);
    padding: 12px 25px;
    font-size: 1.1em;
    margin-left: 15px;
}

/* Header */
.main-header {
    background-color: var(--white);
    padding: 10px 0;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    padding: 0 20px;
    min-height: 70px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.logo img {
    height: 50px;
    max-width: 50px;
    vertical-align: middle;
}

.logo {
    order: 1; /* Ensure logo is first in order for desktop and general */
}

.main-nav .nav-menu {
    list-style: none;
    display: flex;
    padding-left: 12px; /* Match left margin with menu text */
}

.main-nav .nav-menu li {
    position: relative;
}

.main-nav .nav-menu li a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--text-color);
    font-weight: bold;
    font-size: 0.75em;
    transition: background-color 0.3s ease;
}

.main-nav .nav-menu li a:hover {
    background-color: var(--light-green);
    border-radius: 5px;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    list-style: none;
    min-width: 200px;
    z-index: 100;
    border-radius: 5px;
    top: 100%; /* Position below the parent */
    left: 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* For mobile dropdowns when 'active-dropdown' class is toggled by JS */
.dropdown.active-dropdown .dropdown-menu {
    display: block; /* Ensure it shows when active */
}


.dropdown-menu li a {
    padding: 10px 20px;
    white-space: nowrap;
    font-weight: normal;
}

.dropdown-menu li a:hover {
    background-color: var(--light-green);
}

.menu-toggle {
    display: none; /* Hidden by default for desktop */
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--primary-green);
    cursor: pointer;
    order: 2; /* Default order for desktop if it were visible */
}

.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-start;
    order: 3;
}

.header-cta {
    display: flex;
    gap: 10px;
    margin-left: 20px;
    margin-right: 0;
    margin-bottom: 0;
    align-items: center;
    justify-content: flex-end;
    flex: none;
    order: 4;
}

/* Hero Section */
.hero-section {
    background:url('images/foto2.webp') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-text p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping */
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.about-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.about-item h3 {
    color: var(--primary-green);
    margin-bottom: 15px;
}

.about-item ul {
    list-style: none;
    padding-left: 0;
    text-align: left; /* Keep this for Visi for now */
    margin-top: 10px;
}

.about-item ul li {
    margin-bottom: 5px;
}

.about-item .left-align-mission {
    text-align: left; /* Ensure Misi list is left-aligned */
}

.icon-dummy {
    color: var(--primary-green);
    margin-top: 20px;
}

/* Services Section */
.bg-light-green {
    background-color: var(--light-green);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3em;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--dark-grey);
    margin-bottom: 15px;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
    text-align: left;
    margin-top: 10px;
}

.service-card ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.service-card ul li::before {
    content: "\f00c"; /* Font Awesome checkmark icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary-green);
    position: absolute;
    left: 0;
    top: 0;
}

/* Membership Section */
.membership-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.membership-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.membership-item h3 {
    color: var(--primary-green);
    margin-bottom: 15px;
}

.membership-item .btn {
    margin-top: 20px;
    width: fit-content;
    align-self: center;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-item p {
    padding: 15px;
    font-weight: bold;
    color: var(--dark-grey);
}

.video-gallery {
    text-align: center;
}

.video-gallery h3 {
    margin-bottom: 20px;
    color: var(--primary-green);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* News Section */
.news-list {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.news-item {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    border-left: 5px solid var(--primary-green);
}

.news-item h3 {
    margin-bottom: 10px;
}

.news-item h3 a {
    color: var(--dark-grey);
}

.news-item h3 a:hover {
    color: var(--primary-green);
}

.news-meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 15px;
}

.calendar-info {
    text-align: center;
    padding: 20px;
    background-color: var(--white);
    border-radius: 8px;
    .header-cta {
        order: 3 !important;
        width: 100% !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        margin-top: 15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 20px !important;
    }
    flex-direction: column;
    gap: 15px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info p {
    font-size: 1.1em;
    color: var(--dark-grey);
}

.contact-info p i {
    color: var(--primary-green);
    margin-right: 10px;
}

.google-maps {
    margin-top: 30px;
}

.google-maps h3 {
    margin-bottom: 15px;
    color: var(--primary-green);
}

.google-maps iframe {
    border-radius: 8px;
}

/* Footer */
.main-footer {
    background-color: var(--hover-green);
    color: var(--hover-green);
    padding-top: 40px;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(30, 116, 56, 0.2);
}

.footer-nav, .social-media, .supporters {
    flex: 1;
    min-width: 200px;
}

.footer-nav h3, .social-media h3, .supporters h3 {
    color: rgba(4, 71, 24, 0.795);
    margin-bottom: 15px;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav ul li a {
    color: var(--white);
    padding: 5px 0;
    display: inline-f;
}

.footer-nav ul li a:hover {
    color: var(--primary-green);
}

/* Social Media Section in Footer */

.social-media {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.social-media h3 {
    margin-bottom: 10px; /* Reduce space after heading to bring icons closer */
}


.social-icons-wrapper {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.social-media a {
    display: inline-block;
    font-size: 0; /* Hide default font size if any */
}

.social-media img {
    height: 32px; /* Smaller icon size */
    width: 32px; /* Maintain aspect ratio */
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.social-media img:hover {
    transform: scale(1.1); /* Slightly enlarge on hover */
}

.supporters img {
    display: inline-block;
    height: 60px;
    margin-right: 15px;
    margin-bottom: 10px;
}

.supporters img:hover {
    filter: none; /* Show original color on hover */
}

.footer-bottom {
    background-color: #154718;
    padding: 15px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366; /* WhatsApp Green */
    color: var(--white);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Notification Pop-up */
.notification-popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--primary-green);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    z-index: 1001;
    max-width: 350px;
    animation: fadeIn 0.5s ease-out;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-popup p {
    margin: 0;
}

.notification-popup a {
    color: var(--white);
    text-decoration: underline;
    font-weight: bold;
}

.close-btn {
    font-size: 1.5em;
    cursor: pointer;
    margin-left: auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dummy Icons Styling */
.service-icon, .icon-dummy {
    /* Existing styles */
    /* Dummy Icons Styling */
.icon-dummy {
    color: var(--primary-green); /* Warna hijau utama */
    margin-top: 20px;
    font-size: 3em; /* Ukuran ikon yang cukup besar */
    display: block; /* Memastikan ikon mengambil baris sendiri */
    margin-left: auto;
    margin-right: auto;
}

.service-icon {
    /* Existing styles, ensure this is above if you want to override */
    font-size: 3em;
    color: var(--primary-green);
    margin-bottom: 20px;
}
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-content {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        justify-content: space-between;
        position: relative;
        min-height: 56px;
    }

    .logo {
        position: static;
        margin-left: 12px;
        margin-bottom: 0;
        order: 1;
        transform: none;
        z-index: 1101;
        height: 40px;
        display: flex;
        align-items: center;
    }

    .menu-toggle {
        display: block; /* Show hamburger icon on mobile */
        order: 2; /* Place hamburger on the far right */
        margin-left: auto; /* Push it to the right */
        margin-right: 0; /* Ensure no right margin */
    }
    
    .header-cta {
        order: 3; /* Place CTA buttons below logo/hamburger */
        width: 100%; /* Make them take full width */
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        margin-bottom: 15px;
        margin-left: 0; /* Remove auto margin */
        margin-right: 0; /* Remove auto margin */
        padding-left: 15px; /* Match left margin with menu text */
    }

    .main-nav {
        order: 4; /* Place navigation below the cta buttons when active */
        flex-basis: 100%; /* Take full width */
        justify-content: left; /* Center navigation for mobile */
        /* IMPORTANT: Remove flex-grow from .main-nav here if it causes issues
                     when it's supposed to be 100% width. */
    }

    .main-nav .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 68px;
        left: 0;
        width: 100vw;
        background: #fff;
        z-index: 2000;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        padding: 0;
        border-radius: 0 0 12px 12px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-16px);
        transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
    }

    .main-nav .nav-menu.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        display: flex;
    }

    .hero-text h1 {
        font-size: 2.2em;
    }

    .hero-text p {
        font-size: 1em;
    }

    .hero-cta .btn {
        padding: 10px 20px;
        font-size: 1em;
        margin-left: 0; /* Remove margin for wrapping */
    }

    .header-cta .btn {
        width: 80% !important;
        text-align: left !important;
        margin-left: 0 !important;
        align-self: flex-start !important;
    }
    .social-media a, .supporters img {
        margin: 0 8px 10px;
    }

    .dropdown-menu {
        position: static; /* Make dropdown items flow in the document flow */
        box-shadow: none;
        border-radius: 0;
        background-color: var(--light-green); /* Differentiate from main nav */
        margin-top: 0;
        padding-left: 20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }

    .hero-text h1 {
        font-size: 2em;
    }

    .section-padding {
        padding: 40px 0;
    }

    .contact-info p {
        font-size: 1em;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-cta {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding-left: 10px !important;
        margin-right: auto !important;
    }

    .header-cta .btn {
        width: 80% !important;
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: auto !important;
        align-self: flex-start !important;
    }

    .hero-text h1 {
        font-size: 1.8em;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero-cta .btn {
        width: 90%;
        margin-left: 0;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.8em;
        bottom: 15px;
        right: 15px;
    }

    .notification-popup {
        top: 15px;
        right: 15px;
        max-width: 90%;
        font-size: 0.9em;
    }
}