/* styles.css */
/* All your custom CSS styles go here. */

/* --- General Body and Container Styles --- */
html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}


body {
    font-family: 'Lato', sans-serif;
    margin: 0; /* Ensures no default body margin */
    padding: 0; /* Ensures no default body padding */
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%; /* Make it full width by default (for mobile, including landscape) */
    padding: 20px 15px; /* Add horizontal padding for mobile view to prevent content from touching edges */
    margin: 0 auto; /* Keep centering */
    box-sizing: border-box; /* Crucial: Include padding in the element's total width and height */
}

.top-bar {
    background-color: #333;
    color: white;
    padding: 10px 0;
}

/* --- Header and Navigation Bar Styles --- */
/* Base Navbar Styling */
/* Removed .navbar-header styles specific to Bootstrap 3 floats, as B5 handles this with flexbox */

.navbar {
    background-color: #333; /* Ensure the background color matches */
    padding-top: 10px;
    padding-bottom: 0px; /* Set to 0 to remove bottom padding, as per request */
    margin-bottom: 0px; /* Set to 0 to remove bottom margin, as per request */
}

/* Navbar Brand (Logo) Styling */
.navbar-brand {
    padding: 0; /* Remove default padding from Bootstrap's navbar-brand */
    margin: 0; /* Remove default margin */
}

.church-logo {
    height: 75px; /* Adjust as needed */
    width: auto; /* Maintain aspect ratio */
    border-radius: 5px; /* Keep rounded corners */
}

/* Responsive adjustment for small screens for the logo (remains 75px) */
@media (max-width: 576px) {
    .church-logo {
        height: 75px; /* Keep consistent or adjust further for mobile */
    }
}

/* Navbar Toggle Button (Hamburger Menu) Styling - Bootstrap 5 provides .navbar-toggler-icon */
/* You might not need these custom styles anymore if you are happy with the default Bootstrap 5 toggler */
/*
.navbar-toggle {
    padding: 9px 10px;
    margin-right: 15px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
}
.navbar-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background-color: #fff;
    margin: 4px 0;
    transition: all 0.2s;
}
.navbar-toggle.collapsed .icon-bar:nth-child(2) { opacity: 0; }
.navbar-toggle.collapsed .icon-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navbar-toggle.collapsed .icon-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.navbar-toggle:not(.collapsed) .icon-bar { transform: none; opacity: 1; }
*/


/* Navbar Navigation Links (UL) Styling */
.navbar-nav .nav-link {
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    margin-right: 10px; /* Adjust spacing between items */
    margin-left: 5px; /* Adjust spacing between items */
}

/* For collapsed menu on smaller screens */
@media (max-width: 767.98px) { /* Bootstrap 5's `md` breakpoint is 768px, so max-width is 767.98px */
    .navbar-nav {
        display: block; /* Ensure it stacks */
        text-align: center; /* Center items in collapsed state */
        width: 100%; /* Take full width */
        margin-top: 10px; /* Add some space below the logo/toggler */
    }

    .navbar-nav .nav-item {
        margin: 10px 0; /* Space between stacked items */
    }
}


/* On larger screens (md breakpoint and up) */
@media (min-width: 768px) { /* Adjust breakpoint if needed for your Bootstrap version */
    .container { /* Apply 85% width and max-width only on larger screens */
        width: 85%;
        max-width: 1200px;
        padding: 20px 0; /* Revert horizontal padding for desktop, assuming 85% width gives enough space */
    }

    /* .navbar-header is removed, as Bootstrap 5's .navbar directly handles flexbox */

    .navbar-nav {
        display: flex; /* Ensure flex behavior */
        flex-direction: row; /* Keep items in a row */
        margin-left: auto; /* Push items to the right */
        /* float: none; Removed float, as flex is active */
    }
    .navbar-nav .nav-item {
        margin-left: 5px; /* Add spacing between items */
    }

    /* Pastor Staff Card View - Responsive adjustments for larger screens */
    .pastor-card {
        flex-direction: row; /* Layout side-by-side on larger screens */
        text-align: left; /* Align text to the left for side-by-side layout */
    }

    .pastor-photo-wrapper {
        margin-right: 30px; /* Space between photo and text when side-by-side */
        margin-bottom: 0; /* Remove bottom margin when side-by-side */
    }
}


/* --- Header (Hero Section) Styles --- */
header {
    background-image: url('/api/placeholder/1200/500');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 1em 0;
    text-align: center;
    position: relative;
}
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}
.header-content {
    position: relative;
    z-index: 2;
}
.header-title {
    font-size: 3rem;
    margin-bottom: 20px;
}
.rounded-video {
    border-radius: 15px; /* Adjust the pixel value to control the roundness */
    overflow: hidden; /* Important to prevent content from overflowing the rounded corners */
}

video {
    max-width: 100%;
    height: auto;
}

/* --- Button Styles --- */
.button-outlined {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    margin: 10px;
    transition: all 0.3s ease;
}
.button-outlined:hover {
    background-color: white;
    color: #333;
}

