/* Cmmon style start */


@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');


html{
    scroll-behavior: smooth;
}

body{
    font-family: "Poppins", sans-serif;
    
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

p{
    font-size: 14px;
    line-height: 26px;
}

.fullcontainer{
    width: 100%;
}

.container{
    
    max-width: 1140px;
    width: 100%;
    margin: auto;
    padding: 0 15px;

}


.sectiontitle{
    width: 300px;
    border-bottom: 3px solid rgb(240, 123, 123);
    text-align: center;
    font-size: 2rem;
    font-weight: 200;
    margin: 0 auto 50px;
    position: relative;
    padding: 10px 0;
    text-transform: uppercase;
}

.sectiontitle::after{
    display: inline-block;
    content: "";
    height: 15px;
    width: 15px;
    background-color: rgb(240, 123, 123);
    position: absolute;
    left: calc(50% - 10px);
    top: calc(75% - 7px);
    transform: rotate(45deg) translate(50%, 50%);
    border: 3px solid rgb(247, 244, 244);
}

section{
    padding: 100px 0;
    position: relative;
     padding-top: 50px; /* optional: adds spacing between sections */
}
/* common style end */

/* Home style starts*/

header{
    width: 100%;
    height: auto;
    background-color: rgba(0, 0, 0, 0.6);
    position: fixed;
    z-index: 2;
    
}

header .container{
    display: flex;
    justify-content: space-between;
}

header.container .logo {
    padding: 15px 0;
    height: 75px;
}

header .container .logo img{
    height: 50px;   /* control size */
    width: auto;
}

header nav ul{
    list-style-type: none;
}

header nav ul li{
    display: inline;
}

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: rgb(252, 253, 253);
    transition: 0.3s;
}

header nav ul li a:hover{
    background-color: rgb(240, 123, 123);
}

.banner{
    min-height: 100vh;
    background: url('../images/womanbg.jpg');
    width: 100%;
    background-size: cover;
    background-attachment: fixed;
}

.banner h1{
    margin-top: 230px;
    display: inline-block;
    font-size: 3.5rem;
    color: rgb(245, 247, 248);
    text-shadow: 0 0 2px rgb(0, 0, 0);
    line-height: 4.2rem;
    font-weight: 600;
}

.banner h1 span{
    background-color: rgb(240, 123, 123);
    display: inline;
    line-height: 3.5rem;
    padding: 0 15px;
    font-weight: 600;
    border-radius: 5px;
}


.banner p{
    color: rgb(250, 250, 250);
    
    text-shadow: 0 0 2px rgb(2, 2, 2);
    margin-top: 10px;
    width: 100%;
    max-width: 600px;
}

.banner button{
    background-color: rgb(240, 123, 123);
    border: 0;
    outline: none;
    color: wheat;
    padding: 10px 15px;
    margin-top: 20px;
    font-size: 13px;
    border-radius: 3px;
    font-weight: 600;

}
/* Home style end */



/* About style start */

#aboutsection .cards{
    display: flex;
    flex-wrap: wrap;
    margin-top: 50px;
    position: relative;
    height: 245px;  
    gap: 20px;
}

#aboutsection .cards >div{
    width: 350px;
    background-color: rgb(241, 232, 232);
    padding: 35px;
    color: black;
    text-align: center;
    border-radius: 15px;
    height: 270px;
    border: 1px solid rgb(202, 185, 185);
}

#aboutsection .cards >div:hover{
    width: 370px;
    margin-top: -20px;
    border-color: rgb(226, 130, 130);
    padding: 55px;
    height: auto;
    transition: 0.5s;
}

#aboutsection .cards >div .title{
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
}

#aboutsection .cards >div p{
    font-size: 14px;
    margin-top: 15px;
}


/* About style end */


/* Programs style start */

/*.programs{
    background-color: rgb(213, 214, 216);
}

.programs .boxcontainer{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 50px;
}

.programs .boxcontainer .box{
    background-color: rgb(199, 203, 206);
    text-align: center;
    padding-bottom: 25px;
    border-radius: 5px;
    box-shadow: 0 0 3px 0 rgb(155, 154, 154);
    position: relative;
    margin-bottom: 15px;
}

.programs .boxcontainer .box .cardimage{
    width: 100%;
    height: 300px;
    background-position: ;
    background-size: ;
    position: relative;
    overflow: hidden;
    border-radius: 5px 5px 0 0;
}

.programs .boxcontainer .box .cardimage:after{
    width: 100%;
    height: 100%;
    background-position: ;
    background-size: ;
    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: url("../images/web5.jpeg");
}*/

/* Programs style end */



/* blog starts style end */

.blog{
    background-color: rgb(213, 214, 216);

}

.blog .blogcontainer .block{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    /*grid-template-columns: repeat(4, 1fr);
    grid-gap: 50px;*/
}

