/* Color Palette & Base Variables */
:root {
    --primary-color: #a81c1c; /* Deep Maroon / Kumkum */
    --secondary-color: #f57c00; /* Saffron */
    --bg-color: #fffdf5; /* Warm off-white */
    --text-color: #333333;
    --light-bg: #f9ecec;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lora', serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Cinzel', serif;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.text-center { text-align: center; }
.text-white { color: #fff; }
.bg-light { background-color: var(--light-bg); }
.bg-saffron { background-color: var(--secondary-color); }

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.bg-saffron .section-title {
    color: #fff;
}

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ffd54f;
}

.btn-donate {
    background-color: #ffd54f;
    color: var(--primary-color) !important;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
}

/* Hero Section */
.hero {
    height: 70vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/images/hero.jpg') center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}


/* Hamburger Icon Base Styles (Desktop Hidden) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.hamburger .bar {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Responsive Mobile Rules */
@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        position: relative;
    }

    header h1 {
        font-size: 1.1rem;
        max-width: 80%;
    }

    .hamburger {
        display: flex; /* Show icon on small screens */
    }

    /* Mobile Dropdown Menu */
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        display: none; /* Hidden by default */
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    }

    nav.active {
        display: block; /* Shown when toggled */
    }

    nav ul {
        flex-direction: column;
        padding: 15px 0;
        width: 100%;
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    /* Hamburger Animation to 'X' */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

.hero-content h2 {
    font-size: 3.5rem;
    color: #ffd54f;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 25px auto;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #831515;
}

/* Schedule Table */
.schedule-table {
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.schedule-table th, .schedule-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.schedule-table th {
    background-color: var(--primary-color);
    color: white;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
}

.schedule-table tr:hover {
    background-color: #f1f1f1;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Donation Form */
.donation-card {
    background: white;
    max-width: 500px;
    margin: 30px auto 0 auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--primary-color);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Lora', serif;
}

.btn-submit {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    font-size: 1.1rem;
    font-family: 'Cinzel', serif;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: #831515;
}

/* Footer */
footer {
    background-color: #222;
    color: #ccc;
    text-align: center;
    padding: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: row;
    }
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    nav ul li {
        margin: 5px 10px;
    }
    .hero-content h2 {
        font-size: 2.5rem;
    }
}