/* Custom Color Variables from index.html */
:root {
    --amallan-dark-green: #2E7D32;  /* Hijau utama dari gambar */
    --amallan-light-green-btn: #558B2F; /* Hijau tombol dari gambar */
    --section-join-bg: #4CAF50; /* HIJAU BARU UNTUK SEKSI GABUNG */
    --section-join-btn-green: #8BC34A; /* HIJAU MUDA BARU UNTUK TOMBOL */
    --text-white: #FFFFFF;
    --text-gray-light: #F0F0F0;       /* Untuk paragraf hero yang sedikit abu-abu */
    --button-border-green: #2E7D32; /* Border untuk tombol putih */
    --general-bg-light: #f4f4f4;       /* Background umum terang */
    --general-text-dark: #333;         /* Teks umum gelap */
    --secondary-section-bg: #f8f8f8; /* Background untuk section kedua */
    --card-hover-shadow: rgba(0,0,0,0.15); /* Shadow saat hover pada card */
    --about-section-bg: #edf7ee; /* Warna background khusus untuk section About */
    --program-section-bg: white; /* Warna background untuk section Program Utama */
    --how-it-works-bg: #ebf6ec; /* Warna background untuk section Bagaimana Amallan Bekerja */
    --dampak-nyata-bg: white; /* Warna background untuk section Dampak Nyata */
    --dampak-card-desc-bg: #edf7ee; /* Warna background untuk deskripsi card Dampak Nyata */
    --kenalan-temal-bg: #ebf6ec; /* Warna background untuk section Kenalan Temal */

    /* Chatbot specific variables, now based on Amallan's palette */
    --primary-color-chatbot: var(--amallan-dark-green);
    --secondary-color-chatbot: var(--general-bg-light);
    --accent-color-chatbot: var(--amallan-light-green-btn);
    --text-color-chatbot: var(--general-text-dark);
    --light-text-chatbot: #718096; /* Keeping this specific gray for subtle text */
    --bg-color-chatbot: var(--program-section-bg); /* white */
    --user-bubble-chatbot: var(--about-section-bg); /* #edf7ee */
    --bot-bubble-chatbot: var(--secondary-section-bg); /* #f8f8f8 */
    --quick-reply-bg-chatbot: var(--how-it-works-bg); /* #ebf6ec */
    --quick-reply-hover-chatbot: #dceada; /* Slightly darker than --how-it-works-bg */
}

/* Base Body Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

body {
    font-family: 'Roboto', sans-serif; /* Font default untuk body */
    margin: 0;
    padding: 0;
    background-color: var(--general-bg-light);
    color: var(--general-text-dark);
    line-height: 1.6;
    overflow-x: hidden; /* Mencegah scroll horizontal */
    transition: background-color 0.3s ease, color 0.3s ease; /* Transisi untuk dark mode */
}

body.menu-open {
    overflow: hidden; /* Prevent scrolling when mobile menu is open */
}

/* Heading Fonts */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif; /* Font untuk semua heading */
}

/* Dark Mode Adjustments */
body.dark {
    background-color: #1a2e05; /* Warna background dark mode */
    color: var(--text-white);
}

body.dark header {
    background-color: #1a2e05; /* Header dark mode */
}

body.dark header nav ul li a {
    color: var(--text-gray-light);
}
body.dark header nav ul li a:hover {
    color: var(--text-white);
}
body.dark .mobile-menu {
    background-color: #1a2e05;
}
body.dark .mobile-menu .close-btn {
    color: var(--text-white);
}
body.dark .mobile-menu ul li a {
    color: var(--text-white); /* Ensure text is white in dark mode mobile menu */
}
body.dark .mobile-menu ul li a:hover {
    background-color: rgba(255,255,255,0.1); /* Darker hover for dark mode mobile menu */
}
body.dark #hero {
    background-color: #1a2e05;
}
body.dark #hero h1, body.dark #hero p {
    color: var(--text-white);
}

/* Dark mode untuk #about-amallan */
body.dark #about-amallan {
    background-color: #2e3b2e; /* Sesuaikan warna latar belakang dark mode */
    color: var(--text-white);
}
body.dark #about-amallan .about-content .about-text-content h2,
body.dark #about-amallan .about-content .about-text-content p {
    color: var(--text-white);
}
body.dark #about-amallan .info-box {
    background-color: #3b4c3b; /* Sesuaikan warna info box dark mode */
    color: var(--text-gray-light);
}
body.dark #about-amallan .info-box h3 {
     color: var(--text-white);
}
body.dark #about-amallan .info-box .info-icon {
    background-color: #2e7d32; /* Sesuaikan warna icon dark mode */
    color: var(--text-white);
}

/* Dark mode untuk #program-utama */
body.dark #program-utama {
    background-color: #2e3b2e; /* Warna latar dark mode untuk Program Utama */
}
body.dark #program-utama .section-heading,
body.dark #program-utama .section-description {
    color: var(--text-white);
}
body.dark #program-utama .program-card {
    background-color: #3b4c3b;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
body.dark #program-utama .program-card h3 {
    color: var(--text-white);
}
body.dark #program-utama .program-card p {
    color: var(--text-gray-light);
}

/* Dark mode untuk #how-it-works */
body.dark #how-it-works {
    background-color: #2e3b2e; /* Warna latar dark mode untuk How It Works */
}
body.dark #how-it-works .section-heading,
body.dark #how-it-works .section-description {
    color: var(--text-white);
}
body.dark #how-it-works .step-card {
    background-color: #3b4c3b;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
body.dark #how-it-works .step-card h3 {
    color: var(--text-white);
}
body.dark #how-it-works .step-card p {
    color: var(--text-gray-light);
}
body.dark #how-it-works .step-card .step-number-circle {
    background-color: var(--amallan-dark-green); /* Lingkaran angka tetap hijau tua */
}

/* Dark mode untuk #dampak-nyata */
body.dark #dampak-nyata {
    background-color: #2e3b2e; /* Warna latar dark mode */
}
body.dark #dampak-nyata .section-heading,
body.dark #dampak-nyata .section-description {
    color: var(--text-white);
}
body.dark #dampak-nyata .dampak-content .dampak-info-card {
    background-color: #3b4c3b; /* Warna latar dark mode untuk info card */
}
body.dark #dampak-nyata .dampak-content .dampak-info-card h3 {
    color: var(--text-white);
}
body.dark #dampak-nyata .dampak-content .dampak-info-card p,
body.dark #dampak-nyata .dampak-content .dampak-info-card ul li {
    color: var(--text-gray-light);
}

/* === DARK MODE UNTUK SECTION BARU (KENALAN TEMAL) === */
body.dark #kenalan-temal {
    background-color: #2e3b2e;
}
body.dark #kenalan-temal .temal-container {
    background-color: #3b4c3b;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
}
body.dark #kenalan-temal .temal-text-content h3 {
    color: #A5D6A7; /* Hijau muda agar kontras */
}
body.dark #kenalan-temal .temal-text-content p {
    color: var(--text-gray-light);
}
body.dark #kenalan-temal .temal-tag {
    background-color: #4c5c4c;
    color: var(--text-gray-light);
}
body.dark #kenalan-temal .temal-tag i {
    color: #A5D6A7;
}

