*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}
.header{
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url(images/banner.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

nav{
    display: flex !important;
    padding: 2% 4%;
    justify-content: space-between;
    align-items: center;
}
nav img{
    width: 135px;
}
.nav-links{
    flex: 1;
    text-align: right;
}
.nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}
.nav-links ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
}
.nav-links ul li::after{
    content: '';
    width: 0%;
    height: 2px;
    background: #198093;
    display: block;
    margin: auto;
    transition: .5s;    
}
.nav-links ul li:hover::after{
    width: 100%;
}
nav .fa{
    display: none;
}

.text-box{
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.text-box h1{
    font-size: 70px;
    font-weight: bolder;
}
.text-box p{
    margin: 20px 0 40px;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.text-box .hero-btn{
    flex-direction: row !important;
}

.hero-btn {
    display: inline-block;
    text-decoration: none !important;
    color: #fff !important;
    border: 1px solid #fff !important;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
    transition: 1s;
    font-weight: bold;
}

.hero-btn:hover{
    border: 1px solid #198093;
    background: #198093;
    text-decoration: none !important;
    color: #fff;
}


.hero-btn-s {
    display: inline-block;
    text-decoration: none !important;
    color: #ccc !important;
    padding: 12px 34px;
    font-size: 15px;
    background: #124559;
    position: relative;
    cursor: pointer;
    transition: 1s;
    font-weight: bold;
}

.hero-btn-s:hover{
    border: 1px solid #198093;
    background: #198093;
    text-decoration: none !important;
    color: #fff;
}


@media(max-width: 700px)
{
   .nav-links ul li
    {
        display: block;
    }
    .nav-links
    {
        position: fixed;
        background: #198093;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 0.5s;
    }
    .nav-links ul{
        padding: 30px;
    }
    nav .fa{
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer; 
    }
    .text-box h1{
        font-size: 20px;
    }
}

.card-header{
    font-weight: bolder;
    font-size: 25px;
    background-color: #598392 !important;
    color: #fff;
}

.card-body{
    background-color: #a0b5bd !important;
}

.card-title{
    font-weight: 600;
    font-size: 25px;
    color: #EFF6E0;
}

.card-text{
    font-weight: 540;
    font-size: 18px;
}

.card-footer{
    font-weight: bolder;
    font-size: 18px;
}

/*---------- mission vision --------*/

.abt{
    width: 90%;
    margin: auto;
    text-align: center;
}
.abt h1{
    padding-top: 5%;
    padding-bottom: 5%;
}

.title-banner{
    padding-top: 5% !important;
    padding-bottom: 5% !important;
    padding-left: 25%;
    padding-right: 25%;
    background-color: #124559;
    color: #fff;
    border-radius: 3px;
}

.content-give{
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: #B7D5D4;
    border-radius: 10px;
}

 .top-part{
    background-image: url(img/wave.svg);
    background-position: top;
    background-repeat: no-repeat;
    background-size: auto 65%;
    background-position-x:45%;
}

h1{
    font-size: 40px !important;
    font-weight: bold !important;
}
p{
    font-size: 18px;
    font-weight: 400;
    line-height: 22px;
    padding: 20px;
    text-align: justify;
  text-justify: inter-word;
  text-align-last: center;
  line-height: 2rem;
}
.row{
    display: flex;
    justify-content: space-between;  
}



.bottom-color{
    background-color: #B7D5D4;
    padding: 20px 12px;
    box-sizing: border-box;
    border-radius: 10px;
}
  
.abt-col{
    flex-basis: 31%;
    background: #B7D5D4;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: .5s;
}
h3{
    text-align: center;
    font-weight: bolder !important;
    margin: 10px 0;
}
.abt-col:hover{
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.2);
}

@media (max-width:700px){
    .row{
        flex-direction: column;
    }
} 
ul{
    padding: 20px;
}


footer {
    font-size: 0.9rem;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #f8c146; /* Highlight color for social icons */
}

/*---------------- BLOG ----------------*/
.ministry {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 50px;
}

.ministry .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three equal columns */
    gap: 2%; /* Gap between columns and rows */
}

.ministry-col {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 300px; /* Set a fixed height for all columns */
}

.ministry-col img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area without distortion */
    border-radius: 10px;
}

