
/* Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins&family=Raleway:wght@500&display=swap');

/* Variable declarations */
:root {
    --Primary :  #0ea76a ;
    --Secondary : #05598e; 
}

.fa-bars {
    color: #004c00;
}

::selection {
    background-color:var(--Primary);
    color: #ffffff;
}

*{
    margin: 0;
    padding: 0 ;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

li {
    list-style-type: none;
}

a{
    text-decoration: none;
}

img{
    width: 100%;
    height: 100%;
}

/*common style */
.btn {
    color: white;
    display: inline-block;
    background-color: var(--Primary);
    padding: 8px 15px;
    transition: 200ms;
}

.btn:hover {
    transform: translateY(8px);
}

.flex-design {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content {
    max-width: 1020px;
    margin-left: auto;
    margin-right: auto;
}

.mb {
    margin-bottom: 3rem;
}

.mt {
    margin-top: 2rem;
}
.heading {
    text-align: center;
    margin-bottom: 2rem;
}

span {
    color: #717171bd;
}

/* header style */

header {
    min-height: 100vh;
    background-image:url(https://images.pexels.com/photos/305821/pexels-photo-305821.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1);
    background-size: cover;
    background-position: left;
    position: relative;
    
    background-repeat: no-repeat;
    transition: 2s;

    animation-name: animate;
    animation-direction: alternate-reverse;
    animation-duration: 30s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-play-state: running;
    animation-timing-function: ease-in-out;

}

@keyframes animate {
    0%{
        background-image: url(https://images.pexels.com/photos/509922/pexels-photo-509922.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1);
    }

    25%{
        background-image: url(https://images.pexels.com/photos/1084510/pexels-photo-1084510.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1);
    }

    50% {
        background-image: url(https://images.pexels.com/photos/5978608/pexels-photo-5978608.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1);
    }

    100%{
        background-image: url(https://images.pexels.com/photos/305821/pexels-photo-305821.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1);
    }

}

.header-content {
    width: 95%;
    margin: auto;
    height: 12vh;
} 


.logo{
    height: 180px;
}

.nav-links {
    width: 60%;
    color: rgb(0, 0, 0);
}

.nav-links a {
    color: black;
}

.nav-links li::after {
    content: "";
    display: block;
    background-color: var(--Primary);
    height: 2px;
    transform: scaleX(0);
    transition: transform 300ms;
}

.nav-links li:hover::after {
    transform: scaleX(1);
}

.burger {
    display: none; 
    cursor: pointer;
}

.text-center    {
    color: rgb(0, 0, 0);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
    transition: all 300ms;
}  

.text-center p {
    font-size: 25px;
    
}
.text-center h1{
    margin: 1.2rem 0; 
    font-size: 50px;
    margin-top: 0px;
}


/* WWA style */
.wwa-box {
    background-color: var(--Primary);
    padding: 20px;
    margin-left: 10px;
    text-align: center;
    color: white;
}

.wwa-box h3 {
    margin-bottom: 5px;
}

.wwa-box:first-child {
    margin-left: 0px;
}

.wwa-box:hover {
    box-shadow: 3px 5px 11px 0px black;
}

/* course style */
.course_img {
    position: relative;
}

.course_img img {
    display: block;
}

.course_img::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    transform: scale(0,1);
    transform-origin: right;
    transition: transform 300ms;
    background-color: rgba(0, 0, 0, 0.699);
}

.course:hover .course_img::after {
    transform: scale(1);
    transform-origin: left;
}

.course {
    position: relative;
}

.course_content {
    position: absolute;
    top: 80%;
    left: 50%;
    opacity: 0;
    transform: translate(-50%,-50%);
    text-align: center;
    color: white;
    font-size: 1.5rem;
    transition: top 300ms, opacity 350ms;
    transition-delay: 200ms;
}

.course:hover .course_content {
    top: 50%;
    opacity: 1;
}

.course-content {
    display: grid;
    gap:5px ;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
}

/* facilities style */
.fac {
    background-color: var(--Primary);
    margin-bottom: 10px;
    position: relative;
}

.fac-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.fac-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: white;
    text-align: justify;
    z-index: -1;
    transition: z-index 700ms ;
    font-size: medium;
}

.fac-text h3{
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.fac-text p{
    font-size: small;
}

.fac-image img {
    display: block;
}

.fac-image {
    position: relative;
    left: 20px;
    padding:20px 0;
    transition: left 800ms ;
}

.fac:hover .fac-image {
    left: 80%;
    transition: left 300ms , opacity 800ms;
}

.fac:hover  .fac-image>img {
    box-shadow: 30px 0px 100px 3px black;
}

.fac:hover .fac-text {
    z-index: 1;
    transition: z-index 700ms ;
}

/*Card Styles*/
.swiper {
    width: 100%;
}

.swiper-wrapper {
    width: 100%;
    height: 30em;
    display: flex;
    align-items: center;
}

.swiper-slide:not(.swiper-slide-active) {
    filter: blur(0.3px);
}

.card {
    width: 20em;    
    height: 85%;    
    background-color: #ffffff;
    border-radius: 2em;
    box-shadow: 0 0 2em rgb(0, 0, 0,.2);
    padding: 2em 1em;

    display: flex;
    align-items: center;
    flex-direction: column;

    margin: 0 2em;
}

.card-image {
    width: 10em;
    height: 10em;
    border-radius: 50%;
    border: 4px solid var(--Primary);
    padding: 2px;
    margin-bottom: .5em;
}

.card-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.card-content {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    top: .1em;
}

.card-name {
    color: var(--Secondary);
}

.card-text {
    text-align: center;
    font-size: 0.9rem;
    margin: 1em 0;
}

.card-btn {
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: .7em;
    margin-top: .3em;
    cursor: pointer;
}

/* footer style */
/*.footer-logo {  
    height: 170px;
    width: 160px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-logo img {
    border-radius: 90%;
} */

.container {
    position: relative;
    height: 170px;
    width: 160px;
}

.f-image {
    opacity: 1;
    display: block;
    transition: .5s ease;
    backface-visibility: hidden;
    border-radius: 50%;
    object-fit: cover;
}

.middle {
    transition: .5s ease;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, 50%);
    text-align: center;
}

.container:hover .f-image {
    opacity: 0.3;
}

.container:hover .middle {
    opacity: 1;
}

.text {
    background-color: white;
    color: #000000;
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 10%;
}

.footer-top {
    background-color:  rgba(0, 0, 0, 0.895);
    padding: 30px;
    color: white;
    font-size:small;
}

.footer-links a {
    color: white;
}

.footer-links h2 {
    color: white;
    padding: 10px;
    margin-left: -12px;
   
}

.footer-links li::after {
    content: "";
    display: block;
    background-color: rgb(255, 255, 255);
    height: 2px;
    transform: scaleX(0);
    transition: transform 400ms;
}

.footer-links li:hover::after {
    transform: scaleX(1);
}

.footer-bottom {
    background-color: rgb(21, 21, 21);
    color: white;
    text-align: center;
    padding: 10px;
    font-size: small;
}

.footer-ab {
    text-align: center;
}

.footer-ab i{
    color: white;
    padding-top: 8px;
    margin-right: 1rem;
}

/*Team*/

.swiper-text-about {
    text-align: justify;
    font-size: medium;
    font-weight: 300;
   
}  
.swiper-text {
    padding: 30px;
    color: rgb(0, 0, 0);
    font-size:small;
    background-color: rgb(235, 244, 235);
}

.swiper-text-heading {
    text-decoration: none;
}

.swiper-text-heading:hover {
    text-decoration: underline;
}

.join-now-content {
    align-items: center;
    text-align: center;
    padding: 0px;
}

.join-now-btn {
    margin-top: 15px;
}

/*Our Tutor Page*/


/*Media quaries*/
@media only screen and (max-width:998px) {
    .wwa-content {
        flex-direction: column;
    }
    .wwa-box {
        margin-left: 0px;
        margin-top: 10px;
    }
    .wwa-box:first-child {
        margin-top: 0px;
    }
}


@media only screen and (max-width:854px) {
    .fac:hover .fac-image {
        opacity: 0;
    }
}

@media only screen and (max-width:854px) {
    .text-center {
        width: 100%;
    }
}

@media only screen and (max-width:780px) {
    .footer-top-container {
        flex-direction: column;
    }
    .footer-links {
        margin-bottom: 1rem;
        text-align: center;
    }
    .footer-ab {
        text-align: center;
    }
    .footer-logo {
        margin-bottom: 1rem ;
        align-items: center;
    }
}

@media only screen and (max-width:600px) {
    .nav-links{
        /*display: none;*/
    position: absolute;
    flex-direction: column;
    background-color:rgb(235, 244, 235);
    right: -10rem;
    top: 12vh;
    height: 50vh;
    width: 0%;
    padding: 1.5rem 0;
    transition:all 300ms;
    }

    .text-center{
        text-align: center;
    }

    .burger {
    display: block;
    }
}

.nav-show {
    width: 100%;
    right: 0px;
}

.textareahide {
    left: -18rem;
}

