:root {
    --primary-color: #00245F;
    --accent1: rgba(140, 180, 249, 0.13);
    --accent2: #C32114;

    --text-color: #333333;

    --offcanvas-width:70%;
}

section{
    scroll-margin-top: 76px;
}
section:not(#cta,#cta2,.footer-content,.hero,.benefits) {
    padding-block: 4rem;
}


body {
    font-size: 13px;
    font-family: "Inter", sans-serif;
    color: var(--text-color);
    position: relative;
}

h1, .h1
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6{
    font-family: "Poppins", sans-serif;
}

h3 {
    font-size: 20px;
}

h5 {
    font-size: 18px;
}

.btn-outline-primary{
    color: var(--primary-color);
    border-color: var(--primary-color) !important;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus-visible,
.btn-outline-primary:hover,
.btn-outline-primary:active,
:not(.btn-check)+.btn:active {
    color: var(--text-color) !important;
    background-color: #FAFAFA;
    border-color: #FAFAFA !important;
}

.btn-outline-secondary{
    color: #FFFFFF;
    border-color: var(--accent2) !important;
}

.btn-secondary,
.btn-secondary:hover,
.btn-secondary:active,
.btn-outline-secondary:hover,
.btn-outline-secondary:active {
    color: #FAFAFA !important;
    background-color: var(--accent2) !important;
    border-color: var(--accent2) !important;
}

/* Nav bar */
nav{
    width: 85%;
    margin-inline: auto;
    padding-block: 1.5rem;
    transition: width 0.4s linear;
    background-color: #FAFAFA;
    /* box-shadow: 0 .5rem 1rem rgba(183, 183, 183, 0.15) !important; */
}

.navbar-nav--align-center{
    padding-inline: 6rem;
}

nav.sticky-top{
    top: 24px;
}

/* nav > ul a.nav-link{
    color: #ffffff;
}
nav > ul a.nav-link:focus, 
nav > ul a.nav-link:hover {
    color: #FFFFFF;
    font-weight: bold;
} */

.offcanvas.offcanvas-end{
    width:var(--offcanvas-width);
}

.btn-close{
    background: transparent url(/images/close-icon.svg) center / 1em auto no-repeat;
    background-size: 24px 24px;
    opacity: 1;
}

@media screen and (max-width: 576px) {
    body,
    .why-choose-us {
        font-size: 14px !important;
    }

    /* nav.sticky-top {
        width: 100% !important;
        top: 0 !important;
        border-radius: 0 !important;
        margin-top: 0;
    } */

    .hero{
        margin-top: 0 !important;
    }
}

@media screen and (min-width: 375px) {
    .offcanvas.offcanvas-end{
        width: 250px;
    }
}
.offcanvas-body .nav-link {
    padding-block: 0;
}

/* hero section */
.hero {
    margin-top: -5.3rem;
    /* background-color: var(--primary-color); */
    background-image: url(/images/bg-img-1.svg);
    background-position: 70%;
    background-size: cover;
    height: 100vh;
    gap:7rem;
}

.hero-child {
    width: 590px;
    color: #fff;
    margin-left: -12rem;
}

.hero-child h3{
    font-size: 3.2rem;
    line-height: 3rem;
}

.hero-cta img{
    width: 6.8rem;
    flex-grow: 1;
}

/************ About *************/

.about-content {
    width: 459px;
}

.about img {
    height: 409px;
    width: 563px;
    object-fit: cover;
    object-position: left;
}

/* Why Choose Us */
.why-choose-us {
    background-color: var(--accent1);
    padding-top: 8rem !important;
    clip-path: polygon(0 0, 100% 23%, 100% 100%, 0% 100%);
}

.why-choose-us__header{
    padding-left: 5.5rem;
}

.h3 {
    padding-top: 4rem;
}

/* .why-choose-us::before {
    content: '';
    height: 75px;
    background-color: var(--accent1);
    position: absolute;
    top: 2.2rem;
    right: 0;
    left: 0;
    transform: skewY(3deg);
    z-index: 3;
} */

.why-choose-us-content {
    background-color: white;
    width: 350px;
}

.step-icons {
    margin-top: -3.5rem;
}

/* Facilities */
.facilities{
    padding-left: 6.5rem;
    background-color: var(--accent1);
}

.facilities__header{
    width: 63.5rem;
    max-width: 63.5rem;
}

.facilities__wrapper::-webkit-scrollbar {
    width: 3px;
}

.facilities__wrapper::-webkit-scrollbar-thumb {
    -webkit-border-radius: 5px;
    background-color: var(--bg-primary);
}

.facility{
    min-width: 314px;
    width: 314px;
    max-width: 314px;
    height: 244px;
    max-height: 244px;
    border-radius: 1.3rem;
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
}
.facility--position-down{
    margin-top: 2rem;
}

.facility:first-of-type{
    background-image: url(/images/physics-lab.png);
}
.facility:nth-of-type(2){
    background-image: url(/images/computer-room.png);
}
.facility:nth-of-type(3){
    background-image: url(/images/library.png);
}
.facility:nth-of-type(4){
    background-image: url(/images/home-econs.svg);
}
.facility:nth-of-type(5){
    background-image: url(/images/biology-lab.svg);
}

/* Testimonials */
.testimonials{
    padding-top: 7rem!important;
}

.testimonial-content {
    width: 320px;
    background-color: #FAFAFA;
    padding: 1.2rem;
}

.testimonial-names {
    color: var(--primary-color);
}

/* C.T.A */

section#cta{
    padding-block: 6rem;
}
section#cta .cta{
    padding-block: 4rem;
    background-image: url(/images/cta-img-bg.png);
    background-size: cover;
    background-position: center 0;
    border-radius: 1.5rem;
    padding-inline: 2rem;
}

