@import url('https://fonts.googleapis.com/css2?family=KoHo:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

body {
    font-family: "KoHo", sans-serif;
    font-size: 14px;
    color: #202020;
}

html {
    scroll-behavior: smooth;
}

.c-primary {
    color: #FE1916;
}

button {
    background-color: #202020;
    color: #fff;
    padding: 8px 24px;
    border-radius: 5px;
    font-size: 14px;
    border: none;
    width: 122px;
}

h2 {
    font-weight: 600;
    font-size: 45px;
}

section {
    padding: 80px 0;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
}
header .navbar {
    border-bottom: 1px solid #E9E9E9;
}

header .nav-link {
    padding: 0.5rem 1rem !important;
    font-size: 14px;
    font-weight: bold;
}


#hero {
    background: url(../assets/bannerimg.png) no-repeat right;
    padding: 60px 0;

}

#hero h1 {
    font-weight: 600;
    font-size: 50px;
}


#hero .headingmask h1 {
    position: relative;
    z-index: 1000;
    color: white;
}

#hero .headingmask img {
    position: absolute;
    left: -35px;
    top: 0;
}

#hero p {
    font-weight: 400;
    font-size: 22px;
    margin: 30px 0 40px 0;
}

.overlay-container {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease-in-out;
    z-index: 0;
}

.overlay-container:hover::before {
    transform: scale(1.5);
}


.overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: 0.6;
}

.overlay-text {
    position: absolute;
    z-index: 1;
    color: #fff;
    font-weight: 600;
    font-size: 26px;
    text-align: center;
    bottom: 20px;
}

#info-cards .col-md-2:nth-child(1) .overlay-container::before {
    background-image: url('../assets/education-card-img.png');
}

#info-cards .col-md-2:nth-child(1) .overlay {
    background-color: #AA3E3E;
}

#info-cards .col-md-2:nth-child(2) .overlay-container::before {
    background-image: url('../assets/health-car-img.png');
}

#info-cards .col-md-2:nth-child(2) .overlay {
    background-color: #77811B;
}

#info-cards .col-md-2:nth-child(3) .overlay-container::before {
    background-image: url('../assets/community-card-img.png');
}

#info-cards .col-md-2:nth-child(3) .overlay {
    background-color: #9A6515;
}

#info-cards .col-md-2:nth-child(4) .overlay-container::before {
    background-image: url('../assets/environment-card-img.png');
}

#info-cards .col-md-2:nth-child(4) .overlay {
    background-color: #29797F;
}

#info-cards .col-md-2:nth-child(5) .overlay-container::before {
    background-image: url('../assets/youth-card-img.png');
}

#info-cards .col-md-2:nth-child(5) .overlay {
    background-color: #5278D1;
}

#info-cards .col-md-2:nth-child(6) .overlay-container::before {
    background-image: url('../assets/faith-card-img.png');
}

#info-cards .col-md-2:nth-child(6) .overlay {
    background-color: #7F40AC;
}

section p {
    font-weight: 400;
    font-size: 20px;
    line-height: 33px;
}

section#ourvision {
    background-color: #F8F8F8;
}

section#help,
section#ambulance {
    background-color: #AB110F;
}

section#help .helpbtns .col-sm-6>div {
    background-color: white;
    text-align: center;
    padding: 30px 0;
    border-radius: 5px;
    font-weight: 600;
    font-size: 24px;
}

#gallary .col-md-3:nth-child(1) .overlay-container::before {
    background-image: url('../assets/gallaryimg1.png');
}

#gallary .col-md-3:nth-child(1) .overlay {
    background-color: #AB5959;
}

#gallary .col-md-3:nth-child(2) .overlay-container::before {
    background-image: url('../assets/gallaryimg2.png');
}

#gallary .col-md-3:nth-child(2) .overlay {
    background-color: #6E9A42;
}

#gallary .col-md-3:nth-child(3) .overlay-container::before {
    background-image: url('../assets/gallaryimg3.png');
}

#gallary .col-md-3:nth-child(3) .overlay {
    background-color: #ACB047;
}

