/* ========================================= */
/* General Body & Button Styles              */
/* ========================================= */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc; /* slate-50 */
    color: #334155; /* slate-700 */
     padding-top: 90px; 
}

.btn-primary-frontend {
    background-color: #4f46e5;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.2s;
}
.btn-primary-frontend:hover {
    background-color: #4338ca;
}

/* Styling for Volunteer Page Benefit Cards */
.benefit-card {
    background-color: #f8fafc; /* bg-slate-50 */
    padding: 2rem;
    border-radius: 0.75rem; /* rounded-xl */
    border: 1px solid #e2e8f0; /* border-slate-200 */
    transition: all 0.3s ease-in-out;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); /* shadow-lg */
    border-color: #3b82f6; /* border-blue-500 */
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem; /* w-16 */
    height: 4rem; /* h-16 */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem; /* mb-6 */
    background-color: #dbeafe; /* bg-blue-100 */
    color: #2563eb; /* text-blue-600 */
    font-size: 1.875rem; /* text-3xl */
    border-radius: 9999px; /* rounded-full */
}

/* General Form Styling (Can be reused across pages) */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #475569; /* text-slate-600 */
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1; /* border-slate-300 */
    border-radius: 0.5rem; /* rounded-lg */
    background-color: #f8fafc; /* bg-slate-50 */
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: #3b82f6; /* border-blue-500 */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* ========================================= */
/* Header & Navigation                       */
/* ========================================= */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}
.nav-link {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    color: #475569;
    font-weight: 500;
}
.nav-link:hover {
    background-color: #f1f5f9;
}
.nav-link.active, #get-involved-trigger.active {
    color: #2563eb;
    font-weight: 600;
}
.nav-link-mobile {
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
}
/* Hero Section Styles (index.html) */
.hero-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/mosque.jpg');
    background-size: cover;
    background-position: center;
}

/* ========================================= */
/* Donation Page Styling                     */
/* ========================================= */

.donation-layout {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column */
    gap: 2rem;
}
@media (min-width: 1024px) { /* On larger screens, switch to two columns */
    .donation-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.donation-form-container {
    background: #fff;
    padding: 2.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.form-step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
}
.form-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgb(79 70 229 / 0.2);
}

.form-error {
    color: #ef4444; /* red-500 */
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none; /* Hidden by default, shown by JS */
}

.amount-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.donation-amount {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.donation-amount:hover {
    border-color: #94a3b8;
}
.donation-amount.active {
    background-color: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

.payment-method-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.payment-method-option {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}
.payment-method-option.selected {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px #4f46e5;
}
.payment-details-content {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    margin-top: 1rem;
}

.drop-zone-frontend {
    border: 2px dashed #e2e8f0;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    color: #64748b;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}
.drop-zone-frontend.dragover {
    background-color: #eef2ff;
    border-color: #4f46e5;
}

.impact-info-container {
    background: linear-gradient(rgba(30, 41, 59, 0.8), rgba(30, 41, 59, 0.8)), url('https://images.unsplash.com/photo-1593113598332-cd288d649433?q=80&w=1740&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    padding: 2.5rem;
    border-radius: 0.75rem;
    color: white;
}

/* Modern Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem; /* 8px */
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem; /* 40px */
    height: 2.5rem; /* 40px */
    padding: 0 0.75rem;
    border: 1px solid #e2e8f0; /* slate-200 */
    background-color: #ffffff;
    color: #334155; /* slate-700 */
    font-weight: 600;
    font-size: 0.875rem; /* 14px */
    border-radius: 0.5rem; /* rounded-lg */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #3b82f6; /* blue-500 */
    background-color: #eff6ff; /* blue-50 */
    color: #2563eb; /* blue-600 */
}

.pagination-btn.active {
    border-color: #2563eb; /* blue-600 */
    background-color: #2563eb; /* blue-600 */
    color: #ffffff;
    cursor: default;
}

.pagination-btn:disabled {
    background-color: #f1f5f9; /* slate-100 */
    color: #94a3b8; /* slate-400 */
    cursor: not-allowed;
    opacity: 0.7;
}
/* ========================================= */
/* Footer Styles                             */
/* ========================================= */
.footer-link {
    color: #9ca3af;
    transition: color 0.2s;
}
.footer-link:hover {
    color: white;
    text-decoration: underline;
}
/* ========================================= */
/* Modern Header Enhancements (Versi AKHIR)  */
/* ========================================= */

/* 1. Stail Asas Header */
#header {
    border-bottom: 1px solid #e2e8f0;
    box-shadow: none;
}

/* 2. Stail Asas untuk SEMUA Pautan Navigasi (Termasuk yang telah dilawati) */
.nav-link, .nav-link:visited {
    position: relative;
    padding-bottom: 8px; /* Ruang untuk garisan bawah */
    transition: color 0.3s ease-in-out;
    letter-spacing: 0.025em;
    color: #475569; /* PAKSA warna asal jadi kelabu, walaupun link sudah dilawati */
    text-decoration: none; /* Buang garisan bawah default */
}

/* 3. Efek Hover */
.nav-link:hover {
    color: #1e40af; /* Warna biru lebih gelap untuk hover */
}

/* 4. Efek Garisan Bawah untuk Hover dan Aktif */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}


/* 5. Stail untuk Pautan Aktif */
.nav-link.active, .nav-link.active:visited {
    color: #1e40af;
    font-weight: 600;
}

/* 6. Butang "Donate Now" */
a.bg-blue-600.text-white[href="donate.html"] {
    font-weight: 600;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

a.bg-blue-600.text-white[href="donate.html"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.4);
}
/* ========================================= */
/* Pembetulan Akhir untuk Warna Ikon (SVG)   */
/* ========================================= */

/* Menetapkan warna asal ikon kepada kelabu */
#get-involved-trigger svg {
    stroke: #475569; /* Warna kelabu (slate-600) */
    transition: stroke 0.3s ease-in-out; /* Animasi untuk pertukaran warna */
}

