/* Define Color Variables */
:root {
    --primary-color: #1c5e00; /* Rich Green */
    --secondary-accent-color: #ffbb33; /* Bright Yellow */
    --accent-color: #ecf0f1; /* Light Gray */
    --background-color: #ffffff; /* White */
    --text-color: #2c3e50; /* Dark Charcoal */
    --header-background: #1c5e00; /* Gradient */
    --footer-background: #1c5e00; /* Rich Green */
    --button-background: #ecf0f1; /* Light Gray */
    --button-hover: #bdc3c7; /* Slightly Darker Gray */
}

/* General Styles */
html, body {
    height: 100%;
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: var(--header-background);
    color: #fff;
    padding: 10px 0;
    position: fixed; /* Fixes the header at the top */
    top: 0;
    left: 0;
    width: 100%; /* Ensures the header spans the full width */
    z-index: 1000; /* Makes sure it stays above other content */
}

header nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

header nav ul li {
    margin: 0 10px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 40px 20px;
    color: #fff;
    background-color: var(--primary-color);
    margin-top: 60px; /* Adds top margin to account for fixed header */
    position: relative;
}

.hero h1, .hero p, .hero .btn {
    position: relative; /* Ensures text and buttons are on top of background */
    z-index: 2;
}
.hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* Updated button styles */
.hero .btn {
    padding: 12px 24px;
    background-color: #fff; /* White background for button */
    color: var(--primary-color); /* Rich Green text color */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: 2px solid var(--primary-color); /* Adds a border */
    transition: all 0.3s ease;
}

.hero .btn:hover {
    background-color: var(--secondary-accent-color); /* Bright Yellow */
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Shadow effect */
}


/* Main content area */
main {
    flex-grow: 1;
    padding: 20px;
    width: calc(100% - 40px); /* Full width minus padding */
    margin: 0 auto;
}

/* Section Cards */
.sections {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 0 10px;
}

/* Updated section-card styles */
.section-card {
    display: block; /* Makes the card a block element */
    background-color: #fff;
    border: 1px solid rgba(28, 94, 0, 0.2);
    border-radius: 8px; /* Slightly larger border-radius */
    width: 100%;
    max-width: 300px;
    padding: 20px;
    margin: 20px; /* Increase margin */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow effect */
    text-decoration: none; /* Removes default link underline */
    color: inherit; /* Inherits text color */
    transition: all 0.3s ease;
}

.section-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Darker shadow on hover */
}

.section-card h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.section-card p {
    font-size: 1em;
    margin-bottom: 15px;
}

/* Ensure the button inside the card looks consistent */
.section-card .btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: var(--button-background); /* Light Gray background */
    color: var(--text-color); /* Dark Charcoal text */
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid var(--button-background); /* Adds a border */
}

.section-card .btn:hover {
    background-color: var(--button-hover); /* Slightly Darker Gray for hover */
    border: 2px solid var(--button-hover); /* Darker border color */
    color: var(--text-color); /* Ensure text color is readable */
}

/* newsletter */
.newsletter-signup {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--accent-color);
    color: var(--text-color);
    border-radius: 8px;
    margin: 20px 0;
}

.newsletter-signup form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.newsletter-signup input[type="email"] {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--text-color);
    border-radius: 5px;
    width: 100%;
    max-width: 300px;
}

.newsletter-signup button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-signup button:hover {
    background-color: #165b00; /* Darker Green */
}

/* Social links */
.social-links {
    margin-top: 10px;
}

.social-icon {
    margin: 0 10px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.social-icon:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 10px 0;
    background-color: var(--footer-background);
    color: #fff;
    margin-top: auto;
}

/* Media Queries for Responsiveness */
@media (min-width: 768px) {
    .sections {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 2.5em;
    }
}