/* === DARK MODE UNTUK SECTION BERGABUNG (REFINED) === */
body.dark #bergabung-gerakan {
    background-color: #388E3C;
}
body.dark #bergabung-gerakan .gerakan-card {
    background-color: #2c3b2d;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
body.dark #bergabung-gerakan .gerakan-icon-container {
    background-color: #388E3C;
}
body.dark #bergabung-gerakan .gerakan-card h3 {
    color: var(--text-white);
}
body.dark #bergabung-gerakan .gerakan-card p {
    color: var(--text-gray-light);
}
body.dark #bergabung-gerakan .button-hubungi-kami-putih {
    background-color: #4c5c4c;
    color: var(--text-white);
    border-color: #6a7e8a;
}
body.dark #bergabung-gerakan .gerakan-button {
    background-color: #558B2F;
}

/* === DARK MODE UNTUK SECTION KONTAK BARU === */
body.dark #contact {
    background-color: #1a2e05; /* Warna BG utama dark mode */
}
body.dark #contact .contact-heading {
    color: var(--text-white);
}
body.dark #contact .contact-subheading {
    color: var(--text-gray-light);
}
body.dark #contact .contact-info-new,
body.dark #contact .contact-form-new {
    background-color: #2e3b2e;
    border-color: #4c5c4c;
}
body.dark #contact .contact-box-title {
    color: var(--text-white);
}
body.dark #contact .contact-item-new .text-content strong {
    color: var(--text-white);
}
body.dark #contact .contact-item-new .text-content p {
    color: var(--text-gray-light);
}
body.dark #contact .contact-form-new label {
    color: var(--text-gray-light);
}
body.dark #contact .contact-form-new input,
body.dark #contact .contact-form-new textarea {
    background-color: #4c5c4c;
    color: var(--text-white);
    border-color: #6a7e8a;
}
body.dark #contact .contact-form-new button:hover {
    background-color: #4CAF50;
}

body.dark footer {
    background-color: #1f262f;
}
body.dark footer .footer-col h3 {
    color: var(--text-white);
}

body.dark footer,
body.dark footer p,
body.dark footer .jam-operasional-item p {
    color: #d0d0d0;
}
body.dark footer a {
    color: #d0d0d0;
}
body.dark footer a:hover {
    color: var(--text-white);
}
body.dark footer .footer-bottom p {
    color: #a0a0a0;
}
body.dark footer .footer-bottom {
    border-top-color: #4a5159;
}


/* Header */
header {
    background-color: var(--text-white); /* Latar belakang putih */
    color: var(--general-text-dark);
    padding: 15px 5%;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Sejajarkan semua elemen ke kiri */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header .header-logo-new {
    height: 25px; /* Menyesuaikan ukuran tinggi logo agar sesuai contoh gambar */
    width: auto;
    margin-right: 40px; /* Memberi jarak lebih antara logo dan nav item pertama */
}

header nav {
    display: flex;
    flex-grow: 1; /* Agar navigasi mengisi ruang yang tersedia */
    justify-content: flex-start; /* Item navigasi dimulai dari kiri */
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center; /* Sejajarkan item nav secara vertikal */
}

header nav ul li {
    margin-right: 25px; /* Jarak antar item navigasi */
}
header nav ul li:last-child {
    margin-right: 0; /* Hapus margin kanan pada item terakhir */
}

header nav ul li a {
    color: var(--general-text-dark);
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.95em; /* Ukuran font sedikit lebih kecil agar pas */
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--amallan-light-green-btn); /* Warna hover sesuai tema hijau */
}

header .button-hubungi {
    background-color: var(--amallan-light-green-btn);
    color: var(--text-white);
    border: none;
    padding: 8px 20px; /* Padding sedikit lebih kecil untuk tombol */
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.9em; /* Ukuran font tombol sedikit lebih kecil */
    transition: background-color 0.3s ease;
    text-decoration: none;
    margin-left: auto; /* Dorong tombol ke kanan paling ujung */
    white-space: nowrap; /* Pastikan teks tombol tidak pecah baris */
}

header .button-hubungi:hover {
    background-color: #4CAF50;
}

.mobile-menu-toggle {
    display: none; /* Hidden by default, shown in media query */
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--general-text-dark);
    cursor: pointer;
    padding: 5px;
    margin-left: auto; /* Push to the right */
}

/* Mobile menu specific styles */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px; /* Hidden off-screen to the right */
    width: 300px; /* Fixed width for the menu */
    height: 100%;
    background-color: var(--text-white); /* White background for mobile menu */
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    z-index: 1001; /* Above header, below modal */
    transition: right 0.3s ease-in-out; /* Smooth slide effect */
    display: flex;
    flex-direction: column;
    padding-top: 60px; /* Space for the close button */
}

.mobile-menu.active {
    right: 0; /* Slide into view */
}

.mobile-menu .close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2.5em;
    color: var(--general-text-dark); /* Darker color for close button */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-direction: column;
}

.mobile-menu ul li a {
    display: block;
    padding: 15px 25px; /* Larger tap target */
    color: var(--general-text-dark); /* Dark text for readability */
    text-decoration: none;
    font-size: 1.1em; /* Readable font size */
    transition: background-color 0.3s ease;
    font-family: 'Roboto', sans-serif;
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Subtle separator */
}
.mobile-menu ul li:last-child a {
    border-bottom: none;
}

.mobile-menu ul li a:hover {
    background-color: #f0f0f0; /* Light gray hover effect */
}

/* HERO SECTION */
#hero {
    background-color: var(--amallan-dark-green);
    color: var(--text-white);
    padding: 80px 5% 70px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 550px;
}

#hero .hero-content {
    flex: 1;
    max-width: 55%;
    z-index: 1;
    padding-right: 20px;
}

#hero h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-white); /* Ensure text is white */
}

#hero p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.15em;
    margin-bottom: 35px;
    color: var(--text-white); /* Ensure paragraph is white */
    max-width: 550px;
}

#hero .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

#hero .hero-buttons .button {
    padding: 12px 28px;
    border-radius: 25px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1.05em;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: inline-flex; /* Agar padding diterapkan dengan benar */
    align-items: center;
    justify-content: center;
}

#hero .hero-buttons .button.white {
    background-color: var(--text-white);
    color: var(--amallan-dark-green);
    border: 1px solid var(--button-border-green);
}

#hero .hero-buttons .button.white:hover {
    background-color: #F0F0F0;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

#hero .hero-buttons .button.green {
    background-color: var(--amallan-light-green-btn);
    color: var(--text-white);
    border: 1px solid var(--amallan-light-green-btn);
}

#hero .hero-buttons .button.green:hover {
    background-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

#hero .hero-image-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    max-width: 45%;
    z-index: 0;
    padding-bottom: 0;
}

#hero .hero-image-container img {
    width: 100%;
    height: auto;
    max-height: 700px; /* Ini yang perlu Anda sesuaikan */
    display: block;
    object-fit: contain;
    transform: translateY(5px);
}