/* Menukar warna ikon kepada biru apabila butang di-hover atau aktif */
#get-involved-trigger:hover svg,
#get-involved-trigger.active svg {
    stroke: #1e40af; /* Warna biru lebih gelap */
}
/* ========================================= */
/* Dropdown Menu on Hover                   */
/* ========================================= */

/* Letakkan #get-involved-trigger di dalam div dengan kelas .group */
/* Kita akan menggunakan kelas .group dari Tailwind untuk mengawal hover */

/* 1. Sembunyikan dropdown menu secara lalai dengan kemas */
#get-involved-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px); /* Turunkan sedikit untuk efek muncul dari bawah */
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

/* 2. Paparkan dropdown apabila parent (.relative) di-hover */
/* Gunakan .group-hover dari Tailwind pada div parent */
.relative:hover #get-involved-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* ========================================= */
/* Partner Page Enhancements               */
/* ========================================= */

/* Stail baru untuk tab borang */
.tab-button {
    padding: 0.75rem 1rem;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    color: #64748b; /* slate-500 */
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    margin-right: 1.5rem; /* Menambah jarak antara tab */
}

/* Stail apabila tab tidak aktif tetapi di-hover */
.tab-button:hover:not(.active) {
    color: #3b82f6; /* blue-500 */
    border-color: #dbeafe; /* blue-100 */
}

/* Stail untuk tab yang sedang aktif */
.tab-button.active {
    color: #1e3a8a; /* blue-900 */
    border-color: #1e3a8a; /* blue-900 */
}

/* Stail umum untuk borang */
#partner-registration-form, #sponsorship-inquiry-form {
    border-top: 1px solid #f1f5f9; /* Garisan pemisah halus */
    padding-top: 2rem;
}
/* ========================================= */
/* Partner Page - Benefit Cards Styling      */
/* ========================================= */

.benefit-card-partner {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 2rem;
    transition: all 0.3s ease-in-out;
}

.benefit-card-partner:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.benefit-icon-partner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.5rem;
    border-radius: 9999px;
    transition: transform 0.3s ease; /* Transisi untuk ikon */
}

/* Efek ikon membesar sedikit semasa hover pada kad */
.benefit-card-partner:hover .benefit-icon-partner {
    transform: scale(1.1);
}


