/* Basic Reset (optional but good practice) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif; /* Changed to match reference site */
    line-height: 1.6;
    color: #333; /* Dark gray for text */
    background-color: #f4f0e8; /* Parchment/cream background */
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

header {
    background: #504234; /* A muted brown for header */
    color: #fff;
    padding-top: 30px;
    min-height: 70px;
    border-bottom: #776B5D 3px solid; /* Accent border */
}

header h1 {
    text-align: center;
    margin: 0;
    font-size: 2.5em;
    font-family: Arial, Helvetica, sans-serif; /* Changed to match reference site */
}

h2 {
  text-align: center;
}

header .tagline {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 10px;
}

header nav {
    text-align: center;
    margin-top: 10px;
}

header nav ul {
    padding: 0;
    list-style: none;
}

header nav ul li {
    display: inline;
    margin: 0 15px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
}

header nav ul li a:hover {
    color: #B0A695; /* Lighter color for hover */
}

/* This section replaces the #hero elements that I did  not like */
#home-introduction {
    padding: 40px 20px;      /* Padding for the section (20px L/R from .container) */
    text-align: center;      /* Centers the text and the image (as it's display:block) */
}

/* Styles for your "normal" image */
/* Note - border of the image does not display brown, it's white, this needs fixed */
.page-intro-image {
	max-width: 50%; /* Limits the image to 50% of its container's width */
	height: auto;    /* Keeps the aspect ratio */
	display: block;
	margin-top: 20px;
	margin-bottom: 20px;
	margin-left: auto; /* Centers the image */
	margin-right: auto; / Centers the image */
	border: 1px solid #504234; /* Changed to your brown color */
	padding: 4px;
	background-color: #fff;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Styles for the text in the introductory section */
#home-introduction h2 {
    font-size: 2.5em;        /* Or your preferred size */
    margin-bottom: 0;        /* Margin below h2 is handled by image's margin-top */
    color: #504234;          /* Brown color */
    text-shadow: none;       /* Ensure no conflicting shadow */
}

#home-introduction p {
    color: #504234;          /* Brown color */
    font-size: 1.2em;        /* Or your preferred size */
    line-height: 1.6;
    max-width: 750px;        /* Optional: constrain line length for readability */
    margin-left: auto;       /* Center the paragraph block if max-width is set */
    margin-right: auto;
    margin-top: 0;           /* Margin above p is handled by image's margin-bottom */
}

/* Styles for the "Our Mission" section (#intro-content) remain the same */
#intro-content {
    padding: 40px 20px; /* Ensure container class provides L/R padding */
}

#intro-content h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8em;
    color: #504234;
}

#intro-content {
    text-align: center;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
}

/* Pop-up Styles */
.popup-container {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's on top */
}

.popup-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px; /* Smaller box as requested */
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    position: relative; /* For positioning the close button */
    text-align: left;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 5px;
    right: 15px;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.popup-content h3 {
    margin-top: 0;
    color: #504234;
}

.popup-content form label {
    display: block;
    margin-top: 10px;
}

.popup-content form input[type="email"],
.popup-content form input[type="tel"] {
    width: calc(100% - 22px); /* Adjust for padding/border */
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
}

.popup-content form button {
    background-color: #504234; /* Theme color */
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    margin-top: 15px;
    width: 100%;
}

.popup-content form button:hover {
    background-color: #776B5D;
}

/*  Added for About us page */
#about-us-content {
    padding: 40px 0;
    background-color: #fff; /* Optional: A slightly different background for content area */
    border-radius: 5px; /* Optional: Soften edges */
    margin-top: 20px; /* Space from header */
}

#about-us-content h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em;
    color: #504234; /* Theme color for headings */
}

.about-section {
    margin-bottom: 30px;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0; /* Separator for sections */
}

.about-section:last-child {
    border-bottom: none; /* No border for the last section */
}

.about-section h3 {
    font-size: 1.6em;
    color: #504234; /* Theme color */
    margin-bottom: 15px;
}

.about-section p, .about-section ul {
    margin-bottom: 15px;
    font-size: 1.05em; /* Slightly larger for readability */
    color: #444; /* Slightly lighter than pure black */
}

.about-section ul {
    list-style-position: inside; /* Or outside, depending on preference */
    padding-left: 20px;
}

.about-section ul li {
    margin-bottom: 8px;
}

/* Example for an image if you add one */
.about-section img {
    max-width: 100%; /* Make images responsive */
    height: auto;
    border: 2px solid #776B5D; /* Themed border */
    padding: 3px;
    background-color: #fff;
}

/* End CSS for About Us page */

/* Added for Services page */
/* Add to your style.css */

#services-content {
    padding: 40px 0;
}

#services-content h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.2em;
    color: #504234; /* Theme color */
}

.services-intro {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #444;
}

.service-item {
    background-color: #ffffff; /* White background for each service item */
    border: 1px solid #e0e0e0; /* Light border */
    border-left: 5px solid #776B5D; /* Accent border with theme color */
    padding: 25px;
    margin-bottom: 30px;
    overflow: hidden; /* To contain floated images */
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.service-item:last-of-type { /* To ensure the last main service item also has a bottom margin before CTA */
    margin-bottom: 40px;
}


.service-image {
    float: right; /* Or left, depending on your preference */
    width: 200px; /* Adjust as needed */
    height: auto;
    margin-left: 20px; /* If floated right */
    /* margin-right: 20px; */ /* If floated left */
    margin-bottom: 15px;
    border: 1px solid #ccc;
    padding: 3px;
    background-color: #f9f9f9;
}

.service-item h3 {
    font-size: 1.7em;
    color: #504234; /* Theme color */
    margin-bottom: 10px;
    margin-top: 0; /* In case of floated image */
}

.service-item p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #333;
}

