* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    max-width: 2000px;
    font-family: "Handlee", cursive;
    font-weight: 600;
    font-style: normal;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.fade-in {
    animation: fadeIn 1s ease;
    transition: opacity 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.s-space {
    width: 100%;
    height: 1rem;
}

.handwritten {
    font-family: "Handlee", cursive;
    font-weight: 600;
    font-style: normal;
}

.relative {
    position: relative;
    top: 25%;
    transition: all 0.25s ease-in-out;
}

.sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.absolute {
    transform: translateY(-100%);
    opacity: 1; 
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.big {
    font-size: 2rem;
}

a {
    text-decoration: none;
    color: black;
}

ul {
    list-style: none;
}

.primary-f {
    color: #0c3972;
    font-weight: 500;
    transition: 0.25s;

}

.primary-f:hover {
    color: #89b7f0;
    transition: 0.25s;
}

.nav {
    background-color: white;
    width: 100%;
    padding: 1.5%;
    font-weight: 600;
    transition: transform 0.5s ease, opacity 0.5s ease;
    display: flex;
    justify-content: start;
}

.nav-logos {
    display: flex;
    max-width: 50%;
}

.josema-slogan img {
    width: 85%;
}

.Josema-1 img {
    width: 35%;
    margin-left: 15%;
}

.nav-bar {
    display: flex;
    align-items: center;
    transition: all 0.25s ease-in-out;
}


.nav-links {
    font-size: 2rem;
    font-weight: 500;
    align-content: center;
    color: #0c3972;
    margin-right: 12.5%;
    transition: 0.25s;
}

.nav-links:hover {
    color: #89b7f0;
    transition: 0.25s;
}

.nav-minimize {
    display: none;
}

.nav-menu {
    position: relative;
}

.menu-link {
    display: inline-block;
    cursor: pointer;
}

.nav-dropdown {
    position: absolute;
    top: 90%;
    left: 0;
    background: white;
    border-radius: 15px;
    display: none;
    min-width: 150px;
    font-size: 2rem;
    transition: 0.25s;
    padding: 7.5px;
}

.nav-menu:hover .nav-dropdown {
    display: block;
}

.nav-form img {
    width: 70%;
    margin-left: 75%;
    border-radius: 0;
    transition: 0.25s;
}

.nav-form img:hover {
    transform: scale(1.1);
    transition: 0.25s;
}

.mail {
    color: #0c3972;
    font-weight: 500;
    transition: 0.25s;
}

.mail:hover {
    color: #89b7f0;
    transition: 0.25s;
}


.box {
    background: url(../Images/resource-bg-5.webp);
    background-size: cover;
    height: 1700px;
    position: relative;
}

.card-grid {
    display: grid;
    position: absolute;
    justify-self: anchor-center;
    top: 10%;
    background-color: #fff;
    width: 700px;
    height: 1400px;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    border-radius: 25px;
}

.card-grid img {
    width: 100%;
    border-radius: 25px 25px 0 0;
}

.grid-text {
    color: #0c3972;
    padding: 55px;
}

.card-h1 {
    text-align: center;
    font-size: 3.5rem;
}

.card-h3 {
    text-align: center;
    font-size: 2.25rem
}

.xs-line {
    width: 50px;
    border: 2.5px solid #89b7f0;
    margin: auto;
}

.xs-space {
    width: 100%;
    height: 1rem;
}

.card-p {
    text-align: center;
    font-size: 1.25rem;
}


.button {
    text-align: center;
    margin-top: 0.5%;
}

.resource-button {
    font-size: 1rem;
    background-color: #89b7f0;
    color: #fff;
    border: 1px solid #89b7f0;
    padding: 10px;
    padding-left: 25px;
    padding-right: 25px;
    border-radius: 25px;
    transition: 0.25s;
}

.resource-h1 {
    font-size: 3rem;
    color: #0c3972;
    text-align: center;
    margin: 3%;
}

.resource-p {
    font-size: 1.25rem;
    color: #0c3972;
    text-align: center;
    margin: 3%;
}

.resource-button:hover {
    background-color: #0c3972;
    color: #fff;
    border: 1px solid #0c3972;
    transition: 0.25s;
}

.text img {
    width: 25%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}


.footer {
    display: grid;
    width: 100%;
    height: 150px;
    background-color: #0c3972;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;

}

.footer-logo {
    display: flex;
    align-self: center;
    justify-content: center;
}

.footer-logo img {
    width: 35%;
}

.footer-links {
    display: flex;
    align-self: center;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
}

.social-media img {
    width: 20px;
}

.footer-school {
    display: flex;
    align-self: center;
    justify-content: center;
}

.footer-school img {
    width: 20%;
}

.copyright {
    display: block;
    color: white;
    font-weight: 500;
    padding-left: 2.5%;
}

@media (max-width: 1200px) {
    
    .main-grid {
        display: grid;
        margin: 15px;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        column-gap: 1rem;
    }

    
}

@media (max-width: 1127px) {
    .Josema-1 img {
        display: none;
    }

    .nav-logos {
        max-width: 40%;
    }
}


@media (max-width: 1000px) {
    
    .Josema-1 img {
        width: 25%;
    }
}

@media (max-width: 1075px) {
    .nav-bar {
      display: none; 
      flex-direction: row;
      position: absolute;
      top: 100%;
      left: 15%;
      width: 70%;
      background-color: #fff;
      padding: 10px;
      border-radius: 0 0 15px 15px;
      opacity: 0;
      transform: translateY(-10px);
      pointer-events: none;
      transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-minimize {
        display: block;
        font-size: 24px;
        cursor: pointer;
        align-content: center;
        margin-left: 50%;
        transition: 0.25s;
    }

    .nav-dropdown {
        top: 90%;
        left: 25%;
        padding: 5px;
    }

    .josema-slogan img {
        width: 110%;
        margin-left: 5%;
    }

    .Josema-1 img {
        width: 25%;
        margin-left: 25%;
    }

    .nav-form img {
        width: 25%;
        margin-left: 50%;
    }


    .footer-logo img {
        width: 50%;
    }

    .footer-school img {
        width: 25%;
    }
}

@media (max-width: 880px) {
    .nav-links {
        font-size: 1.5rem;
    }

    .nav-dropdown {
        font-size: 1.5rem;
    }

    .nav-form img {
        width: 20%;
        margin-left: 50%;
    }
}

@media (max-width: 800px) {
    .nav-form img {
        width: 25%;
        margin-left: 50%;
    }
}

@media (max-width: 700px) {
    .nav-form img {
        width: 30%;
        margin-left: 50%;
    }
}

@media (max-width: 650px) {
    .nav-form img {
        width: 35%;
        margin-left: 50%;
    }
}

.nav-bar.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 650px) {

    .josema-slogan img {
        width: 160%;
        margin-left: 10%;
    }

    .Josema-1 img {
        width: 30%;
        margin-left: 50%;
    }

    .carrousel-h {
        font-size: 1.5rem;
    }

    .primary-f {
        font-size: 1.5rem;
    }

    .grid-specific p {
        font-size: 1.2rem;
    }


}


@media (max-width: 675px) {
    #josema-png {
        display: none;
    }

    .josema-slogan img {
        width: 180%;
        margin-left: 15%;
    }

    .nav-bar {
        left: 0;
    }

    .carrousel-a {
        height: 80px;
    }

    .c-committees img {
        width: 64px;
        height: 64px;
    }

    .featured-committees {
        row-gap: 1rem;
        column-gap: 1rem;
    }

}

@media (max-width: 650px) {
    .nav-links {
        font-size: 1.25rem;
    }

    .nav-dropdown {
        font-size: 1.25rem;
    }

    .carrousel-h {
        font-size: 1.25rem;
    }

    .primary-f {
        font-size: 1.25rem;
    }

    .grid-specific p {
        font-size: 1.1rem;
    }
}

@media (max-width: 500px) {
    .nav-links {
        font-size: 1rem;
    }

    .nav-dropdown {
        font-size: 1rem;
    }

    .carrousel-h {
        font-size: 1rem;
    }

    .primary-f {
        font-size: 1rem;
    }

    .grid-specific p {
        font-size: 0.8rem;
    }

    .nav-bar {
        left: 0;
    }

    .footer-logo img {
        width: 60%;
    }

    .footer-school img {
        width: 30%;
    }
}

@media (max-width: 450px) {
    .nav-links {
        font-size: .85rem;
    }

    .nav-dropdown {
        font-size: .85rem;
    }

    .carrousel-h {
        font-size: .85rem;
    }

    .primary-f {
        font-size: .85rem;
    }

    .grid-specific p {
        font-size: .78rem;
    }
}

@media (max-width: 400px) {
    .nav-links {
        font-size: .80rem;
    }

    .nav-dropdown {
        font-size: .80rem;
    }

    .carrousel-h {
        font-size: .80rem;
    }

    .primary-f {
        font-size: .80rem;
    }

    .grid-specific p {
        font-size: .76rem;
    }
}

@media (max-width: 375px) {
    .nav-links {
        font-size: .80rem;
    }

    .nav-dropdown {
        font-size: .80rem;
    }

    .carrousel-h {
        font-size: .80rem;
    }

    .primary-f {
        font-size: .80rem;
    }

    .grid-specific p {
        font-size: .76rem;
    }

    .nav-form img {
        width: 40%;
        margin-left: 50%;
        border-radius: 0;
    }
}

@media (max-width: 370px) {
    .nav-links {
        font-size: .75rem;
    }

    .nav-dropdown {
        font-size: .75rem;
    }

    .carrousel-h {
        font-size: .75rem;
    }

    .primary-f {
        font-size: .75rem;
    }

    .grid-specific p {
        font-size: .7rem;
    }

    .nav-form img {
        width: 40%;
        margin-left: 50%;
        border-radius: 0;
    }
}

@media (max-width: 340px) {
    .nav-links {
        font-size: .7rem;
    }

    .nav-dropdown {
        font-size: .7rem;
    }

    .carrousel-h {
        font-size: .7rem;
    }

    .primary-f {
        font-size: .7rem;
    }

    .grid-specific p {
        font-size: .65rem;
    }

    .nav-form img {
        width: 40%;
        margin-left: 50%;
        border-radius: 0;
    }
}


@media (min-width: 1400px) {
    
    .carrousel-a {
        height: 135px;
    }

    .c-committees img {
        width: 120px;
        height: 120px;
    }
}

@media (min-width: 1700px) {
    
    .carrousel-a {
        height: 180px;
    }

    .c-committees img {
        width: 160px;
        height: 160px;
    }
}

@media (min-width: 1600px) {
   
    .nav-bar {
        margin-left: 15%;
    }

    .nav-links {
        font-size: 2.5rem;
    }

    .nav-dropdown {
        font-size: 2.5rem;
    }

    .big {
        font-size: 2.5rem;
    }

    .grid-specific p {
        font-size: 1.5rem;
    }
}

@media (max-width: 800px) {
    .box {
        height: 1500px;
    }
    
    .card-grid {
        width: 550px;
        height: 1250px;
    }
}

@media (max-width: 600px) {
    .box {
        height: 1350px;
    }
    
    .card-grid {
        width: 450px;
        height: 1055px;
    }

    .grid-text {
        padding: 50px;
    }

    .card-h1 {
        font-size: 3rem;
    }

    .card-h3 {
        font-size: 2rem;
    }

}

@media (max-width: 500px) {
    .box {
        height: 1250px;
    }
    
    .card-grid {
        width: 375px;
        height: 1000px;
    }
}

@media (max-width: 425px) {
    .box {
        height: 1200px;
    }
    
    .card-grid {
        width: 349px;
        height: 925px;
    }

    .grid-text {
        padding: 40px;
    }

    .card-grid img {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .box {
        height: 1150px;
    }
    
    .card-grid {
        width: 332px;
        height: 975px;
    }

    .grid-text {
        padding: 35px;
    }

    .card-grid img {
        width: 98%;
    }
}

@media (max-width: 365px) {
    .box {
        height: 1050px;
    }
    
    .card-grid {
        width: 332px;
        height: 865px;
    }

    .grid-text {
        padding: 25px;
        padding-top: 40px;
    }

    .card-grid img {
        width: 100%;
    }

    .card-h1 {
        font-size: 2.5rem;
    }

    .card-h3 {
        font-size: 1.5rem;
    }

    .resource-p {
        font-size: 1.2rem;
    }


}

@media (max-width: 355px) {
    .box {
        height: 975px;
    }
    
    .card-grid {
        width: 315px;
        height: 840px;
    }

    .grid-text {
        padding: 10px;
        padding-top: 45px;
    }

}

@media (max-width: 335px) {
    .box {
        height: 975px;
    }
    
    .card-grid {
        width: 300px;
        height: 825px;
    }

    .grid-text {
        padding: 10px;
        padding-top: 45px;
    }
}

@media (max-width: 426px) {

    .copyright {
        font-size: 13px;
    }
}

@media (max-width: 382px) {

    .copyright {
        font-size: 10.5px;
    }
}