/* Global Styles */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    margin-top: 80px; /* To push content below fixed header */
}

@font-face {
    font-family: 'Anthoni Signature';
    src: url('fonts/AnthoniSignature.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #222;
    font-size: 3.5rem; /* Reduced from 4.5rem */
}

h2 {
    font-family: 'Anthoni Signature', cursive;
    font-weight: normal;
    font-size: 2rem; /* Reduced from 2.5rem */
    color: #222;
}

h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #222;
    font-size: 1.75rem; /* Reduced from default */
}

a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* Header/Navigation */
.navbar {
    background-color: rgba(34, 34, 34, 0.95);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px; /* Reduced width for navbar content */
    padding: 0 15px; /* Add some horizontal padding */
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #fff;
}

.navbar-brand:hover {
    color: #eee;
}

.navbar-brand img {
    max-height: 45px; /* Set a maximum height */
    width: auto; /* Maintain aspect ratio */
    max-width: 100%; /* Ensure it doesn't overflow its container */
    vertical-align: middle; /* Align with text if any */
}

.navbar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
}

.navbar-nav ul li {
    margin-left: 30px;
}

.nav-link {
    color: #fff;
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007bff;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #007bff;
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-toggler {
    display: block;
    position: relative;
    z-index: 1001;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-toggler .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #fff;
    border-radius: 1px;
    margin: 4px 0;
    transition: all 0.2s;
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/sk1.JPG') center 20% no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 80px;
}

#hero h1 {
    font-size: 4rem; /* Slightly reduced from 4.5rem */
    margin-bottom: 15px;
    color: #fff;
}

#hero p {
    font-size: 1.75rem;
    margin-bottom: 40px;
    color: #eee;
}

.hero-buttons a {
    display: inline-block;
    margin: 0 15px;
}

/* Buttons */
.btn {
    background-color: #007bff;
    color: #fff;
    padding: 12px 30px;
    border: 2px solid #007bff;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: #007bff;
    border-color: #fff;
    transform: translateY(-2px);
}

/* Social Media Section */
#social {
    text-align: center;
    background-color: #fff;
}

#social h2 {
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-btn {
    background-color: #eee;
    color: #333;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background-color: #ddd;
    transform: translateY(-2px);
}

.social-btn i {
    margin-right: 10px;
}

/* About Section (General Styling for content sections) */
#about, #contact, #quotes, #prayer-request-page {
    background-color: #fff;
    padding-top: 120px; /* Increased padding to clear fixed header */
}

#about h2, #contact h2, #quotes h2 {
    text-align: center;
    margin-bottom: 60px;
}

#about p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: flex;
    gap: 30px;
}

.form-col {
    flex: 1;
}

/* Footer */
footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    text-align: left;
    padding: 20px 0;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin: 20px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.footer-section p, .footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #007bff;
}

.footer-section .social-links a {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
}

.footer-section .social-links i {
    margin-right: 8px;
    width: 20px; /* Ensure consistent icon alignment */
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .navbar-toggler {
        display: block;
        border: 1px solid #fff;
        margin-left: auto; /* Explicitly push to the right */
    }

    .navbar-collapse {
        display: none;
        width: 100%;
        text-align: center;
        padding-bottom: 15px;
    }

    .navbar-collapse.show {
        display: block;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
    }

    .navbar-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .navbar-nav ul li {
        margin: 10px 0;
    }

    .nav-link {
        padding: 10px 0;
    }

    .nav-link::after {
        display: none;
    }

    h1 {
        font-size: 2.5rem; /* Further reduced for phone screens */
    }

    h2 {
        font-size: 1.75rem; /* Further reduced for phone screens */
    }

    h3, h4, h5, h6 {
        font-size: 1.5rem; /* Further reduced for phone screens */
    }

    #hero h1 {
        font-size: 2.8rem; /* Further reduced for phone screens */
    }

    #hero p {
        font-size: 1.25rem;
    }

    .hero-buttons a {
        margin: 10px 0;
    }

    .social-links {
        flex-direction: column;
        gap: 15px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-col {
        margin-bottom: 20px;
    }

    #about .col-md-6 img {
        margin-bottom: 30px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        margin: 15px 0;
    }
}


/* Quotes Section Specific Styles */
#quotes {
    background-color: #eef1f5;
    padding: 100px 0;
    text-align: center;
}

.quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.quote-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    padding: 40px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quote-card::before {
    content: '\201C';
    position: absolute;
    top: -20px;
    left: 10px;
    font-size: 10rem;
    color: rgba(0, 0, 0, 0.05);
    font-family: 'Georgia', serif;
    z-index: 1;
}

.quote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.quote-text {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 20px;
    color: #444;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.quote-author {
    font-size: 1rem;
    font-weight: 700;
    color: #007bff;
    position: relative;
    z-index: 2;
}

/* Custom button for success (used in forms) */
.btn-success-custom {
    background-color: #28a745;
    color: #fff;
    padding: 12px 30px;
    border: 2px solid #28a745;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-success-custom:hover {
    background-color: #1e7e34;
    border-color: #1e7e34;
    transform: translateY(-2px);
}



/* Gallery Section Specific Styles */
#gallery {
    background-color: #fff;
    padding-top: 100px;
    text-align: center;
}

#gallery h2 {
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.gallery-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Removed padding: 10px; */
    aspect-ratio: 1 / 1; /* Make gallery items square */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%; /* Fill the square container */
    object-fit: cover; /* Cover the area, cropping if necessary */
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Responsive adjustments for gallery section */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Revert to auto-fit for smaller screens */
    }

    .gallery-item img {
        /* height: 200px; - Removed as aspect-ratio handles height */
    }
}

/* Removed Gallery Asymmetrical Grid Item Spans */
/* .gallery-item--large { */
/*     grid-column: span 2; */
/*     grid-row: span 2; */
/* } */

/* .gallery-item--tall { */
/*     grid-row: span 2; */
/* } */

/* Lightbox Modal Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination a {
    color: #007bff;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
    border: 1px solid #ddd;
    margin: 0 4px;
}

.pagination a.active {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}

/* Desktop Navigation Alignment */
@media (min-width: 769px) {
    .navbar-toggler {
        display: none;
    }

    .navbar-collapse {
        display: flex;
        flex-grow: 1;
        justify-content: flex-end;
    }

    .navbar-nav {
        margin-left: auto;
        display: flex;
        justify-content: flex-end;
        align-items: center; /* Align menu items vertically */
    }
}

@media (max-width: 768px) {
    .give-card {
        height: auto;
        margin-bottom: 20px;
    }

    .give-page .give-card h3 {
        font-size: 1.5rem;
    }

    .give-card p {
        font-size: 0.9rem;
    }
}
/* Give Page Styles */
.give-page {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../currency.jpg') center center no-repeat;
    background-size: cover;
    color: #fff;
}

#give {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 80px;
}

.give-content {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

.give-content h2 {
    color: #fff;
}

.give-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    margin-top: 20px;
    height: 100%;
}

.give-page .give-card h3 {
    color: #fff;
    border-bottom: 2px solid #fff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.give-card-logo {
    max-height: 80px;
    margin-bottom: 20px;
}