.service-item ul {
    margin-left: 20px; /* Indent list */
    margin-bottom: 15px;
    list-style-type: disc; /* Or square, or none with custom icons */
}

.service-item ul li {
    margin-bottom: 8px;
    color: #444;
}

/* Call to Action section */
.call-to-action {
    background-color: #f4f0e8; /* Light theme background color */
    padding: 30px;
    text-align: center;
    border-radius: 5px;
    margin-top: 20px;
}

.call-to-action h4 {
    font-size: 1.8em;
    color: #504234; /* Theme color */
    margin-bottom: 15px;
}

.call-to-action p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.btn { /* General button style, can be reused */
    display: inline-block;
    background-color: #504234; /* Theme color */
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #776B5D; /* Darker shade on hover */
    color: #fff;
}

/* End Added for Services page */

/* Added for Gallery page */
/* Add to your style.css */

#gallery-resources-content {
    padding: 40px 0;
}

#gallery-resources-content h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.2em;
    color: #504234; /* Theme color */
}

.page-intro {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #444;
}

.gallery-section, .resources-section {
    margin-bottom: 50px;
    padding: 20px;
    background-color: #fdfcf9; /* Very light cream for sections */
    border: 1px solid #e7e2d8;
    border-radius: 5px;
}

.gallery-section h3, .resources-section h3 {
    font-size: 1.8em;
    color: #504234; /* Theme color */
    margin-bottom: 15px;
    border-bottom: 2px solid #B0A695; /* Accent underline */
    padding-bottom: 8px;
}

.gallery-section p:not(.image-caption), .resources-section p:not(.image-caption) { /* General paragraph text within these sections */
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Image Grid Styles */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid */
    gap: 20px; /* Space between grid items */
    margin-top: 20px;
}

.grid-item {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-radius: 4px;
}

.grid-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
    border-radius: 3px;
    cursor: pointer; /* If using lightbox */
}

.grid-item .image-caption {
    font-size: 0.9em;
    color: #555;
}

/* Resource List Styles */
.resource-list {
    list-style: none; /* Removes default bullets */
    padding: 0;
}

.resource-list li {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #d0c8bc; /* Dashed separator */
}

.resource-list li:last-child {
    border-bottom: none; /* No border for the last item */
    margin-bottom: 0;
}

.resource-list a {
    font-weight: bold;
    color: #5D4037; /* A slightly different brown for links */
    text-decoration: none;
    font-size: 1.1em;
}

.resource-list a:hover {
    text-decoration: underline;
    color: #3E2723; /* Darker brown on hover */
}

.resource-list li p { /* Description for each resource */
    margin-top: 5px;
    font-size: 0.95em;
    color: #444;
    line-height: 1.5;
}

/* Basic Lightbox styling if you are NOT using the Lightbox2 library's CSS */
/* This is just to prevent broken layout if lightbox.css is missing. */
/* For a real lightbox, use the library's own CSS. */
.lb-dataContainer {
    /* Basic styles to ensure it's not completely unstyled */
    background-color: white;
    padding: 10px;
    color: black;
}

/*End Gallery page CSS */

/* CSS for Contact page */
/* Add to your style.css */

#contact-content {
    padding: 40px 0;
}

#contact-content h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.2em;
    color: #504234; /* Theme color */
}

#contact-content .page-intro {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #444;
}

.contact-form-container {
    background-color: #fdfcf9; /* Light cream background for form area */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    max-width: 700px; /* Limit width of form container */
    margin-left: auto;
    margin-right: auto;
}

.contact-form-container h3 {
    text-align: center;
    color: #504234;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #444;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit; /* Use the body's font */
    box-sizing: border-box; /* Important for width 100% */
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing, not horizontal */
}

.form-group .btn { /* Uses the .btn style we defined earlier */
    width: 100%; /* Make button full width of its container */
    padding: 15px;
    font-size: 1.2em;
}

.required {
    color: #D32F2F; /* Red color for asterisks */
    font-weight: bold;
}

.required-notice {
    font-size: 0.9em;
    color: #555;
    margin-top: 15px;
    text-align: right;
}

#form-status-messages {
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
}
/* Example:
#form-status-messages.success { color: green; }
#form-status-messages.error { color: red; }
*/

.contact-details {
    text-align: center;
    padding: 20px;
    background-color: #f4f0e8; /* Theme background consistent with other sections */
    border-radius: 8px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-details h3 {
    color: #504234;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.contact-details p {
    margin-bottom: 12px;
    font-size: 1.1em;
    line-height: 1.7;
    color: #333;
}

.contact-details a {
    color: #5D4037; /* Theme link color */
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* === Google Calendar Styling === */

.google-calendar-iframe {
    border: solid 1px #777;
    width: 100%;
    height: 600px; /* Default height for desktops */
    frameborder: 0;
    scrolling: no;
}

/* This "media query" applies ONLY to screens 768px wide or less (tablets/phones) */
@media (max-width: 768px) {
    .google-calendar-iframe {
        height: 400px; /* A shorter height for mobile */
    }
}

.calendar-container {
    width: 100%;
}