section#cta h3{
    font-size: 2.2rem;
}

section#cta2 {
    padding-block: 3rem;
}

.cta {
    background-color: var(--primary-color);
    width: 67%;
    margin: auto;
    padding-block: 3rem;
    border-radius: 1rem;
}

.cta a {
    background-color: var(--accent2) !important;
}

.cta-paragraph {
    width: 310px;
}

/* FAQ Section */
.faq-section{
    padding-top: 3rem!important;
    padding-inline: 1.3rem;
    padding-bottom: 5rem;
}

.accordion{
    width: 500px;
}

.accordion-button::after {
    width: var(--bs-accordion-btn-icon-width);
    height: var(--bs-accordion-btn-icon-width);
    background-image: url(/images/faq-icon-opn.svg);
    background-size: var(--bs-accordion-btn-icon-width);
}
.accordion-button:not(.collapsed)::after {
    background-image: url(/images/faq-icon-cl.svg);
}

@media (max-width: 570px) {
    .accordion{
        width: 100%;
    }

    .accordion-button{
        font-size: 14px;
    }
}

.accordion-button{
    font-weight: 600;
    color: var(--text-color);
    padding-left: .7rem!important;
    padding-right: .7rem!important;
}
.accordion-button:not(.collapsed){
    background-color: transparent;
    color: var(--primary-color);
}
.accordion-button:focus {
    border-color: black;
    box-shadow: none;
}

/* Footer Section */