/* --- STYLES UNTUK BAGIAN LAIN --- */
.section-padding {
    padding: 80px 5%;
}

.section-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    color: var(--general-text-dark);
}
body.dark .section-heading {
    color: var(--text-white);
}

.section-description {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1em;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #666;
}
body.dark .section-description {
    color: var(--text-gray-light);
}

/* ABOUT AMALLAN SECTION BARU */
#about-amallan {
    background-color: var(--about-section-bg); /* Menggunakan variabel warna baru */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px; /* Cukup tinggi agar konten tidak terlalu rapat */
}

#about-amallan .about-content {
    display: flex;
    flex-direction: row; /* Default: gambar kiri, teks kanan */
    align-items: center;
    max-width: 1200px;
    width: 100%;
    gap: 50px; /* Jarak antara kolom gambar dan teks */
}

#about-amallan .about-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Padding di sekitar gambar */
}

#about-amallan .about-image-container img {
    width: 100%;
    max-width: 450px; /* Ukuran maksimum gambar */
    height: auto;
    border-radius: 50%; /* Membuat lingkaran */
    border: 15px solid rgba(46, 125, 50, 0.2); /* Border hijau muda transparan */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    object-fit: cover; /* Memastikan gambar mengisi lingkaran tanpa distorsi */
    aspect-ratio: 1 / 1; /* Memastikan rasio aspek 1:1 untuk lingkaran sempurna */
}

#about-amallan .about-text-content {
    flex: 1;
    padding-right: 20px; /* Sedikit padding kanan untuk teks */
}

#about-amallan .about-text-content h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.8em;
    color: var(--amallan-dark-green); /* Warna hijau tua untuk judul */
    text-align: left;
    margin-bottom: 25px;
}

#about-amallan .about-text-content p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--general-text-dark);
    margin-bottom: 30px;
    text-align: justify;
}

#about-amallan .info-box {
    background-color: white; /* Latar belakang info box */
    border-radius: 15px; /* Radius sudut agar lebih lembut */
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px; /* Jarak antara ikon dan teks */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative; /* Untuk background image */
    overflow: hidden; /* Pastikan background image tidak keluar */
    /* Menggunakan gambar infobox_bg.png sebagai latar belakang */
    background-image: url('asset/Salinan dari Salinan dari Tambahkan judul.png'); /* Nama file aset info box */
    background-size: cover; /* Cover seluruh area info box */
    background-position: center right; /* Posisikan di kanan */
    background-repeat: no-repeat;
    min-height: 100px; /* Agar ada ruang untuk background image */
}
/* Style untuk teks di dalam info-box agar terbaca di atas gambar */
#about-amallan .info-box * {
    z-index: 1; /* Pastikan teks dan ikon di atas background image */
    position: relative;
}

#about-amallan .info-box .info-icon {
    background-color: var(--amallan-dark-green); /* Warna lingkaran ikon */
    color: var(--text-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    flex-shrink: 0; /* Mencegah ikon menyusut */
}

#about-amallan .info-box p {
    margin: 0; /* Hapus margin default paragraf di dalam info box */
    font-size: 0.95em;
    color: var(--general-text-dark);
    text-align: left; /* Teks dalam info box rata kiri */
}
#about-amallan .info-box p strong {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1em;
    color: var(--amallan-dark-green);
}
body.dark #about-amallan .info-box p strong {
    color: var(--text-white);
}

/* NEW PROGRAM SECTION */
#program-utama {
    background-color: var(--program-section-bg); /* Warna latar putih */
}

#program-utama .section-heading {
    color: var(--amallan-dark-green); /* Warna hijau gelap untuk judul */
    font-size: 2.5em;
    margin-bottom: 10px;
}
body.dark #program-utama .section-heading {
    color: var(--text-white);
}

#program-utama .section-description {
    color: #666;
    margin-bottom: 50px;
}
body.dark #program-utama .section-description {
    color: var(--text-gray-light);
}

#program-utama .program-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

#program-utama .program-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Sedikit lebih ringan dari card umum */
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
body.dark #program-utama .program-card {
    background-color: #3b4c3b;
}

#program-utama .program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

#program-utama .program-card .icon-circle {
    width: 80px;
    height: 80px;
    background-color: #E8F5E9; /* Latar belakang lingkaran ikon */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    flex-shrink: 0;
    padding: 10px; /* Memberi ruang di dalam lingkaran */
}
body.dark #program-utama .program-card .icon-circle {
    background-color: #4CAF50; /* Warna dark mode untuk lingkaran ikon */
}

#program-utama .program-card .icon-circle img {
    width: 100%; /* Ikon akan mengisi sisa ruang setelah padding lingkaran */
    height: 100%;
    object-fit: contain; /* Agar gambar ikon tidak terpotong */
}
body.dark #program-utama .program-card h3 {
    color: var(--text-white);
}

#program-utama .program-card p {
    font-size: 0.9em;
    color: #555;
    flex-grow: 1; /* Pastikan paragraf mengambil ruang sisa */
    margin-bottom: 0;
    line-height: 1.6;
}
body.dark #program-utama .program-card p {
    color: var(--text-gray-light);
}

/* NEW HOW IT WORKS SECTION */
#how-it-works {
    background-color: var(--how-it-works-bg); /* Warna latar yang diminta: #ebf6ec */
}

#how-it-works .section-heading {
    color: var(--amallan-dark-green); /* Warna hijau gelap untuk judul */
    font-size: 2.5em;
    margin-bottom: 10px;
}
body.dark #how-it-works .section-heading {
    color: var(--text-white);
}

#how-it-works .section-description {
    color: #666;
    margin-bottom: 50px;
}
body.dark #how-it-works .section-description {
    color: var(--text-gray-light);
}

#how-it-works .step-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

#how-it-works .step-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Sedikit lebih ringan dari card umum */
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #ddd; /* Border tipis seperti di gambar */
}
body.dark #how-it-works .step-card {
    background-color: #3b4c3b;
    border-color: #6a7e8a;
}

#how-it-works .step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

#how-it-works .step-card .step-number-circle {
    width: 80px;
    height: 80px;
    background-color: var(--amallan-dark-green); /* Warna lingkaran angka */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    flex-shrink: 0;
    padding: 10px; /* Memberi ruang di dalam lingkaran */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Bayangan kecil */
}
#how-it-works .step-card .step-number-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#how-it-works .step-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3em;
    font-weight: 600;
    color: var(--general-text-dark); /* Warna teks sesuai gambar */
    margin-bottom: 15px;
    line-height: 1.4;
}
body.dark #how-it-works .step-card h3 {
    color: var(--text-white);
}

#how-it-works .step-card p {
    font-size: 0.9em;
    color: #555;
    flex-grow: 1; /* Pastikan paragraf mengambil ruang sisa */
    margin-bottom: 0;
    line-height: 1.6;
}
body.dark #how-it-works .step-card p {
    color: var(--text-gray-light);
}

/* NEW DAMPAK NYATA SECTION */
#dampak-nyata {
    background-color: var(--dampak-nyata-bg); /* Warna latar putih */
}

