/* =========================================================
   Education Page Layout
   ========================================================= */

.education-port {
    display: flex;
}

/* Sticky image sidebar */
.image-holder {
    display: flex;
    height: 100vh;
    position: sticky;
    top: 0;
}

.image-holder div {
    height: 100%;
}

.image-holder div:last-child {
    position: relative;
    left: 10px;
    bottom: -10%;
}

.image-holder div>img {
    height: 90%;
    filter: grayscale(100%);
}

/* =========================================================
   Content Section
   ========================================================= */

.education-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 80px;
}

/* =========================================================
   Text Styling
   ========================================================= */

/* title removed - replaced by unified-page-title */

.subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.subsubtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 35px;
    display: block;
}

.body-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 90%;
}

/* =========================================================
   Courses Section
   ========================================================= */

.courses-head {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
    display: block;
}

.courses-lists {
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    left: 0;
    transition: left 0.5s ease;
}

.courses-lists:hover {
    left: 10px;
}

.courses-container {
    margin-bottom: 50px;
}

/* =========================================================
   Responsive Adjustments
   ========================================================= */

@media (max-width: 975px) {
    .image-holder>div:last-child {
        display: none;
    }

    .image-holder div>img {
        height: 100%;
    }

    .education-container {
        margin-left: 10px;
    }

    .courses-container {
        margin-bottom: 0;
    }

}

@media (max-width: 860px) {
    .image-holder div:last-child {
        display: none;
    }

    .education-container {
        margin: 0;
        padding: 50px 20px;
        align-items: center;
        text-align: center;
    }

    .title {
        font-size: var(--mobile-font-h1);
        display: inline-block;
        margin-left: auto;
        margin-right: auto;
    }

    .subtitle {
        font-size: var(--mobile-font-h2);
    }

    .subsubtitle {
        font-size: var(--mobile-font-h3);
    }

    .body-text {
        font-size: var(--mobile-font-p);
    }

    .title:after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Mobile Rebuild */
@media (max-width: 768px) {
    .education-port {
        flex-direction: column;
    }

    .image-holder {
        height: 40vh;
        width: 100%;
        justify-content: center;
        margin-bottom: 20px;
        position: relative;
        top: auto;
    }

    .image-holder div {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Ensure first image is shown */
    .image-holder>div:first-child {
        display: flex;
    }

    .image-holder>div:last-child {
        display: none;
    }

    .image-holder div>img {
        height: 100%;
        width: auto;
        object-fit: cover;
        border-radius: 20px;
        box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    }

    .education-container {
        margin-left: 0;
        padding: 0 20px 40px;
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .title {
        font-size: var(--mobile-font-h1);
        margin-bottom: 15px;
        left: 0;
    }

    .title:after {
        left: 50%;
        transform: translateX(-50%);
    }

    .subtitle {
        font-size: var(--mobile-font-h2);
    }

    .subsubtitle {
        font-size: var(--mobile-font-h3);
        color: var(--secondary-white-color);
    }

    .courses-head {
        font-size: var(--mobile-font-h3);
    }

    .courses-lists {
        font-size: var(--mobile-font-p);
    }

    .courses-container {
        text-align: left;
        width: 100%;
    }
}