*{
    margin: 0;
    padding: 0;
    outline: 0;
    border: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
    scroll-behavior: smooth;
    transition: 900ms ease;
}

:root{
    --color-primary:#6c63ff;
    --color-success:#00bf8e;
    --color-warning: #f7c94b;
    --color-danger:#f75842;
    --color-danger-variant:rgb(247, 88, 66,0.4);
    --color-white:#fff;
    --color-light:#dfdfdfb4;
    --color-black:#000;
    --color-bg1: #2e3267;
    --color-bg2: #424890;
    --color-bg: #1f2641;

    --container-width-lg: 76%;
    --container-width-md: 98%;
    --container-width-sm: 94%;

    --transition: all 900ms ease;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
    color: var(--color-white);
    background: var(--color-bg);
    transition: var(--transition);
}

/* Fade-in & slide up */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}


.container{
    width: var(--container-width-lg);
    margin: 0 auto;
}

section{
    padding: 6rem 0;
}

section h2{
    text-align: center;
    margin-bottom: 4rem;
}

h1,h2,h3,h4,h5{
    line-height: 1.2;
}

h1{
    font-size: 2.4rem;
}

h2{
    font-size: 2rem;
}

h3{
    font-size: 1.6rem;
}

h4{
    font-size: 1.4rem;
}

a{
    color: var(--color-white);
}

.header-right-image img{
    width: 90%;
    mix-blend-mode: soft-light;
    opacity: 70%;
    transition: 9s ease;
}

.header-right-image img:hover{
    mix-blend-mode: difference;
    opacity: 95%;
}

img{
    width: 100%;
    display: block;
    object-fit: cover;
}

.btn{
    display: inline-block;
    background: var(--color-white);
    color: var(--color-black);
    padding: 1rem 2rem;
    border: 1px solid transparent;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 50px
}

