
/*** 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: 700 !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(255, 255, 255, .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);
    padding-top:18px;
    padding-bottom:18px; 
}


.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-white .navbar .navbar-nav .nav-link:hover,
.fixed-top.bg-white .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 ***/
.hero-header {
    margin-top: 120px;
    background: linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
                url("../img/sof12.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 160px 0 120px 0;
}

.hero-header .hero-header-inner {
    padding: 3rem;
    background: rgba(255, 255, 255, .5);
}

@media (max-width: 992px) {
    .hero-header {
        padding-top: 12rem;
    }
}

.hero-header .breadcrumb-item {
    font-size: 18px;

}
/*** Hero Header ***/


/*** About Start ***/
.about a.btn.btn-light:hover {
    background: var(--bs-dark) !important;
    color: var(--bs-primary) !important;
    border: 0;
}
/*** 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 ***/


/*** 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;
}
/*** 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 ***/


/*** 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 {
    background: var(--bs-light);
    padding: 40px;
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel {
    position: relative;
    padding-left: 60px;
    padding-right: 60px;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 60px;
    height: 40px;
    background: var(--bs-primary);
    color: var(--bs-dark);
    font-size: 22px;
    top: 50%;
    left: 0px;
    transform: translateY(-50%);
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover {
    background: var(--bs-dark) !important;
    color: var(--bs-primary) !important;
}

.testimonial-carousel .owl-nav .owl-next {
    left: auto;
    right: 0px;
}

.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--bs-dark) !important;
    color: var(--bs-primary) !important;
}
/*** testimonial End ***/



/* Church Images */
.slide1{
    background-image: url("../img/sof12.png");
}

.slide2{
    background-image: url("../img/sof5.png");
}

.slide3{
    background-image: url("../img/sof3.png");
}
/* caurosel end */

/* Fix navbar overlap with hero carousel */


/* Reduce heading size */
.ministry-title{
    font-size: 30px;
    line-height: 1.2;
}

/* Add space between brand and nav items */
.navbar-brand{
    margin-right: 40px;
}

/* Bigger logo */
.logo-img{
    height:90px;   /* increase logo size */
    width:auto;
}


.fixed-top{
    background: #ffffff;
}


.activity-card{
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.activity-card img{
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: 0.5s;
}

.activity-overlay{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: white;
    transform: translateY(40%);
    transition: 0.5s;
}

.activity-card:hover img{
    transform: scale(1.1);
}

.activity-card:hover .activity-overlay{
    transform: translateY(0);
}


/* Activity Cards */
.activity-card{
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: 0.4s;
}

.activity-card img{
    width:100%;
    height:260px;
    object-fit:cover;
    transition: 0.5s;
}

.activity-card:hover img{
    transform: scale(1.1);
}

/* COLORFUL OVERLAY CARD */
.activity-overlay{
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    padding:25px 20px;
    color:#fff;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 90%);
}

/* TITLE STYLE (The colorful card feel) */
.activity-overlay h4{
    font-size:22px;
    font-weight:700;
    background: linear-gradient(45deg,#ff7a18,#ffb347,#6a11cb,#2575fc);
    padding:8px 14px;
    border-radius:30px;
    display:inline-block;
    margin-bottom:10px;
}

/* TEXT */
.activity-overlay p{
    font-size:15px;
    margin:0;
    opacity:0.95;
}

/* Hover lift effect */
.activity-card:hover{
    transform: translateY(-10px);
}



/* Mobile view – keep it neat */
/* Mobile logo size */
@media (max-width:768px){
    .logo-img{
        height:55px !important;
    }
}
/* Desktop */
@media (min-width: 992px){
    #heroCarousel{
        margin-top: 120px;
    }
}

/* Tablet & Mobile (topbar hidden on small screens) */
@media (max-width: 991px){
    #heroCarousel{
        margin-top: 80px;
    }
}



/* ================= MOBILE NAVBAR FIX ================= */

/* keep brand and toggle on same line */
@media (max-width:991px){

    .navbar .d-flex.w-100{
        width:100%;
    }

    .navbar-toggler{
        margin-left:auto;
    }

    /* shrink ministry title */
    .ministry-title{
        font-size:15px !important;
        max-width:180px;
    }

    /* shrink logo */
    .logo-img{
        height:40px !important;
    }

    /* mobile menu dropdown */
    .navbar-collapse{
        margin-top:15px;
        padding:20px;
        border-radius:10px;
        box-shadow:0 10px 30px rgba(0,0,0,0.1);
    }
}


/* ================= TOPBAR MOBILE FIX ================= */

@media (max-width:991px){

    .topbar{
        display:block !important;
    }

    .topbar .row{
        flex-direction:column;
        text-align:center;
        gap:6px;
    }

    .topbar-inner{
        height:auto !important;
        padding:8px 10px !important;
    }

    .topbar span,
    .topbar a{
        font-size:13px;
    }
}



/* ================= HERO CAROUSEL RESPONSIVE FIX ================= */

/* Desktop */
.hero-header-inner h1{
    font-size:70px;
    font-weight:800;
}

/* Tablet */
@media (max-width:991px){

    .hero-header-inner h1{
        font-size:42px !important;
    }
}

/* Mobile phones */
@media (max-width:768px){
    
    .hero-slide{
        height: 75vh;
    }
    .hero-header-inner{
        padding:10px !important;
    }

    .hero-header-inner h1{
        font-size:26px !important;
        margin-bottom:20px !important;
    }

    .hero-header-inner .btn{
        padding:10px 22px !important;
        font-size:14px !important;
    }
}


/* ================= HEADER SPACING FIX ================= */

@media (max-width:991px){
    #heroCarousel{
        margin-top:95px !important;
    }
}

