:root {
    --primary-green: #1b5e20;
    --secondary-green: #2e7d32;
    --accent-gold: #ffd700;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
}

.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 20px 0;
}

.navbar-brand {
    font-family: 'Amiri', serif;
    font-weight: 700;
    color: var(--primary-green) !important;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 600;
    color: #444 !important;
}

.nav-link:hover {
    color: var(--primary-green) !important;
}

/* Hero Slider */
.swiper-hero {
    width: 100%;
    height: 550px;
}

.swiper-hero .swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
}

.slide-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Amiri', serif;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-family: 'Amiri', serif;
    font-size: 2.8rem;
    color: var(--primary-green);
}

.section-title .underline {
    width: 80px;
    height: 4px;
    background: var(--accent-gold);
    margin: 10px auto;
}

/* Prayer Times Card */
.prayer-card {
    background: var(--primary-green);
    color: white;
    border-radius: 15px;
    padding: 25px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.prayer-time-item {
    text-align: center;
    padding: 10px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.prayer-time-item:last-child {
    border-right: none;
}

/* Event Card Styles - Updated for equal height */
.event-card {
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%; /* Memastikan kartu mengisi tinggi kontainer slide */
    background: white;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.event-card .card-img-top {
    height: 220px;
    width: 100%;
    object-fit: cover; /* Menjaga aspek rasio gambar */
    flex-shrink: 0;
}

.event-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Memaksa body mengambil sisa ruang kosong */
    padding: 20px;
}

.event-card .card-text {
    flex-grow: 1; /* Membuat teks deskripsi mendorong footer ke bawah */
}

/* Menjaga teks agar tidak terlalu panjang merusak layout */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Special Styling for 2-Column Layout */
.two-events-grid {
    max-width: 900px;
    margin: 0 auto;
}

.two-events-grid .row {
    display: flex;
    align-items: stretch; /* Memastikan semua kolom di row memiliki tinggi sama */
}

/* Swiper specific for equal height */
.swiper-events {
    padding-bottom: 50px !important;
}

.swiper-events .swiper-slide {
    height: auto; /* Penting agar slide mengikuti tinggi kartu tertinggi */
    display: flex;
}

/* Featured Single Event */
.featured-event-card {
    display: flex;
    flex-direction: row;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.featured-event-img {
    width: 45%;
    min-height: 400px;
    object-fit: cover;
}

.featured-event-content {
    padding: 50px;
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Empty State */
.empty-event-state {
    padding: 60px 20px;
    background: #fff;
    border-radius: 20px;
    border: 2px dashed #e0e0e0;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Finance Table Original Styles */
.finance-section {
    background-color: var(--light-bg);
}

.table-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 0 auto;
}

.btn-download {
    background-color: #f1f8e9;
    color: var(--primary-green);
    border: 1px solid var(--secondary-green);
    transition: all 0.2s;
}

.btn-download:hover {
    background-color: var(--primary-green);
    color: white;
}

/* Pagination Styling */
.pagination .page-link {
    color: var(--primary-green);
    border-color: #eee;
}
.pagination .page-item.active .page-link {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

/* Empty State Styling */
.empty-state {
    padding: 40px 20px;
    text-align: center;
}
.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}
.empty-state h5 {
    color: #6c757d;
    font-weight: 600;
}

footer {
    background: #111;
    color: #aaa;
    padding: 60px 0 30px;
}

@media (max-width: 992px) {
    .featured-event-card { flex-direction: column; }
    .featured-event-img { width: 100%; min-height: 300px; }
    .featured-event-content { width: 100%; padding: 30px; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .prayer-time-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
}