/* Skema Warna untuk Setiap Ikon */
.icon-blue { background-color: #dbeafe; color: #2563eb; }
.icon-teal { background-color: #ccfbf1; color: #0d9488; }
.icon-red { background-color: #fee2e2; color: #dc2626; }
.icon-purple { background-color: #ede9fe; color: #7c3aed; }
.icon-orange { background-color: #ffedd5; color: #f97316; }

/* ========================================= */
/* "Our Work" Page Enhancements (IMPACTFUL)  */
/* ========================================= */

/* 1. Stail BARU untuk Kad "Our Approach" */
.approach-card {
    background-color: #ffffff; /* Kad kini berwarna putih untuk kontras */
    border: 1px solid #e2e8f0;
    padding: 2.5rem 2rem; /* Tambah lebih padding */
    border-radius: 0.75rem;
    position: relative; /* Penting untuk kedudukan nombor */
    overflow: hidden; /* Sembunyikan nombor yang terkeluar */
    transition: all 0.3s ease-in-out;
}

/* 2. Tambah Nombor Besar di Belakang Kad */
.approach-card::before {
    content: counter(card-counter); /* Guna kaunter CSS untuk nombor automatik */
    counter-increment: card-counter; /* Setiap kad akan menambah nombor +1 */
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 6rem; /* Saiz nombor yang besar */
    font-weight: 900; /* Sangat tebal */
    color: #f1f5f9; /* Warna nombor yang sangat lembut (slate-100) */
    z-index: 0;
    line-height: 1;
}

/* 3. Reset Kaunter untuk Setiap Kali Bahagian Ini Muncul */
.container {
    counter-reset: card-counter;
}

/* 4. Efek Hover yang Lebih Berimpak */
.approach-card:hover {
    transform: translateY(-10px);
    border-color: #3b82f6; /* Border biru semasa hover */
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.15);
}

/* 5. Pastikan Teks Berada di Lapisan Atas */
.approach-card h3, .approach-card p {
    position: relative;
    z-index: 1;
}

/* Kod untuk Bahagian Success Story (KEKAL SAMA) */
.success-story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 450px;
}

.success-story-image {
    position: relative;
}

.success-story-image::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: -1rem;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    z-index: -1;
    transition: all 0.3s ease;
}

.success-story-image:hover::before {
    transform: translate(8px, 8px);
}
/* ========================================= */
/* Homepage - Impact Section Styling         */
/* ========================================= */
.impact-card {
    background-color: #ffffff;
    padding: 2.5rem 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    transition: all 0.3s ease-in-out;
}

.impact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.impact-icon {
    margin: 0 auto 1.5rem auto; /* Letakkan ikon di tengah dan beri jarak bawah */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
}
/* Anda boleh guna semula kelas warna ikon dari halaman partner */
.icon-blue { background-color: #dbeafe; color: #2563eb; }
.icon-teal { background-color: #ccfbf1; color: #0d9488; }
.icon-red { background-color: #fee2e2; color: #dc2626; }
.icon-purple { background-color: #ede9fe; color: #7c3aed; }
/* ========================================= */
/* Homepage - Shape Divider Styling          */
/* ========================================= */
.shape-divider {
    position: absolute;
    bottom: -1px; /* Letakkan sedikit ke bawah untuk elak garisan halus */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px; /* Boleh ubah ketinggian landaian di sini */
}

.shape-divider .shape-fill {
    /* Warna ini mesti sama dengan warna latar belakang seksyen di bawahnya */
    fill: #FFFFFF; /* Warna Putih */
}
/* ========================================= */
/* Homepage - "Make a Difference" Section    */
/* ========================================= */
.action-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Letakkan kandungan di bahagian bawah kad */
    min-height: 400px;
    padding: 2rem;
    border-radius: 0.75rem; /* rounded-xl */
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: #ffffff;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.action-card:hover {
    transform: translateY(-10px);
}

/* Lapisan Overlay Berwarna */
.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(12, 59, 142, 0.9) 0%, rgba(30, 64, 175, 0.4) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

.action-card:hover::before {
    background: linear-gradient(to top, rgba(12, 59, 142, 0.8) 0%, rgba(30, 64, 175, 0.2) 100%);
}


/* Kandungan Teks di atas Overlay */
.action-card-content {
    position: relative;
    z-index: 2;
}

/* Butang CTA di dalam kad */
.action-card-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 9999px; /* rounded-full */
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.action-card:hover .action-card-button {
    background-color: rgba(255, 255, 255, 0.9);
    color: #1e3a8a;
}
/* ======================================================= */
/* Homepage - Auto Logo Slider (VERSI TELAH DIPERBAIKI)    */
/* ======================================================= */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * var(--logo-count))); } /* Lebar slide kini 200px */
}

.logo-slider-container {
    background: white;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 2rem 0; /* TAMBAH PADDING ATAS & BAWAH */
}

.logo-slider-container::before,
.logo-slider-container::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 15%;
    top: 0;
    z-index: 2;
}
.logo-slider-container::before {
    left: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), white);
}
.logo-slider-container::after {
    right: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), white);
}