#dampak-nyata .section-heading {
    color: var(--amallan-dark-green); /* Warna hijau gelap untuk judul */
    font-size: 2.5em;
    margin-bottom: 5px;
}
body.dark #dampak-nyata .section-heading {
    color: var(--text-white);
}

#dampak-nyata .section-description {
    color: #666;
    margin-bottom: 50px;
}
body.dark #dampak-nyata .section-description {
    color: var(--text-gray-light);
}

#dampak-nyata .dampak-content {
    display: flex;
    flex-direction: row; /* Default: gambar kiri, teks kanan */
    align-items: stretch; /* **Diubah:** Agar galeri dan info card tingginya sama */
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    gap: 30px; /* Jarak antara blok gambar dan teks */
    border: 1px solid #c8e6c9; /* Border hijau muda dari gambar */
    border-radius: 8px; /* Sudut membulat */
    overflow: hidden; /* Pastikan konten tidak keluar dari border-radius */
    box-shadow: 0 5px 20px rgba(0,0,0,0.08); /* Sedikit bayangan */
}
body.dark #dampak-nyata .dampak-content {
    border-color: #4a664a;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

#dampak-nyata .dampak-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 kolom untuk gambar */
    grid-template-rows: repeat(2, 1fr); /* 2 baris untuk gambar */
    gap: 10px; /* Jarak antar gambar */
    flex: 1.2; /* Beri lebih banyak ruang untuk galeri gambar */
    padding: 0; /* **Diperbaiki:** Hapus padding agar gambar menyentuh tepi */
    background-color: white; /* Latar belakang galeri gambar */
}
body.dark #dampak-nyata .dampak-gallery {
    background-color: #3b4c3b;
}

#dampak-nyata .dampak-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Memastikan gambar mengisi area tanpa distorsi */
}

/* Border radius untuk gambar individu agar mirip gambar asli */
#dampak-nyata .dampak-gallery img:nth-child(1) { border-top-left-radius: 8px; } /* Sudut kiri atas */
#dampak-nyata .dampak-gallery img:nth-child(2) { border-top-right-radius: 8px; } /* Sudut kanan atas */
#dampak-nyata .dampak-gallery img:nth-child(3) { border-bottom-left-radius: 8px; } /* Sudut kiri bawah */
#dampak-nyata .dampak-gallery img:nth-child(4) { border-bottom-right-radius: 8px; } /* Sudut kanan bawah */


#dampak-nyata .dampak-info-card {
    flex: 1; /* Ambil sisa ruang, sedikit lebih kecil dari galeri */
    background-color: var(--dampak-card-desc-bg); /* Warna latar belakang: #edf7ee */
    padding: 40px; /* Padding di dalam kotak deskripsi */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
body.dark #dampak-nyata .dampak-info-card {
    background-color: #3b4c3b;
}

#dampak-nyata .dampak-info-card h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.8em;
    color: var(--amallan-dark-green); /* Warna judul */
    margin-bottom: 20px;
    text-align: left;
}
body.dark #dampak-nyata .dampak-info-card h3 {
    color: var(--text-white);
}

#dampak-nyata .dampak-info-card p {
    font-size: 1em;
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: justify;
}
body.dark #dampak-nyata .dampak-info-card p {
    color: var(--text-gray-light);
}

#dampak-nyata .dampak-info-card ul {
    list-style: none; /* Hapus bullet default */
    padding: 0;
    margin: 0;
}

#dampak-nyata .dampak-info-card ul li {
    font-size: 1em;
    color: #555;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}
body.dark #dampak-nyata .dampak-info-card ul li {
    color: var(--text-gray-light);
}

#dampak-nyata .dampak-info-card ul li i {
    color: var(--amallan-dark-green);
    margin-right: 10px;
    font-size: 1.2em;
    margin-top: 3px; /* Penyesuaian vertikal ikon */
}

/* === CSS UNTUK SECTION BARU (KENALAN TEMAL) === */
#kenalan-temal {
    background-color: var(--kenalan-temal-bg);
}
#kenalan-temal .temal-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    display: flex;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
}
#kenalan-temal .temal-text-content {
    flex-basis: 55%;
    padding: 20px 40px; /* DIPERBARUI: Padding atas-bawah dikecilkan */
}
#kenalan-temal .temal-text-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    color: #2E7D32; /* DIPERBARUI: Warna font judul */
    margin-bottom: 15px;
}
#kenalan-temal .temal-text-content p {
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    color: #333; /* DIPERBARUI: Warna font paragraf */
    margin-bottom: 25px;
    line-height: 1.7;
}
#kenalan-temal .temal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
#kenalan-temal .temal-tag {
    background-color: #e8f5e9;
    color: #2E7D32; /* DIPERBARUI: Warna font tag */
    padding: 8px 15px;
    border-radius: 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
#kenalan-temal .temal-tag i {
    font-size: 1.1em;
}
#kenalan-temal .temal-image-container {
    flex-basis: 45%;
    background: linear-gradient(135deg, #66BB6A, #43A047);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    min-height: 350px;
}
#kenalan-temal .temal-image-container img {
    max-height: 90%;
    max-width: 70%;
    height: auto;
    object-fit: contain;
}
/* === END OF CSS UNTUK SECTION BARU === */

/* === CSS UNTUK SECTION BERGABUNG (REFINED) === */
#bergabung-gerakan {
    background-color: #4CAF50;
    color: var(--text-white);
}

#bergabung-gerakan .section-heading {
    color: var(--text-white);
    font-size: 2.2em;
    font-weight: 700;
}

#bergabung-gerakan .section-description {
    color: var(--text-white);
    font-family: 'Roboto', sans-serif;
    max-width: 550px;
    margin-bottom: 60px;
    font-size: 1.1em;
    line-height: 1.5;
}

.gerakan-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch; /* Memastikan semua item grid dalam satu baris memiliki tinggi yang sama */
}

.gerakan-card {
    background-color: var(--text-white);
    color: var(--general-text-dark);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column; /* Mengatur item secara vertikal */
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gerakan-card .gerakan-icon-container {
    background-color: #4CAF50;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    flex-shrink: 0;
}

.gerakan-card .gerakan-icon-container img {
    width: 40px;
    height: 40px;
}

.gerakan-card h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.6em;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--general-text-dark);
}

.gerakan-card p {
    font-size: 1em;
    line-height: 1.6;
    color: #555;
    max-width: 280px;
    margin-bottom: 30px;
    flex-grow: 1; /* PERBAIKAN UTAMA: Membuat paragraf mengisi ruang kosong, mendorong tombol ke bawah */
}

.gerakan-button {
    background-color: var(--section-join-btn-green);
    color: var(--text-white);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1em;
    transition: background-color 0.3s ease;
    flex-shrink: 0; /* Mencegah tombol menyusut */
}

.gerakan-button:hover {
    background-color: #7CB342;
}

.hubungi-kami-container {
    text-align: center;
    margin-top: 60px;
}

.button-hubungi-kami-putih {
    background-color: var(--text-white);
    color: #4CAF50;
    padding: 16px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: inline-block;
}

