* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

header {
    background-color: rgba(30, 20, 122, 0.9); /* Semi-transparent background */
    padding: 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: fixed; /* Make the header float */
    top: 0; /* Position it at the top */
    left: 0;
    width: 100%; /* Make it span the full width */
    z-index: 1000; /* Ensure it stays on top of other elements */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
}

.logo img {
    height: auto; /* Increase the height to make the image larger */
    width: 250px;  /* Maintain the aspect ratio */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    position: relative; /* Needed for positioning the hover underline */
}

nav ul li a {
    color: rgb(238, 217, 32);
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 15px;
    transition: all 0.3s ease; /* Smooth animation */
    position: relative;
    display: inline-block;
}

/* Hover effect */
nav ul li a:hover {
    transform: translateY(3px); /* Press down effect */
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: white;
    transition: all 0.3s ease; /* Smooth animation for the line */
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

/* Hero section */
.hero {
    position: relative;
    min-height: 80vh; /* Set the minimum height to 80% of the viewport */
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Video will fill the hero section */
    object-fit: cover;
    z-index: -1;
}

.hero-text {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    z-index: 1;
}

.upcoming-events {
    background-color: #1e147a;
    color: white;
    text-align: center;
    padding: 20px 0;
}

.upcoming-events h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.event-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 70px;
    background-color: #f0f0f0;
    min-height: 200px;
}

.event-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.event-list {
    width: 60%;
}

.event-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    margin-bottom: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #d32f2f;
    padding: 30px;
    color: white;
    margin-right: 20px;
}

.event-date .day {
    font-size: 2rem;
    font-weight: bold;
}

.event-date .month {
    font-size: 1rem;
    text-transform: uppercase;
}

.event-details {
    flex-grow: 1;
}

.event-share img {
    width: 20px;
    margin-left: 5px;
}

.event-timer {
    display: flex;
    justify-content: space-around;
    width: 35%;
    background-color: #263238;
    padding: 20px;
    align-items: center;
    color: white;
    border-radius: 10px;
}

.time-box {
    text-align: center;
}

.time-box span {
    display: block;
    font-size: 3rem;
    font-weight: bold;
}

.time-box p {
    margin-top: 5px;
    font-size: 1rem;
}

/* Section containing the cards with an outer background */
.cards-wrapper {
    background-color: #1818b6; /* Blue background for the outer section */
    padding: 60px 0; /* Space around the cards within the section */
    border-radius: 0px; /* No rounded corners for the outer section */
    margin: 0; /* Remove outer margins */
    text-align: center; /* Center-aligning the content */
}

/* Inner area for the cards with a different background */
.info-cards {
    background-color: #fafafc; /* Light background for the inner cards area */
    padding: 60px 60px; /* Space inside the card area */
    border-radius: 45px; /* Rounded corners for the inner card container */
    margin: 40px; /* Space around the inner container */
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px; /* Limit the width of the card container */
    margin: 0 auto; /* Center the cards wrapper */
}

/* Individual card styles */
.card {
    position: relative;
    width: 33%; /* Cards take up one-third of the container */
    height: 300px;
    background-color: white; /* White background for the cards */
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Subtle shadow for depth */
    transition: transform 0.3s ease-in-out;
}

.card:hover {
    transform: scale(1.05); /* Zoom-in effect on hover */
}

/* Image inside the card */
.card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5); /* Darken the image slightly for better text contrast */
    border-radius: 10px; /* Ensures the image follows the card’s rounded corners */
}

/* Text content inside the card */
.card-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    z-index: 1;
    text-shadow: 2px 4px 6px rgba(0, 0, 0, 0.7); /* Text shadow for better readability */
}

.card-text h3 {
    margin: 0;
}

/* The image background for the card with tint effect */
.card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply; /* Blend the image with the background color */
    filter: brightness(1.5); /* Darken the image slightly for contrast */
    border-radius: 10px; /* Ensure rounded corners */
}

/* Tint for the first card */
.card:nth-child(1) .card-image {
    background-color: rgba(255, 0, 0, 0.5); /* Red tint */
}

/* Tint for the second card */
.card:nth-child(2) .card-image {
    background-color: rgba(0, 128, 0, 0.5); /* Green tint */
}

/* Tint for the third card */
.card:nth-child(3) .card-image {
    background-color: rgba(0, 0, 255, 0.5); /* Blue tint */
}

/* Make the text inside the cards clickable links */
.card-text a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    text-shadow: 2px 4px 6px rgba(0, 0, 0, 0.7); /* Same shadow for readability */
    transition: color 0.3s ease-in-out;
}

.card-text a:hover {
    color: #ffd700; /* Change color on hover (example: gold) */
}

/* Carousel section */
.carousel-section {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Smooth sliding effect */
}

