/* styles.css */
/* All your custom CSS styles go here. */
/* Define the Regular version */
@font-face {
    font-family: 'Century Gothic';
    src: url('../fonts/centurygothic.ttf') format('truetype');
    /* Change extension if you have .woff or .otf */
    font-weight: normal;
    font-style: normal;
}

/* Define the Bold version (Optional, if you have the file) */
@font-face {
    font-family: 'Century Gothic';
    src: url('../fonts/centurygothic_bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* Apply it to the whole website */
body {
    /* The browser tries Century Gothic first. 
       If it fails, it tries standard Arial, then any sans-serif. */
    font-family: 'Century Gothic', Arial, sans-serif;
    margin: 0;
    /* Ensures no default body margin */
    padding: 0;
    /* Ensures no default body padding */
    color: #333;
    line-height: 1.6;
}

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



.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 --- */
/* Custom Header - Replaces Bootstrap Navbar for better control */

/* Custom Header - Replaces Bootstrap Navbar for better control */

.custom-header {
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    background: transparent;
    padding: 10px 0;
    position: absolute;
    /* Fixes dropdown positioning */
}

.header-container {
    max-width: 1200px;
    /* match container width */
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo img {
    height: 75px;
    width: auto;
    border-radius: 5px;
}

/* Navigation Links */
.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.main-nav a {
    color: black;
    /* User requested black links */
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #667eea;
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1040;
    position: relative;
    /* Ensure z-index works */
}

.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 20px;
        align-items: center;
        gap: 15px;
    }

    /* Hamburger Animation */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* 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-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 1000;
        background-color: rgba(255, 255, 255, 0.9);
        /* White with 10% transparency */
        padding: 1rem;
        border-radius: 0 0 10px 10px;
        /* Optional: adds nice rounded corners at bottom */
    }

    .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 */
    }
}


/* --- Hero Section Styles (Renamed from header to avoid conflict) --- */
.hero-header {

    background-size: cover;
    background-position: center;
    color: white;
    padding: 1em 0;
    text-align: center;
    position: relative;
    /* Ensure it doesn't overlap the navbar inappropriately */
    margin-top: 0;
}

.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;
}

/* Update Notification Toast */
#update-toast {
    visibility: hidden;
    /* Hidden by default */
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

#update-toast.show {
    visibility: visible;
    animation: fadein 0.5s;
}

#update-reload-btn {
    background-color: #ffd700;
    color: #000;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}