/* ===========================
   Global Resets and Defaults
============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Georgia", serif;
}
body {
    font-family: "Raleway", sans-serif;
    margin: 0;
    padding: 0;
    /* background-image: url('images/latterrainchristianfellowship2.PNG'); */
    background-repeat: repeat;
    background: linear-gradient(#355e3b, #e8f5e9, #c8e6c9);
    color: #333;
}

/* ===========================
   Header and Navigation
============================= */

.main-header {
    /*background: url('images/latterrainchristianfellowship2.PNG') repeat center; 
    background-size: contain; /* Adjust to fit the header */
    height: 1px; /* Set height to display the logo clearly */
    display: flex; /* Flexbox to align content */
    align-items: center; /* Center the content vertically */
    justify-content: center; /* Center the content horizontally */
    color: white; /* Keep text readable if present */
    text-align: center; /* Center-align text */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* ===========================
   Hero Section
============================= */

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: url("church-background.jpg") no-repeat center center/cover;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-primary {
    padding: 0.8rem 1.5rem;
    background: #355e3b;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
}

/* ===========================
   Sections and Containers
============================= */

.about,
.services,
.ministries,
.contact {
    padding: 2rem;
    text-align: center;
    background: #f9f9f9;
    margin-top: 1rem;
}

.service-times {
    list-style: none;
    padding: 0;
    font-size: 1.1rem;
}

.service-times li {
    margin: 0.5rem 0;
}

/* ===========================
     Leaders Grid 
============================= */

.leaders {
    margin-top: 20px; /* Add space above the grid of leader cards */
    margin-bottom: 20px;
    text-align: center;
}
/* Add space below the "Meet Our Leaders" heading */
.leaders h2 {
    margin-bottom: 20px; /* Adjust this value to increase or decrease space */
    text-align: center; /* Ensure the heading stays centered */
}

/* Add padding or margin above the grid of cards */
.leaders-grid {
    margin-top: 20px; /* Add space above the grid of leader cards */
}

.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.leader-card {
    background: white;
    background:
        linear-gradient(135deg, rgba(106, 17, 203, 0.7), rgba(37, 117, 252, 0.7)),
        url("images/leader-background.jpg") no-repeat center center;
    background: linear-gradient(#355e3b, #e8f5e9, #c8e6c9); /* A gradient from purple to blue */
    background-size: cover;
    border: 1px solid #ddd;
    color: white; /* Text color for readability */
    border-radius: 8px;
    text-align: center;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.leader-photo {
    width: 100px; /* Adjust as needed */
    height: 100px;
    border-radius: 50%; /* Makes the image circular */
    overflow: hidden; /* Ensures the image stays inside the circle */
    margin: 0 auto 10px; /* Centers the image */
    display: flex;
    align-items: center; /* Center the image vertically */
    justify-content: center; /* Center the image horizontally */
}

.leader-photo img {
    width: 100%; /* Fill the circular container */
    height: 100%;
    object-fit: cover; /* Crop the image to fit */
    display: block; /* Removes inline spacing issues */
}

.leader-name {
    font-size: 1.1em;
    margin: 10px 0;
    color: #222;
}

.leader-contact {
    font-size: 0.9em;
    color: #555;
}

/* Responsive Design */
@media (max-width: 600px) {
    .leader-card {
        padding: 10px;
    }

    .leader-photo {
        width: 80px;
        height: 80px;
    }
}

/* ===========================
    Ministries and Cards Section 
============================= */
.ministry-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    border: 1px solid #ccc;
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 300px;
    background: white;
}

.card h3 {
    margin-bottom: 1rem;
}

/* General Card Styles */
.card {
    border-radius: 10px;
    text-align: center;
    color: white;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-size: cover;
    background-position: center;
    height: 200px; /* Adjust height as needed */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Children's Ministry */
.children-ministry {
    background: linear-gradient(#355e3b, #e8f5e9, #c8e6c9);
    color: black; /* Adjust text color for contrast */
}

/* Outreach Ministry */

.clickable-div.outreach-ministry {
    background: url("images/img_6816.jpg") no-repeat center center !important;
    background-size: cover !important;
    color: white !important; /* Ensures the text is white */
    font-weight: bold; /* Stronger text */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7); /* Shadow for readability */
    padding: 2rem; /* Match the padding of .card */
    text-align: center; /* Centers text */
    border-radius: 10px; /* Match .card corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Match .card shadow */
    display: flex; /* Flexbox layout */
    flex-direction: column; /* Centers content vertically */
    justify-content: center;
    align-items: center;
    height: 200px; /* Match .card height */
    position: relative;
    overflow: hidden; /* Ensures no content spills outside */
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease; /* Smooth hover effect */
    cursor: pointer; /* Pointer cursor */
}

.outreach-ministry:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Slightly deeper shadow */
}

.outreach-ministry h3,
.outreach-ministry p {
    color: white !important; /* Text color */
    font-weight: bold; /* Stronger headings and text */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7); /* Shadow for readability */
}

/* Music Ministry */
.music-ministry {
    background: linear-gradient(#355e3b, #e8f5e9, #c8e6c9);
    color: black; /* Adjust text color for contrast */
}

/* Text Styling */
.card h3,
.card p {
    text-shadow: none; /* Remove shadow since the background is light */
}

/* Style for the clickable div */
.clickable-div {
    background: white; /* Changed background to solid white */
    color: #333; /* Adjusted text color for better contrast on white background */
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.clickable-div h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.clickable-div p {
    font-size: 1rem;
    margin-bottom: 0;
}

.clickable-div:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

input,
textarea,
button {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

textarea {
    resize: none;
}

/* ========================
       Footer
=========================== */
.footer {
    background: #444;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* Responsive Small Devices*/
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .nav-toggle {
        display: block;
    }

    .ministry-cards {
        flex-direction: column;
        gap: 1.5rem;
    }
    @media screen and (max-width: 768px) {
        /* Existing navigation styles */
        .navbar {
            /* Example: Adjust nav layout for small screens */
            flex-direction: column;
            align-items: flex-start;
        }

        /* Add Calendar and Notes responsiveness */
        .container {
            flex-direction: column; /* Stack calendar and notes vertically */
        }

        /* ===========================
            Calendar and Notes Section
        ============================= */

        .calendar,
        .notes {
            min-width: 100%; /* Full width on smaller screens */
            margin-bottom: 20px; /* Add spacing between stacked sections */
        }

        .calendar table {
            overflow-x: auto; /* Enable horizontal scrolling for tables */
            display: block; /* Make table scrollable */
        }

        .calendar h2,
        .notes h2 {
            font-size: 18px; /* Adjust font size for smaller screens */
        }

        .event-info {
            max-width: 90%; /* Ensure the event popup fits smaller screens */
            word-wrap: break-word;
        }
    }
}

/* ===========================
   Calender CSS 
=============================== */
.container {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 20px; /* Adds space between the calendar and notes sections */
}

.calendar {
    width: 50%;
    padding: 10px;
    box-sizing: border-box;
    border-right: 10px solid #ccc; /* Keep the base border */
    box-shadow:
        inset -5px 0 5px -5px rgba(0, 0, 0, 0.2),
        5px 0 5px -5px rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
}

.month {
    margin-bottom: 20px;
}

.month h2 {
    text-align: center;
    margin-bottom: 10px;
}
/* General table styling for the calendar */
.calendar table {
    width: 100%; /* Ensure the table takes up full container width */
    table-layout: fixed; /* Ensures equal column widths */
    border-collapse: collapse;
    margin-bottom: 20px;
}

/* ===============================
  Table Cell and Header Styling 
=================================== */
.calendar th,
.calendar td {
    border: 1px solid #ccc;
    text-align: center;

    padding: 10px;
    cursor: pointer;
}

.calendar th {
    background-color: #f4f4f4;
}

.highlighted {
    background-color: #ff00d5;
}

.event-info {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* ===========================
  Styling the Notes Section
============================= */

.notes {
    width: 50%;
    padding: 10px;
    box-sizing: border-box;
}
.notes textarea {
    width: 100%;
    height: 95%;
    padding: 10px;
    font-size: 16px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: linear-gradient(#355e3b, #e8f5e9, #c8e6c9);
}
/* ============================
    Notes Messages and Events 
================================ */
.notes,
.notes h2,
.notes h3,
.notes p,
.notes ul,
.notes ul li {
    color: #fff; /* Apply white color to all elements within .notes */
}
#daily-message {
    white-space: normal;
    word-wrap: break-word;
    overflow-y: auto;
    max-height: 200px; /* Adjust as needed */
}

.notes #daily-scripture {
    margin-bottom: 20px; /* Add padding below the scripture */
}

.navigation {
    margin-top: 20px; /* Ensure space above the buttons */
    text-align: center;
}
.notes .navigation button {
    padding: 5px 10px; /* Smaller padding for compact buttons */
    font-size: 14px; /* Adjust text size */
    width: auto; /* Fit the width to the text */
    border-radius: 3px; /* Slightly rounded corners */
    margin: 0 5px; /* Adjust spacing between buttons */
}

.notes h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: black;
}

.notes h3 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: black;
}

.notes p {
    font-size: 16px;
    line-height: 1.5;
    color: black;
}

.notes ul {
    list-style-type: square;
    padding-left: 20px;
}

.notes ul li {
    margin-bottom: 5px;
}
#upcoming-events {
    color: black; /* Change text color to black */
    list-style-type: disc; /* Optional: Ensures a bullet list style */
    padding-left: 20px; /* Optional: Adds some padding for indentation */
}

#upcoming-events li {
    color: black; /* Ensures list items are also black */
    font-size: 16px; /* Optional: Adjusts font size */
    line-height: 1.5; /* Optional: Adjusts line height for better readability */
}
.section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
}