.btn:hover{
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-primary{
    background: var(--color-danger);
    color: var(--color-white);
    border-radius: 50px;
}

nav{
    background: transparent;
    width: 100%;
    height: 5rem;
    position: fixed;
    top: 0;
    z-index: 11;
}

.window-scroll{
    transition: var(--transition);
    backdrop-filter: blur(10px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0.3);
}


nav{
    padding-left: 25px;
    padding-right: 25px;
}

.nav-contaner{
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav button{
    display: none;
} 

.about-achivements{
    margin: 0;
    padding: 5rem;
}

.nav-menu{
    margin-right: auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid white;
    border-radius: 50px;
    padding: 10px;
}

.nav-menu a{
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-menu a:hover{
    color: var(--color-danger);
}

header{
    position: relative;
    top: 5rem;
    overflow: hidden;
    height: 90vh;
    margin-bottom: 6rem;
    padding: 1rem;
}

.header-contaner{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
    height: 100%;
}

.history-content{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
    height: 100%;
    background: var(--color-light);
}


.h-photo{
    border-radius: 20px;
    height: 200px;
    width: 300px;
}

.v-photo{
    border-radius: 20px;
    width: 250px;
    height: 410px;
}

.history-content p{
    margin: 10px;
    text-align: left;
}

.history{
    padding: 10px;
    background: var(--color-bg1);
}

.vision-content{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
    height: 100%;
    background: var(--color-danger);
}

.vision-content p{
    margin: 10px;
    text-align: left;
}

.vision{
    margin-top: 10px;
    padding: 10px;
    background: var(--color-bg2);
}

.mission-content{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
    height: 100%;
    background: var(--color-warning);
}

.mission-content p{
    margin: 10px;
    text-align: left;
}

.mission{
    margin-top: 10px;
    padding: 10px;
    background: var(--color-bg2);
}

.header-left p{
    margin: 1rem 0 2.4rem; 
}

category-icon i{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-danger);
}

.categories{
    background: var(--color-bg1);
    height: 800px;
    padding: 1rem;
}

.categories h1{
    line-height: 1;
    margin-bottom: 3rem;
}

.categories-container{
    display: grid;
    grid-template-columns: 40% 60%;
}

.categories-left p{
    margin: 1rem 0 3rem
}

.categories-right{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-right: 1.2rem;
}

.category{
    background: var(--color-bg2);
    padding: 2rem;
    border-radius: 2rem;
    transition: var(--transition);
}

.category:hover{
    transform: translateY(-15px);
    box-shadow: 0 3rem 3rem rgba(0, 0, 0.3);
}

.category h5{
    margin: 2rem 0 1rem;
}

.category p{
    font-size: 0.95rem;
}

.category:nth-child(2) span img{
    background: var(--color-danger);
}

.category:nth-child(3) span img{
    background: var(--color-success);
}

.category:nth-child(4) span img{
    background: var(--color-warning);
}

.category:nth-child(5) span img{
    background: rgb(80, 5, 80);
}

.category:nth-child(6) span img{
    background: burlywood;
}

.Courses img{
    width: auto;
    height: 140px;
    border-radius: 2rem;
    background: var(--color-bg);
}
.Courses{
    margin-top: 10rem;
    padding: 1rem;
}

.course-image{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px;
}

.courses-contaner{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.course{
    background: var(--color-bg1);
    text-align: center;
    border: 1px solid transparent;
    border-radius: 2rem;
    transition: var(--transition);
}

.course:hover{
    border-color: var(--color-primary);
    transform: translateY(-15px);
}

.course-info{
    padding: 2rem;
}

.course-info p{
    margin: 1.2rem 0.2rem;
    font-size: 0.9rem;
}

.faq img{
    width: 40px;
    height: 40px;
}

.faqs{
    background: var(--color-bg1);
    box-shadow: inset 0 0 3rem rgba(0, 0, 0, 0.4);
    padding: 1rem;
}

.faqs-contaner{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.faq{
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    height: fit-content;
    background: var(--color-primary);
    cursor: pointer;
}

.faq h4{
    font-size: 1rem;
}

.faq-con{
    align-self: flex-start;
}

.faq p{
    margin-top: 0.9rem;
    display: none;
}

.open p{
    transition:  900ms ease;
    display: block;
}


.faq.open .remove {
    display: inline-block;
}
.faq.open .plus {
    display: none;
}

.faq-answer p{
    max-height: 0;
    overflow: hidden;
    transition:  900ms ease;
}

.faq.open .faq-answer p{
    max-height: 500px; /* adjust based on content size */
}

.faq .remove {
    display: none;
}

.testmonals-contaner{
    overflow: hidden;
    position: relative;
    margin-bottom: 5rem;
}

.swiper-wrapper{
    padding: 1rem;
}

.testimonials{
    padding-top: 2rem;
}

.avatar{
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 5px solid var(--color-bg1);
}

.testmonal-content{
    text-align: center;
}

.testmonal-body{
    background: var(--color-primary);
    padding: 2rem;
    margin-top: 1rem;
    position: relative;
}

.testmonal-body::before{
    content: "";
    display: block;
    background: linear-gradient(135deg,transparent,var(--color-primary),var(--color-primary));
    width: 3rem;
    height: 3rem;
    position: absolute;
    left: 46%;
    top: -1.5rem;
    transform: rotate(45deg);
}

footer {
    background: var(--color-bg1);
    padding: 5rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -6px 12px rgba(0,0,0,0.15);
}

/* Footer grid container */
.footer-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5rem;
}

/* Icon image sizing */
footer img {
    width: 20px;
    height: 20px;
}

/* Fade-in reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: revealAnimation 0.8s ease forwards;
}

@keyframes revealAnimation {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive footer */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }
}


.team{
    background: var(--color-bg2);
    box-shadow: inset 0 0 3rem rgba(0, 0, 0, 0.61);
}

.team-container{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.team-member{
    background: var(--color-bg2);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid transparent;
}

.team-member:hover{
    background: var(--color-bg);
    border: 1px solid white;
}

.team-member-image img{
    filter: saturate(0);
}

.team-member-image img:hover{
    filter: saturate(1);
}

.team-member-info{
    text-align: center;
    margin-top: 1.4rem;
}

.contact-container{
    background: var(--color-bg2);
    padding: 4rem;
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 4rem;
    height: 35rem;
    margin: 7rem auto;
    border-radius: 1rem;
}

.call{
    height: 200px;
    width: 200px;
    border-radius: 0;
    background: transparent;
    margin: 10px;
}

.contact-details img{
    width: 40px;
    height: 40px;
}

.contact-aside{
    background: var(--color-primary);
    padding: 3rem;
    position: relative;
    border-radius: 1rem;
}

.footer-socials{
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    padding: 4rem;
}

.contact-aside h2{
    text-align: left;
    margin-bottom: 1rem;
}

.contact-aside p{
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.contact-details li{
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-form{
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-right: 4rem;
}

.form-name{
    display: flex;
    gap: 1.2rem;
}

.contact-form input[type="text"]{
    width: 50%;
}

input, textarea{
    width: 100%;
    padding: 1rem;
    background: var(--color-bg);
    color: var(--color-white);
    border-radius: 5px;
}

select{
    width: 100%;
    padding: 1rem;
    background: var(--color-bg);
    color: var(--color-white);
    border-radius: 5px;
}

.contact-form textarea{
    font-family: sans-serif;
}

.contact-form .btn{
    width: max-content;
    margin-top: 1rem;
    cursor: pointer;
}

.gallery-section {
    padding: 4rem 5%;
    background: var(--color-bg1);
}

.gallery-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.masonry {
    column-count: 3;
    column-gap: 15px;
}

.masonry img {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 10px;
    display: block;
    transition: transform .3s ease, box-shadow .3s ease;
}

.masonry img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.gallery-filters {
    text-align: center;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 10px 18px;
    margin: 4px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    background: var(--color-bg2);
    color: #fff;
    transition: .3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}


/* Responsive */
@media (max-width: 900px) {
    .masonry {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry {
        column-count: 1;
    }
}




@media screen and (max-width: 1024px) {
    body{
        width: 100%;
    }
    .nav-menu{
        gap: 0.9rem auto;
    }
    .nav-contaner{
        margin-right: auto;
        margin-left: auto;
    }
    .nav-contaner h4{
        text-align: center;
    }
    .container{
        width: var(--container-width-md);
    }
    h1{
        font-size: 2.2rem;
    }
    h2{
        font-size: 1.7rem;
    }
    h3{
        font-size: 1.4rem;
    }
    h4{
        font-size: 1.2rem;
    }
    header{
        height: auto;
        margin-bottom: 4rem;
        width: auto;
    }
    .bca{
       display: none; 
    }
    .nav-menu{
        height: 30px;
        width: auto;
    }
    .nav-menu li a{
        list-style: inside;
        font-size: 12px;
    }
    .hearder-left{
        text-align: left;
    }
    .header-contaner{
        gap: 0;
        padding-bottom: 3rem;
    }
    .categories{
        height: auto;
        width: auto;
    }
    .categories-container{
        display: grid;
        grid-template-columns:  2fr;
        gap: 3rem;
    }
    .categories-left{
        margin-right: 0;
    }
    .Courses{
        margin-top: 0;
    }
    .courses-contaner{
        grid-template-columns: 1fr 1fr;
    }
    .faqs-contaner{
        grid-template-columns: 1fr;
    }
    .faq{
        padding: 1.5rem;
    }
    .footer-contaner{
        display: grid;
        grid-template-columns: 2fr 2fr;
        font-size: 1rem;
        padding: 0;
        margin: 0;
        font-size: 12px;

    }
    .contact{
        padding: 0;
    }
    .contact-container{
        gap: 1.5rem;
        margin-top: 3rem;
        height: auto;
        padding: 1.5rem;
    }
    .contact-aside{
        width: auto;
        padding: 1.5rem;
        bottom: 0;
    }
    .contact-form{
        align-self: center;
        margin-right: 1.5rem;
    }
}

@media  screen and (max-width: 600px) {
    * p{
        font-size: 13px;
    }
    .container{
        width: var(--container-width-sm);
    }
    .nav-menu{
        right: 3%;
        width: auto;
        gap: auto;
    }
    header{
        height: 100vh;
        width: auto;
    }
    .header-contaner{
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 0;
    }
    .history-content{
        display: grid;
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 0;
    }
    .categories{
        height: auto;
        background: transparent;
        width: auto;
        padding: 0;
        margin: 0;
    }
    .categories-container{
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
    }
    .categories-right{
        margin-top: 3rem;
        display: grid;
        grid-template-columns: 2fr;
    }
    .categories-left{
        margin-right: 0;
    }
    .Courses{
        padding: 0;
        margin: 0;
        margin-top: 0;
    }
    .courses-contaner{
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .faqs-contaner{
        grid-template-columns: 1fr;
    }
    .faq{
        padding: 1.5rem;
    }
    .footer-contaner{
        text-align: center;
        display: grid;
        gap: 0rem;

    }
    .contact-container{
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-top: 0;
        padding: 0;
    }
    .contact-form{
        margin: 0 1.5rem 3rem;
    }
    .form-name{
        flex-direction: column;
    }
    .form-name input[type="text"]{
        width: 100%;
    }
}

