
.about__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    padding: 3rem 0;
    margin-bottom: 5rem;
}



.about__image {
    height: 30rem;
    border-radius: 7rem;
    overflow: hidden;
    box-shadow: 0 1.5rem 0 var(--color-gray-100);
    transition : var(--transition);
}


.about__image:hover {
    box-shadow: none;
}

.about__story h2 span {
   color: var(--color-primary);
}
.about__story p {
    margin-top: 1rem;
}

.about__story h4 {
    margin-top: 2rem;
    color: var(--color-primary);
}



.instructors {
    background: var(--color-gray-0);
    padding: 8rem 0;
}

.instructors h2, .instructors p {
    text-align: center;
}

.instructors__list {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 5rem;
}

.instructor {
    background: var(--color-gray-0);
    border-radius: var(--radius-6);
    overflow: hidden;
    text-align: center;
    box-shadow: 0 1rem 0 var(--color-gray-100);
    transition: var(--transition);
}

.instructor:hover {
    box-shadow: 0 -1rem 0 var(--color-gray-100);;
}

.instructor__image {
    height: 40rem;
    overflow: hidden;
    border-radius: 3rem;
}

.instructor h4 {
    margin: 1.5rem 0 0.6rem;
    
}

.instructor p {
    padding-bottom: 2rem;
}




/*MEDIA QUERIES (small screens) */
@media screen and (max-width: 600px) {
    .about__container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about__image {
        border-radius: var(--radius-6);
        box-shadow: none;
    }

    .instructors__list {
        gap: 2.4rem;
        width: 80%;
        margin-inline: auto ;
    }
}


/*MEDIA QUERIES (small screens) */
@media screen and (max-width: 1024px) {
    .about__container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about__image {
        border-radius: var(--radius-6);
        box-shadow: none;
    }

    .instructors__list {
        gap: 2.4rem;
        width: 80%;
        margin-inline: auto ;
    }
}


/* ===================== MEDIA QUERIES (small screens)  =====================  */
@media  (max-width: 1024px) {
   
    h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.4rem;
}

h3 {
    font-size: 1rem;
}
.btn {
    padding: 1.5rem;
    font-size: 0.8rem;
}

.container {
    width: var(--container-w-md);
}




.nav__content {
    gap: 3rem;
}


.nav__menu {
    position: fixed;
    top: 4rem;
    right: 4%;
    flex-direction: column;
    gap: 0;
    width: 16rem;
    display: none;
    perspective: 200px;
}

.nav__menu a {
    background: linear-gradient(var(--color-gray-800),
    var(--color-gray-700));
    color: var(--color-gray-0);
    height: 4rem;
    display: grid;
    place-items: center;
    width: 100%;
    box-shadow: -2rem 4rem 3rem rgba(0, 0, 0, 0.2);
    animation: animation1 300ms ease forwards;
    transform: rotateX(90deg);
    opacity: 0;
    transform-origin: top;
}


.nav__menu a:nth-child(2) {
    animation-delay: 300ms;

}
.nav__menu a:nth-child(3) {
    animation-delay: 550ms;
}
.nav__menu a:nth-child(4) {
    animation-delay: 750ms;
}
.nav__menu a:nth-child(5) {
    animation-delay: 900ms;
}
.nav__menu a:nth-child(6) {
    animation-delay: 1050ms;
}
.nav__menu a:nth-child(7) {
    animation-delay: 1250ms;
}
    .nav__menu a:nth-child(8) {
        animation-delay: 1450ms;
    }

@keyframes animation1 {
    to {
        transform: rotateX(0);
        opacity: 1;
    }
    
}
.nav__menu a.active {
    background: var(--color-primary);
    color: var(--color-gray-0);
}

.nav__menu-open {
    display: inline-block;
}


.page__header {
    height: 20rem;
}

.page__header-content {
    width: var(--container-w-md);
}



.footer__container {
    flex-direction: column;
    gap: 1.5rem;
}
.footer__socials {
    gap: 2rem;
}
    
}