/* ===============================
     Health and Wellness Section 
==================================== */

.health-wellness {
    background: url("images/fruitwater.jpeg") no-repeat center center; /* Replace with your image path */
    font-weight: bold; /* Makes the font stronger */
    background-size: cover; /* Ensures the image covers the entire div */
    color: white; /* Text color for contrast */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7); /* Make text readable over the image */
    padding: 2rem; /* Space around the content */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Adds a shadow for better visual effect */
    cursor: pointer;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.health-wellness:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}
/* Section for Community Event */
.community-event-section {
    margin: 20px auto;
    padding: 20px;
    max-width: 800px; /* Width of the section */
    background-color: white; /* Light blue background */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for separation */
    text-align: center;
}

/* Centered Title for Community Event */
.community-event-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333; /* Dark gray text */
    margin-bottom: 15px;
    text-transform: uppercase;
}
/* Health-Wellness */
/* Pop-Behind Text */
.pop-behind-container {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.pop-title {
    background: #355e3b;
    color: white;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

.pop-title:hover {
    background: #4f7942;
}

.pop-content {
    display: none;
    padding: 15px;
    background-color: #f9f9f9;
}

.pop-behind-container.active .pop-content {
    display: block;
}

/* Pop-Out Section */
.pop-out-container {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.title {
    background: #355e3b;
    color: white;
    padding: 15px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

.title:hover {
    background: #4f7942;
}

.hidden-text {
    display: none;
    padding: 15px;
    background-color: #f9f9f9;
}

.pop-out-container.active .hidden-text {
    display: block;
}

/* Accordion Section */
.accordion-container {
    margin-top: 20px;
}

.accordion {
    border-bottom: 1px solid #ddd;
}

.accordion-title {
    background: #355e3b;
    color: white;
    padding: 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.accordion-title:hover {
    background: #4f7942;
}

.accordion-title::after {
    content: "\25BC"; /* Down arrow */
    font-size: 18px;
    transition: transform 0.3s;
}

.accordion.open .accordion-title::after {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}

.accordion.open .accordion-content {
    display: block;
}

/* Register Button */
.register-button {
    display: inline-block;
    padding: 10px 20px;
    background: #355e3b; /* Hunter green background */
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 15px;
    transition: background 0.3s ease-in-out;
}

.register-button:hover {
    background: #2a472e; /* Slightly darker hunter green on hover */
}

/*New calendar */

/* ===========================
   Layout Fix: Calendar on Left, Notes on Right
============================= */
.container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
}

/* Left Side: Calendar */
.calendar-section {
    flex: 1;
    max-width: 65%;
}

/* Right Side: Daily Word & Events */
.notes {
    flex: 1;
    max-width: 30%;
    background: #e8f5e9;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.notes h2,
.notes h3 {
    color: #355e3b;
    text-align: center;
}

.notes p,
.notes ul {
    color: black;
    font-size: 16px;
}

#daily-message,
#daily-scripture {
    font-weight: bold;
    font-size: 18px;
}

#upcoming-events {
    list-style-type: square;
    padding-left: 20px;
}

/* ===========================
   Calendar Styling Fixes
============================= */
.calendar-section {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.month {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 320px;
    flex: 1;
}

.month h2 {
    font-size: 1.5rem;
    color: #355e3b;
    text-transform: uppercase;
}

/* Ensure full day names fit correctly */
.calendar table {
    width: 100%;
    table-layout: fixed; /* Ensures equal column width */
    border-collapse: collapse;
    margin-bottom: 20px;
}

/* Adjust headers for full day names */
.calendar th {
    background-color: #f4f4f4;
    font-size: 14px;
    padding: 8px;
    word-wrap: break-word;
    white-space: normal; /* Allows text to wrap properly */
}

/* Adjust table cells */
.calendar td {
    border: 1px solid #ccc;
    text-align: center;
    padding: 10px;
    font-size: 14px;
}

/* Responsive Fix for Small Screens */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .calendar-section,
    .notes {
        max-width: 100%;
    }

    .calendar th {
        font-size: 12px;
        padding: 5px;
    }

    .calendar td {
        font-size: 12px;
        padding: 8px;
    }
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 18px;
    text-align: left;
}

.styled-table th,
.styled-table td {
    padding: 12px;
    border: 1px solid #ddd;
}

.styled-table th {
    background-color: #355e3b;
    color: white;
    text-align: center;
}

.styled-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.styled-table tr:hover {
    background-color: #e8f5e9;
}
}
