/* Konten BARU untuk file css/style.css */

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    /*padding-top: 90px; */
}

/* CSS BARU: Beri padding atas HANYA jika ada header */
body.has-header {
    padding-top: 90px; /* Sesuaikan dengan tinggi header desktop */
}

/* Penyesuaian padding untuk Mobile (jika header lebih tinggi di mobile) */
@media (max-width: 768px) {
    body.has-header {
        padding-top: 150px; /* Sesuaikan dengan tinggi header mobile */
    }
    /* (CSS Mobile Anda yang lain tetap di sini) */
}

.poster-container {
    max-width: 960px;
    width: 100%;    
    margin: 0 auto;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    position: relative;
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.background-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    z-index: 0;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, #81c784, #aed51);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #4fc3f7, #81d4fa);
    bottom: -50px;
    left: -50px;
}

/* --- NAVBAR --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; 
    background-color: rgba(241, 248, 233, 0.9);
    backdrop-filter: blur(5px); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 20px; 
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    background-color: #4caf50;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.logo-icon .material-icons {
    font-size: 28px;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #2e7d32;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav-item {
    color: #2e7d32;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex; 
    align-items: center;   
    gap: 6px;              
}

.nav-item:hover {
    color: #1b5e20;
    transform: translateY(-2px);
}

.nav-item .material-icons {
    font-size: 20px; 
}

/* --- KONTEN HALAMAN UTAMA --- */
.hero {
    padding: 50px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: #558b2f;
    margin-bottom: 30px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    width: 90%;
    height: 240px;
    border-radius: 20px;
    object-fit: cover;
    margin: 0 auto 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.section {
    padding: 30px 40px;
    position: relative;
    z-index: 1;
}

section[id] {
    scroll-margin-top: 100px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.section-title .material-icons {
    margin-right: 10px;
    color: #4caf50;
}

.card {
    background-color: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 10px;
}

.card-content {
    font-size: 16px;
    color: #555;
    overflow: auto; 
}

.card-content p {
    margin-bottom: 15px;
}

.card-content p:last-child {
    margin-bottom: 0;
}

.card-content ol {
    padding-left: 20px;
    color: #555;
}
.card-content ol li {
    margin-bottom: 8px;
}
.card-content ol li strong {
    color: #2e7d32;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.program-card {
    background-color: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.program-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.program-icon .material-icons {
    font-size: 30px;
    color: #4caf50;
}

.program-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 8px;
}

.program-desc {
    font-size: 14px;
    color: #555;
}

.join-section {
    background: linear-gradient(135deg, #81c784 0%, #4caf50 100%);
    border-radius: 16px;
    padding: 30px;
    color: white;
    text-align: center;
    margin: 30px 40px;
}

.join-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
}

.join-desc {
    font-size: 16px;
    margin-bottom: 20px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.join-button {
    background-color: white;
    color: #2e7d32;
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none; 
}

.join-button .material-icons {
    margin-right: 8px;
}

.join-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.footer {
    padding: 30px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2e7d32;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #4caf50;
    color: white;
    transform: translateY(-3px);
}

.footer-text {
    font-size: 14px;
    color: #555;
}

.highlight {
    background: linear-gradient(transparent 60%, rgba(129, 199, 132, 0.4) 40%);
    padding: 0 4px;
    font-weight: 600;
}

.info-badge {
    display: inline-block;
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-right: 10px;
    margin-bottom: 10px;
}

.info-badge .material-icons {
    font-size: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* --- SCROLL-TO-TOP BUTTON --- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #81c784 0%, #4caf50 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease-in-out;
    pointer-events: none;
}

.scroll-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* --- LOGO SEKOLAH ALAM (FLOAT) --- */
.logo-sekolah-alam {
    float: left;         
    width: 150px;        
    height: auto;        
    margin-right: 20px;  
    margin-bottom: 10px; 
    border-radius: 8px;  
}

/* GANTI overflow: auto menjadi display: flow-root */
.article-content {
    font-size: 14px; 
    line-height: 1.5;
    color: #444;
    text-align:justify;
    /* === GANTI BARIS INI === */
    /* overflow: auto; */ 
    display: flow-root; /* <-- Gunakan ini sebagai gantinya */
    /* ======================= */
    
    /* Style lain mungkin ada di sini */
}

/* Pastikan rule untuk gambar float Anda masih ada */
.article-image-float {
    float: left;            
    width: 40%;             
    aspect-ratio: 3 / 2;    
    object-fit: cover;      
    margin-right: 25px; /* Anda bisa kembalikan ke 25px atau biarkan 55px */
    margin-bottom: 15px;    
    border-radius: 12px;    
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}
/* --- STYLE HALAMAN REGISTRASI & SUKSES --- */
.register-container,
.success-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.register-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    color: #2e7d32;
    text-align: center;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #4caf50;
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.submit-button {
    background: linear-gradient(135deg, #81c784 0%, #4caf50 100%);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 8px;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(76, 175, 80, 0.4); 
}

/* --- Style Halaman Sukses --- */
.success-container {
    margin: 100px auto;
    padding: 40px;
    text-align: center;
}
.success-icon {
    font-size: 80px;
    color: #4caf50;
}
.success-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    color: #2e7d32;
    margin-top: 15px;
    margin-bottom: 15px;
}
.success-message {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.7;
}
.join-button-wa { 
    background-color: white;
    color: #2e7d32;
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none; 
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}
.join-button-wa .material-icons {
    margin-right: 8px;
}
.join-button-wa:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}
.join-button-home {
    background-color: white;
    color: #2e7d32;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    padding: 12px 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-top: 15px; 
}
.join-button-home .material-icons {
    margin-right: 8px;
}
.join-button-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    background-color: #f9f9f9;
}

/* --- CSS BARU: Perbaikan Tombol Form Daftar --- */

/* 1. Buat container untuk tombol */
.form-button-group {
    margin-top: 30px; /* Jarak dari field 'Nomor WA' di atasnya */
    display: flex;
    flex-direction: column; /* Susun tombol ke bawah */
    gap: 15px; /* Jarak 15px antar tombol */
}

/* 2. Paksa tombol 'Home' agar full-width & di tengah */
.form-button-group .join-button-home {
    width: 100%;
    display: flex; /* Override 'inline-flex' */
    justify-content: center; /* Pusatkan ikon & teks */
    margin-top: 0; /* Hapus margin-top bawaan */
}

/* 3. (Opsional) Pastikan tombol submit juga 100% */
.form-button-group .submit-button {
    width: 100%;
}
/* --- CSS BARU: Tombol Read More --- */
.read-more-wrapper {
    text-align: right; /* Posisikan tombol ke kanan */
    margin-top: 15px;  /* Jarak dari paragraf di atasnya */
}

.read-more-button {
    display: inline-flex; /* Agar ikon dan teks sejajar */
    align-items: center;
    gap: 5px;
    background-color: #e8f5e9; /* Warna hijau muda */
    color: #2e7d32;           /* Warna hijau tua */
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.read-more-button:hover {
    background-color: #c8e6c9; /* Sedikit lebih gelap saat hover */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* ---------------------------------- */
/* =============================================
--- MEDIA QUERY UNTUK HP (RESPONSif) ---
=============================================
*/
@media (max-width: 768px) {

    body {
        padding-top: 150px; 
    }
    
    /* Atur ulang padding untuk halaman register/sukses di HP */
    .page-register,
    .page-sukses {
        padding-top: 0;
    }

    .header-content {
        flex-direction: column; 
        gap: 15px;
    }

    .nav {
        gap: 15px; 
    }

    .nav-item {
        font-size: 14px; 
        gap: 0; 
    }

    .nav-item span {
        display: none;
    }

    .nav-item .material-icons {
        font-size: 24px; 
        margin: 0 5px;   
    }
    
    .logo-text {
        font-size: 22px; 
    }
    
    section[id] {
        scroll-margin-top: 150px; 
    }

    .hero {
        padding: 30px 20px;
    }
    .hero-title {
        font-size: 36px; 
    }
    .hero-subtitle {
        font-size: 16px;
        max-width: 100%;
    }
    .hero-image {
        height: 180px; 
    }

    .section {
        padding: 20px;
    }
    .section-title {
        font-size: 24px;
    }
    .card {
        padding: 20px;
    }
    .card-title {
        font-size: 20px;
    }

    .program-grid {
        grid-template-columns: 1fr;
    }

    .join-section {
        margin: 20px;
        padding: 25px 20px;
    }
    .join-title {
        font-size: 24px;
    }
    .join-desc {
        font-size: 15px;
        max-width: 100%;
    }

    .footer {
        padding: 20px;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}