/* ============================================= */
/* RESET & GLOBAL                                */
/* ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #2d2d2d;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
}

/* ============================================= */
/* HEADER                                        */
/* ============================================= */
header {
    background: #1a3a2b;
    color: #fff;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.6rem;
    font-weight: 700;
}

.motto {
    font-size: 0.85rem;
    font-style: italic;
    color: #a8d5ba;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
    padding: 5px 0;
}

nav ul li a:hover,
nav ul li a.active {
    color: #a8d5ba;
    border-bottom: 2px solid #a8d5ba;
}

/* ============================================= */
/* HERO                                          */
/* ============================================= */
.hero {
    background: linear-gradient(135deg, #2d6a4f, #1a3a2b);
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.hero h2 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    max-width: 750px;
    margin: 0 auto 35px;
    opacity: 0.92;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.btn-primary {
    background: #f4a261;
    color: #1a3a2b;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

/* ============================================= */
/* PAGE HEADER (untuk halaman dalam)             */
/* ============================================= */
.page-header {
    background: linear-gradient(135deg, #2d6a4f, #1a3a2b);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ============================================= */
/* CONTENT (untuk halaman dalam)                 */
/* ============================================= */
.content {
    padding: 60px 0;
}

.content h2 {
    color: #1a3a2b;
    margin: 40px 0 15px;
    font-size: 1.8rem;
}

.content h2 small {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
}

.content ul {
    padding-left: 25px;
}

.content ul li {
    margin-bottom: 10px;
}

/* ============================================= */
/* 5 PILAR                                      */
/* ============================================= */
.pillars {
    padding: 70px 0;
    background: #f8f9fa;
}

.pillars h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #1a3a2b;
}

.subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 45px;
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 30px;
}

.pillar-card {
    background: #fff;
    padding: 30px 20px 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.4s, box-shadow 0.4s;
}

.pillar-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.pillar-card .icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
}

.pillar-card h3 {
    font-size: 1.2rem;
    color: #1a3a2b;
    margin-bottom: 10px;
}

.pillar-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.pillar-card a {
    color: #2d6a4f;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.pillar-card a:hover {
    text-decoration: underline;
}

/* ============================================= */
/* PROGRAM GRID (untuk halaman program)          */
/* ============================================= */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 20px 0 40px;
}

.program-card {
    background: #f8f9fa;
    padding: 25px 20px;
    border-radius: 12px;
    border-left: 4px solid #2d6a4f;
    transition: background 0.3s;
}

.program-card:hover {
    background: #eaf3ee;
}

.program-card h3 {
    color: #1a3a2b;
    margin-bottom: 8px;
}

.program-card p {
    color: #555;
    font-size: 0.95rem;
}

/* ============================================= */
/* STATISTIK                                     */
/* ============================================= */
.stats {
    background: #1a3a2b;
    color: #fff;
    padding: 60px 0;
}

.stats h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item .number {
    font-size: 2.8rem;
    font-weight: 700;
    color: #f4a261;
}

.stat-item p {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 5px;
}

/* ============================================= */
/* DONASI                                        */
/* ============================================= */
.donation-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.method {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 16px;
}

.method h3 {
    color: #1a3a2b;
    margin-bottom: 15px;
}

.method hr {
    margin: 20px 0;
    border: 1px solid #ddd;
}

.funding-allocation {
    max-width: 600px;
    margin: 20px 0 30px;
}

.allocation-item {
    margin-bottom: 12px;
}

.allocation-item .label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.allocation-item .bar {
    background: #e8e8e8;
    border-radius: 20px;
    overflow: hidden;
    height: 30px;
}

.allocation-item .bar div {
    background: #2d6a4f;
    color: #fff;
    text-align: center;
    line-height: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
}

/* ============================================= */
/* FOOTER                                        */
/* ============================================= */
footer {
    background: #0d1f15;
    color: #a8d5ba;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.footer-col p {
    font-size: 0.95rem;
    opacity: 0.85;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #2d4a3a;
    padding-top: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ============================================= */
/* RESPONSIVE                                    */
/* ============================================= */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        justify-content: center;
        gap: 12px;
        margin-top: 15px;
    }

    nav ul li a {
        font-size: 0.85rem;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .pillar-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .content h2 {
        font-size: 1.5rem;
    }

    .donation-methods {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .pillar-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .program-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 12px 25px;
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h2 {
        font-size: 1.8rem;
    }
}

/* ============================================= */
/* HERO DENGAN SLIDER BACKGROUND - MOBILE FIX   */
/* ============================================= */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    max-height: 750px;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

/* SLIDE BACKGROUND - PERBAIKAN UNTUK MOBILE */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
}

/* OVERLAY GELAP - LEBIH GELAP UNTUK MOBILE */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65); /* Ditingkatkan dari 0.55 ke 0.65 */
    z-index: 2;
}