.layer {
    background: transparent;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    position: absolute;
    transition: .5s;
}

.layer:hover {
    background: rgba(25,128,147,1.000);
}

.layer h3 {
    width: 100%;
    font-weight: 500;
    color: #fff;
    font-size: 26px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    opacity: 0;
    transition: .5s;
}

.layer:hover h3 {
    bottom: 49%;
    opacity: 1;
}

/*---------------- MINISTRIES ----------------*/
.ministries  {
    width: 82%; /* Full width of the viewport */
    margin: auto; /* Center the section horizontally */
    text-align: center;
    padding: 50px 20px; /* Top/Bottom: 50px, Left/Right: 20px */
    background-color: #124559;
    box-sizing: border-box; /* Ensures padding is included in the total width */
    border-radius: 5px;
}

.ministries h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #fff; /* Ensure the text is readable on the background */
}

.ministries p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #ddd; /* Softer color for contrast */
}

/* Responsive Grid */
.ministries .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Default: 3 equal columns */
    gap: 20px; /* Consistent gap between columns and rows */
}

.ministries-1  {
    width: 100%; /* Full width of the viewport */
    max-width: 80%; /* Optional: limit the maximum width */
    margin: auto; /* Center the section horizontally */
    text-align: center;
    padding: 50px 20px; /* Top/Bottom: 50px, Left/Right: 20px */
    box-sizing: border-box; /* Ensures padding is included in the total width */
}

.ministries-1 h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #fff; /* Ensure the text is readable on the background */
}

.ministries-1 p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #ddd; /* Softer color for contrast */
}

/* Responsive Grid */
.ministries-1 .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Default: 3 equal columns */
    gap: 50px; /* Consistent gap between columns and rows */
}

/* Column Styles */
.ministries-col {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px; /* Adjusted height for consistent look */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.ministries-col:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
}

/* Image Styles */
.ministries-col img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the area without distortion */
    border-radius: 10px; /* Matches the column border radius */
}

/* Layer for Text */
.ministries-col .layer {
    position: absolute;
    top: 0; /* Covers the full image */
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(25, 128, 147, 0.6);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.2rem;
    border-radius: 10px; /* Matches the column border radius */
    opacity: 0; /* Hidden by default */
    visibility: hidden; /* Prevents interaction */
    transform: scale(1.1); /* Slightly larger for smooth entry */
    transition: all 0.3s ease; /* Smooth animation */
}

/* Show .layer on hover */
.ministries-col:hover .layer {
    opacity: 1; /* Makes it visible */
    visibility: visible;
    transform: scale(1); /* Perfectly fits the image */
}

/* Responsive Design */
@media (max-width: 768px) {
    .ministries .row {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }

    .ministries h1 {
        font-size: 2rem;
    }

    .ministries p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .ministries .row {
        grid-template-columns: 1fr; /* 1 column on smaller screens */
    }

    .ministries-col {
        height: 200px; /* Adjust height for smaller screens */
    }

    .ministries h1 {
        font-size: 1.8rem;
    }

    .ministries p {
        font-size: 0.85rem;
    }
}



@media (max-width: 768px) {
    .ministries-1 .row {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }

    .ministries-1 h1 {
        font-size: 2rem;
    }

    .ministries-1 p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .ministries-1 .row {
        grid-template-columns: 1fr; /* 1 column on smaller screens */
    }

    .ministries-col {
        height: 200px; /* Adjust height for smaller screens */
    }

    .ministries-1 h1 {
        font-size: 1.8rem;
    }

    .ministries-1 p {
        font-size: 0.85rem;
    }
}



/*-------------- services ----------------*/

.services {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 60px;
}

.services .row {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two equal columns */
    gap: 2%; /* Gap between columns and rows */
}

.services-col {
    border-radius: 10px;
    text-align: left;
    flex-basis: 31%;
    background: #B7D5D4;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: .5s;
}

.services-col img {
    width: 100%;
    border-radius: 10px;
    
}

.services-col p {
    padding: 0;
}

.services-col h3 {
    margin-top: 16px;
    margin-bottom: 15px;
    text-align: left;
}

.services-col:hover{
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.2);
    background: #124559;
    color: #ccc !important;
}