.button-hubungi-kami-putih:hover {
    background-color: #f1f1f1;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
/* === END OF REFINED CSS === */

/* === KHUSUS PADDING UNTUK SECTION KONTAK === */
.contact-section-padding {
    padding: 70px 5%; /* Sedikit lebih besar dari sebelumnya */
}

/* === NEW CONTACT SECTION STYLES (REFINED) === */
#contact {
    background-color: #f8f8f8;
}

.contact-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 2.4em; /* Sedikit diperbesar */
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    color: var(--amallan-dark-green);
}

.contact-subheading {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1em; /* Sedikit diperbesar */
    text-align: center;
    max-width: 700px;
    margin: 0 auto 45px; /* Margin bawah disesuaikan */
    color: var(--amallan-light-green-btn);
}

.contact-content-new {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1150px; /* Sedikit diperbesar */
    margin: 0 auto;
    align-items: stretch; /* MEMBUAT KEDUA KOLOM SAMA TINGGI */
}

.contact-info-new, .contact-form-new {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border: 1px solid #e8f5e9;
    border-radius: 8px;
    padding: 35px; /* Padding disesuaikan */
    display: flex;
    flex-direction: column;
}

.contact-box-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.7em; /* Sedikit diperbesar */
    font-weight: 600;
    margin-bottom: 25px; /* Margin disesuaikan */
    color: var(--amallan-dark-green);
}

.contact-item-new {
    display: flex;
    align-items: center;
    margin-bottom: 22px; /* Margin disesuaikan */
}
.contact-item-new:last-child {
    margin-bottom: 0;
}

.contact-item-new img {
    width: 42px; /* Sedikit diperbesar */
    height: 42px; /* Sedikit diperbesar */
    margin-right: 18px; /* Margin disesuaikan */
}
.contact-item-new .text-content {
    line-height: 1.4;
}
.contact-item-new .text-content strong {
    font-family: 'Poppins', sans-serif;
    display: block;
    font-weight: 600;
    font-size: 1em; /* Sedikit diperbesar */
    color: var(--amallan-dark-green);
    margin-bottom: 3px;
}
.contact-item-new .text-content p {
    margin: 0;
    font-size: 0.95em; /* Sedikit diperbesar */
    color: #555;
    font-family: 'Roboto', sans-serif;
}

.contact-form-new {
    justify-content: space-between;
}

/* Menghapus .form-grid dan .form-group karena tidak lagi digunakan untuk layout grid */
.contact-form-new .form-group {
    margin-bottom: 15px; /* Jarak antar form group */
}


.contact-form-new label {
    display: block;
    margin-bottom: 8px; /* Margin disesuaikan */
    font-weight: 500;
    font-size: 0.95em; /* Sedikit diperbesar */
    color: var(--amallan-dark-green);
    font-family: 'Poppins', sans-serif;
}

.contact-form-new input,
.contact-form-new textarea {
    width: 100%;
    padding: 12px 15px; /* Padding disesuaikan */
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95em; /* Sedikit diperbesar */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fcfcfc;
    color: #333;
    box-sizing: border-box; /* Penting untuk layout */
}

.contact-form-new textarea {
    resize: vertical;
    min-height: 100px; /* Tinggi minimum textarea disesuaikan */
}

.contact-form-new input:focus,
.contact-form-new textarea:focus {
    outline: none;
    border-color: var(--amallan-dark-green);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

/* Ubah warna tombol submit agar sesuai dengan contoh gambar `image_2011e0.png` */
.contact-form-new button {
    width: 100%;
    background-color: #4CAF50; /* Warna hijau seperti contoh gambar */
    color: var(--text-white);
    border: none;
    padding: 14px; /* Padding disesuaikan */
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.05em; /* Sedikit diperbesar */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px; /* Sedikit margin atas */
}

.contact-form-new button:hover {
    background-color: #388E3C; /* Warna hijau sedikit lebih gelap saat hover */
    transform: translateY(-2px);
}
/* === END OF NEW CONTACT SECTION STYLES === */


/* === FOOTER STYLES === */
footer {
    background-color: #2A323C; /* Warna biru-abu tua dari desain baru */
    color: #E0E0E0;
    padding: 60px 5% 30px;
    font-family: 'Roboto', sans-serif;
}

footer .footer-grid {
    display: flex; /* Menggunakan flexbox untuk tata letak kolom */
    justify-content: space-between; /* Memberikan ruang merata di antara kolom */
    flex-wrap: wrap; /* Mengizinkan kolom untuk wrap ke baris baru di layar kecil */
    max-width: 1200px;
    margin: 0 auto 50px; /* Memastikan grid berada di tengah */
    text-align: left; /* Teks di dalam kolom rata kiri */
}

footer .footer-col {
    display: flex;
    flex-direction: column;
    /* Flex-basis disesuaikan untuk distribusi lebar kolom yang lebih mirip gambar */
    flex-basis: calc(30% - 20px); /* Kira-kira 30% untuk 3 kolom dengan sedikit gap */
    min-width: 250px; /* Minimum width agar tidak terlalu sempit di breakpoint tertentu */
    margin-bottom: 30px; /* Memberi ruang antar kolom di bagian bawah saat wrap */
}

/* Penyesuaian lebar untuk kolom logo */
footer .footer-logo-col {
    flex-basis: calc(35% - 20px); /* Memberi sedikit lebih banyak ruang untuk logo dan deskripsi */
    display: flex; /* Tambahkan flex untuk logo dan paragraf */
    flex-direction: column; /* Susun vertikal */
    align-items: flex-start; /* Sejajarkan ke kiri */
}

footer .footer-logo-new {
    width: 200px; /* Mempertahankan ukuran logo sesuai yang diminta */
    height: auto;
    margin-bottom: 15px; /* Kurangi margin bawah logo agar lebih padat */
    /* align-self: flex-start;  Tidak perlu ini lagi karena parent sudah flex-direction: column dan align-items: flex-start */
}

footer .footer-logo-col p {
    font-size: 1em;
    line-height: 1.7;
    color: #d0d0d0;
    margin-bottom: 25px;
    max-width: 280px; /* Batasi lebar paragraf agar tidak terlalu panjang */
    text-align: left; /* Pastikan teks paragraf rata kiri */
}
footer .social-icons {
    display: flex;
    gap: 12px;
    justify-content: flex-start; /* Ikon sosial rata kiri */
    margin-top: auto; /* Dorong ikon sosial ke bawah jika ada ruang lebih */
}
footer .social-icons a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    background-color: #3b3b3b;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
footer .social-icons a:hover {
    background-color: var(--amallan-dark-green);
    transform: translateY(-2px);
}

footer .footer-col h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-white);
    text-transform: capitalize;
    text-align: left; /* Pastikan judul kolom rata kiri */
}

footer .footer-contact-item {
    display: flex;
    align-items: flex-start; /* align-top */
    margin-bottom: 18px;
    font-size: 0.95em;
    color: #d0d0d0;
    line-height: 1.6;
}
footer .footer-contact-item i {
    font-size: 1em;
    color: #FBC02D; /* Warna ikon kuning dari desain */
    margin-right: 15px;
    margin-top: 5px;
    width: 20px;
    text-align: center;
    flex-shrink: 0; /* Pastikan ikon tidak menyusut */
}
footer .footer-contact-item a,
footer .footer-contact-item p {
    margin: 0;
    color: #d0d0d0;
    text-decoration: none;
    transition: color 0.3s ease;
}
 footer .footer-contact-item a:hover {
    color: var(--text-white);
}

