  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Titillium Web', sans-serif;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}


/* General Styles */
body {
    font-family: 'Titillium Web', sans-serif;
    background: url('/res/img/backgrounds/bg1.png') no-repeat center center/cover;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: #fff;
    margin-top: -25px;
}

#super {
    padding: 20px;
    width: 100%;
    box-sizing: border-box
}

/* First Section Content */
#super1 {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: justify;
    padding: 20px;
    width: 100%;
    gap: 20px;
    animation: fadeIn 1s ease-in forwards 0.5s;
}

#super_portrait {
    width: 300px;
    flex-shrink: 0;
}

.super1text {
    flex: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.super1text h2 {
    font-family: 'Bree Serif', serif;
    font-size: 35px;
}

.super1text h3,
h4 {
    font-size: 25px;
}

.super1text p {
    font-size: 20px;
}

/* Super 2 */
#super2 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
    margin: 20px;
    padding: 10px;
    animation: fadeInUp 1s ease-in-out;
}

#super2_1 {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    padding: 5px;
}

#super_portrait1 {
    width: 400px;
    height: auto;
    object-fit: cover;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.4);
}

#super2_1_1 {
    flex: 1;
    font-family: 'Titillium Web', sans-serif;
    padding: 30px;
    font-size: 15px;
    line-height: 1.5;
    font-weight: bold;
    color: #122348;
    background: url('/res/img/super/superbg.png') no-repeat center center/cover;
    margin-top: 20px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.4);
}

#super2_2 {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    padding: 5px;
    flex-direction: row-reverse;
    animation: fadeInUp 1s ease-in-out;
}

#super_portrait2 {
    width: 400px;
    height: auto;
    object-fit: cover;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.4);
}

#super2_2_2 {
    flex: 1;
    font-family: 'Titillium Web', sans-serif;
    padding: 30px;
    font-size: 15px;
    line-height: 1.5;
    font-weight: bold;
    color: #122348;
    margin-top: 25px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.4);
    background: url('/res/img/super/superbg.png') no-repeat center center/cover;
}

#super2_1_1 p,
#super2_2_2 p {
    margin: 0;
    text-align: justify;
}

/* Super 3 */
#super3 {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: justify;
    padding: 20px;
    width: 100%;
    gap: 20px;
    animation: fadeInUp 1s ease-in-out;
    color: #fff;
}

#super_portrait3 {
    width: 400px;
    flex-shrink: 0;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.4);
}

#super3_1 {
    flex: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-size: 25px;
}

#super3_1 {
    font-size: 20px;
}

/* Super 4 */
#super4 {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: justify;
    padding: 50px;
    width: 90%;
    gap: 20px;
    background: url('/res/img/super/superbg1.png') no-repeat center center/cover;
    margin-left: 60px;
}

#super4 p {
    flex: 1;
    max-width: 50%;
    font-size: 15px;
    color: #fff;
}

/*Previous Superintendents Modal*/

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(18, 35, 72, 0.9);
    z-index: 1000;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 95%;
    max-height: 90%;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 40px;
    right: 25px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #cda757;
    text-decoration: none;
    cursor: pointer;
}


/*Previous Superintendents*/

#prev-super {
    text-align: center;
    margin: 50px auto;
    padding: 20px;
    max-width: 1300px;
}

.prev-title {
    font-family: 'Bree Serif', serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.prev-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.prev-card {
    background-color: rgba(18, 35, 72, 0.9);
    border-radius: 2px;
    width: 230px;
    height: 320px;
    text-align: center;
    transition: transform 0.3s ease;
    overflow: hidden;
    padding: 10px;
}

.prev-card:hover {
    transform: translateY(-5px);
}

.prev-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.prev-card img:hover {
    cursor: pointer;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
}

.carousel-track-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 1s ease-in-out;
    width: 100%;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    cursor: pointer;
    z-index: 10;
}

.prev-btn {
    left: 1px;
}

.next-btn {
    right: 1px;
}

.prev-cards {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/*sup-section*/

#superintendents-section {
    padding: 60px;
    margin-top: -80px;
}

#superintendents-section h2 {
    font-family: 'Bree Serif', serif;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

@media screen and (min-width: 1650px) {
    .super1text h2 {
        font-size: 3rem;
    }

    .super1text h3,
    h4 {
        font-size: 2rem;
    }

    .super1text p {
        font-size: 1.5rem;
    }

    #super2_1_1 p,
    #super2_2_2 p,
    p {
        font-size: 1.5rem;
    }

    #super4 p {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 1024px) {

    /* First Section Content */
    #super1 {
        display: block;
        text-align: center;
        padding: 0;
    }

    .super1text p {
        text-align: justify;
    }

    /* Super 2 */
    #super2 {
        display: block;
    }

    #super2_1 {
        display: block;
    }

    #super_portrait1 {
        width: 100%;
    }

    #super2_2 {
        display: block;
    }

    #super_portrait2 {
        width: 100%;
    }

    /* Super 3 */
    #super3 {
        display: block;
        padding: 0;
    }

    #super_portrait3 {
        width: 100%;
    }

    /* Super 4 */
    #super4 {
        display: block;
        padding: 0;
        width: 100%;
        margin: 0;
    }

    #super4 p {
        max-width: 100%;
        padding: 25px;
    }
}