.carousel-item {
    position: relative;
    min-width: 100%; /* Each image takes up full width of the container */
    height: 800px; /* Adjust height as needed */
}

/* Image styling */
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay for tinting the images */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: brightness(0.5); /* Darken the image slightly for better text contrast */
    filter: brightness(1.5); /* Darken the image slightly for contrast */
    background-color: rgba(0, 0, 0, 0.5); /* Default dark tint */
    z-index: 1;
}

/* Specific tints for each slide */
.carousel-item:nth-child(1) .overlay {
    background-color: rgba(255, 0, 0, 0.5); /* Red tint */
}

.carousel-item:nth-child(2) .overlay {
    background-color: rgba(0, 128, 0, 0.5); /* Green tint */
}

.carousel-item:nth-child(3) .overlay {
    background-color: rgba(0, 0, 255, 0.5); /* Blue tint */
}

.carousel-item:nth-child(4) .overlay {
    background-color: rgba(255, 255, 0, 0.5); /* Yellow tint */
}

/* Caption styling (centered text) */
.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the caption */
    color: white;
    font-size: 2.5rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
    padding: 15px 30px;
    border-radius: 5px;
    z-index: 2; /* Ensure caption appears above the overlay */
    opacity: 0; /* Hidden initially */
    animation: fadeIn 1s forwards; /* Animate when slide appears */
}

/* Keyframes for the fade-in animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%); /* Slide up from slightly below */
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%); /* Final centered position */
    }
}

/* Apply animation delay for each slide */
.carousel-item:nth-child(1) .carousel-caption {
    animation-delay: 0.5s;
}

.carousel-item:nth-child(2) .carousel-caption {
    animation-delay: 0.5s;
}

.carousel-item:nth-child(3) .carousel-caption {
    animation-delay: 0.5s;
}

.carousel-item:nth-child(4) .carousel-caption {
    animation-delay: 0.5s;
}

/* Section layout */
.two-column-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 800px; /* Adjust as needed */
    position: relative;
    margin-top: 50px;
    overflow: hidden;
    background: url('images/bgimage.png') no-repeat center center;
    background-size: cover; /* Cover the entire section with the background */
}

/* Tinted overlay */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Tinted overlay, adjust the color and transparency */
    z-index: 0; /* Ensure it stays behind the slides */
}

.columns-container {
    display: flex;
    justify-content: space-between;
    width: 80%; /* Width of the whole section */
    position: relative; /* Ensure the container is above the overlay */
    z-index: 1; /* Ensure it's above the background */
}

/* Column Styling */
.left-column, .right-column {
    width: 48%;
    position: relative;
}

/* Slide styling */
.slide {
    position: absolute;
    width: 100%;
    height: 100px; /* Adjust as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    text-align: center;
    opacity: 0; /* Hidden initially for sliding slides */
    z-index: 1;
    text-decoration: none; /* Ensure links are styled without underline */
    transition: background-color 0.3s ease; /* Smooth hover transition */
}

/* Hover effect for clickable slides */
.slide:hover {
    background-color: rgba(255, 255, 255, 0.8); /* Lighten the background on hover */
    color: #000; /* Change text color on hover */
}

/* Static slide that is always visible */
.static-slide {
    opacity: 1; /* Always visible */
    position: relative; /* Does not move */
    z-index: 1; /* Visible above the background */
    transition: background-color 0.3s ease; /* Add smooth transition for hover effect */
}

/* Animation for left slides (coming up from bottom) */
@keyframes slideUp {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Animation for right slides (coming down from top) */
@keyframes slideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Slide animation triggers for the left column */
.left-column .left-slide:nth-child(2) {
    animation: slideUp 1s forwards;
    animation-delay: 2s;
}

.left-column .left-slide:nth-child(3) {
    animation: slideUp 1s forwards;
    animation-delay: 5s;
}

.left-column .left-slide:nth-child(4) {
    animation: slideUp 1s forwards;
    animation-delay: 8s;
}

/* Slide animation triggers for the right column */
.right-column .right-slide:nth-child(2) {
    animation: slideDown 1s forwards;
    animation-delay: 2s;
}

.right-column .right-slide:nth-child(3) {
    animation: slideDown 1s forwards;
    animation-delay: 5s;
}

.right-column .right-slide:nth-child(4) {
    animation: slideDown 1s forwards;
    animation-delay: 8s;
}

.crusade-section {
    position: relative;
    width: 100%;
    height: 800px;
    background-size: cover;
    background-position: center;
    animation: fadeBackground 10s infinite alternate; /* Animation for fade */
}

@keyframes fadeBackground {
    0% {
        background-image: url('images/slide4.png'); /* First image */
    }
    100% {
        background-image: url('images/slide2.png'); /* Second image */
        opacity: 1;
    }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 139, 0.01), rgba(0, 0, 139, 0.09));
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay h1 {
    color: rgb(18, 14, 75);
    font-size: 3rem;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 10px;
}

