@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root{
    --themeRed: #e43a47;
    --gray: #efefef;
}
button,body{
 font-family: "poppins",sans-serif;   
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

p{
    font-size: 14px;
    line-height: 26px;
}

.maincontainer {
    width: 100%;
}

.container{
    width: 1140px;
    margin: auto;
}

header{
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    position: fixed;
    z-index: 2;
}
img{
    height: 100px;
    width: 150px;
}
header .container{
    display: flex;
    justify-content: space-between;
}

/* header .container .logo{ */
    /* padding: 15px 0; */
    /* height: 75px; */
/* } */
/* header .container .logo img{ */
    /* height: 100%; */
/* } */

header nav ul{
    list-style-type: none;
}

header nav ul li{
    display: inline-block;
}
header nav ul li a{
    display: inline-block;
    height: 75px;
    line-height: 75px;
    padding: 0 15px;
    text-decoration: none;
    text-transform: capitalize;
    font-size: 16px;
    color: white;
    transition: 0.3s;
}

header nav ul li a:hover{
    background-color: var(--themeRed);
}

.maincontainer{
    min-height: 100vh;
    width: 100%;
    background-image: url(banner.jpg);
    background-size: cover;
    background-attachment: fixed;
}

.maincontainer h1{
    margin-top: 230px;
    display: inline-block;
    font-size: 3.5rem;
    color: white;
    text-shadow: 0 0 2px #000;
    width: 50%;
    line-height: 4.2rem;
    font-weight: 200px;
}
.maincontainer h1 span{
    background-color: var(--themeRed);
    display: inline-block;
    line-height: 3.5rem;
    padding: 0 15px;
    font-weight: 600;
    border-radius: 5px;
}
.maincontainer p{
    color:white;
    width: 50%;
    text-shadow: 0 0 2px #000;
    margin-top: 10px;
}
.maincontainer button{
    background-color: var(--themeRed);
    color: white;
    border: 0;
    outline: none;
    padding: 10px 15px;
    margin-top: 20px;
    font-size: 13px;
    border-radius: 5px;
    font-weight: 600;
}
.maincontainer p span{
    font-size: 1rem;
    font-weight: bold;
    background-color: var(--themeRed);
    display: inline-block;
}

.sectiontitle{
    width: 300px;
    border-bottom: 3px solid var(--themeRed);
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 50px;
    position: relative;
    padding: 10px 0;
    text-transform: uppercase;
}
.sectiontitle::after{
    display: inline-block;
    content: "";
    height: 15px;
    width: 15px;
    background-color: var(--themeRed);
    position: absolute;
    left: calc(50% - 10px);
    top: calc(75% - 7px);
    transform: rotate(45deg) translate(50%, 50%);
    border:3px solid #fff;
}
section{
    padding: 100px 0;
    position: relative;
}
.card {
    width: 355px;
    border: 2px solid black;
    border-radius: 25px;
    padding: 10px;
    margin: 10px;
    display: inline-block;
}

.card img {
    margin-left: 90px;
    width: 50%;
    border-radius: 25px;
}

#team{
    display: flex;
    justify-content: space-evenly;

}

.card span{
    font-weight: bold;
}

 /* about us */
 .tab-titles{
    display: flex;
    margin: 20px 0 40px;
}
.tab-links{
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}
.tab-links::after{
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}
.tab-links.active-link::after{
    width: 50%;
}

.tab-contents ul li{
    list-style: none;
    margin: 10px 0;    
}

.tab-contents ul li span{
    color: #ff004f;
    font-size: 14px;
}
.tab-contents{
    display: none;
}
.tab-contents.active-tab{
    display: block;
}

