body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/*** Spinner Start ***/

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .8s ease-out, visibility 0s linear .0s;
    visibility: visible;
    opacity: 1;
}

.wow,
.animated {
    animation-duration: 2s !important;
}

/*** Spinner End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
}

.back-to-top:hover {
    background: var(--bs-dark);
    color: var(--bs-primary);
}

h1, h2, h3, .h1, .h2, .h3 {
    font-weight: 900 !important;
    font-family: 'Open', sans-serif !important;
}

h4, h5, h6, .h4, .h5, .h6 {
    font-weight: 600 !important;
    font-family: 'Open', sans-serif !important;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}


/*** Button Start ***/

.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-md-square {
    width: 46px;
    height: 46px;
}

.btn-lg-square {
    width: 58px;
    height: 58px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn.btn-primary:hover {
    color: var(--bs-primary) !important;
    background: var(--bs-dark) !important;
    border-color: var(--bs-dark) !important;
}

.btn.btn-dark:hover {
    color: var(--bs-dark) !important;
    background: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}
/*** Button End ***/


/*** Topbar Start ***/
.topbar .topbar-inner {
    height: 45px;
    padding: 10px 15px;
    background: rgba(159, 156, 156, 0.5);
}

.topbar a,
.topbar a i {
    transition: 0.5s;
}

.topbar a:hover,
.topbar a i:hover {
    color: var(--bs-primary) !important;
}
/*** Topbar End ***/


/*** Navbar Start ***/
.fixed-top {
    transition: .5s;
}

 /* .navbar {
    border-bottom: 1px solid rgba(255, 255, 255, .5);
}  */

.navbar .navbar-nav .nav-link {
    padding: 12px;
    color: var(--bs-dark);
    font-size: 17px;
    font-weight: 600;
    transition: .5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active,
.fixed-top.bg-dark .navbar .navbar-nav .nav-link:hover,
.fixed-top.bg-dark .navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 700;
    vertical-align: middle;
    margin-left: 8px;
}

@media (min-width: 992px) {
    .navbar-collapse {
        background: transparent !important;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        background: var(--bs-light) !important;
        transition: .5s;
        opacity: 1;
    }
}

.navbar-toggler {
    background: var(--bs-secondary);
    color: var(--bs-light) !important;
    padding: 10px 20px;
    border: 2px solid var(--bs-primary) !important;
    box-shadow: none !important;
}
/*** Navbar End ***/


/*** Hero Header ***/
.carousel-text p {
    font-size:5rem;
}
 @media (max-width: 576px) {
    .hero-header {
        margin-top: 100px; /* Extra space for small screens */
     }
}  

.carousel-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    z-index: 10;
    width: 80%;
}

/* Responsive adjustments for text and button */
.carousel-text p {
    font-size: 1rem;
}

.carousel-text h1 {
    font-size: 1.5rem;
    line-height: 1.5;
}

.carousel-text a {
    font-size: 0.9rem;
    padding: 8px 16px;
}

@media (min-width: 768px) {
    .carousel-text p {
        font-size: 1.5rem;
    }
    .carousel-text h1 {
        font-size: 1rem;
    }
    .carousel-text a {
        font-size: 1rem;
        padding: 10px 20px;
    }
}


/*** Hero Header ***/


/*** About Start ***/
.about a.btn.btn-light:hover {
    background: var(--bs-dark) !important;
    color: var(--bs-primary) !important;
    border: 0;
}

.uniform-img {
    width: 100%; /* Ensures the image occupies full width of its container */
    height: 250px; /* Set a fixed height for uniformity */
    object-fit: cover; /* Ensures the image is cropped to fit without distortion */
    border-radius: 10px; /* Optional: Adds rounded corners */
}

@media (max-width: 768px) {
    .uniform-img {
        margin-bottom: 15px; /* Adds some spacing on smaller devices */
    }
}


/* Custom class to increase width of the last two images */
.larger-image {
    width:100%;
    height: 200px; /* Set a fixed height for uniformity */
    object-fit: cover; /* Ensures the image is cropped to fit without distortion */
    border-radius: 10px; /* Optional: Adds rounded corners */
}

/*** About End ***/


/*** Activities Start ***/
.activities .activities-item {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 45px rgba(12, 18, 20, .08);
    transition: 0.5s;
}

.activities .activities-item:hover {
    background: var(--bs-primary) !important;
    color: var(--bs-dark) !important;
}

.activities .activities-item:hover a {
    background: var(--bs-light) !important;
    color: var(--bs-dark) !important;
}

.activities .activities-item:hover a:hover {
    background: var(--bs-dark) !important;
    color: var(--bs-primary) !important;
}
/*** Activities End ***/