.testimonies-section {
    position: relative;
    width: 100%;
    padding: 100px 40px;
    background-color: #f8f9fa;
    overflow: hidden;
}

.carousel {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.testimonial-card {
    background: white;
    padding: 20px;
    margin: 0 10px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 30%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.testimonial-card.show {
    opacity: 1;
    visibility: visible;
}

/* Styling the Buttons */
.testimony-buttons {
    text-align: center;
    margin-top: 30px;
}

.testimony-buttons .btn {
    padding: 10px 20px;
    margin: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.testimony-buttons .btn-primary {
    background-color: #007bff;
    color: white;
}

.testimony-buttons .btn-primary:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.testimony-buttons .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.testimony-buttons .btn-secondary:hover {
    background-color: #5a6268;
    transform: scale(1.05);
}

.iphone-section {
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(135deg, rgba(44, 145, 217, 0.8), rgba(27, 69, 143, 0.8)), /* Gradient with transparency */
        url('images/imageChView.JPG'); /* Add your image */
    background-size: cover; /* Ensure the background image covers the section */
    background-position: center;
    padding: 50px 0;
    min-height: 800px;
    color: #fff;
    text-align: right;
    position: relative;
}


.iphone-container {
    display: flex;
    align-items: center;
    background: transparent;

    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

.text-content {
    flex: 1;
    max-width: 50%;
}

.text-content a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.text-content a:hover {
    background-color: #bb8955; /* Change to a different color on hover */
    transform: scale(1.05); /* Slightly enlarge the button */
    color: #fff; /* Ensure the text stays white */
}

.text-content h1 {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
}

.text-content p {
    font-size: 1.5rem;
    background-color: #fff;
    color: #000;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    width: fit-content;
    margin-top: 20px;
    align-items: right;
}

.image-content {
    flex: 1;
    display: flex;
    /* justify-content: flex-end; */

}


.image-content img {
    max-width: 50%;
    height: 100%;
    background: transparent;
    border-radius: 20px; /* Optional: Rounded edges */
    /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);  */
    /* Shadow for phones */
    /* display: block;  */
    /* width: 100%;  */
    /* height: auto;  */
    /* transition: transform 0.2s ease;  */
    transform-style: preserve-3d;
}

.image-content img:hover {
    transition: transform 0.2s ease;
}


/* Define the keyframe for smooth continuous scrolling */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.moment-section {
    position: relative;
    width: 100%;
    height: 500px; /* Adjusted height to match your reference */
    background-image: url('images/apst-clsotww-bg.jpg'); /* Background image */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.image-container {
    flex-shrink: 0; /* Ensures the image does not shrink */
}

.top-image {
    width: 300px; /* Adjust the size to be larger and more prominent */
    height: auto;
    z-index: 2;
    border-radius: 50%; /* To give the image a circular shape similar to the example */
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3); /* Adds a subtle shadow */
}

.moment-text {
    color: #fff;
    z-index: 1;
    text-align: left;
    margin-left: 30px; /* Adjust margin for better spacing */
    max-width: 500px; /* Control the text width */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    padding: 20px; /* Padding to create space around the text */
    border-radius: 10px; /* Rounded corners for the text box */
}

.moment-text h1 {
    font-size: 2.8rem; /* Increase size for better prominence */
    font-weight: bold;
}

.moment-btn {
    display: inline-block;
    padding: 12px 30px; /* Adjust padding for better visual effect */
    background-color: #3a37d4; /* Gold color for button */
    color: white;
    text-decoration: none;
    font-weight: normal;
    border-radius: 5px;
    margin-top: 15px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow to make the button stand out */
}

.moment-section {
    height: 700px;
}

.footer-section {
    background-color: #0c0c6d;
    color: #fff;
    padding: 150px 0;
    text-align: left;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
}

.newsletter h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.newsletter form input {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    margin: 5px 0;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

.newsletter form button {
    background-color: #28a745;
    color: #fff;
    padding: 10px 50px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 50px;
}

.newsletter form button:hover {
    background-color: #218838;
}

.about h3, .social h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.about ul {
    list-style-type: none;
    padding: 0;
}

.about ul li {
    margin: 8px 0;
}

.about ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.about ul li a:hover {
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.social-icons a img {
    width: 32px;
    height: 32px;
}

.footer-bottom {
    margin-top: 20px;
    font-size: 14px;
    color: #ddd;
    border-top: 1px solid #333;
    padding-top: 10px;
    text-align: center;
}