footer .jam-operasional-item {
     font-size: 0.95em;
     color: #d0d0d0;
     margin-bottom: 12px;
     text-align: left; /* Pastikan teks jam operasional rata kiri */
}
 footer .jam-operasional-item p {
     margin: 0;
 }


footer .footer-bottom {
    border-top: 1px solid #4a5159;
    padding-top: 30px;
    margin-top: 30px;
    text-align: center;
}
footer .footer-bottom p {
    margin: 0;
    font-size: 0.9em;
    color: #a0a0a0;
}

/* --- STYLES UNTUK CHATBOT (INI BAGIAN YANG DIPERBARUI) --- */

/* Tombol Ikon Chatbot (Floating Action Button) */
.chatbot-fab {
    position: fixed;            /* Membuat posisi tetap relatif terhadap layar */
    bottom: 30px;               /* Jarak 30px dari bawah layar (posisi default) */
    right: 30px;                /* Jarak 30px dari kanan layar */
    background-color: var(--amallan-dark-green); /* Warna latar hijau tua */
    color: white;               /* Warna ikon putih */
    width: auto; /* Otomatis menyesuaikan lebar teks */
    min-width: 45px; /* Lebar minimum */
    height: 45px;               /* Tinggi */
    border-radius: 22.5px;         /* Menyesuaikan radius agar tetap oval */
    display: flex;              /* Menggunakan flexbox untuk menengahkan ikon dan teks */
    align-items: center;        /* Menengahkan ikon dan teks secara vertikal */
    justify-content: center;    /* Menengahkan ikon dan teks secara horizontal */
    font-size: 1em;           /* Ukuran font untuk teks */
    padding: 0 12px; /* Padding horizontal untuk memberi ruang pada teks */
    box-shadow: 0 4px 12px rgba(0,0,0,0.25); /* Efek bayangan */
    cursor: pointer;            /* Mengubah kursor menjadi tangan saat di-hover */
    transition: all 0.3s ease; /* Transisi untuk semua properti */
    z-index: 1010;              /* Memastikan tombol ini berada di atas elemen lain, termasuk scroll-to-top */
    border: none;               /* Menghilangkan border default */
}
/* Style untuk ikon di dalam FAB */
.chatbot-fab i {
    font-size: 1.4em; /* Ukuran ikon robot */
    margin-right: 6px; /* Jarak antara ikon dan teks */
}
/* Sembunyikan teks pada FAB secara default pada mobile kecil */
.chatbot-fab .fab-text {
    display: inline;
}

.chatbot-fab:hover {
    background-color: var(--amallan-light-green-btn); /* Mengubah warna saat di-hover */
    transform: scale(1.05);      /* Sedikit memperbesar tombol saat di-hover */
}

/* PERUBAHAN UTAMA: Posisi dan Animasi Jendela Chatbot */
.chatbot-modal {
    display: none;              /* Sembunyikan secara default */
    position: fixed;            /* Posisi tetap di layar */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3); /* Latar belakang semi-transparan (sedikit lebih terang) */
    z-index: 10000;             /* Z-index sangat tinggi agar muncul di paling atas */
    opacity: 0;                 /* Opacity awal untuk animasi fade-in */
    transition: opacity 0.3s ease;
    pointer-events: none;       /* Nonaktifkan klik pada overlay saat tersembunyi */
}

.chatbot-modal.is-visible {
    display: block; /* Ubah dari flex ke block */
    opacity: 1;
    pointer-events: auto; /* Aktifkan kembali klik saat terlihat */
}

.chatbot-modal-content {
    position: absolute; /* Posisi absolut di dalam modal overlay */
    bottom: 20px;       /* Jarak dari bawah */
    right: 20px;        /* Jarak dari kanan */
    background-color: white;
    width: 95%; /* Diperbesar dari 90% */
    max-width: 450px; /* Diperbesar dari 400px */
    height: 75vh; /* Diperbesar dari 70vh */
    max-height: 650px; /* Diperbesar dari 600px */ 
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Mencegah iframe keluar dari border-radius */
    /* Animasi Pop-up dari sudut */
    transform-origin: bottom right;
    transform: scale(0.5) translateY(20px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
}

.chatbot-modal.is-visible .chatbot-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.chatbot-close-button {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 2em;
    color: #888;
    cursor: pointer;
    z-index: 10;
}

.chatbot-close-button:hover {
    color: #333;
}

.chatbot-iframe {
    width: 100%;
    height: 100%;
    border: none; /* Menghilangkan border pada iframe */
}

/* Chatbot UI specific styles from chatbot.html */
.container {
    width: 100%;
    max-width: 800px; /* This max-width will be constrained by .chatbot-modal-content max-width */
    background-color: var(--bg-color-chatbot);
    border-radius: 16px; /* This will be overridden by .chatbot-modal-content border-radius */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* This will be overridden by .chatbot-modal-content box-shadow */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.header {
    background-color: var(--primary-color-chatbot);
    color: white;
    padding: 15px 20px; /* Adjusted padding */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    position: relative; /* Needed for absolute positioning of clear chat button on mobile */
}

.header .logo {
    height: 30px; /* Increased logo size for better visibility */
    width: auto;
    flex-shrink: 0; /* Prevent logo from shrinking */
}

.header h1 {
    font-size: 1.1rem; /* Slightly larger font for prominence */
    font-weight: 600;
    flex-grow: 1; /* Allow title to take up available space */
    text-align: center; /* Center the title */
    margin: 0 auto; /* Remove default margins, center horizontally */
    position: absolute; /* Position absolutely to center regardless of other elements */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap; /* Prevent title from wrapping */
    padding: 0 50px; /* Add padding to prevent overlap with logo/button */
}

/* Styling for the clear chat button */
.clear-chat-button {
    background-color: var(--amallan-light-green-btn);
    border: 2px solid var(--amallan-light-green-btn);
    color: var(--text-white);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-left: auto; /* Push button to the right */
    z-index: 1; /* Ensure button is above the centered title if needed */
}

.clear-chat-button:hover {
    background-color: var(--section-join-bg);
    border-color: var(--section-join-bg);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.clear-chat-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: var(--bg-color-chatbot); /* Ensure chat background matches chatbot.html body */
}

/* Container for each message to hold the message bubble and timestamp */
.message-wrapper {
    display: flex;
    flex-direction: column;
}

/* Container for bot message including mascot */
.bot-message-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    align-self: flex-start;
    max-width: 90%;
}

.message {
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.4;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease;
    flex-shrink: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-message {
    align-self: flex-end;
    background-color: var(--user-bubble-chatbot);
    border-bottom-right-radius: 4px;
    color: var(--text-color-chatbot);
    max-width: 80%;
}

.bot-message {
    background-color: var(--bot-bubble-chatbot);
    border-bottom-left-radius: 4px;
    max-width: calc(100% - 40px);
}

/* Specific style for the mascot image */
.mascot-icon {
    height: 40px;
    width: auto;
    flex-shrink: 0;
    margin-top: 5px;
}

.input-container {
    display: flex;
    padding: 15px;
    background-color: var(--bg-color-chatbot);
    border-top: 1px solid #e2e8f0;
}

#user-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

#user-input:focus {
    border-color: var(--primary-color-chatbot);
}

#send-button {
    background-color: var(--accent-color-chatbot);
    color: white;
    border: none;
    border-radius: 24px;
    padding: 0 20px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

#send-button:hover {
    background-color: var(--section-join-bg);
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background-color: var(--bot-bubble-chatbot);
    border-radius: 18px;
    align-self: flex-start;
    margin-bottom: 12px;
    display: none;
    gap: 5px;
}