.features {
    background-color: #f9f9f9; /* Light background color */
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-item {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; /* Space between items */
}

.feature-box {
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1 1 30%; /* Makes each box take 30% width on medium screens and larger */
}

.feature-box h6 {
    font-size: 2rem;
    color: #007bff; /* Blue color for numbers */
    font-weight: bold;
}

.feature-box h4 {
    font-size: 1.5rem;
    margin: 15px 0;
    font-weight: 600;
    color: #333;
}

.feature-box p {
    font-size: 1rem;
    color: #555;
}

img.rounded-circle {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-top: 15px;
    border-radius: 50%;
}
img.rounded-circle-about {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-top: 15px;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .feature-box {
        flex: 1 1 100%; /* Makes each box take full width on small screens */
    }
    img.rounded-circle-about {
        width: 100%;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .feature-box {
        margin-bottom: 30px;
    }
}



/*** Events Start ***/
.event-item img {
    transition: 0.5s;
}

.event .event-item a {
    transition: 0.5s;
}

.event-item:hover img {
    transition: 0.5s;
    transform: scale(1.2)
}

.event-item a:hover {
    background: var(--bs-dark);
    color: var(--bs-primary);
    opacity: 0.5s;
}

.service-img {
    width: 60px;   /* Adjust the width as per the icon size */
    height: 60px;  /* Adjust the height to maintain aspect ratio */
    object-fit: cover; /* Ensures the image does not get distorted */
}

/*** Events End ***/


/*** Sermon Start ***/
.sermon .sermon-item {
    height: 100%;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.sermon-item img {
    transition: 0.5s;
}

.sermon-item:hover img {
    transform: scale(1.2)
}

.sermon-item .sermon-meta a,
.sermon-item .sermon-meta a i {
    transition: 0.5s;
}

.sermon-item .sermon-meta a:hover,
.sermon-item .sermon-meta a i:hover {
    color: var(--bs-primary) !important;
}
/*** Sermon End ***/


/*** Blog Start ***/
.blog-item {
    height: 100%;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.blog-item img {
    transition: 0.5s;
}

.blog-item:hover img {
    transform: scale(1.2)
}

.blog-item .blog-meta a,
.blog-item .blog-meta a i {
    transition: 0.5s;
}

.blog-item .blog-meta a:hover,
.blog-item .blog-meta a i:hover {
    color: var(--bs-primary) !important;
}
/*** Blog End ***/

/* Gallery Starts */
.gallery {
    background: #f8f9fa; /* Light gray background for the gallery */
    padding: 50px 0; /* Adds padding around the gallery */
    overflow: hidden; /* Prevent horizontal scrolling on the entire gallery */
}

.auto-scroll-gallery {
    overflow: hidden; /* Hide any overflow */
    width: 100%; /* Occupy full screen width */
    position: relative;
}

.gallery-wrapper {
    display: flex;
    animation: scroll 80s linear infinite; /* Adjust scrolling speed as needed */
    width: calc(350px * 21 + 30px * 20); /* Total width: 21 images + margin between */
}

.gallery-item {
    flex-shrink: 0; /* Prevent images from shrinking */
    width: 350px; /* Set consistent width for each image */
    height: 350px; /* Fixed height */
    margin-right: 30px; /* Space between images */
    border-radius: 20px; /* Optional: Rounded corners */
    overflow: hidden; /* Ensure images do not overflow their container */
}

.gallery-wrapper img {
    width: 100%; /* Image takes full width of its container */
    height: 100%; /* Image takes full height of its container */
    object-fit: cover; /* Ensure image covers its container with no distortion */
    border-radius: 20px; /* Match the border radius of the .gallery-item */
}

/* Keyframes for scrolling animation */
@keyframes scroll {
    0% {
        transform: translateX(0); /* Start at the beginning */
    }
    100% {
        transform: translateX(calc(-315px * 21)); /* Scroll by total width (image + margin) */
    }
}


/* Gallery Ends */

/*** Team Start ***/
.team .team-img {
    height: 100%;
    padding: 25px;
    background: var(--bs-white);
    overflow: hidden;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.team .team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team .team-item {
    position: relative;
    overflow: hidden;
}

.team .team-item img {
    transition: 0.5s;
}

.team .team-item:hover img {
    transform: scale(1.2);
}

.team .team-item .team-content {
   position: absolute;
   width: 100%;
   height: 100%;
   top: 0;
   left: 0;
   padding: 15px;
   transform: translateX(-50%, -50%);
   display: flex;
   align-items: center;
   justify-content: center;
   opacity: 0;
   transition: 0.5s;
}

.team .team-item:hover .team-content {
    opacity: 1;
    background: rgba(241, 193, 82, .7);
}
/*** Team End ***/


/*** testimonial Start ***/
.testimonial-item {
    padding: 20px;
    background-color: #f8f9fa; /* Optional: Light background for better readability */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: visible; /* Allow content to fully display */
    min-height: auto; /* Ensure dynamic height based on content */
}

.testimonial-content p {
    white-space: normal; /* Allow line breaks for long texts */
    word-wrap: break-word; /* Prevent overflow for long words */
    font-size: 14px; /* Adjust font size for readability on small screens */
}

.testimonial-carousel .owl-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .testimonial-item {
        padding: 15px; /* Reduce padding for smaller screens */
    }

    .testimonial-content p {
        font-size: 12px; /* Reduce font size for smaller screens */
    }
}

.testimonial-item img {
    max-width: 90px; /* Limit image size */
    height: 100px; /* Make sure the image has equal size */
    object-fit: cover;
}

/*** testimonial End ***/


p.d-flex {
    flex-wrap: wrap;
    gap: 0.5rem; /* Adds a gap between elements */
}

p.d-flex a {
    white-space: nowrap; /* Prevents email from breaking into multiple lines */
}


/*** Footer Start ***/
.footer {
    margin-top: 6rem;
    background: var(--bs-dark);
}

.footer .footer-item p {
    font-size: 16px;
    line-height: 35px;
}

.footer .border-top,
.footer .border-bottom {
    border-color: rgba(255, 255, 255, .08) !important;
}

.footer button {
    border: 0;
    transition: 0.5s;
}

.footer button:hover {
    background: var(--bs-dark);
    color: var(--bs-primary);
}

.footer-item a.btn.btn-light:hover {
    background: var(--bs-primary);
    color: var(--bs-dark) !important;
    border: var(--bs-primary);
}

.footer-item a,
.footer-item a i {
    transition: 0.5s;
}

.footer-item a:hover,
.footer-item a i:hover {
    color: var(--bs-primary) !important;
}
/*** Footer End ***/
