/* =====================================
   GENERAL EDUCATION PAGE
===================================== */

.education-page {
    margin: 0;
    padding: 0;

    font-family: 'Poppins', sans-serif;

    background: #ffffff;

    overflow-x: hidden;
}


/* =====================================
   EDUCATION BANNER
===================================== */

.education-banner {
    position: relative;

    width: 100%;
    height: 276px;

    background-image: url('../images/edu-banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;

    overflow: hidden;
}

.education-banner-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.20);
}

.education-banner-container {
    position: relative;

    width: 100%;
    padding: 0 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    z-index: 2;
}


/* =====================================
   BREADCRUMB
===================================== */

.education-breadcrumb {
    display: flex;
    align-items: center;

    gap: 15px;

    font-size: 14px;
    font-weight: 500;

    color: #ffffff;

    animation: educationFadeRight 0.9s ease;
}

.education-breadcrumb a {
    color: #ffffff;

    text-decoration: none;

    transition: color 0.3s ease;
}

.education-breadcrumb a:hover {
    color: #ffc107;
}

.education-breadcrumb i {
    font-size: 13px;
}


/* =====================================
   BANNER TITLE
===================================== */

.education-banner-title {
    margin: 0;

    font-size: 32px;
    font-weight: 600;

    color: #ffffff;

    animation: educationFadeLeft 0.9s ease;
}


/* =====================================
   EDUCATION INTRODUCTION
===================================== */

.education-introduction {
    width: 100%;

    padding: 22px 0 10px;

    background: #ffffff;
}

.education-intro-container {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;
    padding: 0 55px;
}

.education-main-title {
    margin: 0 0 25px;

    text-align: center;

    font-size: 29px;
    font-weight: 600;

    color: #111111;

    animation: educationFadeUp 0.9s ease;
}

.education-description p {
    margin: 0 0 16px;

    font-size: 16px;
    font-weight: 400;
    line-height: 1.85;

    text-align: justify;

    color: #555555;
}

.education-description strong {
    font-weight: 600;

    color: #333333;
}


/* =====================================
   EDUCATION COURSE SECTION
===================================== */

.education-courses {
    width: 100%;

    padding: 0 10px 10px;

    background: #ffffff;

    overflow: hidden;
}


/* =====================================
   MANUAL DRAG SLIDER
===================================== */

.education-slider-wrapper {
    position: relative;

    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    cursor: grab;

    scrollbar-width: none;
    -ms-overflow-style: none;

    user-select: none;
    -webkit-user-select: none;

    container-type: inline-size;

    -webkit-overflow-scrolling: touch;

    scroll-behavior: auto;
}

.education-slider-wrapper::-webkit-scrollbar {
    display: none;
}


/* =====================================
   SLIDER TRACK
===================================== */

.education-slider-track {
    display: flex;
    align-items: stretch;

    gap: 15px;

    width: max-content;

    padding: 0;

    animation: none;
}


/* =====================================
   DRAGGING CURSOR
===================================== */

.education-slider-wrapper.dragging,
.education-slider-wrapper.dragging * {
    cursor: grabbing !important;
}

.education-slider-wrapper.dragging {
    scroll-behavior: auto;
}


/* =====================================
   COURSE CARD
===================================== */

.education-course-card {
    position: relative;

    flex: 0 0 calc((100cqw - 45px) / 4);

    min-width: 0;

    background: #f2f2f2;

    overflow: hidden;

    border-radius: 0 0 3px 3px;
}

.education-course-link {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;

    color: inherit;

    text-decoration: none;

    cursor: grab;

    -webkit-user-drag: none;
}


/* =====================================
   COURSE COLOURS
===================================== */

.course-red {
    --course-color: #c9002b;
    --course-gradient: rgba(201, 0, 43, 0.95);
}

.course-orange {
    --course-color: #a32e00;
    --course-gradient: rgba(163, 46, 0, 0.95);
}

.course-brown {
    --course-color: #984b00;
    --course-gradient: rgba(152, 75, 0, 0.95);
}

.course-purple {
    --course-color: #51006b;
    --course-gradient: rgba(81, 0, 107, 0.95);
}


/* =====================================
   COURSE TITLE
===================================== */

.education-course-title {
    min-height: 58px;

    padding: 7px 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--course-color);

    text-align: center;

    transition: background 0.4s ease;
}

.education-course-title h3 {
    margin: 0;

    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;

    color: #ffffff;
}


/* =====================================
   COURSE IMAGE
===================================== */

.education-course-image {
    position: relative;

    width: 100%;
    height: 265px;

    overflow: hidden;
}

.education-course-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    user-select: none;

    -webkit-user-drag: none;

    pointer-events: none;

    transition:
        transform 0.6s ease,
        filter 0.4s ease;
}


/* =====================================
   COURSE COLOUR GRADIENT
===================================== */

.education-course-gradient {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        var(--course-gradient) 0%,
        transparent 45%
    );

    pointer-events: none;

    transition: opacity 0.4s ease;
}


/* =====================================
   GRAY HOVER OVERLAY
===================================== */

.education-course-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background: rgba(100, 100, 100, 0.45);

    opacity: 0;

    pointer-events: none;

    transition: opacity 0.4s ease;
}


/* TITLE HOVER */

.education-course-card:hover .education-course-title,
.education-course-card:focus-within .education-course-title {
    background: #5c5c5c;
}


/* IMAGE HOVER */

.education-course-card:hover .education-course-image::after,
.education-course-card:focus-within .education-course-image::after {
    opacity: 1;
}


/* REMOVE ORIGINAL GRADIENT ON HOVER */

.education-course-card:hover .education-course-gradient,
.education-course-card:focus-within .education-course-gradient {
    opacity: 0;
}