@media (max-width:576px){
    #heroCarousel{
        margin-top:85px !important;
    }
}



/* HERO SLIDER MOBILE FIX */

.hero-slide{
    height: 70vh;              /* Desktop height */
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}


@media (max-width: 992px){
    .hero-slide{
        height: 60vh;
        min-height: 420px;
    }
}


@media (max-width: 768px){
    .hero-slide{
        height: 50vh;
        min-height: 360px;
        text-align: center;
    }
}

.hero-slide::before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1;
}

.hero-header-inner{
    position: relative;
    z-index: 2;
}



/* MOBILE HERO TEXT */
@media (max-width: 768px){

.hero-header-inner {
    position: relative;
    z-index: 2;
}

    .hero-header-inner h1{
        font-size: 34px !important;
        line-height: 1.3;
        margin-bottom:20px;
    }

    .hero-header-inner .btn{
        padding: 12px 30px;
        font-size:16px;
    }

}



/* TABLET HERO TEXT */
@media (min-width:769px) and (max-width: 1024px){
    .hero-header-inner h1{
        font-size: 60px !important;
    }
}





/*** 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 ***/


.hero-header-inner,
.hero-header-inner * {
    animation: none !important;
    transition: none !important;
}



/* ===== FIX NAVBAR OVERLAP (PERFECT SOLUTION) ===== */

/* Desktop navbar height */
body {
    padding-top: 90px;
}

/* Tablet navbar height */
@media (max-width: 991px){
    body {
        padding-top: 95px;
    }
}

/* Small phones navbar height */
@media (max-width: 576px){
    body {
        padding-top: 85px;
    }
}




/* ===== HEADER HEIGHT FINAL ===== */

body{
    padding-top:90px;
}

@media (max-width:768px){
    body{
        padding-top:70px;
    }
}

/*16/4/2026 CSS Updates*/

/* ===== TOPBAR PERFECT MOBILE FIX ===== */

@media (max-width:768px){

    /* keep everything in one line */
    .container-fluid.fixed-top .py-2{
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center !important;
        gap:10px;
        padding-top:6px !important;
        padding-bottom:6px !important;
    }

    /* phone + email group */
    .container-fluid.fixed-top .py-2 > div:first-child{
        order:1;
        width:100%;
        justify-content:center !important;
        gap:15px;
    }

    /* social icons group */
    .container-fluid.fixed-top .py-2 > div:last-child{
    order:2;
    width:100%;
    justify-content:center !important;
    gap:8px;
    margin-top:3px;   /* add space so it isn't clipped */
    }

    /* shrink text for space */
    .container-fluid.fixed-top span{
        font-size:12px;
    }

    .container-fluid.fixed-top i{
        font-size:12px;
    }

}




