body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    padding-bottom: 50px;
}

header {
    background-color: #001D64;
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

header h1 {
    margin: 0;
}

.logo {
    height: 50px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-right: 30px;
}

nav ul li:last-child {
    margin-right: 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

nav ul li a:hover {
    color: #7829B6;
}

/*------------------------------------------Content----------------------------------------------------------------*/
.history {
    margin: 20px 0;
    margin-top: 0px;
    margin-left: 20px;
}

.history .left {
    width: 100%;
    float: left;
    padding: 20px;
    box-sizing: border-box;
}

.history h2 {
    font-size: 24px;
    color: #006ABC;
    font-weight: bold;
    margin-bottom: 10px;
}

.history p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.history .right-img {
    float: right;
    margin-left: 20px;
}

.history .left-img {
    float: left;
    margin-right: 10px;
}

.history img {
    width: 30%;
    height: auto;
}

.content {
    padding: 15px;
    margin: 20px 0;
    margin-right: 20px;
}

.courses-offered {
    margin-left: 20px;
}

.courses-offered h2 {
    margin-top: 0;
    color: #006ABC;
}

.program-carousel {
    position: relative;
    margin: 20px;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-container {
    overflow: hidden;
    position: relative;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 20px;
    text-align: center;
}

.slide img {
    width: 70%;
    height: auto;
    margin: 20px 0;
    border-radius: 10px;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: 20;
    margin-right: 20px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: #006ABC;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(236, 75, 0, 0.8);
}

.facilities {
    margin: 20px 0;
    margin-top: 0px;
    margin-left: 20px;
}

.facilities .left {
    max-width: 100%;
    float: left;
    padding: 20px;
    box-sizing: border-box;
}

.facilities h2 {
    color: #006ABC;
    font-weight: bold;
    margin-bottom: 20px;
}

.scrollable-container {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

.image-container {
    display: flex;
    gap: 20px;
}

.image-item {
    text-align: center;
    flex-shrink: 0;
    width: calc(25.55% - 20px);
}

.image-item img {
    max-width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.image-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.image-label {
    font-size: 14px;
    color: #006ABC;
    margin-top: 8px;
    font-weight: bold;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.image-modal .modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    margin-bottom: 20px;
    margin-top: 40px;
}

.image-modal .caption {
    text-align: center;
    color: #fff;
    margin-top: 10px;
    font-size: 18px;
    margin-top: 20px;
}

.image-modal .close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.image-modal .close-modal:hover {
    color: #f44336;
}

/*------------------------------------------Footer----------------------------------------------------------------*/
footer {
    background-color: #001D64;
    color: #fff;
    padding: 10px;
    text-align: center;
    width: 100%;
    float: right;
}

footer .left,
footer .middle,
footer .right {
    width: 33.33%;
    float: left;
    padding: 10px;
    box-sizing: border-box;
}

footer .left h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: left;
    margin-left: 50px;
}

footer .left p {
    font-size: 15px;
    margin-bottom: 10px;
    text-align: left;
    margin-left: 50px;
}

footer .middle ul {
    list-style: none;
    padding: 0;
    margin-bottom: 10px;
}

footer .middle hr {
    width: calc(30% - 20px);
}

footer .middle ul li {
    margin-bottom: 18px;
    margin-top: 18px;
}

footer .middle ul li a {
    text-decoration: none;
    color: white;
}

footer .middle ul li a:hover {
    color: orange;
}

footer .right h2 {
    text-align: left;
    margin-left: 100px;
}

footer .right p {
    margin-bottom: 8px;
    text-align: left;
    margin-left: 100px;
}

.back-to-top a {
    font-size: 12px;
    text-decoration: none;
    color: white;
    float: right;
}

footer hr {
    border: 0;
    border-top: 1px solid #fff;
    width: calc(100% - 20px);
    margin: 10px auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    header {
        padding: 10px;
        flex-wrap: nowrap;
    }

    .logo {
        height: 40px;
    }

    nav ul {
        flex-direction: row;
        width: 100%;
        gap: 10px;
    }

    nav ul li {
        margin: 10px 0;
        font-size: 0.6rem;
    }

    .history img {
        width: 100%;
    }

    .history p {
        font-size: 0.8rem;
    }

    .prev,
    .next {
        padding: 12px;
        font-size: 13px;
    }

    .slide img {
        width: 80%;
    }

    .image-container {
        gap: 15px;
    }

    .image-item {
        width: calc(50% - 15px);
    }

    .image-label {
        font-size: 13px;
    }

    .image-modal .modal-content {
        max-width: 90%;
    }

    footer {
        font-size: 0.6rem;
    }

    footer .left,
    footer .middle,
    footer .right {
        width: 100%;
        text-align: center;
        font-size: 0.7rem;
    }

    .back-to-top {
        display: block;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {

    .history h2,
    .facilities h2 {
        font-size: 20px;
    }

    .content {
        padding: 10px;
    }

    .carousel-container {
        overflow: hidden;
    }

    .carousel {
        flex-direction: column;
    }

    .slide img {
        width: 90%;
        margin: 10px 0;
    }

    .slide h3 {
        font-size: 1rem;
    }

    .slide p {
        font-size: 0.8rem;
    }

    .prev,
    .next {
        padding: 10px;
        font-size: 14px;
        top: 45%;
    }

    .image-container {
        gap: 10px;
    }

    .image-item {
        width: calc(100% - 10px);
    }

    .image-label {
        font-size: 12px;
    }

    .image-modal .modal-content {
        max-width: 95%;
    }

    .image-modal .caption {
        font-size: 16px;
    }


    footer {
        font-size: 0.6rem;
        text-align: center;
    }

    footer.left,
    footer.middle,
    footer.right {
        width: 100%;
        text-align: center;
        font-size: 0.7rem;
    }

    .back-to-top a {
        font-size: 14px;
        float: none;
        display: inline-block;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {

    .history h2,
    .facilities h2 {
        font-size: 18px;
    }

    .carousel-container {
        padding: 0 10px;
    }

    .slide img {
        width: 100%;
    }

    footer .left h2,
    footer .right h2 {
        font-size: 14px;
        margin-left: 20px;
    }

    footer .middle ul li {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .back-to-top a {
        font-size: 14px;
        text-align: center;
        width: 100%;
    }
}