:root {
    --primary: #047857;
    --primary-dark: #065f46;
    --header: #059669;
    --cta: #ffc93c;
    --cta-hover: #f9a825;
    --bg: #f1f5f9;
    --text: #111827;
    --muted: #6b7280;
    --radius-lg: 22px;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}
.container {
    width: 92%;
    max-width: 1120px;
    margin: 0 auto;
}

/* ========= HEADER ========= */

.main-header {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0;
}
.logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ecfdf5;
    gap: 0.75rem;
}
.logo-area img {
    width: 220px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}
.nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.nav a {
    text-decoration: none;
    color: #ecfdf5;
    font-size: 0.95rem;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s;
}
.nav a:hover,
.nav a.active {
    background: rgba(15, 118, 110, 0.9);
    transform: translateY(-1px);
}
.btn-nav {
    background: var(--cta);
    color: #111827 !important;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}
.btn-nav:hover {
    background: var(--cta-hover);
    color: #111827 !important;
}
.login-link {
    border: 1px solid #a7f3d0;
}
.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    color: #ecfdf5;
    font-size: 1.7rem;
    cursor: pointer;
}

/* ========= MAIN LAYOUT ========= */

.main-content {
    padding: 1.8rem 0 3rem;
}

/* ========= HERO ========= */

.hero {
    margin: 2.5rem 0;
    background: radial-gradient(circle at top left, #e0f2fe, #ecfdf5);
    padding: 3rem 2.2rem;
    border-radius: 100px;
    display: flex;
    justify-content: center;
    text-align: center;
    box-shadow: 0 18px 40px rgba(15, 118, 110, 0.15);
}
.hero-text {
    max-width: 720px;
}
.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.9rem;
    color: #020617;
}
.hero p {
    color: var(--muted);
    margin-bottom: 1.6rem;
}
.tagline {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: #dcfce7;
    color: var(--primary-dark);
    font-size: 0.8rem;
    margin: 0 auto 0.8rem;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

/* ========= BUTTON ========= */

.btn {
    display: inline-block;
    padding: 0.65rem 1.3rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.18s, color 0.18s, transform 0.12s, box-shadow 0.2s;
}
.btn-primary {
    background: var(--cta);
    color: #111827;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.btn-primary:hover {
    background: var(--cta-hover);
    transform: translateY(-1px);
}
.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline:hover {
    background: var(--primary);
    color: #ecfdf5;
}

/* ========= SECTION / CARD ========= */

.section {
    margin-top: 2.2rem;
}
.section-cta {
    text-align: center;
}
.section h2 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    color: var(--primary-dark);
}
.section p.lead {
    color: var(--muted);
    margin-bottom: 1rem;
}
.grid-2 {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

/* ========= LIST ========= */

.list {
    list-style: none;
}
.list li {
    padding-left: 1.1rem;
    position: relative;
    margin-bottom: 0.4rem;
    font-size: 0.93rem;
}
.list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* ========= FOOTER ========= */

.main-footer {
    background: #022c22;
    color: #e5e7eb;
    padding: 1.8rem 0 0.8rem;
    margin-top: 2.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    font-size: 0.9rem;
}
.footer-grid h4 {
    margin-bottom: 0.4rem;
    color: #f9fafb;
}
.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    margin-top: 0.9rem;
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    padding-top: 0.6rem;
}

/* ========= RESPONSIVE ========= */

@media (max-width: 900px) {
    .hero {
        padding: 2.2rem 1.4rem;
        margin: 1.8rem 0;
    }
}
@media (max-width: 768px) {
    .header-inner {
        gap: 0.5rem;
    }
    /* LOGO */
    .logo-area img {
        width: 80px;
        height: auto;
        object-fit: contain;
    }
    .nav-toggle {
        display: block;
    }
    .nav {
        position: absolute;
        right: 0.8rem;
        top: 4.1rem;
        flex-direction: column;
        background: #064e3b;
        padding: 0.7rem 0.8rem;
        border-radius: 16px;
        box-shadow: 0 18px 30px rgba(0, 0, 0, 0.4);
        display: none;
        min-width: 190px;
    }
    .nav.show { display: flex; }
    .nav a { width: 100%; text-align: left; }
    .grid-2,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================== HALAMAN PROFIL YAYASAN ===================== */


.profil-hero .profil-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    column-gap: 2.5rem;
    align-items: stretch;         
}
.profil-hero .profil-wrapper .card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;         
}