/* New: Wrapper for typing indicator to accommodate mascot */
.typing-indicator-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    align-self: flex-start;
    margin-top: 12px;
}

.typing-indicator-wrapper .mascot-icon {
    height: 40px;
    width: auto;
    flex-shrink: 0;
    margin-top: 5px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--light-text-chatbot);
    border-radius: 50%;
    margin: 0 2px;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingAnimation {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

.timestamp {
    font-size: 0.75rem;
    color: var(--light-text-chatbot);
    margin-top: 4px;
    align-self: flex-end;
}

/* Adjust timestamp alignment for bot messages */
.bot-message-wrapper + .timestamp {
    align-self: flex-start;
    margin-left: 50px;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    margin-left: 50px;
}

.quick-reply {
    background-color: var(--quick-reply-bg-chatbot);
    border-radius: 16px;
    padding: 8px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s;
    color: var(--general-text-dark);
}

.quick-reply:hover {
    background-color: var(--quick-reply-hover-chatbot);
}


/* Responsive Adjustments */
@media (max-width: 1024px) {
    #hero h1 {
        font-size: 2.8em;
    }
    #hero p {
        font-size: 1.05em;
    }
    #about-amallan .about-text-content h2 {
        font-size: 2.5em;
    }
    #program-utama .program-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Sedikit lebih kecil di tablet */
    }
    #how-it-works .step-card-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Sedikit lebih kecil di tablet */
    }
    #dampak-nyata .dampak-content {
        gap: 20px; /* Kurangi jarak di tablet */
    }
    #dampak-nyata .dampak-info-card h3 {
        font-size: 1.6em;
    }
    #dampak-nyata .dampak-gallery {
        height: 260px; /* Sesuaikan tinggi galeri untuk tablet */
    }
    #dampak-nyata .dampak-gallery img {
        height: 100%; /* Gambar mengisi penuh di tablet */
    }
    #dampak-nyata .dampak-info-card {
        min-height: 260px; /* Sesuaikan tinggi info card untuk tablet */
    }
    footer .footer-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kolom di tablet */
        gap: 30px;
    }
     /* Penyesuaian untuk footer di tablet */
    footer .footer-col {
        flex-basis: calc(50% - 15px); /* Dua kolom di tablet */
        text-align: left;
    }
    footer .footer-logo-col {
        flex-basis: calc(50% - 15px); /* Logo tetap 50% di tablet */
    }
    footer .footer-logo-col p,
    footer .social-icons {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    header {
        justify-content: space-between; /* Space-between logo and hamburger */
        padding: 10px 4%; /* More compact padding */
    }
    header .header-logo-new {
        height: 30px; /* Slightly larger for mobile */
        margin-right: 0;
    }
    header nav {
        display: none; /* Hide desktop navigation */
    }
    header .button-hubungi {
        display: none; /* Hide desktop contact button */
    }
    .mobile-menu-toggle {
        display: block; /* Show hamburger icon */
    }
    
    #hero {
        flex-direction: column;
        text-align: center;
        padding-top: 60px;
        padding-bottom: 30px;
        min-height: auto;
    }

    #hero .hero-content {
        max-width: 100%;
        padding-right: 0;
    }

    #hero h1 {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    #hero p {
        font-size: 1em;
        margin-bottom: 25px;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    #hero .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    #hero .hero-buttons .button {
        width: 90%;
        max-width: 300px;
    }

    #hero .hero-image-container {
        max-width: 90%;
        justify-content: center;
        margin-top: 20px;
        padding-bottom: 0;
    }
    #hero .hero-image-container img {
        transform: translateY(0);
        max-height: 300px;
    }

    /* Responsive About Section */
    #about-amallan .about-content {
        flex-direction: column; /* Ubah ke satu kolom */
        text-align: center;
        gap: 30px;
    }

    #about-amallan .about-image-container {
        order: 1; /* Gambar di atas */
        padding: 0;
    }
    #about-amallan .about-image-container img {
        max-width: 300px; /* Ukuran gambar di mobile */
        border-width: 10px; /* Kurangi border di mobile */
    }

    #about-amallan .about-text-content {
        order: 2; /* Teks di bawah */
        padding-right: 0;
        text-align: center;
    }
    #about-amallan .about-text-content h2 {
        font-size: 2em;
        text-align: center; /* Judul di tengah di mobile */
    }
    #about-amallan .about-text-content p {
        font-size: 1em;
        text-align: left; /* Paragraf tetap rata kiri untuk keterbacaan */
    }
    #about-amallan .info-box {
        flex-direction: row; /* Tetap baris untuk info box */
        text-align: left;
        padding: 15px;
        gap: 15px;
    }
    #about-amallan .info-box .info-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
    }

    /* Responsive Program Section */
    #program-utama .program-card-grid {
        grid-template-columns: 1fr; /* Satu kolom di mobile */
    }
    #program-utama .section-heading {
        font-size: 2em;
    }
    #program-utama .section-description {
        font-size: 1em;
    }
    #program-utama .program-card {
        padding: 25px;
    }
    #program-utama .program-card .icon-circle {
        width: 70px;
        height: 70px;
        padding: 8px; /* Sesuaikan padding untuk mobile */
    }

    /* Responsive How It Works Section */
    #how-it-works .step-card-grid {
        grid-template-columns: 1fr; /* Satu kolom di mobile */
    }
    #how-it-works .section-heading {
        font-size: 2em;
    }
    #how-it-works .section-description {
        font-size: 1em;
    }
    #how-it-works .step-card {
        padding: 25px;
    }
    #how-it-works .step-card .step-number-circle {
        width: 70px;
        height: 70px;
        padding: 8px; /* Sesuaikan padding untuk mobile */
    }

    /* Responsive Dampak Nyata Section */
    #dampak-nyata .dampak-content {
        flex-direction: column; /* Ubah ke satu kolom */
        padding: 0; /* Hapus padding di container utama */
    }
    #dampak-nyata .dampak-gallery {
        grid-template-columns: repeat(2, 1fr); /* Tetap 2x2 gambar */
        padding: 10px; /* Jaga padding di dalam galeri */
        height: auto; /* Biarkan tinggi otomatis */
    }
    #dampak-nyata .dampak-gallery img {
        height: 120px; /* Tinggi gambar lebih kecil di mobile */
    }
    #dampak-nyata .dampak-info-card {
        padding: 25px; /* Kurangi padding di mobile */
        min-height: auto; /* Biarkan tinggi otomatis */
    }
    #dampak-nyata .dampak-info-card h3 {
        font-size: 1.5em;
    }
    #dampak-nyata .dampak-info-card p,
    #dampak-nyata .dampak-info-card ul li {
        font-size: 0.9em;
    }

    /* === RESPONSIVE UNTUK SECTION BARU (KENALAN TEMAL) === */
    #kenalan-temal .temal-container {
        flex-direction: column;
    }
    #kenalan-temal .temal-text-content {
        padding: 30px;
        text-align: center;
    }
    #kenalan-temal .temal-text-content p {
        text-align: justify;
    }
    #kenalan-temal .temal-tags {
        justify-content: center;
    }
    #kenalan-temal .temal-image-container {
        min-height: 280px;
    }

    /* === RESPONSIVE UNTUK SECTION BERGABUNG === */
     .gerakan-card-grid {
        grid-template-columns: 1fr; /* Satu kolom di mobile */
    }

    .chatbot-fab {
        bottom: 20px;
        right: 20px;
        width: auto; /* Otomatis menyesuaikan lebar teks */
        min-width: 40px; /* Minimum width */
        height: 40px; /* Tinggi */
        font-size: 1.1em; /* Ukuran font untuk teks */
        padding: 0 10px; /* Padding horizontal */
    }
    .chatbot-fab i {
        font-size: 1.2em; /* Ukuran ikon robot */
        margin-right: 5px; /* Jarak antara ikon dan teks */
    }
    /* Sembunyikan teks pada FAB secara default pada mobile kecil */
    .chatbot-fab .fab-text {
        display: none; /* Sembunyikan teks pada layar yang lebih kecil */
    }

    /* General section adjustments for smaller screens */
    .section-padding {
        padding: 50px 5%;
    }
    .section-heading {
        font-size: 1.8em;
    }
    .section-description {
        font-size: 0.9em;
    }
    
    /* === RESPONSIVE UNTUK SECTION KONTAK BARU === */
    .contact-section-padding {
        padding: 50px 5%;
    }
    .contact-content-new {
        flex-direction: column; /* Tumpuk kolom secara vertikal */
    }
    .contact-info-new, .contact-form-new {
        padding: 30px; /* Kurangi padding di mobile */
    }
    .contact-heading {
        font-size: 2em;
    }
    .contact-box-title {
        font-size: 1.5em;
    }
    /* === END OF RESPONSIVE KONTAK === */

    footer .footer-grid {
        flex-direction: column; /* Ubah ke satu kolom di mobile */
        text-align: center;
        gap: 20px; /* Kurangi gap antar kolom */
    }
    footer .footer-col {
        align-items: center; /* Pusatkan konten di mobile */
        min-width: unset; /* Reset min-width */
        flex-basis: auto; /* Reset flex-basis */
    }
    footer .footer-logo-new {
        align-self: center; /* Pusatkan logo di mobile */
        margin-left: auto;
        margin-right: auto;
    }
    footer .footer-logo-col p {
        max-width: 80%; /* Batasi lebar paragraf di mobile */
        margin-left: auto;
        margin-right: auto;
    }
    footer .social-icons {
        justify-content: center; /* Pusatkan ikon sosial di mobile */
    }
    footer .footer-contact-item {
        justify-content: center;
        text-align: left; /* Teks item kontak tetap rata kiri */
    }
    footer .footer-contact-item i {
        margin-right: 10px; /* Kurangi margin ikon di mobile */
    }
    /* === PERBAIKAN UNTUK TAMPILAN MOBILE CHATBOT === */
    body {
        padding: 0;
    }

    /* .container class in chatbot.html was the entire page, now its content is inside .chatbot-modal-content */
    /* So, these styles now apply to the internal UI of the chatbot within the modal */
    .chatbot-modal-content { /* Changed from .container to apply to the modal content itself */
        border-radius: 0; /* Remove border-radius for full screen on mobile */
        max-height: -webkit-fill-available; /* Ensure it fills available height */
    }

    .header {
        flex-wrap: nowrap; /* Prevent wrapping on mobile */
        padding: 12px 15px;
        justify-content: space-between; /* Keep logo left, button right */
        position: relative; /* Ensure absolute positioning works from here */
    }

    .header .logo {
        height: 25px; /* Slightly smaller logo on mobile */
        margin-right: 0; /* Remove margin, since title is absolute now */
    }

    .header h1 {
        font-size: 1.3rem; /* Adjusted font size for mobile */
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 120px); /* Adjust width to fit between logo and button */
        text-align: center;
        padding: 0; /* Remove padding */
        z-index: 0; /* Ensure it's behind logo/button interaction area */
    }

    .clear-chat-button {
        width: auto;
        padding: 6px 12px; /* Adjust padding for mobile button */
        font-size: 0.8rem; /* Smaller font for mobile button */
        margin-left: 0; /* Remove auto margin to keep it right aligned by flexbox */
        order: initial; /* Reset order */
        flex-shrink: 0; /* Prevent button from shrinking */
    }

    .message {
        max-width: 90%;
    }

    .quick-replies {
        gap: 6px;
        margin-left: 0;
        justify-content: flex-start;
    }

    .quick-reply {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .bot-message-wrapper {
        max-width: 100%;
    }

    .bot-message-wrapper + .timestamp {
        margin-left: 0;
    }

    .input-container {
        padding: 10px;
    }

    #user-input {
        font-size: 15px;
    }
}

