/* Custom CSS for Landing Page */

/* 1. Hero Section and Background */
.hero-section {
    position: relative;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
    display: flex;
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
    text-align: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Below the overlay and content */
    background-color: #000;
}

.hero-background img,
.hero-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark Overlay for better text readability */
.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Adjust opacity for desired darkness */
    z-index: -1;
}

/* 2. Navigation Bar */
.navbar {
    background-color: #100f0f !important;/* Make navbar transparent */
    transition: background-color 0.3s;
}

/* Custom Hamburger Icon for the church website's specific button look */
.navbar-toggler {
    border: none;
    outline: none;
    /* You may need to replace this with a custom SVG or image for the three circles */
    /* For simplicity, we use the standard Bootstrap icon here */
}

/* 3. Hero Text and Buttons */
.hero-content {
    position: relative; /* Bring content above the background/overlay */
    z-index: 10;
    padding: 20px;
    /* Adjust text size for readability on mobile/desktop */
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
}

.our-vision-pill {
    display: inline-block;
    color: #fff;
    border: 1px solid #fff;
    padding: 5px 15px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

h1 .text-danger {
    color: #e50020 !important; /* Specific red color from the image */
}

.btn-watch-live {
    background-color: #fff;
    color: #000;
    border: 2px solid #fff;
    font-weight: bold;
    padding: 15px 40px;
    letter-spacing: 1px;
}

.btn-quick-links {
    background-color: rgba(229, 0, 32, 0.7); /* Red transparent background */
    border: 2px solid #e50020;
    color: #fff;
    font-weight: bold;
    padding: 15px 40px;
    letter-spacing: 1px;
}
.btn-quick-links:hover {
    background-color: #e50020; /* Solid red on hover */
    color: #fff;
}

/* Custom CSS for Modal Navigation */

/* 4. Full-Screen Modal */
.modal-dark-background {
    background-color: #000 !important;
    color: #fff;
}

.modal-logo-link {
    padding-left: 15px; /* Alignment with the original design */
}

/* Custom close button position/size if needed */
.btn-close {
    font-size: 1.5rem;
    padding: 2rem;
    margin-right: 1rem;
}

/* Modal Links Styling */
.modal-primary-links .nav-link-large {
    font-size: clamp(2rem, 8vw, 6rem); /* Very large text */
    font-weight: bold;
    line-height: 1.2;
    transition: color 0.2s;
}

.modal-primary-links .nav-link-large:hover {
    color: #e50020 !important; /* Red hover effect */
}

.text-home {
    color: #e50020 !important; /* 'HOME' is highlighted in red */
}

.modal-secondary-links h5 {
    font-weight: bold;
    font-size: 1.1rem;
}

.modal-sub-link {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.modal-sub-link:hover {
    color: #fff !important; /* Lighter on hover */
}

/* Modal Footer Styling */
.modal-footer {
    padding: 1rem 3rem 2rem 3rem; /* Adjust padding to match screenshot */
}

.modal-social-icon {
    font-size: 1.2rem;
    margin-left: 15px;
    transition: color 0.2s;
}

.modal-social-icon:hover {
    color: #e50020 !important;
}

.welcome-section {
    background-color: #fff;
    /* Ensure padding is generous */
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.welcome-tag {
    font-size: 0.8rem;
    font-weight: 500;
    color: #a8a8a8;
    margin-bottom: 5px;
}

.welcome-heading {
    /* Large, bold, black text */
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1;
}

/* Featured Cards Styling */

/* Make the entire card block clickable */
.card-link-block {
    text-decoration: none;
    display: block;
    height: 100%;
    color: inherit; /* Maintain text color from context */
}

.featured-card {
    position: relative;
    border: none;
    border-radius: 0;
    height: 100%;
    min-height: 400px; /* Set a minimum height for visibility */
    transition: transform 0.3s ease;
}

/* Hover effect for the card */
.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Image container styling */
.card-image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.card-image-background img {
    /* Ensure image fills the container */
    filter: brightness(0.9); /* Slight darkening for text contrast */
    transition: transform 0.5s ease;
}

/* Hover effect: zoom in on the image */
.featured-card:hover .card-image-background img {
    transform: scale(1.05);
}

/* Dark Overlay for better contrast, slightly subtle */
.card-overlay-dark {
    background-color: rgba(0, 0, 0, 0.15); /* Subtle dark overlay */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Content positioning (at the bottom) */
.card-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 2rem;
    z-index: 3; /* Above image and overlay */
}

.card-subtitle-small {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.card-title-large {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0;
}

.mission-cta-section {
    /* Ensure maximum width and padding */
    padding-top: 8rem !important;
    padding-bottom: 8rem !important;
}

.mission-tag-pill {
    /* Styles for the "OVER 40 CAMPUSES GLOBALLY" pill */
    background-color: #000;
    color: #fff;
    border: 1px solid #333;
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: 500;
    border-radius: 50px;
}

.mission-dot {
    /* Small blue dot next to the text */
    width: 8px;
    height: 8px;
    background-color: #007bff; /* Use a common blue color */
    vertical-align: middle;
}

.mission-statement {
    /* Large, bold heading */
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    max-width: 900px; /* Constrain the width slightly */
}

.mission-statement .text-danger {
    /* Ensure the red is the specific color */
    color: #e50020 !important;
}

.mission-cta-btn {
    /* Button styling */
    border-width: 2px;
    font-weight: bold;
    letter-spacing: 1px;
}

.mission-cta-btn:hover {
    background-color: #e50020;
    border-color: #e50020;
}

.campuses-section {
    background-color: #000;
}

.campus-heading {
    /* Bold heading style */
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
}

/* 5-Column Layout Fix for Bootstrap */
/* This custom class helps divide the row into 5 equal parts on large screens (12/5 = 2.4) */
@media (min-width: 992px) {
    .col-lg-1-5 {
        flex: 0 0 auto;
        width: 20%;
    }
}

.campus-card {
    position: relative;
    border: none;
    border-radius: 0;
    height: 450px; /* Fixed height for consistent look */
    background-color: #111; /* Default dark background for the online card */
    transition: box-shadow 0.3s ease;
}

.campus-card:hover {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3); /* Subtle white glow on hover */
}

/* Image styling for country cards (same as feature cards, but reused here) */
.campus-card .card-image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.campus-card .card-image-background img {
    filter: brightness(0.85);
    transition: transform 0.5s ease;
}

/* Hover effect: zoom in on country card images */
.campus-card:not(.watch-online-card):hover .card-image-background img {
    transform: scale(1.05);
}

/* Dark Overlay for country cards */
.campus-overlay-dark {
    background-image: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0) 50%
    );
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Content positioning (at the bottom) */
.campus-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1.5rem;
    z-index: 3;
    width: 100%; /* Important for online card centering */
}

.campus-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.campus-count {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0;
}

/* Styling for the Watch Online Card (The last dark card) */

.watch-online-card {
    background-color: #0d0d0d !important; /* Slightly darker */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Push content to the bottom */
}

/* Positioning the laptop image */
.card-image-background-laptop {
    position: absolute;
    top: 10%;
    left: 0;
    width: 100%;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.card-image-background-laptop img {
    width: 80%; /* Adjust size of laptop image */
    height: 100%;
    object-fit: contain;
    opacity: 0.9;
}

.campus-title-online {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #fff;
}

.campus-count-online {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 0;
}

.worship-cta-section {
    position: relative;
    height: 100vh; /* Keep full height for impact */
    overflow: hidden;
    z-index: 1;
}

/* Background Image */
.worship-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place image behind content */
}

.worship-background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Optional: Slight overall dimming to ensure white text is never too bright */
    filter: brightness(0.7);
}