#gallary .col-md-3:nth-child(4) .overlay-container::before {
    background-image: url('../assets/gallaryimg4.png');
}

#gallary .col-md-3:nth-child(4) .overlay {
    background-color: #6E9A42;
}

#gallary .col-md-3:nth-child(5) .overlay-container::before {
    background-image: url('../assets/gallaryimg5.png');
}

#gallary .col-md-3:nth-child(5) .overlay {
    background-color: #DA60ED;
}

#gallary .col-md-3:nth-child(6) .overlay-container::before {
    background-image: url('../assets/gallaryimg6.png');
}

#gallary .col-md-3:nth-child(6) .overlay {
    background-color: #9F553D;
}

#gallary .col-md-3:nth-child(7) .overlay-container::before {
    background-image: url('../assets/gallaryimg7.png');
}

#gallary .col-md-3:nth-child(7) .overlay {
    background-color: #A17FE4;
}

#gallary .col-md-3:nth-child(8) .overlay-container::before {
    background-image: url('../assets/gallaryimg8.png');
}

#gallary .col-md-3:nth-child(8) .overlay {
    background-color: #6975E0;
}

#member .info {
    border-left: 3px solid #FC1916;
}

#member .info p {
    font-weight: 400;
    font-size: 25px;
    color: #000;
    margin: 0;
    padding-top: 12px;
}

#member .info h3 {
    font-weight: 600;
    font-size: 35px;
    color: #000;
    margin: 12px 0;
}

#member .info h4 {
    font-weight: 400;
    font-size: 30px;
}

footer .container-fluid {
    padding-top: 60px;
    padding-bottom: 20px;
}

footer .container-fluid p {
    color: #fff;
    font-weight: 400;
    font-size: 16px;
    margin: 0;
}

footer .container-fluid a {
    color: #fff;
    font-weight: 400;
    font-size: 16px;
    padding: 18px 0;
    display: inline-block;
    text-decoration: none;
}

footer h4 {
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 18px;
}

footer ul li {
    color: #fff;
}

footer ul li+li {
    padding-top: 18px;
}

footer .socialicons a {
    background-color: #3D3D3D;
    width: 50px;
    height: 50px;
    text-align: center;
    padding: 12px 0;
    border-radius: 50%;
    transition: background-color 0.3s ease, background 0.3s ease;
}

/* Facebook Hover */
footer .socialicons a.facebook:hover {
    background-color: #1877F2;
}

/* Instagram Hover */
footer .socialicons a.instagram:hover {
    background: linear-gradient(45deg, #833AB4, #FD1D1D, #FCAF45);
}

/* YouTube Hover */
footer .socialicons a.youtube:hover {
    background-color: #FF0000;
}

footer .copyright {
    background-color: #424242;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}



/* gallery image style */
.img-wrapper {  
  width: 100%;
  height: 100%;
  overflow: hidden; 
}

.inner-img {
  transition: 0.5s;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.inner-img:hover {
  transform: scale(1.5);
}




@media screen and (max-width: 1200px) {
    header .nav-link {
        padding: 0.5rem !important;
    }
}

@media screen and (max-width: 1100px) {
    #member .info h3 {
        font-size: 24px;
    }

    #member .info h4 {
        font-size: 20px;
    }

    #member .info p {
        font-size: 18px;
    }

    .navbar-toggler {
        width: auto;
    }

    p {
        font-size: 16px !important;
        line-height: 24px !important;
    }
}

@media screen and (max-width: 991px) {

    #hero p,
    #hero h1 {
        color: #fff;
    }

    footer .border-end {
        border: none !important;
    }
}

@media screen and (max-width: 510px) {
    #hero .headingmask h1 {
        font-size: 35px;
        text-align: center;
    }

    #hero .headingmask img {
        left: 0;
    }

    #hero h1 {
        font-size: 40px;
        text-align: center;
    }

    .overlay-text {
        font-size: 1.5rem !important;
        bottom: auto;
    }

    #ambulance h2 {
        font-size: 2.3rem;
    }
}