/* --- General Styles --- */
:root {
    --primary-color: #2b5e2d; /* Village Green */
    --secondary-color: #f4f4f4; /* Light Grey/Cream */
    --text-color: #333;
    --border-color: #ddd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: var(--text-color);
}

/* --- Header Section --- */
header {
    background-color: var(--secondary-color);
    border-bottom: 4px solid var(--primary-color);
}

.banner-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-area {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo-area img {
    height: 80px;
    width: auto;
}

.title-area {
    flex: 2;
    text-align: center;
}

.title-area h1 {
    margin: 0;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.charity-number {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

/* --- Contact Bar (No Flexbox) --- */
.contact-bar {
    background-color: #e0e0e0;
    text-align: center; /* Centers everything naturally */
    padding: 10px 0;
    font-weight: bold;
    font-size: 0.9rem;
    border-top: 1px solid #ccc;
}

/* Apply styles to both the text spans AND the facebook link */
.contact-bar span, 
.contact-bar .social-link {
    display: inline-block; /* Allows them to sit side-by-side */
    margin: 5px 15px;      /* Spacing around each item */
    vertical-align: middle; /* Ensures text and icon line up vertically */
}

/* Styles specifically for the Facebook Icon */
.social-link {
    color: #3b5998; /* Facebook Blue */
    text-decoration: none;
    transition: transform 0.2s, color 0.2s;
}

.social-link svg {
    display: block; /* Removes tiny gap under image */
    width: 20px;    /* Icon size */
    height: 20px;
}

.social-link:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Mobile Tweak: Keep them centered but allow stacking if needed */
@media (max-width: 768px) {
    .contact-bar span, 
    .contact-bar .social-link {
        display: block; /* Forces them to stack neatly on very small screens */
        margin: 5px auto;
    }
}

/* --- Navigation Bar --- */
nav {
    background-color: var(--primary-color);
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Updated for Links instead of Buttons */
nav a {
    display: inline-block;
    text-decoration: none;
    color: white;
    padding: 15px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
}

nav a:hover, nav a.active {
    background-color: #1a3a1b;
}

/* --- Main Content Area --- */
main {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 50vh;
}

h2.page-title {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* --- Page: Home --- */
.home-layout {
    display: flex;
    gap: 40px;
    align-items: center;
}

.home-image {
    flex: 1;
}

.home-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.home-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- Page: The Hall (Gallery) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.caption {
    padding: 10px;
    text-align: center;
    background-color: #f9f9f9;
    font-style: italic;
}

/* --- Page: Committee (Table) --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--primary-color);
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* --- Page: Events (Calendar) --- */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day-name {
    background-color: #ddd;
    text-align: center;
    padding: 10px;
    font-weight: bold;
}

.calendar-day {
    border: 1px solid #ddd;
    min-height: 100px;
    padding: 5px;
    background: #fff;
    position: relative;
}

.calendar-day.empty {
    background: #f9f9f9;
}

.day-number {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.event-tag {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    padding: 2px 5px;
    border-radius: 3px;
    margin-top: 2px;
    display: block;
}

/* --- Responsive Tweaks --- */
@media (max-width: 768px) {
    .banner-top { flex-direction: column; text-align: center; }
    .logo-area { margin-bottom: 10px; }
    .home-layout { flex-direction: column; }
    .contact-bar span { display: block; margin: 5px 0; }
    nav a { display: block; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.2); box-sizing: border-box; }
    .calendar-grid { font-size: 0.8rem; }
    .calendar-day { min-height: 60px; }
}

/* --- Carousel Styles --- */
.carousel-container {
    max-width: 800px;
    position: relative;
    margin: auto;
    border: 4px solid var(--primary-color);
    border-radius: 8px;
    background-color: #000;
}

/* Hide the images by default */
.carousel-slide {
    display: none;
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: var(--primary-color);
}

/* Caption text */
.carousel-caption {
    color: #f2f2f2;
    font-size: 1.2rem;
    padding: 15px;
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent black background */
    box-sizing: border-box;
}

/* Number text (1/3 etc) */
.number-text {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: var(--primary-color);
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* --- Calendar Navigation Buttons --- */
.nav-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.nav-btn:hover {
    background-color: #1a3a1b; /* Darker green */
}

.nav-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* --- Highlight Today's Date --- */
.day-number.today {
    color: var(--primary-color);    /* Green */
    font-weight: 900;               /* Extra Bold */
    font-size: 1.1em;
    background-color: #e8f5e9;      /* Very light green background circle */
    border-radius: 50%;
    padding: 2px 6px;
    display: inline-block;
}

/* Update header to space out the new button group nicely */
.calendar-header {
    display: flex;
    flex-direction: column-reverse; /* Puts buttons below title on small screens */
    gap: 10px;
}

@media (min-width: 600px) {
    .calendar-header {
        flex-direction: row;
        justify-content: space-between;
    }
}
/* --- Policy Page Styles --- */
.policy-list {
    list-style: none; /* Removes standard bullet points */
    padding: 0;
    margin-top: 20px;
}

.policy-list li {
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 5px solid var(--primary-color); /* Green accent bar on left */
    border-radius: 4px;
    transition: background-color 0.3s;
}

.policy-list li:hover {
    background-color: #f0f0f0;
}

.policy-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 1.1rem;
    display: block; /* Makes the whole box clickable */
}

.policy-list a:hover {
    color: var(--primary-color);
}

/* --- Hire Page Styles --- */

.intro-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Pricing Box */
.pricing-box {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-left: 5px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.pricing-box h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.pricing-box ul {
    list-style: none; /* Remove bullets */
    padding: 0;
    font-size: 1.1rem;
}

.pricing-box li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.pricing-box .note {
    font-style: italic;
    color: #555;
    margin-top: 15px;
}
/* Download Button */
.download-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white !important;  /* Added !important to force the text white */
    padding: 15px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #1a3a1b; /* Darker green on hover */
    color: white !important;   /* Ensure it stays white on hover too */
}

.booking-instruction a {
    color: var(--primary-color);
    font-weight: bold;
}