/* ================= RESET & GLOBAL ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
}

body {
    background-image: url('../images/bg.png');
    background-size: 100% auto;
    background-attachment: scroll; 
    background-position: top center;
    background-repeat: no-repeat;
    background-color: #fff2ee; 
    color: #444;
}

.main-container {
    max-width: 1200px; 
    margin: 0 auto;
    padding: 20px;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

/* ================= HEADER STYLE ================= */
header {
    margin-bottom: 10px;
    padding-top: 10px;
}

.header-wrapper {
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    padding: 0 5px; 
    margin-bottom: 20px;
    width: 100%;
}

.left-group { display: flex; align-items: center; gap: 5px; }
.logos-campus { display: flex; align-items: center; gap: 3px; }
.logo-item { height: 40px; width: auto; object-fit: contain; }

.text-puskesmas {
    font-size: 0.7rem; 
    font-weight: 800;
    color: #1f3c88;
    line-height: 1.1;
    padding-left: 5px;
    border-left: 1px solid #ccc; 
    white-space: nowrap; 
}

.right-group { display: flex; align-items: center; gap: 15px; }
.right-group img { height: 35px; width: auto; object-fit: contain; }

.judul-utama { text-align: center; margin-bottom: 40px; margin-top: 10px; }
.judul-utama img { width: 500px; max-width: 90%; height: auto; margin: 0 auto; }
.tagline { font-weight: 700; font-size: 1.1rem; color: #333; margin-top: 10px; text-align: center; }

/* ================= HERO SECTION ================= */
.hero-section { margin-bottom: 60px; }
.hero-content { display: flex; align-items: center; gap: 20px; }
/* Gambar Ibu Anak Center */
.hero-img-box { flex: 1.4; display: flex; justify-content: center; } 
.hero-text-box { flex: 1; }
.hero-text-box h2 { color: #1f3c88; font-size: 1.8rem; margin-bottom: 15px; }
.hero-list { list-style: none; margin-top: 15px; font-weight: 600; }

/* ================= INTRO SECTION ================= */
.intro-section { margin-bottom: 60px; }
.intro-grid { display: flex; align-items: flex-start; gap: 30px; }
.intro-text { flex: 1.2; } .intro-img { flex: 1; } .intro-img img { border-radius: 15px; }
.text-orange { color: #f4c542; font-size: 1.6rem; margin-bottom: 20px; text-shadow: 1px 1px 0 #333; }
.intro-text p { margin-bottom: 15px; line-height: 1.6; text-align: justify; }

/* ================= BENEFIT CARDS ================= */
.kenapa-pantau { margin-bottom: 60px; text-align: center; }
.section-title { 
    color: #e67e22; font-size: 1.8rem; font-weight: 900; margin-bottom: 40px; 
    text-shadow: 2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 0px 2px 5px rgba(0,0,0,0.1);
}
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.benefit-card { background: #eaf6ff; padding: 20px; border-radius: 20px; text-align: center; }
.benefit-card img { height: 60px; margin: 0 auto 15px; }
.benefit-card h4 { color: #d65a88; margin-bottom: 10px; font-size: 1rem; }
.benefit-card p { font-size: 0.85rem; color: #333; }

/* ================= TABEL SECTION (UPDATE: JUDUL GAMBAR) ================= */
.tabel-section { 
    text-align: center; 
    padding-bottom: 60px; 
    border-bottom: 2px dashed #ddd; 
    margin-bottom: 40px;
}

/* Style wrapper gambar judul tabel */
.judul-tabel-wrapper {
    margin-bottom: 30px; 
    text-align: center;
}

.judul-tabel-wrapper img {
    width: 500px; 
    max-width: 90%; 
    height: auto;
    margin: 0 auto; 
}

/* Style Tabel */
.table-responsive { overflow-x: auto; border-radius: 10px; border: 2px solid #333; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 12px; border: 2px solid #333; text-align: center; font-weight: 600; }
th { background-color: #ffe5d9; font-weight: 800; }

/* SEPARATOR JUDUL TENGAH */
.separator-judul { text-align: center; margin-bottom: 30px; margin-top: 40px; }
.separator-judul img { width: 500px; max-width: 90%; height: auto; margin: 0 auto; }

/* ================= MENU PEMICU (TOMBOL & AWAN) ================= */
.menu-section { text-align: center; margin-bottom: 80px; }
.cek-status-wrapper { display: flex; justify-content: center; align-items: center; gap: 30px; margin-bottom: 40px; }
.cek-status-left { position: relative; }

.btn-cek-status {
    background: #fff; border: 2px solid #333; padding: 15px 40px;
    font-size: 1.3rem; font-weight: 800; border-radius: 50px; cursor: pointer;
    box-shadow: 5px 5px 0 #333; color: #ff6b6b;
}

/* Icon Klik / Tangan */
.icon-klik { 
    position: absolute; width: 60px; right: -50px; bottom: -20px; z-index: 10;
}

.cek-status-right { text-align: left; }
.instruction-text { margin-bottom: 0; font-style: italic; font-size: 1.1rem; line-height: 1.4; }

/* AWAN LAYOUT */
.cloud-container { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 40px; max-width: 1000px; margin: 0 auto; }
.cloud-item img { max-width: 100%; width: 450px; height: auto; display: inline-block; transition: transform 0.3s; }
.cloud-item:hover { transform: scale(1.05); }

/* Posisi Awan Kiri-Kanan */
.cloud-container .cloud-item:nth-child(1) { justify-self: start; text-align: left; }
.cloud-container .cloud-item:nth-child(2) { justify-self: end; text-align: right; }
.center-cloud { grid-column: 1 / -1; justify-self: center; text-align: center; }

/* ================= MODAL POPUP (FULL SCREEN OVERLAY) ================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Background Gelap */
    z-index: 9999; display: flex; justify-content: center; align-items: center;
    padding: 20px; overflow-y: auto;
}

.modal-scroll-container { max-height: 90vh; overflow-y: auto; width: 100%; max-width: 1000px; border-radius: 20px; }

/* Style Section Kalkulator dalam Modal */
.kalkulator-section { 
    position: relative; margin: 0 auto; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    background-color: #efcfc5; padding: 50px 30px; border-radius: 20px; 
}

/* Tombol Close (X) */
.close-btn {
    position: absolute; top: 15px; right: 20px; font-size: 2rem; color: #de6c4c;
    font-weight: bold; cursor: pointer; z-index: 100; background: #fff;
    width: 40px; height: 40px; border-radius: 50%; text-align: center; line-height: 35px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); transition: transform 0.2s;
}
.close-btn:hover { transform: scale(1.1); background: #ffebee; }

.kalkulator-container { display: flex; gap: 30px; align-items: stretch; }

/* KIRI ORANYE (Info & Foto) */
.kal-left {
    flex: 1; background-color: #de6c4c; padding: 40px; border-radius: 30px;
    border: 2px dashed #333; color: #fff; display: flex; flex-direction: column;
    justify-content: center; text-align: left;
}
.kal-title { font-size: 2.2rem; font-weight: 900; margin-bottom: 20px; text-shadow: 2px 2px 0 #000; color: #fff2ee; }
.kal-desc { font-size: 1rem; line-height: 1.6; margin-bottom: 15px; font-weight: 500; }
.kal-img { margin-top: 20px; max-width: 80%; align-self: center; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* KANAN FORM */
.kal-right { flex: 1.2; background-color: #fff2ee; padding: 40px; border-radius: 30px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); text-align: left; }
.form-header { color: #de6c4c; font-size: 1.5rem; margin-bottom: 25px; font-weight: 700; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; color: #de6c4c; font-weight: 600; margin-bottom: 5px; font-size: 0.9rem; }
.form-input { width: 100%; padding: 12px 15px; border: 1px solid #de6c4c; border-radius: 10px; background: transparent; font-size: 1rem; outline: none; color: #333; }
.form-input:focus { background: #fff; border-color: #c0392b; }
.btn-tampilkan { width: 100%; background-color: #de6c4c; color: white; padding: 15px; border: none; border-radius: 50px; font-size: 1.1rem; font-weight: 700; cursor: pointer; margin-top: 20px; transition: transform 0.2s; box-shadow: 0 5px 0 #c0392b; }
.btn-tampilkan:hover { transform: translateY(-2px); }

/* HASIL DI DALAM MODAL */
#area-hasil { border-top: 3px dashed #de6c4c; margin-top: 30px; padding-top: 30px; }
.result-container { text-align: center; } 
.result-title { color: #333; margin-bottom: 30px; font-size: 1.8rem; }
.result-box { max-width: 600px; margin: 0 auto 30px auto; padding: 40px; border-radius: 20px; background: #fdfdfd; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 2px solid #eee; }
.result-box h3 { font-size: 2rem; margin: 20px 0; color: #333; } 
.result-box p { font-size: 1.1rem; line-height: 1.6; } 
.result-icon { height: 100px; margin: 0 auto; }
.btn-ulang { background: #444; color: #fff; padding: 10px 30px; border: none; border-radius: 50px; cursor: pointer; font-weight: bold; }

/* ANIMASI ZOOM POPUP */
@keyframes popupZoom { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.animate-popup { animation: popupZoom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 768px) {
    header { overflow-x: hidden; }
    .header-wrapper { flex-direction: row; gap: 2px; padding: 0 5px; flex-wrap: nowrap; }
    .left-group, .logos-campus, .right-group { flex-shrink: 0; }
    .logo-item { height: 32px; } .right-group img { height: 26px; }
    .text-puskesmas { font-size: 0.55rem; padding-left: 3px; }
    .judul-utama img { width: 90%; max-width: 350px; }
    
    .hero-content, .intro-grid, .cek-status-wrapper { flex-direction: column; }
    .hero-img-box, .hero-text-box, .intro-text, .intro-img { flex: 100%; width: 100%; text-align: center; }
    .benefit-grid { grid-template-columns: repeat(2, 1fr); }
    .separator-judul img { width: 80%; max-width: 300px; }
    
    .cek-status-right { text-align: center; }
    
    /* Awan Mobile */
    .cloud-container { gap: 20px; } 
    .cloud-item img { width: 100%; max-width: 240px; }
    .cloud-container .cloud-item:nth-child(1), .cloud-container .cloud-item:nth-child(2) { justify-self: center; text-align: center; }
    
    /* MODAL MOBILE */
    .kalkulator-container { flex-direction: column; }
    .kal-left, .kal-right { width: 100%; padding: 25px; } .kal-img { max-width: 60%; }
    
    table { font-size: 0.75rem; } th, td { padding: 5px 2px; border: 1px solid #333; }
    .judul-tabel-wrapper img { width: 80%; }
}

footer { text-align: center; padding: 20px; font-size: 0.8rem; color: #666; border-top: 1px solid #ccc; background: #fff; margin-top: 40px; }

/* ================= LAYOUT KHUSUS STUNTING ================= */
.stunting-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr; /* Kanan lebih lebar sedikit */
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 30px auto;
    border-radius: 20px;
    overflow: hidden; /* Biar sudut tumpul gak kepotong */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* --- DIV KIRI (BIRU #5e86a6) --- */
.stunting-left {
    background-color: #5e86a6;
    color: #fff;
    padding: 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.st-small-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: -5px;
    opacity: 0.9;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.2);
}

.st-big-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.st-desc {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.st-image-box img {
    border-radius: 15px;
    border: 4px solid rgba(255,255,255,0.3);
    margin: 20px auto;
}

.mt-30 { margin-top: 30px; }

/* --- DIV KANAN (KREM #fff2ee) --- */
.stunting-right {
    background-color: #fff2ee;
    padding: 40px;
    text-align: left;
    color: #444;
}

.st-section-title {
    color: #8b0000; /* Merah gelap sesuai referensi */
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Box Z-Score */
.score-box-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.score-box {
    background: #fff;
    border: 2px solid #a93226; /* Garis merah bata */
    border-radius: 50px;
    padding: 10px 20px;
    text-align: center;
}

.score-box h4 {
    color: #a93226;
    margin-bottom: 5px;
    font-size: 1rem;
}

.score-box p { font-size: 0.9rem; font-weight: 600; margin: 0; }

/* List Tindakan */
.st-action-list {
    list-style: none;
    margin-bottom: 30px;
}

.st-action-list li {
    background: #e6b0aa; /* Pink agak gelap background list */
    margin-bottom: 8px;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

/* KUTIPAN GAMBAR (BACKGROUND OVERLAY) */
.st-quote-card {
    /* Gambar Background */
    background-image: url('../images/hasil-sangatpendek.png'); 
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    min-height: 150px;
    display: flex;
    align-items: center;
}

.quote-overlay {
    /* Warna samaran biar teks terbaca (Putih transparan 70%) */
    background-color: rgba(255, 255, 255, 0.7); 
    width: 100%;
    height: 100%;
    padding: 30px;
    display: flex;
    align-items: center;
}

.quote-overlay p {
    font-weight: 800;
    font-size: 1.1rem;
    color: #5d4037; /* Coklat tua */
    text-align: center;
    font-style: italic;
    line-height: 1.5;
}

/* RESPONSIVE KHUSUS LAYOUT INI */
@media (max-width: 768px) {
    .stunting-grid { grid-template-columns: 1fr; }
    .stunting-left, .stunting-right { padding: 25px; }
}