@media (min-width: 1024px) {
    header nav ul {
        justify-content: space-around;
    }

    .hero h1 {
        font-size: 3em;
    }

    .section-card {
        width: 100%;
        max-width: 350px;
    }
}

        /* Inline styles specific to visitors page */
        .visitors-container {
            max-width: 800px;
            margin: 20px auto;
            padding: 20px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .visitors-container h1 {
            font-size: 2em;
            margin-bottom: 20px;
            text-align: center;
        }

        .visitors-info {
            max-width: 800px;
            margin: 20px auto; /* Center horizontally with auto margin */
            padding: 20px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .visitors-item {
            display: flex;
            align-items: flex-start; /* Align items at the start of the container */
            margin-bottom: 15px;
        }

        .visitors-label {
            flex: 0 0 70px; /* Fixed width for labels */
            font-weight: bold;
            text-align: right; /* Align labels to the right */
            margin-right: 20px; /* Space between label and details */
        }

        .visitors-details {
            flex: 1; /* Allows details to take the remaining space */
            text-align: left; /* Align details to the left */
            overflow-wrap: break-word;
        }

        .visitors-form {
            display: flex;
            flex-direction: column;
        }

        .visitors-form label {
            margin-bottom: 5px;
            font-weight: bold;
        }

        .visitors-form input,
        .visitors-form textarea {
            margin-bottom: 15px;
            padding: 10px;
            font-size: 1em;
            border: 1px solid #ddd;
            border-radius: 5px;
        }

        .visitors-form input[type="submit"] {
            background-color: var(--button-background);
            color: #333;
            border: none;
            cursor: pointer;
            font-weight: bold;
            transition: background-color 0.3s ease;
        }

        .visitors-form input[type="submit"]:hover {
            background-color: var(--button-hover);
        }
        
        .map-container {
            max-width: 100%; /* Ensure it doesn't exceed the width of its parent */
        }

        .responsive-map {
            position: relative; 
            width: 100%; 
            height: 0; 
            padding-bottom: 56.25%; /* 16:9 aspect ratio (height/width) */
            overflow: hidden;
        }

        .responsive-map iframe {
            position: absolute; 
            top: 0; 
            left: 0; 
            width: 100%; 
            height: 100%; 
            border: 0; /* Remove default border */
        }

        .schedule-container {
            margin: 0 auto;
            padding: 20px;
            background-color: #f9f9f9;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            text-align: center;
        }
        
        .schedule-container h2 {
            font-size: 1.8em;
            color: #1c5e00;
            margin-bottom: 15px;
        }
        
        .schedule-list {
            list-style-type: none;
            padding: 0;
        }
        
        .schedule-list > li {
            padding: 10px 0;
            border-bottom: 1px solid #ddd;
            text-align: left;
        }
        
        .schedule-day {
            font-weight: bold;
            color: #333;
            display: block;
            margin-bottom: 5px;
        }
        
        .schedule-times {
            list-style-type: none;
            padding-left: 0;
            margin: 0;
        }
        
        .schedule-item {
            display: flex;
            justify-content: start;
            padding: 5px 0;
        }
        
        .schedule-time {
            width: 100px; /* Set a fixed width for the time column */
            font-weight: bold;
            color: #1c5e00;
            text-align: left;
        }
        
        .schedule-event {
            flex: 1;
            color: #666;
            text-align: left;
        }
        /* Styles specific to the FAQ page */
        .faq {
            max-width: 800px;
            margin: 40px auto;
            padding: 20px;
            background-color: #f9f9f9;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .faq h1 {
            font-size: 2.5em;
            margin-bottom: 20px;
            color: var(--primary-color);
        }

        .faq-item {
            margin-bottom: 25px;
        }

        .faq-item h2 {
            font-size: 1.8em;
            margin-bottom: 10px;
            color: var(--primary-color);
        }

        .faq-item p {
            font-size: 1.1em;
            line-height: 1.6;
            color: #333;
        }

        /* About Content Styles */
        .faq-content {
            padding: 20px;
            max-width: 800px;
            margin: 0 auto;
        }

        .faq-content h2 {
            font-size: 1.8em;
            margin-bottom: 10px;
            color: var(--primary-color);
        }

        .faq-content p {
            font-size: 1.1em;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        /* Staff Styles */
        .staff-section {
            text-align: center;
            padding: 40px 20px;
            background-color: #f5f5f5;
        }
        
        .staff-card {
            max-width: 600px;
            margin: 0 auto;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            padding: 20px;
        }
        
        .pastor-photo {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            object-fit: cover;
            object-position: top; /* Centers the image around the upper section */
            margin: 20px 0;
            padding: 5px; /* Adds a little padding around the image */
            border: 2px solid #1c5e00; /* Optional: adds a border for polish */
        }
        
        .staff-info {
            text-align: left;
            padding: 20px;
        }
        
        .staff-info h3 {
            font-size: 1.5em;
            color: #1c5e00;
        }
        
        .staff-info p {
            margin: 10px 0;
            color: #333;
        }

        