/* KONTEN DI ATAS SLIDER */
.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
}

.hero-content .container {
    max-width: 850px;
    width: 100%;
}

.hero-content h2 {
    font-size: clamp(2rem, 6vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6);
    line-height: 1.2;
}

.hero-content p {
    font-size: clamp(0.95rem, 2.5vw, 1.25rem);
    opacity: 0.95;
    margin-bottom: 25px;
    text-shadow: 0 2px 15px rgba(0,0,0,0.5);
    padding: 0 5px;
}

.hero-content p br {
    display: none; /* Sembunyikan <br> di mobile agar teks tidak terpotong */
}

/* TOMBOL CTA - RESPONSIF */
.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 12px 30px;
    font-size: clamp(0.85rem, 2vw, 1.05rem);
    min-width: 160px;
}

/* SLIDER INDICATOR (bulat-bulat) */
.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    backdrop-filter: blur(4px);
}

.slider-indicators .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.slider-indicators .dot.active {
    background: #f4a261;
    border-color: #f4a261;
    transform: scale(1.25);
}

.slider-indicators .dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* ============================================= */
/* RESPONSIVE: TABLET (768px ke bawah)           */
/* ============================================= */
@media (max-width: 768px) {
    .hero-slider {
        height: 90vh;
        min-height: 450px;
        max-height: 650px;
    }

    .hero-content h2 {
        font-size: clamp(1.8rem, 5vw, 2.4rem);
    }

    .hero-content p {
        font-size: clamp(0.85rem, 2.2vw, 1.05rem);
        padding: 0 8px;
    }

    .cta-buttons {
        gap: 12px;
    }

    .cta-buttons .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
        min-width: 140px;
    }

    .slider-indicators {
        gap: 8px;
        padding: 6px 12px;
        bottom: 15px;
    }

    .slider-indicators .dot {
        width: 10px;
        height: 10px;
    }
}

/* ============================================= */
/* RESPONSIVE: HP (480px ke bawah)               */
/* ============================================= */
@media (max-width: 480px) {
    .hero-slider {
        height: 85vh;
        min-height: 400px;
        max-height: 550px;
    }

    .hero-content {
        padding: 15px 12px;
    }

    .hero-content h2 {
        font-size: clamp(1.5rem, 6vw, 1.9rem);
        margin-bottom: 10px;
    }

    .hero-content p {
        font-size: clamp(0.8rem, 3vw, 0.95rem);
        padding: 0 3px;
        margin-bottom: 18px;
        line-height: 1.5;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .cta-buttons .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        min-width: 0;
        width: 80%;
        max-width: 260px;
        text-align: center;
    }

    .slider-indicators {
        gap: 6px;
        padding: 5px 10px;
        bottom: 12px;
        border-radius: 20px;
    }

    .slider-indicators .dot {
        width: 8px;
        height: 8px;
        border-width: 1.5px;
    }

    /* Perbaikan untuk gambar di HP - fokus ke tengah */
    .slide {
        background-position: center 30% !important; /* Fokus ke bagian atas-tengah gambar */
    }
}

/* ============================================= */
/* RESPONSIVE: HP KECIL (380px ke bawah)         */
/* ============================================= */
@media (max-width: 380px) {
    .hero-slider {
        height: 80vh;
        min-height: 350px;
        max-height: 480px;
    }

    .hero-content h2 {
        font-size: 1.3rem;
    }

    .hero-content p {
        font-size: 0.75rem;
    }

    .cta-buttons .btn {
        padding: 8px 16px;
        font-size: 0.75rem;
        width: 90%;
    }

    .slider-indicators .dot {
        width: 7px;
        height: 7px;
    }
}

/* ============================================= */
/* UTILITY - DESKTOP ONLY (untuk <br> di HP)    */
/* ============================================= */
.desktop-only {
    display: inline;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}