/* Responsive Design */
@media (max-width: 768px) {
    .services .row {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }

    .services h1 {
        font-size: 2rem;
    }

    .services p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .services .row {
        grid-template-columns: 1fr; /* 1 column on smaller screens */
    }

    .services h1 {
        font-size: 1.8rem;
    }

    .services p {
        font-size: 0.85rem;
    }
}



/*---------------- testimonials ------------------*/

.testimonials{
    width: 90%;
    margin: auto;
    text-align: center;
}

.testimonial-col{
    flex-basis: 44%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
    background: #B7D5D4;
    padding: 25px;
    cursor: pointer;
    display: flex;
}
.testimonial-col img{
    height: 60px;
    margin-left: 5px;
    margin-right: 30px;
    border-radius: 50%;
}
.testimonial-col p{
    padding: 0;
    font-size: 18px !important;
}
.testimonial-col h3{
    margin-top: 15px;
    text-align: left;
}
.testimonial-col .fa{
    color: #198093;
}

@media(max-width:700px){
    .testimonial-col img{
        margin-left: 0px;
        margin-right: 15px;
    }
}

/*-------- Call To Action ----------*/


.cta{
    margin: 100px auto;
    width: 80%;
    background-image: linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),url(images/ministrybg.jpg);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;
}
.cta h1{
    color: #fff;
    margin-bottom: 40px; 
    padding: 0; 
}

@media(max-width:700px){
    .cta h1{
        font-size: 24px;
    }
}

/*--------------Footer---------------*/

.footer{
    width: 100%;
    text-align: center;
}
.footer h4{
    margin-bottom: 25px;
    margin-top: 20px;
    font-weight: 600;
}

.icons .fa{
    color: #198093;
    margin: 0 13px;
    cursor: pointer;
    padding: 18px 0;
}
.fa-heart-o{
    color: #198093;
}


/*--------------- About Us Page --------------*/

.sub-header {
    height: 60vh;
    width: 100%;
    background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)), url(images/ministrybg.jpg);
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #fff;
}

.sub-header h1 {
    margin-top: 100px;
}

.about-us {
    width: 80%;
    margin: auto;
    padding-top: 80px;
    padding-bottom: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px; /* Adjust the gap to make text and image closer */
}

.scheduler {
    background-image:
    linear-gradient(to bottom, rgba(21, 30, 83, 0.52), rgba(14, 9, 43, 0.73)),
    url('images/childdedication.webp');
    background-size: cover;
    background-repeat:no-repeat;
    background-position: center center;
    height: 100%;
    color: white;
}

.scheduler1 {
    background-image:
    linear-gradient(to bottom, rgba(21, 30, 83, 0.52), rgba(14, 9, 43, 0.73)),
    url('images/dedicationservices.webp');
    background-size: cover;
    background-repeat:no-repeat;
    height: 100%;
    color: white;
}

.sched-card{
    --bs-border-color: #dee2e6 !important;
    --bs-card-border-color:  #dee2e600 !important;
}

.about-col {
    flex-basis: 45%; /* Increase this to make the image larger */
    padding: 50px;
    box-sizing: border-box; /* Ensure padding is included in width calculation */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about-col h1 {
    padding-top: 0;
    text-align: center; /* Center align the text */
}

.about-col p {
    padding: 15px 0 25px;
    text-align: center; /* Center align the text */
}

.hero-btn.red-btn {
    border: 1px solid #198093;
    background: transparent;
    color: #198093;
    text-align: center; /* Center align the button */
}

.hero-btn.red-btn:hover {
    border: 1px solid #198093;
    background: #198093;
    color: #fff;
}

.hero-btn.red-btn::after {
    background: #198093;
}

.hero-btn.red-btn::before {
    background: #198093;
}

.content-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* Ensure the container has a fixed height */
}

/* Image Styles */
.about-col img {
    width: 570px; /* Fixed width for the image */
    height: 340px; /* Fixed height for the image */
    object-fit: cover; /* Ensures the image covers the area without distortion */
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Adjust layout for tablets */
    .about-us {
        flex-direction: column;
        gap: 20px; /* Reduce the gap for smaller screens */
    }

    .about-col {
        flex-basis: 100%; /* Make the text column take full width */
        padding: 10px;
    }

    .about-col h1 {
        font-size: 1.8rem;
    }

    .about-col p {
        font-size: 0.9rem;
    }

    .about-col img {
        width: 100%; /* Make the image responsive */
        height: auto; /* Maintain aspect ratio */
    }

    .hero-btn.red-btn {
        font-size: 0.9rem; /* Adjust button size for smaller screens */
    }
}