/* Content Box Styling (The key to the new look) */
.worship-content-box {
    /* Semi-transparent dark background */
    background-color: rgba(0, 0, 0, 0.75);
    border-radius: 0;

    /* Ensure height is proportional to the text within it */
    min-height: 450px;

    /* Center the content vertically within the box padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Positioning the content */
.worship-cta-section .container-fluid {
    height: 100%;
    display: flex;
    align-items: center; /* Vertically center the content box */
}

/* Updated Heading Size */
.worship-heading {
    /* Adjusted size to match the provided image */
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    color: #fff;
}

.worship-text {
    font-size: 1.1rem;
    line-height: 1.4;
    color: #ccc;
}

/* CTA Button Styling */
.worship-cta-btn {
    background-color: #e50020; /* The signature red color */
    border: 2px solid #e50020;
    color: #fff;
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.worship-cta-btn:hover {
    background-color: #ff334f;
    border-color: #ff334f;
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    .worship-cta-section {
        height: 70vh;
    }
    .worship-content-box {
        /* On small screens, make the box full width and push it to the bottom */
        width: 100%;
        min-height: auto;
        padding: 1.5rem !important;
    }
    .worship-cta-section .container-fluid {
        align-items: flex-end; /* Push content to the bottom of the viewport */
        padding-bottom: 0; /* Remove bottom padding to stick the box to the bottom */
    }
    .worship-heading {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

.ministries-section {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

.ministries-heading {
    /* Large, bold, black text with limited width */
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    max-width: 850px;
}

.ministries-heading .text-danger {
    color: #e50020 !important; /* Specific red color */
}

.ministries-card-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.ministries-card {
    background-color: transparent !important;
    transition: transform 0.3s ease;
}

.ministries-card:hover {
    transform: translateY(-5px); /* Subtle lift on hover */
}

/* Image Container */
.ministries-image-container {
    height: 350px; /* Fixed height for image area */
}

.ministries-image-container img {
    /* Standard object fit and size */
    transition: transform 0.5s ease;
}

/* Image zoom effect on hover */
.ministries-card:hover .ministries-image-container img {
    transform: scale(1.05);
}

/* Card Content Styling */
.card-title-small {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #000; /* Ensure title is black */
}

.ministries-arrow {
    color: #e50020; /* Red arrow */
    transition: margin-left 0.2s;
}

.ministries-card:hover .ministries-arrow {
    margin-left: 10px !important; /* Move arrow slightly on hover */
}

.card-text {
    font-size: 1rem;
    line-height: 1.4;
}

/* Responsive adjustments for modal on smaller screens */
@media (max-width: 992px) {
    .modal-body {
        padding: 2rem 1rem;
    }
    .modal-primary-links ul {
        padding-left: 0;
    }
    .modal-primary-links .nav-link-large {
        font-size: clamp(2rem, 12vw, 4rem);
        margin-bottom: 0.5rem;
    }
}

.ministries-highlight-section {
    background-color: #f8f9fa;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.ministries-highlight-tag {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #666;
}

.ministries-highlight-heading {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
    color: #000;
    margin-bottom: 2rem;
}

.ministries-highlight-heading .text-danger {
    color: #e50020 !important;
}

.ministries-highlight-btn {
    border: 2px solid #000;
    color: #000;
    background-color: transparent;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
    padding: 0.75rem 3rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.ministries-highlight-btn:hover {
    background-color: #000;
    border-color: #000;
    color: #fff;
}

/* Ministry Highlight Cards */

.ministry-highlight-card-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.ministry-highlight-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.ministry-highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ministry-highlight-image-container {
    height: 350px;
    overflow: hidden;
}

.ministry-highlight-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ministry-highlight-card:hover .ministry-highlight-image-container img {
    transform: scale(1.05);
}

/* Grayscale effect for the worship image */
.ministry-grayscale {
    filter: grayscale(100%) brightness(0.9);
}

.ministry-highlight-card-content {
    padding: 1.5rem;
    background-color: #fff;
}

.ministry-highlight-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #000;
}

.ministry-highlight-card-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .ministries-highlight-content {
        text-align: center;
    }

    .ministries-highlight-heading {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}

.giving-section {
    background: linear-gradient(135deg, #8b0000 0%, #dc143c 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.giving-card {
    background-color: #f5e6e8;
    border-radius: 0;
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
}

.giving-illustration {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 100%;
    opacity: 0.15;
}

.giving-illustration svg {
    width: 100%;
    height: 100%;
}

.giving-heading {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #000;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.giving-subtext {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 2rem;
}

.giving-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-give-now {
    background-color: transparent;
    border: 2px solid #000;
    color: #000;
    padding: 0.75rem 2.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-give-now:hover {
    background-color: #000;
    color: #fff;
}

.btn-building-project {
    background-color: #dc143c;
    border: 2px solid #dc143c;
    color: #fff;
    padding: 0.75rem 2.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-building-project:hover {
    background-color: #8b0000;
    border-color: #8b0000;
}

/* Newsletter Section */
.newsletter-section {
    background-color: #8b0000;
    padding: 4rem 0;
    text-align: center;
}

.newsletter-heading {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.newsletter-subtext {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

.newsletter-form {
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-input {
    width: 100%;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 50px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.newsletter-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-submit {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background-color: #fff;
    color: #8b0000;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-submit:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* Footer Section */
.footer-section {
    background-color: #8b0000;
    padding: 4rem 0 2rem 0;
    color: #fff;
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 3rem 0;
}

.footer-column-heading {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffcccc;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-social-icons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    align-items: center;
}

.footer-social-icon {
    color: #fff;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.footer-social-icon:hover {
    color: #ffcccc;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .giving-card {
        padding: 2.5rem 1.5rem;
    }

    .giving-buttons {
        flex-direction: column;
    }

    .btn-give-now,
    .btn-building-project {
        width: 100%;
    }

    .footer-social-icons {
        justify-content: center;
        margin-top: 1.5rem;
    }

    .footer-bottom {
        text-align: center;
    }
}