/* ===== FOTO ===== */
.profil-hero .profil-foto {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profil-hero .profil-foto img {
    width: 100%;
    max-width: 320px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
}

/* ===== VISI & MISI ===== */
.profil-hero .profil-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;          
    text-align: left;
}
.profil-hero .profil-text h2 {
    margin: 0 0 0.4rem;
    font-size: 1.2rem;
    color: #065f46;
}
.profil-hero .profil-text p {
    margin-bottom: 0.7rem;
    color: #4b5563;
    font-size: 0.95rem;
}
.profil-hero .profil-text ul {
    padding-left: 1.1rem;
}
.profil-hero .profil-text li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}
/* RESPONSIVE */
@media (max-width: 900px) {
    .profil-hero .profil-wrapper {
        grid-template-columns: 1fr;
        row-gap: 1.4rem;
    }
    .profil-hero .profil-wrapper .card {
        height: auto;                  
        align-items: flex-start;
    }
    .profil-hero .profil-foto {
        justify-content: center;
    }
}

/* ================= HALAMAN DAFTAR ================= */

.section {
    margin: 2rem auto;
    max-width: 1100px;
}
.section-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 0.4rem;
    color: #022c22;
}
.section-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}
.card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.4rem 1.6rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
    color: #065f46;
}
.card p {
    color: #6b7280;
}

.card label {
    display: block;
    margin-bottom: 0.3rem;
    cursor: pointer;
}
.card input[type="radio"] {
    margin-right: 6px;
}
#form-wrapper {
    margin-top: 1.5rem;
}

/* Judul bagian form */
.form-section-title {
    font-size: 1.2rem;
    margin: 1.4rem 0 0.8rem;
    color: #065f46;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.3rem;
}

/* Layout dua kolom */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 0.2rem;
}
.form-group {
    margin-bottom: 0.9rem;
}
.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}
/* Input & select */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 0.93rem;
}
.form-group textarea {
    resize: vertical;
    min-height: 70px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #047857;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Tombol di bawah form */
#form-wrapper button[type="submit"],
#form-wrapper .btn-primary {
    margin-top: 0.8rem;
}
/* Tombol utama */
.btn-primary {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    border: none;
    background: #ffc93c;
    color: #111827;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
    transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s;
}
.btn-primary:hover {
    background: #f9a825;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
@media (max-width: 768px) {
    .section {
        margin: 1.5rem auto;
        padding: 0 0.4rem;
    }

    .card {
        padding: 1.1rem 1.1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ================= HALAMAN KONFIRMASI ================= */

.btn-download-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.8rem;
}
/* Tombol utama */
.btn-primary {
    display: inline-block;
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    border: none;
    background: #ffc93c;
    color: #111827;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.16);
    transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}
.btn-primary:hover {
    background: #f9a825;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Tombol outline dua surat pernyataan */
.btn-outline {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    border: 1px solid #047857;
    background: transparent;
    color: #047857;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
.btn-outline:hover {
    background: #047857;
    color: #ecfdf5;
    transform: translateY(-1px);
}

/* Tombol grub WhatsApp */
.btn-wa {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    border: none;
    background: #25D366;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.16);
    transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}
.btn-wa:hover {
    background: #1ebe5d;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* HP: tombol jadi kolom */
@media (max-width: 768px) {
    .btn-download-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-download-group a {
        text-align: center;
    }
}

/* ========== KHUSUS HALAMAN ADMIN ========== */
.admin-page .logo-area img {
    width: 220px;
    height: auto;
    object-fit: contain;
}

/* ================= HALAMAN BERITA ================= */
.berita-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.berita-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.berita-thumb img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.15);
}
.berita-content h3 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    color: #022c22;
}
.berita-meta {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.35rem;
}
.berita-content p {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0.4rem;
}
.berita-content a.read-link {
    font-size: 0.85rem;
    color: #047857;
    text-decoration: none;
    font-weight: 600;
}
.berita-content a.read-link::after {
    content: " ↗";
    font-size: 0.8rem;
}
.berita-content a.read-link:hover {
    text-decoration: underline;
}
@media (max-width: 640px) {
    .berita-item {
        flex-direction: column;
    }

    .berita-thumb img {
        width: 100%;
        height: auto;
    }
}

/* ============== VIDEO DI HALAMAN BERITA ============== */
.video-card {
    max-width: 100%;
    margin: 0 auto 1.5rem; 
    text-align: center;
}
.video-wrapper {
    width: 100%;
    display: flex;
    justify-content: center; 
}
.video-wrapper video {
    max-width: 100%;  
    height: auto;      
    border-radius: 20px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
    display: block;
}

/* HP */
@media (max-width: 768px) {
    .video-card {
        max-width: 100%;
        margin: 0 auto 1.2rem;
    }
}