.footer-section {
    background-color: var(--primary-color);
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.footer-img {
    width: 30px;
}




/********************* MOBILE RESPONSIVENESS *********************/
@media (min-width: 1441px) {
    .hero {
        max-width: 1320px;
        margin-inline: auto;
    }
}

@media screen and (min-height: 800px) {
    .hero {
        height: 800px;
        max-height: 800px;
    }
}

@media screen and (max-width: 991px) {
    .hero{
        background-position: 92%;
        background-color: transparent;
    }
    .hero-child{
        position: relative;
        margin-top: 7rem;
        margin-left: -7rem;
        z-index: 1;
    }

    .hero-child::before{
        position: absolute;
        content: "";
        top: -2rem;
        left: -2rem;
        width: calc(100% + 4rem);
        height: calc(100% + 4rem);
        /* background-color: var(--primary-color); */
        background-image: radial-gradient(circle, var(--primary-color), rgba(0, 0, 0, 0.128));
        opacity: .3;
        z-index: -1;
    }
    .hero-child h3 {
        font-size: 2.8rem;
        width: 90%;
    }

    .about{
        padding-top: 0!important;
    }

    @media screen and (max-width: 810px) {
        .hero-child{
            margin-left: -4rem;
        }
    }

    @media screen and (max-width: 730px) {
        .hero-child{
            margin-left: 0;
        }
    }

    @media screen and (max-width: 654px) {
        .hero-child::before{
            top: -2rem;
            left: -1rem;
            width: calc(100% + 2rem);
            height: calc(100% + 4rem);
        }
    }

    @media screen and (max-width: 623px) {
        .hero{
            padding-inline: 1.5rem;
        }
        .hero-child {
            width: 100%;
            margin-top: 24px;
        }

        @media screen and (max-width: 600px) {
            .hero {
                height: 85vh;
                background-image: url(/images/Hero-img-sm.svg);
                background-position: center 17%;
            }
        
            .hero-child{
                margin-top: 0;
            }
            .hero-child::before{
                display:none;
            }
    
            .hero-child,
            .hero-child h3{
                text-align: start !important;
                width: 100%;
            }
            .hero-child p:first-of-type{
                display: none;
            }
            .hero-child p:last-of-type{
                display: block !important;
            }

            .about{
                padding-top: 4rem !important;
            }
        }
    
        @media screen and (max-width: 503px) {
            .hero-child h3{
                font-size: 2.8rem;
                line-height: 2.5rem;
            }
            
        }
    
        @media screen and (max-width: 440px) {
            .hero-child h3{
                font-size: 2.4rem;
                line-height: 2.1rem;
            }
            
        }
    
        @media screen and (max-width: 383px) {
            nav{
                margin-top: 1rem;
            }
    
            .hero-child {
                margin-top: 34px;
            }
    
            .hero-child h3{
                font-size: 2.1rem;
                line-height: 1.8rem;
            }
            
        }
    
        @media screen and (max-width: 341px) {
            .hero-child h3{
                font-size: 1.9rem;
                line-height: 1.7rem;
            }
            
        }
    }

}

@media screen and (max-width: 768px) {
    nav.sticky-top {
        width: 100% !important;
        top: 0 !important;
        border-radius: 0 !important;
        margin-top: 0;
    }

    .navbar-nav--align-center{
        padding-inline: 3rem;
    }

    .hero{
        margin-top: 0 !important;
    }

    @media screen and (max-width: 576px) {
        .navbar-nav--align-center{
            padding-inline: 1.5rem;
        }
    }
}

/* About us */
@media (min-width: 1441px) {
    .about {
        max-width: 1320px;
        margin: auto;
    }
}
@media (max-width:1080px) {
    .about{
        padding-left: 1.3rem;
    }

    @media (max-width: 991px) {
        .about {
            flex-direction: column;
            align-items: center !important;
            padding-left: 0;
            padding-bottom: 4rem;
        }
    
        .about img {
            width: 100%;
            min-width: 100%;
            height: 400px;
            order: 1;
        }
    }

    @media (max-width: 509px) {
        .about img {
            min-width: initial;
            width: 100%;
            height: 320px;
        }

        .about-content {
            width: 100%;
            padding-inline: 1.3rem;
        }
    }

    @media (max-width: 425px) {
        .about img {
            height: 270px;
        }
    }
}


/* Why Choose Us */
@media (min-width: 1441px) {
    .why-choose-us__header
     {
        width: 67%;
        max-width: 1320px;
        margin: auto;
        padding-left: 0;
    }
}

@media (max-width: 1440px) {
    .why-choose-us__header {
        padding-left: 15rem;
    }

    @media (max-width: 1380px) {
        .why-choose-us__header {
            padding-left: 12rem;
        }
    }
    @media (max-width: 1280px) {
        .why-choose-us__header {
            padding-left: 10rem;
        }
    }
    @media (max-width: 1180px) {
        .why-choose-us__header {
            padding-left: 7rem;
        }
    }
}

@media (max-width: 780px) {
    .why-choose-us {
        gap: 2.7rem !important;
        padding-inline: 1.2rem;
        clip-path: polygon(0 0, 100% 14%, 100% 100%, 0% 100%);
    }
    .top-why-choose-us,
    .bottom-why-choose-us {
        flex-direction: column;
        gap: 2.7rem !important;
    }

    @media (max-width: 700px) {
        .why-choose-us__header {
            padding-left: 3rem;
        }
    }

    @media (max-width: 600px) {
        .why-choose-us__header {
            padding-left: 1rem;
        }

        .top-why-choose-us,
        .bottom-why-choose-us {
            gap: 2.9rem !important;
        }
    }

    @media (max-width: 540px) {
        .why-choose-us {
            clip-path: polygon(0 0, 100% 11%, 100% 100%, 0% 100%);
        }
    }

    @media (max-width: 439px) {
        .why-choose-us {
            clip-path: polygon(0 0, 100% 8%, 100% 100%, 0% 100%);
        }
    }

    @media (max-width: 415px) {
        .why-choose-us__header{
            padding-left: 0;
        }
    }

    @media (max-width: 375px) {
        .why-choose-us-content {
            width: 100%;
        }
    }
}

/************* FACILITIES ****************/
@media (min-width: 1441px) {
    .facilities{
        padding-left: 0;
    }
    .facilities > div{
        width: 67%;
        max-width: 1320px;
        margin: auto;
        padding-left: 0;
    }
}

@media (max-width: 1250px) {
    .facilities{
        padding-left: 4rem;
    }

    .facilities__header {
        margin-right: 4rem;
    }

    @media (max-width: 1125px) {
        .facilities__header {
            width: 55rem;
            max-width: 55rem;
        }
    }

    @media (max-width: 991px) {
        .facilities__header {
            width: 50rem;
            max-width: 50rem;
        }

        .facility {
            min-width: 260px;
            width: 260px;
            max-width: 260px;
            height: 200px;
            max-height: 200px;
        }
    }

    @media (max-width: 915px) {
        .facilities__header {
            width: calc(100% - 4rem);
            max-width: calc(100% - 4rem);
        }
    }

    @media (max-width: 736px) {
        .facilities{
            padding-left: 2.5rem;
        }
        .facilities__header {
            margin-right: 2.5rem;
            width: calc(100% - 2.5rem);
            max-width: calc(100% - 2.5rem);
        }
        .facility--position-down {
            margin-top: 0;
        }
    }

    @media (max-width: 631px) {
        .facility {
            min-width: 220px;
            width: 220px;
            max-width: 220px;
            height: 160px;
            max-height: 160px;
            border-radius: 1.1rem;
        }
        .facility::after {
            border-radius: 1.3rem;
        }
    }

    @media (max-width: 500px){
        .facilities {
            padding-left: 2rem;
        }
        .facilities__header{
            margin-right: 2rem;
            width: calc(100% - 2rem);
            max-width: calc(100% - 2rem);
        }
        .facilities__header-content{
            display: none;
        }
        .facilities__header-content-sm{
            display: block!important;
        }
    }
}

/***************** C.T.A *****************/
@media (min-width: 1441px) {
    .cta {
        max-width: 1320px;
    }
}

@media (max-width: 991px) {
    .cta {
        width: 85%;
    }

    @media (max-width: 850px) {
        section#cta h3{
            font-size: 1.8rem;
        }
    }

    @media (max-width: 767px) {
        section#cta2{
            padding-block: 2rem;
        }
    }

    @media (max-width: 750px) {
        .cta {
            width: 88%;
        }
    }

    @media (max-width: 655px) {
        section#cta h3{
            font-size: 1.5rem;
        }

        .cta {
            flex-direction: column;
            padding-inline: 2rem;
            gap: 1rem !important;
        }

        .cta-text h3{
            text-align: center;
        }

        .cta-text h3:first-of-type{
             display: none !important;
        }

        .cta-text h3:last-of-type{
            display: block !important;
       }
    }

    @media (max-width: 576px) {
        section#cta .cta{
            padding-block: 3rem;
        }
        .cta-text {
            align-items: center;
        }
    }

    @media (max-width: 500px) {
        .cta {
            width: 93%;
        }
        section#cta h3{
            font-size: 1.3rem;
            line-height: 1.2;
        }
    }
   
}

/* Testimonials */
@media (max-width: 907px) {
    .testimonials {
        flex-direction: column;
        padding-inline: 1.2rem;
    }

    .testimonial-head {
        width: 656px;
        margin: auto;
    }

    @media (max-width: 696px) {
        .top-testimonial {
            flex-direction: column;
        }

        .bottom-testimonial {
            flex-direction: column;
        }

        .testimonial-head {
            align-items: center;
            width: 100%;
        }
    }

    @media (max-width: 375px) {
        .testimonial-content {
            width: 100%;
        }
    }
}