@font-face {
  font-family: 'Sunflower';
  font-style: normal;
  font-weight: 300;
  src: url(https://fonts.gstatic.com/s/sunflower/v18/RWmPoKeF8fUjqIj7Vc-06MfiqQ.ttf) format('truetype');
}
@font-face {
  font-family: 'Sunflower';
  font-style: normal;
  font-weight: 500;
  src: url(https://fonts.gstatic.com/s/sunflower/v18/RWmPoKeF8fUjqIj7Vc-0sMbiqQ.ttf) format('truetype');
}
@font-face {
  font-family: 'Sunflower';
  font-style: normal;
  font-weight: 700;
  src: url(https://fonts.gstatic.com/s/sunflower/v18/RWmPoKeF8fUjqIj7Vc-0-MDiqQ.ttf) format('truetype');
}

/* ==========================================================================
   CSS GLOBAL & DESKTOP (DENGAN PENGAMAN RESPONSIVE)
   ========================================================================== */

/* PENGAMAN UTAMA: Pastikan semua elemen menghitung padding di dalam width kawan */
.rw_lembang,
.custom-accordion,
.custom-accordion * {
    box-sizing: border-box;
}

.rw_lembang {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    position: relative;
    padding: 40px 60px;
    flex-direction: column;
    overflow: hidden; /* Amankan agar tidak ada elemen bocor ke samping */
}

.custom-accordion {
    background: linear-gradient(180deg, #028177 0%, #108165 100%);
    color: #FFFFFF;
    font-family: 'Sunflower', sans-serif;
    padding-bottom: 2rem;
    width: 100%;
}

.custom-accordion > .item {
    padding: 1rem 2rem;
    margin: 0 auto;
    max-width: 35rem;
}

.custom-accordion > .item:last-of-type {
    background: #462521;
    text-align: center;
    border-radius: 0.5rem;
}

.custom-accordion > .item:last-of-type > .icon {
    color: #FFFFFF;
}

.custom-accordion > .item:nth-of-type(7) {
    padding-bottom: 2rem;
}

.custom-accordion > .item > .icon {
    color: #462521;
    font-size: 2rem;
}

.custom-accordion > .item > .title {
    font-size: 1.5rem;
}

/* ==========================================================================
   BREAKPOINT DESKTOP / MONITORS (MIN-WIDTH: 800PX)
   ========================================================================== */
@media screen and (min-width: 800px) and (min-height: 270px) {
    .custom-accordion {
        display: table;
        width: 100%;
        margin: 0 auto;
        height: 480px;
        max-height: 1000px;
        overflow: hidden;
        padding-bottom: 0;
    }
    .custom-accordion > .item {
        display: table-cell;
        position: relative;
        height: 50%;
        padding: 2rem 1rem;
        text-align: center;
        transform-origin: 0 50%;
        transition: all 0.3s cubic-bezier(0.8, 0.16, 0.42, 0.89);
    }
    .custom-accordion > .item:hover:not(:last-of-type) {
        transform: scaleX(2) translateX(-1px);
        box-shadow: 0 0 3rem #301916;
        background: linear-gradient(180deg, #03a69a 0%, #14a380 100%);
        border-color: transparent;
    }
    .custom-accordion > .item:hover + .item {
        opacity: 0.1;
    }
    .custom-accordion > .item:hover + .item:last-of-type {
        opacity: 0.1;
        background: #108165;
    }
    .custom-accordion > .item:not(:last-of-type) {
        border-right: 1px solid #fff;
    }

    .custom-accordion > .item:last-of-type {
        background: linear-gradient(180deg, #028177 0%, #108165 100%);
        width: 25%;
        border-radius: 0;
    }
    .custom-accordion > .item:last-of-type .heart-icon {
        font-size: 16px;
        margin-bottom: -20px;
    }
    .custom-accordion > .item:last-of-type .heart-icon h3{
        font-size: 15.5px;
        font-weight: 600;
        color: #fff;
        padding-top: 5px;
    }
    
    .custom-accordion > .item:last-of-type > .title {
        transform: rotate(0) translateX(-50%) translateY(-2.5rem);
        padding: 0;
        text-align: center;
        width: 80%;
        border-radius: 5px;
        align-items: center;
        justify-content: center;
    }

    .warna{
        color: yellow;
        padding: 6px;
        border-radius: 5px;
        background: #b30000;
        padding-bottom: 5px;
    }

    .custom-accordion > .item:last-of-type > .title p{
        font-size: 14px;
        padding-top: -3px;
    }
    
    .custom-accordion > .item:last-of-type > .content {
        opacity: 1;
        transform: translateX(-50%) translateY(-50%);
    }
    
    .custom-accordion > .item:hover:not(:last-of-type) > .icon {
        transform: scaleX(0.5);
    }
    .custom-accordion > .item:hover:not(:last-of-type) > .title {
        transform: scaleX(0.5) translateX(-50%);
        background: #CA2E55;
        text-align: center;
        padding: 0;
    }
    .custom-accordion > .item:hover:not(:last-of-type) > .title > .text {
        transform: translateX(-50%);
        left: 50%;
    }
    .custom-accordion > .item:hover:not(:last-of-type) > .content {
        opacity: 1;
    }
    .custom-accordion > .item > .icon {
        font-weight: 700;
        font-size: 2rem;
        transition: all 0.3s cubic-bezier(0.8, 0.16, 0.42, 0.89);
        color: #FFFFFF;
    }
    .custom-accordion > .item > .title {
        position: absolute;
        bottom: 0;
        left: 50%;
        height: 1.5rem;
        width: 200%;
        text-align: left;
        transform-origin: 0 50%;
        transform: rotate(-90deg);
        transition: all 0.3s cubic-bezier(0.8, 0.16, 0.42, 0.89);
        font-size: 1.2rem;
    }
    .custom-accordion > .item > .title > .text {
        position: absolute;
        left: 2rem;
        bottom: 0;
        white-space: nowrap;
        transition: all 0.3s cubic-bezier(0.8, 0.16, 0.42, 0.89);
    }
    .custom-accordion > .item > .content {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 200%;
        height: auto;
        transform: translateX(-50%) translateY(-50%) scaleX(0.5);
        transition: all 0.3s cubic-bezier(0.8, 0.16, 0.42, 0.89);
        opacity: 0;
        padding: 1rem;
        pointer-events: none;
        flex-wrap: wrap;
    }
    .custom-accordion > .item > .content p {
        background: #f8f8f8;
        color: #444;
        padding: 35px 0;
        margin-top: 35px;
        border-radius: 5px;
        position: relative;
    }
    .custom-accordion > .item > .content p::before {
        content: "";
        position: absolute;
        top: -15px;
        left: 45%;
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-bottom: 15px solid #f8f8f8;
        width: 0;
        height: 0;
    }
}

/* ==========================================================================
   DEKLARASI IMAGE STYLES GLOBAL
   ========================================================================== */
.gambar-rw {
    width: 160px;
    height: 160px;
    padding: 7px;
    border: 2px dashed #fff;
    border-radius: 50%;
}
.gambar-lurah {
    width: 160px;
    height: 160px;
    padding: 7px;
    border: 2px dashed #0a0a0a;
    border-radius: 50%;
}
.gambar-depan {
    transition: opacity 0.3s ease;
    margin-top: 50px;
    width: 100px;
    height: 100px;
    padding: 8px;
    border: 2px dashed #fff;
    border-radius: 50%;
}
.item:hover .gambar-depan {
    opacity: 0;
}

/* Heading section */
.heading {
    position: relative;
    display: flex; 
    justify-content: center;
    align-items: center;
    padding-bottom: 10px;
    width: 100%;
    margin-bottom: 25px;
    margin-top: 25px;
}
.heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background-color: #3b82f6;
    border-radius: 2px;
}


/* ==========================================================================
   PERBAIKAN TOTAL: OPTIMASI GRID MOBILE ANTI-OVERFLOW (MAX 799PX)
   ========================================================================== */
@media screen and (max-width: 799px) {
    /* 1. Reset pembungkus utama agar padding tidak menendang width keluar layar kawan */
    .rw_lembang {
        padding: 20px 12px !important; /* Rampingkan padding samping kawan */
        width: 100% !important;
        max-width: 100vw;
    }

    .heading {
        font-size: 1.3rem;
        text-align: center;
        margin-top: 10px;
        margin-bottom: 20px;
        width: 100%;
    }

    /* 2. Container Utama Grid */
    .custom-accordion {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 10px !important; 
        background: transparent !important;
        padding-bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important; /* Jaga agar tidak bocor */
        align-items: stretch; 
    }

    /* 3. Kartu Profil Pengurus */
    .custom-accordion > .item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important; /* RESET nilai max-width: 35rem desktop kawan */
        background: linear-gradient(135deg, #028177 0%, #108165 100%) !important;
        padding: 15px 10px !important; 
        border-radius: 10px !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
        height: 100% !important; 
    }

    /* Sinkronisasi item akhir */
    .custom-accordion > .item:nth-of-type(7),
    .custom-accordion > .item:last-of-type {
        background: linear-gradient(135deg, #028177 0%, #108165 100%) !important;
        text-align: center !important;
        border-radius: 10px !important;
        padding-bottom: 15px !important;
        height: 100% !important;
        border: none !important;
    }

    /* 4. Penyesuaian Foto Profil Pengurus */
    .gambar-depan {
        margin-top: 0 !important;
        width: 75px !important;  
        height: 75px !important;
        padding: 4px !important;
        margin-bottom: 10px !important;
        opacity: 1 !important; 
        flex-shrink: 0 !important;
    }
    
    .item:hover .gambar-depan {
        opacity: 1 !important;
    }

    /* 5. RESET CRITICAL: Memaksa teks judul kembali ke ukuran normal & aman */
    .custom-accordion > .item > .title {
        position: static !important;
        transform: none !important; 
        width: 100% !important; /* Paksa balik ke 100%, bukan 200% kawan */
        max-width: 100% !important;
        text-align: center !important;
        font-size: 1rem !important; 
        font-weight: 700 !important;
        margin-bottom: 5px !important;
        height: auto !important;
        flex-shrink: 0 !important;
    }

    .custom-accordion > .item > .title > .text {
        position: static !important;
        white-space: normal !important; /* Biarkan teks turun ke bawah jika nama panjang */
        left: auto !important;
        transform: none !important;
    }

    .custom-accordion > .item:last-of-type > .title {
        transform: none !important;
        width: 100% !important;
        margin-top: 5px !important;
    }

    /* 6. RESET CRITICAL: Balon Chat Konten Keterangan */
    .custom-accordion > .item > .content {
        position: static !important;
        width: 100% !important; /* Paksa balik ke 100%, menghapus nilai 200% desktop */
        max-width: 100% !important;
        opacity: 1 !important; 
        transform: none !important;
        padding: 0 !important;
        pointer-events: auto !important;
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important; 
    }

    /* Kotak teks mini */
    .custom-accordion > .item > .content p {
        background: rgba(255, 255, 255, 0.12) !important; 
        color: #ffffff !important;
        padding: 10px !important; 
        margin-top: 8px !important;
        font-size: 0.8rem !important; 
        line-height: 1.3 !important;
        text-align: center !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-radius: 6px !important;
        flex: 1 !important; 
        display: flex !important;
        align-items: center !important; 
        justify-content: center !important;
        position: relative !important;
    }

    /* Segitiga penunjuk balon chat */
    .custom-accordion > .item > .content p::before {
        top: -8px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        border-left: 8px solid transparent !important;
        border-right: 8px solid transparent !important;
        border-bottom: 8px solid rgba(255, 255, 255, 0.12) !important;
        border-top: none !important; /* Bersihkan sisa overflow */
    }

    /* 7. Icon Pendukung */
    .custom-accordion > .item > .icon {
        color: #fff !important;
        font-size: 1.3rem !important;
        margin-bottom: 4px !important;
        flex-shrink: 0 !important;
    }
}



/* BAGIAN VIS DAN MISI*/
.visi-misi{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex-direction: column;
  margin-top: 35px;
}

.hero-container {
    position: relative;
    width: 100%;
    height: auto;
   /* Warna dasar abu-abu terang */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.pattern-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.1;
    z-index: 1;
}

.content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 2;
    flex: 1;
}

.side-text {
    width: 30%;
    color: #444;
}

.side-text.left { text-align: left; }
.side-text.right { text-align: left; }

.item-visi {
    position: relative;
    padding-left: 35px; /* Sesuaikan padding agar gambar dan teks tidak menempel. Beri jarak sedikit lebih lebar dari sebelumnya. */
    margin-bottom: 25px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.item-visi::before {
    content: ""; /* Hapus unicode ikon, biarkan string kosong */
    
    /* Atur agar properti font tidak berpengaruh */
    font-family: inherit; 
    font-weight: inherit;
    color: inherit; /* Properti warna teks tidak lagi digunakan untuk warna ikon */

    position: absolute;
    left: 0;
    top: 3px; /* Sesuaikan posisi vertikal agar sejajar dengan baris pertama teks Visi/Misi */
    
    /* Tentukan ukuran gambar yang Anda inginkan (misalnya, lebar 16px dan tinggi menyesuaikan) */
    width: 24px; 
    height: 24px; 
    
    /* Gunakan gambar yang Anda unggah sebagai background */
    /* Pastikan path/alamat gambarnya benar, sesuai dengan lokasi penyimpanan Anda */
    background-image: url('../img/icon_bravo.png'); 
    
    /* Pastikan gambar tidak diulang dan diposisikan di tengah */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain; /* Agar seluruh gambar pita terlihat dalam area width/height */
}



/* Khusus untuk teks sebelah kanan, jika ingin objek birunya tetap di kiri teks */
.side-text.right {
    text-align: left;
}

.item h3 {
    font-weight: bold;
    color: #222;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.center-image-tengah {
    width: 40%;
    display: flex;
    justify-content: center;
    align-self: flex-end; /* Supaya foto menempel ke banner bawah */
}

.center-image-tengah img {
    max-width: 100%;
    height: auto;
    display: block;
    z-index: 6;
}

/* Banner Merah */
.footer-banner {
    position: relative;
    background: linear-gradient(to right, #b30000, #ff0000);
    color: white;
    padding: 20px 0;
    text-align: center;
    z-index: 3;
    border-top: 4px solid #fff;
}

.footer-content {
    font-style: italic;
    font-weight: bold;
}

.motto {
    font-size: 1.2rem;
}

.headline {
    font-size: 1.4rem;
    text-transform: uppercase;
}


/* ==========================================================================
   KHUSUS RESPONSIVE BAGIAN VISI MISI - HANYA JUDUL RATA TENGAH (MOBILE)
   ========================================================================== */

@media (max-width: 768px) {
    /* 1. Container utama vertikal */
    .content-wrapper {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 30px 20px;
        gap: 30px;
    }

    /* 2. Kembalikan pembungkus teks ke pengaturan dasar */
    .side-text {
        width: 100%;
        max-width: 500px;
        padding: 0;
    }

    /* Poin isi tetap rata kiri agar posisi ikon pita tidak rusak */
    .side-text.left, 
    .side-text.right { 
        text-align: left; 
    }

    /* SOLUSI: Hanya judul Visi & Misi saja yang dipaksa ke tengah */
    .side-text h3 {
        text-align: center;
        width: 100%;
        margin-bottom: 20px; /* Beri jarak sedikit ke baris konten di bawahnya */
        font-size: 1.3rem;
    }

    /* 3. Kembalikan struktur item visi ke posisi samping (kiri) */
    .item-visi {
        font-size: 0.95rem;
        margin-bottom: 25px;
        padding-left: 35px; /* Jarak aman dari ikon di sebelah kiri */
        padding-top: 0;
    }

    .item-visi::before {
        left: 0;
        transform: none;
        top: 3px;
        width: 24px;
        height: 24px;
    }

    /* 4. Menjaga gambar tengah tetap stabil, center, dan tidak gepeng */
    .center-image-tengah {
        width: 100%;
        max-width: 280px;
        display: flex;
        justify-content: center;
        align-self: center; /* Di tengah secara horizontal */
        order: 2; /* Menjaga posisi gambar tetap menjembatani visi dan misi */
        margin: 15px 0;
    }

    .center-image-tengah img {
        width: 100%;
        max-width: 100%;
        height: auto; /* Kunci anti-gepeng */
        object-fit: contain;
        display: block;
    }

    /* Mengatur urutan tumpukan vertikal */
    .side-text.left { order: 1; }       /* Blok Visi di atas */
    .center-image-tengah { order: 2; }  /* Gambar di tengah */
    .side-text.right { order: 3; }      /* Blok Misi di bawah */

    /* 5. Banner Footer Merah */
    .footer-banner {
        padding: 25px 15px;
    }

    .motto {
        font-size: 1rem;
        line-height: 1.4;
    }

    .headline {
        font-size: 1.1rem;
        margin-top: 5px;
    }

    .visi-misi .heading {
        text-align: center;
        width: 100%;
        margin-top: 10px;
        margin-bottom: 25px;
        font-size: clamp(1.4rem, 5vw, 1.8rem); /* Responsif otomatis di HP */
        line-height: 1.3;
        padding: 0 15px; /* Biar gak mentok layar di HP ceruk */
    }

    /* ... sisa kode media query yang lain tetap dipertahankan ... */
    .content-wrapper {
        flex-direction: column;
        /* dan seterusnya... */
    }
}

.posyandu{
  margin-top: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50vh;
  text-align: center;
}