.logo-slide-track {
    display: flex;
    width: calc(200px * var(--logo-count) * 2); /* Guna lebar slide baru */
    animation: scroll var(--duration) linear infinite;
}

.logo-slider-container:hover .logo-slide-track {
    animation-play-state: paused;
}

/* Stail untuk setiap logo (slide) */
.slide {
    width: 200px; /* Beri lebih ruang lebar */
    height: 100px; /* Beri lebih ruang tinggi */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    flex-shrink: 0;
}

/* GANTIKAN KOD LAMA INI... */
.slide img {
    max-height: 80px;
    max-width: 160px;
    width: auto;
    filter: grayscale(0%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.slide a:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* DENGAN KOD BARU INI */
.slide img {
    max-height: 80px;
    max-width: 160px;
    width: auto;
    opacity: 1; /* Pastikan logo sentiasa jelas */
    transition: transform 0.3s ease; /* Kekalkan animasi zoom sahaja */
}
.slide a:hover img {
    transform: scale(1.1); /* Kekalkan efek hover membesar */
}
/* ======================================================= */
/* Contact Page Enhancements (V4 - Separated Blocks)       */
/* ======================================================= */

/* Seksyen Peta */
.map-section {
    height: 400px;
}

/* Stail untuk blok borang di sebelah kanan */
.form-block-card {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.1);
}

/* Stail untuk input dan textarea di dalam borang kenalan */
.form-block-card .form-input,
.form-block-card .form-textarea {
    background-color: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.2s ease-in-out;
    width: 100%;
}

.form-block-card .form-input:focus,
.form-block-card .form-textarea:focus {
    background-color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Stail untuk Ikon Maklumat Hubungi */
.contact-icon-v2 {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: #e0f2fe;
    color: #0284c7;
    border-radius: 0.5rem;
}
.contact-icon-v2 svg {
    width: 1.75rem;
    height: 1.75rem;
}
/* ========================================= */
/* Privacy Policy Page Enhancements          */
/* ========================================= */

.policy-layout {
    display: grid;
    grid-template-columns: 1fr; /* 1 lajur pada mobile */
    gap: 4rem; /* Jarak antara sidebar dan kandungan */
}

/* Paparkan 2 lajur pada skrin besar */
@media (min-width: 1024px) {
    .policy-layout {
        grid-template-columns: 1fr 3fr; /* Sidebar lebih kecil, kandungan lebih besar */
    }
}

/* Sidebar yang "melekat" */
.policy-sidebar {
    position: sticky;
    top: 120px; /* Jarak dari atas (selepas header) */
    align-self: start; /* Pastikan ia bermula dari atas */
}

.policy-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Jarak antara pautan */
}

.sidebar-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #475569; /* slate-600 */
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.sidebar-link:hover {
    color: #1e3a8a; /* blue-900 */
    background-color: #f1f5f9; /* slate-100 */
}

/* Stail untuk pautan aktif akan dikawal oleh JavaScript */
.sidebar-link.active {
    color: #1e3a8a;
    font-weight: 600;
    border-left-color: #2563eb; /* blue-600 */
}

/* Stail untuk kad kandungan */
.policy-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    margin-bottom: 2rem; /* Jarak antara setiap kad */
    scroll-margin-top: 120px; /* Offset untuk 'scrolling' yang lancar */
}
/* ========================================= */
/* Cookie Consent Bar Redesign               */
/* ========================================= */