/* --- Section General Styles --- */
.section {
    padding: 50px 0;
    width: 100%; /* Ensure sections take full width */
    box-sizing: border-box; /* Include padding in section width */
}
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.content-block { /* General content block styling for readability */
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Two Column Layout (e.g., Join Us section) --- */
.two-columns {
    display: flex;
    flex-direction: column; /* Force column stacking on small screens */
    gap: 30px;
    margin-bottom: 30px;
    padding: 0 15px; /* Add padding to the columns container on small screens */
    box-sizing: border-box;
}
.column {
    flex: 1;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 30px;
    position: relative;
    min-height: 250px;
    border-radius: 5px;
    overflow: hidden;
}
.column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}
.column-content {
    position: relative;
    z-index: 2;
}
.schedule-item {
    margin-bottom: 15px;
}

/* --- Footer Styles --- */
footer {
    background-color: #333;
    color: white;
    padding: 50px 0 20px;
}
.contact-wrap {
    display: flex;
    flex-direction: column; /* Force column stacking on small screens */
    justify-content: space-around;
    margin-bottom: 40px;
    padding: 0 15px; /* Add padding to contact wrap on small screens */
    box-sizing: border-box;
}
.contact-column {
    text-align: center;
}
.social {
    text-align: center;
    margin-bottom: 30px;
}
.social a {
    color: white;
    margin: 0 10px;
    font-size: 1.5rem;
    text-decoration: none;
}
.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}
.footer-nav a {
    color: white;
    text-decoration: none;
}
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* --- About Us Page Specific Styles --- */
/* Styling for ordered lists in Core Values and Salvation Plan */
.values-list, .salvation-plan-list {
    list-style-type: decimal;
    padding-left: 25px; /* Indent the list items */
}

.values-list li, .salvation-plan-list li {
    margin-bottom: 20px;
    line-height: 1.7;
}

.values-list li strong, .salvation-plan-list li strong {
    display: block; /* Make the bold title appear on its own line */
    margin-bottom: 5px;
    font-size: 1.1em;
}

.salvation-plan-list li em {
    font-style: italic; /* Style for scripture references */
}

/* Pastor Staff Card View */
.pastor-cards-container {
    display: flex;
    flex-direction: column; /* Stack cards by default for mobile */
    gap: 30px; /* Space between cards */
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px; /* Add horizontal padding for pastor cards container */
    box-sizing: border-box;
}

.pastor-card {
    display: flex;
    flex-direction: column; /* Stack image and text for small screens */
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center; /* Center text for stacked layout */
}

.pastor-photo-wrapper {
    flex-shrink: 0; /* Prevent photo from shrinking */
    margin-bottom: 20px; /* Space between photo and description on stacked layout */
}

.pastor-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%; /* Circular image */
    object-fit: cover; /* Ensure image covers the area */
    border: 3px solid #FFFFFF; /* A nice border around the photo */
}

.pastor-description {
    flex-grow: 1; /* Allow description to take available space */
}

.pastor-description h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.pastor-description p {
    color: #555;
    line-height: 1.6;
}

/* Removed Bootstrap 3 specific media query for .navbar-header.
   Bootstrap 5's .navbar with flexbox handles this automatically. */
/*
@media (max-width: 767px) {
  .navbar-header {
    display: block;
    text-align: left;
    padding: 10px;
  }
  .navbar-brand {
    display: inline-block;
    margin-bottom: 10px;
  }
  .navbar-collapse {
    clear: both;
    width: 100%;
  }
  .navbar-nav {
    display: block;
    text-align: center;
  }
  .navbar-nav .nav-item {
    display: block;
    margin: 10px 0;
  }
}
*/

/*----------------------------------------------------------*/

.giving-intro {
            text-align: center;
            padding: 1.5rem 1rem;
            max-width: 800px;
            margin: 2rem auto;
        }
        .giving-intro p {
            font-size: 1rem;
            color: #555;
        }

        /* Giving Options Container - Mobile-first: single column */
        .giving-options {
            display: flex;
            flex-direction: column; /* Stacks cards vertically on small screens */
            gap: 1.5rem; /* Space between cards */
            padding: 0 1rem;
            margin-bottom: 3rem;
        }

        /* Individual Giving Card - Now the link itself is the card */
        .giving-card-link { /* Changed from .giving-card */
            display: flex; /* Use flex to center content inside the clickable card */
            flex-direction: column;
            justify-content: center;
            align-items: center;
            
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.08);
            padding: 1.5rem;
            text-decoration: none; /* Remove underline from the whole card link */
            color: inherit; /* Inherit text color from body, or define it */
            
            transition: transform 0.2s ease-in-out, box-shadow 0.2s ease; /* Smooth hover effect */
            min-height: 120px; /* Ensure a consistent minimum height for cards */
        }
        .giving-card-link:hover {
            transform: translateY(-5px); /* Lift card on hover */
            box-shadow: 0 4px 15px rgba(0,0,0,0.15); /* More prominent shadow on hover */
        }
        .giving-card-link:active {
            transform: translateY(1px); /* Slight press effect */
        }

        .giving-card-link h2 { /* Targeting h2 inside the clickable card */
            font-size: 1.4rem;
            color: #007bff; /* Primary blue for fund titles */
            margin-top: 0;
            margin-bottom: 1rem; /* Space between title and 'Give Now' text */
            font-weight: 600;
        }

        /* New styling for the "Give Now" text within the clickable card */
        .give-now-text {
            display: inline-block; /* Treat as a block for padding */
            background-color: #28a745; /* Vibrant green for action text */
            color: white;
            padding: 0.6rem 1.2rem; /* Slightly smaller padding than original button */
            border-radius: 5px;
            font-size: 1em; /* Smaller font size to make it feel like a sub-part */
            font-weight: 600;
        }