/* impact start here */
.achievements {
    background-color: #ffffff;
    padding: 50px 30px;
    border-radius: 10px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.achievements h2 {
    color: #333;
    margin-bottom: 30px;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.stat {
    flex: 1;
    min-width: 150px;
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 2.5rem;
    color: #ff6347;
    display: block;
    margin-bottom: 10px;
}

.stat p {
    font-size: 1.2rem;
    color: #555;
}

/* program starts here */
.programs{
    background-color: var(--gray);
}
.programs .boxcontainer{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-gap: 50px;
}

.programs .boxcontainer .box{
    background-color: #fff;
    text-align: center;
    padding-bottom: 25px;
    border-radius: 5px;
    box-shadow: 0 0 3px 0 #c5c5c5;
    position: relative;
    margin-bottom: 15px;
}
.programs .boxcontainer .box .cardimage{
    width: 100%;
    height: 300px;
    background-position: center;
    background-size: cover;
    position: relative;
    overflow: hidden;
    border-radius: 5px 5px 0 0;
}

.programs .boxcontainer .box .cardimage:after{
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    filter: grayscale(100%);
    transition: 0.4s;
}

.programs .boxcontainer .box:nth-child(1) .cardimage, 
.programs .boxcontainer .box:nth-child(1) .cardimage:after{
    background-image: url(programs/1.jpg);
}

.programs .boxcontainer .box:nth-child(2) .cardimage, 
.programs .boxcontainer .box:nth-child(2) .cardimage:after{
    background-image: url(children.jpg);
}


.programs .boxcontainer .box:nth-child(3) .cardimage, 
.programs .boxcontainer .box:nth-child(3) .cardimage:after{
    background-image: url(programs/3.jpg);
}


.programs .boxcontainer .box:nth-child(4) .cardimage, 
.programs .boxcontainer .box:nth-child(4) .cardimage:after{
    background-image: url(programs/4.jpg);
}

.programs .boxcontainer .box:hover .cardimage:after{
    top: 100%;
}

.programs .boxcontainer .box .programtitle{
    font-size: 16px;
    margin-top: 15px;
    font-weight: 600;
    color: #444;
}

.programs .boxcontainer .box .donationCount{
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-top: 10px;
}

.programs .boxcontainer .box .donationCount span{
    color: var(--themeRed);
}
.programs .boxcontainer .box button{
    background-color: var(--themeRed);
    color: #fff;
    position: absolute;
    left: 50%;
    border-radius: 60px;
    bottom: -15px;
    transform: translate(-50%);
    padding: 7px 15px;
    border: 0;
    outline: none;
    cursor: pointer;
}

/* education starts here */

.education{
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.education .videoplayer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
}

.education .sectiontitle{
    color: #fff;
    text-shadow: 0 0 4px #000;
}

.education .educationcontainer{
    position: absolute;
    background-color: #00000096;
    width: 600px;
    top: 35vh;
    color: #fff;
    text-shadow: 0 0 3px #000;
    padding: 30px;
}

.education .educationcontainer h3{
    font-size: 35px;
    font-weight: 300;
}

.education .educationcontainer p{
    font-size: 15px;
    line-height: 20px;
    margin: 10px 0 30px;
}

.education .educationcontainer button{
    background-color: var(--themeRed);
    border: 0;
    color: #fff;
    padding: 10px 25px;
    font-weight: bold;
    font-size: 14px;
    outline: none;
}

/* education end here */

/* gallery starts here */
.gallery .gallerycontainer{
    column-count: 4;
    column-gap: 20px;
}

.gallery .gallerycontainer .item{
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
}

.gallery .gallerycontainer img{
    width: 100%;
    display: block;
    transition: 0.5s;
}

.gallery .gallerycontainer .title{
    position: absolute;
    background-color: var(--gray);
    padding: 5px;
    margin: 5px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: bold;
    opacity: 0;
    z-index: 1;
    transition: 0.5s;
}

.gallery .gallerycontainer .item:hover .title{
    opacity: 1;
}

.gallery .gallerycontainer .item:hover img{
    transform: scale(1.2);
}

/* gallery ends here */

/* join us starts here */

.join{
    background-image: url(pattern.jpg);
    color: #fff;
    display: cover;
}

.join .container{
    padding-left: 15px;
    padding-right: 15px;
}

.join .jointitle{
    font-size: 40px;
    font-weight: 100;
}

.join .jointitle span{
    font-weight: 800;
}

.join button{
    padding: 7px 15px;
    margin-top: 20px;
    border: 0;
    outline: none;
    font-weight: 600;
    font-size: 16px;
}

.join .joinnow{
    margin-right: 10px;
    background-color: #424242;
    color: #fff;
}

.join.adoptbtn{
    background-color: var(--gray);
}

/* join ends here  */

/* footer start from here  */

footer{
    background-color: #181818;
    color: #7f7f7f;
    padding: 50px 0;
    font-size: 14px;
}

footer .container{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 50px;
}

footer .title{
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 2px solid;
    margin-bottom: 30px;
    padding: 0 0 5px 0;
}

footer p{
    margin-bottom: 10px;
}

footer .linkscontainer ul {
    list-style-type: none;
}

footer .linkscontainer ul li a{
    text-decoration: none;
    color: #7f7f7f;
    margin-bottom: 10px;
    display: inline-block;
}

footer .newslettercontainer img{
    height: 60px;
    margin-bottom: 11px;
}

footer .newslettercontainer input{
    background-color: transparent;
    border: 1px solid #7f7f7f;
    outline: none;
    padding: 10px 15px;
    width: 100%;
    margin-top: 10px;
    color: #ccc;
    border-radius: 30px;
}
/* footer ends here  */

/* responsive code start here */
@media screen and (max-width:1140px){
    .container{
        width: 100%;
        padding: 0 15px;
    }
    .education .videoplayer{
        width: 1280px;
    }
}

@media screen and (max-width: 1080px){
    .banner h1{
        margin-top: 200px;
    }
    #aboutsection .cards{
        justify-content: space-around;
        height: auto;
    }
    #aboutsection .cards > div{
        margin: 10px 0;
    }
}