/* 1. Stail untuk Bar Utama */
#cookie-consent-bar {
    /* Tukar latar belakang kepada efek "kaca" */
    background-color: rgba(21, 30, 47, 0.8); /* Warna slate-900 dengan 80% ketelusan */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Untuk sokongan Safari */

    /* Tambah garisan atas yang kemas */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Ubahsuai padding dan shadow */
    padding: 1rem 1.5rem;
    box-shadow: 0 -10px 30px -15px rgba(0, 0, 0, 0.3);
    
    /* Pastikan ia berada di bawah */
    transform: translateY(0); /* Reset animasi asal jika ada */
    opacity: 1;
}

/* 2. Stail untuk Kumpulan Butang */
#cookie-consent-bar > div:last-child {
    gap: 1rem; /* Jarak seragam antara butang */
    align-items: center; /* Selaraskan butang di tengah secara vertikal */
}

/* 3. Stail Umum untuk Semua Butang */
#accept-all-cookies-btn,
#reject-all-cookies-btn,
#manage-settings-link {
    padding: 0.6rem 1.25rem;
    border-radius: 9999px; /* rounded-full */
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease-in-out;
    white-space: nowrap; /* Elakkan teks butang dari terlipat */
}


/* 4. Stail Butang Utama: "Accept all" */
#accept-all-cookies-btn {
    background-color: #ffffff; /* Latar belakang putih */
    color: #0f172a; /* Teks hitam (slate-900) */
}
#accept-all-cookies-btn:hover {
    background-color: #e2e8f0; /* Kelabu lembut apabila hover */
}

/* 5. Stail Butang Sekunder: "Reject all" */
#reject-all-cookies-btn {
    background-color: transparent;
    border-color: #475569; /* Border kelabu (slate-600) */
    color: #ffffff;
}
#reject-all-cookies-btn:hover {
    background-color: #475569;
    border-color: #475569;
}


/* 6. Stail Pautan: "Manage settings" */
#manage-settings-link {
    background-color: transparent;
    color: #cbd5e1; /* slate-300 */
    text-decoration: none;
}
#manage-settings-link:hover {
    color: #ffffff;
    text-decoration: underline;
}
/* ========================================= */
/* Modern Footer Redesign                    */
/* ========================================= */

/* 1. Pre-Footer CTA */
.pre-footer {
    background-color: #3b82f6; /* bg-blue-500 */
    color: #ffffff;
    padding: 4rem 0;
}
.pre-footer-btn {
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.pre-footer-btn.btn-primary {
    background-color: #ffffff;
    color: #1e3a8a;
}
.pre-footer-btn.btn-primary:hover {
    background-color: #e2e8f0;
    transform: translateY(-2px);
}
.pre-footer-btn.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}
.pre-footer-btn.btn-secondary:hover {
    background-color: #ffffff;
    color: #1e3a8a;
    transform: translateY(-2px);
}


/* 2. Main Footer */
.main-footer {
    background-color: #0f172a; /* bg-slate-900 */
    padding: 5rem 0 2rem 0;
}
.footer-title {
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.875rem;
}

/* 3. Pautan & Ikon Sosial */
.footer-link {
    color: #94a3b8; /* slate-400 */
    text-decoration: none;
    transition: all 0.2s ease;
}
.footer-link:hover {
    color: #ffffff;
    padding-left: 0.5rem;
}
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: #1e293b; /* slate-800 */
    color: #94a3b8;
    border-radius: 9999px;
    transition: all 0.2s ease;
}
.social-icon:hover {
    background-color: #3b82f6;
    color: #ffffff;
}

/* 4. Borang Newsletter */
.newsletter-input {
    width: 100%;
    background-color: #1e293b; /* slate-800 */
    border: 1px solid #334155; /* slate-700 */
    color: #ffffff;
    padding: 0.75rem;
    border-radius: 0.5rem;
}
.newsletter-input:focus {
    outline: none;
    border-color: #3b82f6;
}
.newsletter-btn {
    flex-shrink: 0;
    background-color: #3b82f6;
    color: #ffffff;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}
.newsletter-btn:hover {
    background-color: #2563eb;
}

/* 5. Bahagian Hak Cipta */
.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #1e293b; /* slate-800 */
    text-align: center;
    font-size: 0.875rem;
    color: #aaaaaa; /* slate-500 */
}
/* ========================================= */
/* Accessibility: Pre-Footer Contrast Fixes  */
/* ========================================= */