.blog .blockcontainer .block{
    background-color: rgb(199, 203, 206);
    text-align: center;
    padding-bottom: 25px;
    border-radius: 5px;
    box-shadow: 0 0 3px 0 rgb(155, 154, 154);
    position: relative;
    margin-bottom: 15px;
}

.blog .blogcontainer .block .cardimage{
    background: url("../images/web5.jpeg");
}

.block img {
    width: 100%;
    height: 70%;
    border-radius: 8px;
}

.blog .blogcontainer .blogtext{
    text-align: center;
}

/* blog starts style end */


/* join us starts style end */

.join{
    background: url("../images/Rectangle 1.jpg");
    color: rgb(255, 255, 255);
}

.join .jointitle{
    font-size: 40px;
    font-weight: 200;
   
}

.join .jointitle span{
     background-color: rgba(0, 0, 0, 0.6);
    padding: 7px;
}

.join button{
    padding: 7px 15px;
    margin-top: 20px;
    border: 0;
    outline: none;
    font-weight: 600;
    font-size: 16px;
}


/* join us style end */

/* footer style starts */

footer{
    background: rgb(43, 42, 42);
    color: rgb(159, 161, 161);
    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: rgb(159, 161, 161);
    margin-bottom: 10px;
    display: inline;
}

footer .newslettercontainer img{
    height: 40px;
    margin-bottom: 11px;

}

footer .newslettercontainer input{
    background-color: transparent;
    border: 1px solid rgb(159, 161, 161);
    outline: none;
    padding: 10px 15px;
    width: 100%;
    margin-top: 10px;
    border-radius: 30px;
}

/* footer style end */


.join .container .first{
    background-color: rgb(252, 251, 251);
    border: 1px solid rgb(252, 251, 251);
    color: black;
    outline: none;
    padding: 10px 15px;
    width: 50%;
    border-radius: 10px;
}

.join .container .second{
    background-color: rgb(252, 251, 251);
    color: black;
    border: 1px solid rgb(252, 251, 251);
    outline: none;
    padding: 10px 15px;
    width: 50%;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
}

.join .container textarea{
    border: 1px solid rgb(252, 251, 251);
    outline: none;
    
}

.topbox {
    height: 180px;      /* adjust as needed */
    width: 50%;
    padding: 12px;
    font-family: inherit;
    font-size: 16px;
    resize: vertical;  /* allow user to resize up/down */
}

.linkscontainer li a i {
    font-size: 24px;
}

.linkscontainer li a {
    margin-right: 12px;
    display: inline-block;
}

/* responsive coding starts here */

@media screen and (max-width: 768px) {
    .container{
        width: 100%;
        padding: 0 15px;
    }
}

@media screen and (max-width: 1080px){
    .banner h1{
        margin-top: 200px;
    }

    #aboutsection .cards{
        display: flex;
        flex-direction: column; /* Stacks cards vertically */
        align-items: center;
        height: auto; /* Ensures container grows with the cards */
    }
    #aboutsection .cards > div{
        width: 100%; /* Makes cards full width on phone */
        height: auto; /* Allows text to wrap without cutting off */
        margin-top: 0;
    }
    #aboutsection .cards > div:hover {
        width: 100% !important; 
        margin-top: 0 !important;
        padding: 35px !important;
    }
    
    }

    

/* phone responsive*/
@media screen and (max-width: 768px) {

    .banner h1 {
        font-size: 2rem;
        line-height: 2.5rem;
        margin-top: 150px;
    }

    .sectiontitle {
        font-size: 1.5rem;
        width: auto;
    }

    footer .container {
        grid-template-columns: 1fr;
    }
#aboutsection .cards{
        flex-direction: column;
        align-items: center;
        height: auto;
    }

    #aboutsection .cards > div{
        width: 100%;
        height: auto;
    }

    #aboutsection .cards > div:hover{
        width: 100% !important;
        margin-top: 0 !important;
        padding: 35px !important;
    }
}



/* responsive coding ends here */

/* Menu toggle starts */


.menu-toggle {
    display: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 20px;
    margin-left: auto;
}

@media screen and (max-width: 768px) {

   header .container {
        display: flex;
        flex-direction: row; /* keep it horizontal */
        justify-content: space-between;
        align-items: center;
   }

       nav {
        position: absolute;   /* 🔥 key fix */
        top: 75px;            /* height of header */
        left: 0;
        width: 100%;
        display: none;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1;
    }

    nav.active {
        display: block;
    }

    nav ul {
        width: 100%;
    }

    nav ul li a {
        display: block;
        width: 100%;
        padding: 15px;
        color: white;
        background: transparent;
    }

        .menu-toggle {
            display: block;
        }

        nav.active {
            display: block;
        }
}