/* IMAGE ZOOM ANIMATION */

.education-course-card:hover .education-course-image img,
.education-course-card:focus-within .education-course-image img {
    transform: scale(1.04);
}


/* =====================================
   CARD BOTTOM
===================================== */

.education-course-bottom {
    width: 100%;
    height: 60px;

    background: #f2f2f2;

    transition: background 0.4s ease;
}

.education-course-card:hover .education-course-bottom {
    background: #e8e8e8;
}


/* =====================================
   DISABLE HOVER EFFECT WHILE DRAGGING
===================================== */

.education-slider-wrapper.dragging
.education-course-title {
    background: var(--course-color);
}

.education-slider-wrapper.dragging
.education-course-image::after {
    opacity: 0;
}

.education-slider-wrapper.dragging
.education-course-gradient {
    opacity: 1;
}

.education-slider-wrapper.dragging
.education-course-image img {
    transform: none;
}


/* =====================================
   CONNECT WITH US SECTION
===================================== */

.education-connect {
    width: 100%;

    background: #f0f0f2;

    padding: 15px 10px;

    margin-bottom: 20px;
}

.education-connect-container {
    display: grid;

    grid-template-columns: 2fr 1fr;

    align-items: center;

    gap: 15px;
}

.education-connect-container p {
    margin: 0;

    font-size: 15px;
    font-weight: 400;

    color: #222222;
}

.education-connect-btn {
    justify-self: start;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 16px;

    background: #000000;
    color: #ffffff;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    border-radius: 4px;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.education-connect-btn:hover {
    background: #ffb800;

    color: #111111;
}


/* =====================================
   FIXED ENROLL NOW BUTTON
===================================== */

.education-enroll-btn {
    position: fixed;

    top: 50%;
    right: 0;

    transform: translateY(-50%);

    width: 49px;
    min-height: 142px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ff9d00;
    color: #ffffff;

    border-radius: 12px 0 0 12px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

    text-decoration: none;

    z-index: 999;

    transition:
        background 0.3s ease,
        width 0.3s ease;
}

.education-enroll-btn span {
    writing-mode: vertical-rl;

    transform: rotate(180deg);

    font-size: 16px;
    font-weight: 600;

    letter-spacing: 3px;
}

.education-enroll-btn:hover {
    width: 55px;

    background: #e88a00;

    color: #ffffff;
}


/* =====================================
   BANNER AND TITLE ANIMATIONS
===================================== */

@keyframes educationFadeRight {

    from {
        opacity: 0;

        transform: translateX(-30px);
    }

    to {
        opacity: 1;

        transform: translateX(0);
    }

}


@keyframes educationFadeLeft {

    from {
        opacity: 0;

        transform: translateX(30px);
    }

    to {
        opacity: 1;

        transform: translateX(0);
    }

}


@keyframes educationFadeUp {

    from {
        opacity: 0;

        transform: translateY(25px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* =====================================
   TABLET RESPONSIVE
===================================== */

@media (max-width: 1024px) {

    .education-course-card {
        flex-basis: calc((100cqw - 30px) / 3);
    }

    .education-intro-container {
        padding: 0 30px;
    }

    .education-course-title h3 {
        font-size: 15px;
    }

    .education-course-image {
        height: 240px;
    }

    .education-main-title {
        font-size: 26px;
    }

}


/* =====================================
   MOBILE RESPONSIVE
===================================== */

@media (max-width: 768px) {

    .education-banner {
        height: 220px;
    }

    .education-banner-container {
        padding: 0 20px;
    }

    .education-banner-title {
        font-size: 25px;
    }

    .education-breadcrumb {
        font-size: 12px;

        gap: 8px;
    }

    .education-intro-container {
        padding: 0 20px;
    }

    .education-main-title {
        font-size: 23px;

        margin-bottom: 18px;
    }

    .education-description p {
        font-size: 14px;

        line-height: 1.8;
    }

    .education-course-card {
        flex-basis: calc((100cqw - 15px) / 2);
    }

    .education-course-title {
        min-height: 65px;
    }

    .education-course-image {
        height: 220px;
    }

    .education-course-bottom {
        height: 40px;
    }

    .education-connect-container {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .education-connect-btn {
        justify-self: center;
    }

    .education-enroll-btn {
        width: 38px;

        min-height: 125px;
    }

    .education-enroll-btn span {
        font-size: 13px;

        letter-spacing: 2px;
    }

}


/* =====================================
   SMALL MOBILE RESPONSIVE
===================================== */

@media (max-width: 480px) {

    .education-banner {
        height: 190px;
    }

    .education-banner-container {
        flex-direction: column-reverse;

        justify-content: center;

        gap: 15px;
    }

    .education-banner-title {
        font-size: 24px;
    }

    .education-main-title {
        font-size: 21px;
    }

    .education-course-card {
        flex-basis: 85cqw;
    }

    .education-course-image {
        height: 265px;
    }

    .education-course-title h3 {
        font-size: 16px;
    }

    .education-connect-container p {
        font-size: 13px;
    }

}


/* =====================================
   KEYBOARD ACCESSIBILITY
===================================== */

.education-slider-wrapper:focus-visible,
.education-course-link:focus-visible,
.education-connect-btn:focus-visible,
.education-enroll-btn:focus-visible {
    outline: 3px solid #ffb800;

    outline-offset: -3px;
}


/* =====================================
   REDUCED MOTION
===================================== */

@media (prefers-reduced-motion: reduce) {

    .education-banner-title,
    .education-breadcrumb,
    .education-main-title {
        animation: none;
    }

    .education-course-image img,
    .education-course-image::after,
    .education-course-title,
    .education-course-gradient,
    .education-course-bottom,
    .education-connect-btn,
    .education-enroll-btn {
        transition: none;
    }

}