@media screen and (max-width:1024px){
    .banner{
        background-position-x: 45%;
    }
    .banner h1{
        font-size: 2.5rem;
    }

    .programs .boxcontainer{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width:768px){
    header nav{
        position: relative;
        border: 2px solid #fff;
        height: 30px;
        width: 30px;
        margin-top: 20px;
        border-radius: 5px;
    }
    header nav:after{
        top: 17px;
    }

    header nav:before{
        top: 7px;
    }

    header nav:after,header nav :before{
        content:"";
        height: 2px;
        width: 17px;
        background-color: #fff;
        display: block;
        position: absolute;
        left: 5px;
    }

    header nav ul{
        position: absolute;
        right: -400px;
        top: 53px;
        transition: 0.5s;
    }

    header nav:hover ul{
        right: 0;
    }

    header nav ul li {
        display: block;
    }

    header nav ul li a {
        width: 300px;
        background-color: rgba(0, 0, 0, 0.6);
    }

    .banner{
        background-position-x: 65%;
    }

    .banner p{
        font-size: 14px;
    }

    .banner p, .banner h1{
        width: 70%;

    }

    #aboutsection .cards > div:hover {
        width: 350px;
    }

    .education .educationcontainer{
        width: 96%;
    }

    .education .educationcontainer h3{
        font-size: 30px ;
        line-height: 35px;
    }

    .education .educationcontainer p{
        margin: 10px 0 20px;
    }

    .gallery .gallerycontainer{
        column-count: 2;
    }
}

@media screen and (max-width: 425px){
    .banner h1{
        margin-top: 150px;
        font-size: 2rem;
        line-height: 3rem;
    }

    .banner button {
        margin-bottom: 10px;
    }

    #aboutsection p{
        text-align: justify;
    }

    #aboutsection .cards > div:hover {
        width: 400px;
        margin-top: 10px;
        padding: 35px;
    }

    .programs .boxcontainer{
        grid-template-columns: 1fr;
    }

    .education .videoplayer{
        width: 1400px;
    }

    .education .educationcontainer{
        width: 93%;
    }

    .gallery .gallerycontainer{
        column-count: 1;
    }

    footer .container{
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width:320px){
    .education ,.educationcontainer h3{
        font-size: 18px;
        line-height: 24px;
    }
    .banner h1{
        margin-top: 100px;
    }
}