:root {
    --primary-color: #f15b43;
    --secondary-color: #192f59;
}

.topbar{
    position: relative;
}

.topbar {
    position: relative;
    background-image: url('/assets/images/bg/bg1.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.topbar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 0;
}

.footer-bottom-wrap {
    background: #000f21;
}
.topbar * {
    position: relative;
    z-index: 2; /* Ensure text & icons appear above overlay */
}

.nav .logo {
    color: var(--secondary-color);
    /* font-family: "Bahianita", Sans-serif; */
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1em;
}


.mission-vision{
    padding-bottom: 50px !important;
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.vm-item {
    height: 100%;
}

/* Make grid responsive */
@media (max-width: 991px) {
    .vision-mission-grid {
        grid-template-columns: 1fr;
    }
}


.about-wrap-inner .about-img {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.about-wrap-inner .about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vicar-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    /* background: rgba(0, 22, 47, 0.8); */
    z-index: 1;
    pointer-events: none;
}

.shape-bottom {
    z-index: 2;
}

.about-vicar-content-image {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: -150px;
    background: #fff;
    padding: 8px;
}

.about-vicar-content-image img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    object-position: top;
}

.about-vicar-content {
    position: relative;
    z-index: 2;
    padding-left: 20px;
}


.sermon-box {
    position: relative;
    background-size: cover;
    background-position: center;
    z-index: 1;
    width: 100%;
    height: 100px;
}

.sermon-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7); /* overlay darkness */
    z-index: 0;
}

.sermon-box > * {
    position: relative;
    z-index: 2; /* keeps your content above the overlay */
}


#get-quote-section {
    position: relative;
    z-index: 1;
}

#get-quote-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* adjust darkness */
    z-index: -1; /* stays behind content */
}

/* footer design  */
.footer-overlay-dark .color-overlay {
    /* background: rgba(0, 22, 47, 0.92); */
    background: rgba(0, 0, 0, 0.95);
    z-index: 0;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
.footer .menu-quick-links p {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer .menu-quick-links p i {
    color: var(--primary-color);
}


.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
}

/* Children should stretch equally */
.feature-item {
    height: 100%;
}

/* Keep existing styling on your feature boxes */
.feature-item .feature-box-wrap {
    height: 100%;
}

/* Responsive for tablets */
@media (max-width: 991px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive for mobile */
@media (max-width: 767px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .vision-mission-grid {
        margin-top: 0px;
    }
    
    .about-wrap-inner .about-img {
        margin-top: 20px;
    }
}


.social-icon-link span {
    font-size: 16px;
    color: #192F59; /* theme blue */
    border: 2px solid #192F59;
    padding: 10px;
    border-radius: 50%;
    display: inline-block;
    transition: 0.3s ease;

}

.social-icon-link span:hover {
    background: #192F59;
    color: #fff;
    transform: translateY(-3px);
}




/* gallery  */
.portfolio-overlay-wrap .portfolio-thumb {
    position: relative;
}

.portfolio-overlay-wrap .portfolio-thumb img{
   height: 250px;
   object-fit: cover;
}