@media (max-width: 576px) {
    /* Adjust layout for mobile */
    .about-us {
        padding-top: 60px;
    }

    .about-col h1 {
        font-size: 1.5rem;
    }

    .about-col p {
        font-size: 0.85rem;
    }

    .about-col img {
        width: 100%; /* Make the image responsive */
        height: auto; /* Maintain aspect ratio */
    }

    .hero-btn.red-btn {
        font-size: 0.8rem; /* Adjust button size for mobile */
    }
}


/*---------- Blog Page -------------*/

.blog-content{
    width: 80%;
    margin: auto;
    padding: 60px 0;
}
.blog-left{
    flex-basis: 65%;
}
.blog-right{
    flex-basis: 32%;
}
.blog-left img{
    width: 100%;
}
.blog-left h2{
    color: #222;
    font-weight: 600;
    margin: 30px 0;
}
.blog-left p{
    color: #999;
    padding: 0;
}

.blog-right h3{
    background: #198093;
    color: #fff;
    padding: 7px 0;
    font-size: 16px;
    margin-bottom: 20px;
}
.blog-right div{
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #555;
    padding: 8px;
    box-sizing: border-box;
}

.comment-box{
    border: 1px solid #ccc;
    margin: 50px 0;
    padding: 10px 20px;
}

.comment-box h3{
    text-align: left;
}
.comment-form input, .comment-form textarea{
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    box-sizing: border-box;
    border: none;
    outline: none;
    background: #f0f0f0;
}
.comment-form button{
    margin: 10px 0;
}


@media (max-width:700px){
    .sub-header h1{
        font-size: 24px !important;
    }
} 


/*------- Contact Us Page ------------*/

.location{
    width: 80%;
    margin: auto;
    padding: 80px 0;
}
.location iframe{
    width: 100%;
}

.contact-us{
    width: 100%; /* Full width of the viewport */
    max-width: 80%; /* Optional: limit the maximum width */
    margin: auto; /* Center the section horizontally */
    padding: 50px 20px; /* Top/Bottom: 50px, Left/Right: 20px */
    background-color: #124559;
    box-sizing: border-box; /* Ensures padding is included in the total width */
}

.contact-us-s{
    width: 100%; /* Full width of the viewport */
    max-width: 80%; /* Optional: limit the maximum width */
    margin: auto; /* Center the section horizontally */
    padding: 50px 20px; /* Top/Bottom: 50px, Left/Right: 20px */
    background-color: #ffffff;
    box-sizing: border-box; /* Ensures padding is included in the total width */
}
.contact-col .contact{
    flex-basis: 48%;
    margin-bottom: 30px;
}

.contact{
    flex-basis: 48% !important;
    margin-bottom: 30px !important;
}


.contact-col div{
    align-items: center;
}

.contact-col div .fa{
    font-size: 28px;
    color: #ddd;
    margin: 10px;
    margin-right: 30px;
}
    
.contact-col div p{
    padding: 0;
}
.contact-col div h5{
    font-size: 20px;
    margin-bottom: 5px;
    color: #ccc;
    font-weight: 400;
    
}
.contact-col input, .contact-col textarea, .contact-col select{
    width: 100%;
    padding: 15px;
    margin-bottom: 17px;
    outline: none;
    border: 1px solid #ccc;
}



.footer-link{
    text-decoration: none;
    color: #777;
}



/*-------------- ministry2 ----------------*/

.ministry2 {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}

.ministry2 .row {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two equal columns */
    gap: 2%; /* Gap between columns and rows */
}

.ministry2-col {
    border-radius: 10px;
    text-align: left;
    flex-basis: 31%;
    background: #fff3f3;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: .5s;
}

.ministry2-col img {
    width: 100%;
    border-radius: 10px;
    
}

.ministry2-col p {
    padding: 0;
}

.ministry2-col h3 {
    margin-top: 16px;
    margin-bottom: 15px;
    text-align: left;
}

.ministry2-col:hover{
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.2);
}