/* PERUBAHAN: Responsif untuk jendela chatbot di layar sangat kecil */
@media (max-width: 480px) {
    header .header-logo-new {
        height: 30px; /* Sedikit lebih kecil lagi untuk layar sangat kecil */
    }
    #hero {
        padding: 40px 4% 20px;
    }
    #hero h1 {
        font-size: 1.8em;
    }
    #hero p {
        font-size: 0.95em;
    }
    .section-padding {
        padding: 30px 4%;
    }
    /* === RESPONSIVE UNTUK SECTION KONTAK BARU === */
    .contact-section-padding {
        padding: 30px 4%;
    }
    .section-heading {
        font-size: 1.5em;
    }
    .section-description {
        font-size: 0.9em;
    }
    .chatbot-modal-content {
        width: 100%;
        height: 100%;
        max-height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
        transform-origin: bottom center; /* Animasi dari bawah tengah */
    }
    .chatbot-close-button {
        color: #555;
    }
    /* Pastikan teks pada FAB tersembunyi pada layar sangat kecil */
    .chatbot-fab .fab-text {
        display: none;
    }
    /* Pastikan lebar FAB hanya ikon pada layar sangat kecil */
    .chatbot-fab {
        width: 40px; /* Kembali ke ukuran ikon saja */
        height: 40px;
        padding: 0;
    }
    .chatbot-fab i {
        margin-right: 0; /* Hapus margin ikon */
        font-size: 1.2em; /* Sesuaikan ukuran ikon */
    }
}