/* 1. Mencerahkan teks perenggan di dalam pre-footer */
.pre-footer p {
    color: #eff6ff; /* Warna biru yang sangat cerah (hampir putih) */
}

/* 2. Memastikan teks butang sekunder adalah putih sepenuhnya */
.pre-footer-btn.btn-secondary {
    color: #ffffff; /* Putih */
    border-color: #ffffff; /* Putih */
}

.pre-footer-btn.btn-secondary:hover {
    background-color: #ffffff;
    color: #1e3a8a;
}
/* ========================================= */
/* Mobile Hero Image Position Correction     */
/* ========================================= */

@media (max-width: 768px) { /* Stail ini hanya untuk skrin 768px ke bawah */
  .hero-bg {
    /* Gantikan 'center' dengan posisi baru untuk mobile sahaja */
    /* Cuba 'center bottom' dahulu */
    background-position: right bottom;

    /* Jika 'center bottom' tidak sesuai, cuba guna peratusan */
    /* Contoh: background-position: 50% 80%; */
  }
}
/* ========================================= */
/* Gallery Page Styling                      */
/* ========================================= */
.album-card {
    display: block;
    background-color: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
}
.album-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.album-card-image-wrapper {
    overflow: hidden;
    height: 220px;
}

.album-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.album-card:hover .album-card-image {
    transform: scale(1.1);
}

.album-card-content {
    padding: 1.5rem;
}

.album-card-date {
    font-size: 0.875rem;
    color: #64748b; /* slate-500 */
    font-weight: 500;
}

.album-card-title {
    margin-top: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b; /* slate-800 */
}
/* ========================================= */
/* Gallery Detail Page Styling               */
/* ========================================= */

/* Grid untuk gambar-gambar */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 lajur pada mobile */
    gap: 1rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 lajur pada tablet */
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 lajur pada desktop */
    }
}

/* Stail untuk setiap thumbnail gambar */
.photo-thumbnail {
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    cursor: pointer;
    aspect-ratio: 1 / 1; /* Pastikan gambar sentiasa segi empat sama */
}
.photo-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.photo-thumbnail:hover img {
    transform: scale(1.1);
}

/* Stail untuk Lightbox */
.lightbox-overlay {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none; /* Disembunyikan secara lalai */
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.lightbox-close:hover {
    color: #bbb;
}
/* Accordion Styles */
.accordion-item {
    border: 1px solid #e2e8f0; /* border-slate-200 */
    border-radius: 0.75rem; /* rounded-xl */
    overflow: hidden;
}

.accordion-header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1.25rem; /* p-5 */
    font-weight: 600;
    font-size: 1.125rem; /* text-lg */
    color: #1e293b; /* text-slate-800 */
    background-color: #f8fafc; /* bg-slate-50 */
    text-align: left;
    gap: 1rem; /* space-x-4 */
    cursor: pointer;
    transition: background-color 0.2s;
}

.accordion-header:hover {
    background-color: #f1f5f9; /* bg-slate-100 */
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-icon {
    margin-left: auto;
    transition: transform 0.3s ease-in-out;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    padding: 0 1.25rem;
    background-color: #ffffff;
}

.accordion-content.open {
    padding: 1.25rem;
    /* max-height is set by JavaScript */
}
/* ========================================= */
/* Upcoming Events Section Styling           */
/* ========================================= */
.event-card-placeholder {
    background-color: #1e293b; /* slate-800 */
    border: 1px solid #334155; /* slate-700 */
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.event-card-placeholder:hover {
    transform: translateY(-5px);
    border-color: #3b82f6; /* blue-500 */
}

.event-card-date {
    background-color: #3b82f6;
    color: #ffffff;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.event-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.event-card-desc {
    color: #94a3b8; /* slate-400 */
    margin-top: 0.75rem;
    flex-grow: 1; /* Memastikan butang sentiasa di bawah */
}

.event-card-button {
    display: inline-block;
    margin-top: 1.5rem;
    background-color: #ffffff;
    color: #1e293b;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s;
}

.event-card-button:hover {
    background-color: #e2e8f0; /* slate-200 */
}