/* =========================================================
   EDUiZY GLOBAL CSS
   Tailwind handles the UI
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;

    font-family: "Inter", sans-serif;

    background: #ffffff;
    color: #111827;

    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

/* header */


/* =====================================================
   EDUiZY FIXED HEADER + SMOOTH SCROLL
   ===================================================== */

#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 80;

    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition:
        transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s ease;
}

/* Header hidden while scrolling down */
#site-header.header-hidden {
    transform: translateY(-100%);
}

/* Header visible while scrolling up */
#site-header.header-visible {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.eduizy-logo {
    display: block;
    width: auto;
    height: 90px;
    max-width: 220px;
    object-fit: contain;
}

/* Tablet */
@media (max-width: 1024px) {
    .eduizy-logo {
        height: 75px;
        max-width: 200px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .eduizy-logo {
        height: 75px;
        max-width: 175px;
    }
}

/* footer logo  */


.eduizy-footer-logo {
    display: block;
    width: 100px;
    height: auto;
    max-width: 100%;
    object-fit: contain;

    transition:
        transform 0.5s ease,
        filter 0.5s ease;
}


/* Hover Effect */
.eduizy-logo-link:hover .eduizy-footer-logo {
    transform: scale(1.03);
}


/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 1024px) {
    .eduizy-footer-logo {
        width: 100px;
    }
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 640px) {
    .eduizy-footer-logo {
        width: 100px;
    }
}

/* course card section */
/* =====================================================
   EDUiZY — COURSE CAROUSEL
   BRAND COLORS
   Blue : #003E9B
   Dark : #001F5C
   Gold : #EDAE09
   ===================================================== */


/* =====================================================
   COURSE TRACK
   ===================================================== */

.course-track {
    display: flex;

    gap: 20px;

    width: 100%;

    overflow-x: auto;
    overflow-y: visible;

    scroll-behavior: smooth;

    scrollbar-width: none;
    -ms-overflow-style: none;

    cursor: grab;

    padding-bottom: 8px;

    /* Prevent flex items from shrinking */
    flex-wrap: nowrap;

    /* Smooth touch scrolling */
    -webkit-overflow-scrolling: touch;

    /* Prevent accidental vertical gesture interference */
    touch-action: pan-x;
}


.course-track::-webkit-scrollbar {
    display: none;
}


.course-track:active {
    cursor: grabbing;
}


/* =====================================================
   COURSE CAROUSEL
   IMPORTANT:
   Keep same left/right alignment as main container
   ===================================================== */

#course-carousel {
    width: 100%;

    overflow: hidden;

    margin-left: 0;
    margin-right: 0;

    padding-left: 0;
    padding-right: 0;
}


/* =====================================================
   COURSE CARD
   ===================================================== */

.course-card {
    position: relative;

    /*
     * Desktop:
     * 3 cards + 2 gaps
     * approx 320px each
     */
    flex: 0 0 320px;

    width: 320px;

    background: #ffffff;

    border: 1px solid #e8edf5;

    border-radius: 17px;

    overflow: hidden;

    box-shadow:
        0 8px 28px rgba(0, 31, 92, 0.055);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


/* =====================================================
   CARD HOVER
   ===================================================== */

.course-card:hover {
    transform: translateY(-5px);

    border-color: rgba(0, 62, 155, 0.20);

    box-shadow:
        0 18px 42px rgba(0, 31, 92, 0.11);
}


/* =====================================================
   POPULAR CARD
   ===================================================== */

.course-card-popular {
    border: 1.5px solid rgba(237, 174, 9, 0.75);

    box-shadow:
        0 10px 32px rgba(237, 174, 9, 0.11);
}


.course-card-popular:hover {
    border-color: rgba(237, 174, 9, 0.95);

    box-shadow:
        0 18px 42px rgba(237, 174, 9, 0.17);
}


/* =====================================================
   THUMBNAIL
   ===================================================== */
/* =====================================================
   COURSE THUMBNAIL
   ===================================================== */

.course-thumbnail {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #eef3f9;
}


/* =====================================================
   COURSE IMAGE
   ===================================================== */

.course-thumbnail img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    max-width: none;

    /* Prevent unnecessary browser smoothing/compositing */
    backface-visibility: visible;

    transition: transform 0.35s ease;
}


/* =====================================================
   HOVER
   ===================================================== */

.course-card:hover .course-thumbnail img {
    transform: scale(1.015);
}


/* =====================================================
   IMAGE OVERLAY
   ===================================================== */

.course-image-overlay {
    position: absolute;

    inset: 0;

    z-index: 2;

    pointer-events: none;

    background: linear-gradient(
        to bottom,
        rgba(0, 31, 92, 0) 50%,
        rgba(0, 31, 92, 0.16) 100%
    );
}
/* =====================================================
   COURSE BADGE
   ===================================================== */

.course-badge {
    position: absolute;

    left: 12px;
    top: 12px;

    z-index: 3;

    padding: 5px 9px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.96);

    color: #003E9B;

    font-size: 10px;

    font-weight: 800;

    line-height: 1;

    letter-spacing: 0.03em;

    box-shadow:
        0 4px 12px rgba(0, 31, 92, 0.12);
}


/* =====================================================
   POPULAR LABEL
   ===================================================== */

.popular-label {
    position: absolute;

    top: 12px;
    right: 12px;

    z-index: 5;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 5px;

    padding: 5px 9px;

    border-radius: 999px;

    background: #EDAE09;

    color: #001F5C;

    font-size: 9px;

    font-weight: 800;

    line-height: 1;

    white-space: nowrap;

    box-shadow:
        0 5px 15px rgba(237, 174, 9, 0.25);
}


.popular-label i {
    font-size: 8px;
}


/* =====================================================
   COURSE CONTENT
   ===================================================== */

.course-content {
    padding: 16px 16px 17px;
}


/* =====================================================
   CATEGORY
   ===================================================== */

.course-category {
    margin-bottom: 5px;

    color: #003E9B;

    font-size: 9px;

    font-weight: 800;

    line-height: 1.3;

    letter-spacing: 0.08em;
}


/* =====================================================
   COURSE TITLE
   ===================================================== */

.course-title {
    margin: 0;

    min-height: 43px;

    color: #001F5C;

    font-size: 16px;

    font-weight: 800;

    line-height: 1.35;
}


/* =====================================================
   COURSE DESCRIPTION
   ===================================================== */

.course-description {
    margin-top: 5px;

    min-height: 37px;

    color: #64748b;

    font-size: 16px;

    line-height: 1.5;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =====================================================
   COURSE FEATURES
   ===================================================== */

.course-features {
    display: flex;

    flex-direction: column;

    gap: 5px;

    margin: 12px 0 13px;

    padding: 0;

    list-style: none;
}


.course-features li {
    display: flex;

    align-items: center;

    gap: 7px;

    color: #475569;

    font-size: 15px;

    line-height: 1.4;
}


.course-features i {
    flex-shrink: 0;

    color: #003E9B;

    font-size: 10px;
}


/* =====================================================
   PRICE ROW
   ===================================================== */

.course-price-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 8px;

    padding-top: 10px;

    border-top: 1px solid #eef2f7;
}


/* =====================================================
   OLD PRICE
   ===================================================== */

.course-old-price {
    display: block;

    color: #94a3b8;

    font-size: 10px;

    line-height: 1.2;

    text-decoration: line-through;
}


/* =====================================================
   CURRENT PRICE
   ===================================================== */

.course-price {
    display: block;

    margin-top: 2px;

    color: #001F5C;

    font-size: 21px;

    font-weight: 900;

    line-height: 1.1;
}


/* =====================================================
   DISCOUNT
   ===================================================== */

.course-discount {
    flex-shrink: 0;

    padding: 5px 7px;

    border-radius: 6px;

    background: #fff7d6;

    color: #9a7100;

    font-size: 9px;

    font-weight: 800;

    line-height: 1;
}


/* =====================================================
   BUY BUTTON
   TEXT + ARROW BOTH CENTER
   ===================================================== */

/* =====================================================
   PREMIUM COURSE BUY BUTTON
   ===================================================== */

.course-buy-btn {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    width: 100%;
    margin-top: 12px;
    padding: 10px 12px;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #0047b8 0%,
            #003E9B 55%,
            #002f7a 100%
        );

    color: #ffffff;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15px;
    line-height: 1;

    text-decoration: none;

    overflow: hidden;

    box-shadow:
        0 7px 18px rgba(0, 62, 155, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}


/* =====================================================
   SUBTLE SHINE
   ===================================================== */

.course-buy-btn::before {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 70%;
    height: 100%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.12),
        transparent
    );

    transform: skewX(-20deg);

    transition: left 0.6s ease;

    pointer-events: none;
}

.course-buy-btn:hover::before {
    left: 140%;
}


/* =====================================================
   BUTTON TEXT
   ===================================================== */

.course-buy-btn strong {
    position: relative;
    z-index: 2;

    color: #ffffff;

    font-weight: 800;
}


/* =====================================================
   ARROW BOX
   ===================================================== */

.course-buy-btn span {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    flex-shrink: 0;

    border-radius: 7px;

    background: rgba(255, 255, 255, 0.13);

    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.10);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}


/* =====================================================
   ARROW ICON
   ===================================================== */

.course-buy-btn span i {
    font-size: 9px;

    transition:
        transform 0.3s ease;
}


/* =====================================================
   HOVER
   ===================================================== */

.course-buy-btn:hover {
    background:
        linear-gradient(
            135deg,
            #0053cc 0%,
            #003E9B 55%,
            #00347f 100%
        );

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 11px 25px rgba(0, 62, 155, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}


/* Arrow hover */

.course-buy-btn:hover span {
    transform: translateX(3px);

    background: #EDAE09;

    color: #001F5C;

    border-color: #EDAE09;

    box-shadow:
        0 4px 10px rgba(237, 174, 9, 0.25);
}

.course-buy-btn:hover span i {
    transform: translateX(1px);
}


/* =====================================================
   ACTIVE / CLICK
   ===================================================== */

.course-buy-btn:active {
    transform: translateY(0);

    box-shadow:
        0 5px 12px rgba(0, 62, 155, 0.20);
}


/* =====================================================
   PRIMARY BUTTON
   ===================================================== */

.course-buy-primary {
    background:
        linear-gradient(
            135deg,
            #0047b8,
            #003E9B,
            #002f7a
        );

    color: #ffffff;

    box-shadow:
        0 8px 20px rgba(0, 62, 155, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.course-buy-primary:hover {
    background:
        linear-gradient(
            135deg,
            #0053cc,
            #003E9B,
            #00347f
        );

    color: #ffffff;
}
/* =====================================================
   SECTION CONTAINER
   IMPORTANT:
   Match course section width with header/logo spacing
   ===================================================== */

#course-plans > div.relative.z-10 {
    max-width: 1020px;
}


/* =====================================================
   DESKTOP
   EXACTLY 3 CARDS
   ===================================================== */

@media (min-width: 1280px) {

    .course-card {
        /*
         * 1020px container
         *
         * 320px + 320px + 320px
         * + 20px + 20px gaps
         *
         * = 1000px
         *
         * Remaining 20px gives balanced breathing room.
         */

        flex: 0 0 320px;

        width: 320px;
    }

}


/* =====================================================
   LARGE DESKTOP
   3 CARDS WITH BALANCED WIDTH
   ===================================================== */

@media (min-width: 1440px) {

    .course-card {
        flex: 0 0 320px;

        width: 320px;
    }

}


/* =====================================================
   MEDIUM DESKTOP
   ===================================================== */

@media (min-width: 1024px) and (max-width: 1279px) {

    #course-plans > div.relative.z-10 {
        max-width: 940px;
    }


    .course-card {
        flex: 0 0 295px;

        width: 295px;
    }


    .course-thumbnail {
        height: 150px;
    }

}


/* =====================================================
   TABLET
   ===================================================== */

@media (min-width: 768px) and (max-width: 1023px) {

    #course-plans > div.relative.z-10 {
        max-width: 760px;
    }


    .course-card {
        flex: 0 0 300px;

        width: 300px;
    }


    .course-thumbnail {
        height: 150px;
    }

}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 767px) {

    /*
     * Restore natural mobile container spacing
     */

    #course-plans > div.relative.z-10 {
        max-width: 100%;
    }


    #course-carousel {
        width: calc(100% + 0px);

        overflow: hidden;
    }


    .course-track {
        gap: 16px;

        padding-bottom: 7px;
    }


    .course-card {
        flex: 0 0 285px;

        width: 285px;

        border-radius: 16px;
    }


    .course-thumbnail {
        height: 145px;
    }


    .course-content {
        padding: 15px;
    }


    .course-category {
        font-size: 9px;
    }


    .course-title {
        min-height: 42px;

        font-size: 16px;

        line-height: 1.35;
    }


    .course-description {
        min-height: 36px;

        font-size: 16px;

        line-height: 1.5;
    }


    .course-features {
        margin-top: 11px;
        margin-bottom: 13px;
    }


    .course-features li {
        font-size: 15px;
    }


    .course-price {
        font-size: 20px;
    }


    .course-old-price {
        font-size: 10px;
    }


    .course-discount {
        font-size: 9px;

        padding: 5px 7px;
    }


    .course-buy-btn {
        margin-top: 11px;

        padding: 9px 10px;

        font-size: 12px;
    }


    .course-buy-btn span {
        width: 24px;
        height: 24px;
    }


    .popular-label {
        top: 11px;
        right: 11px;

        font-size: 8px;
    }


    .course-badge {
        top: 11px;
        left: 11px;

        font-size: 9px;
    }

}


/* =====================================================
   SMALL MOBILE
   ===================================================== */

@media (max-width: 380px) {

    .course-card {
        flex-basis: 275px;

        width: 275px;
    }


    .course-thumbnail {
        height: 140px;
    }


    .course-content {
        padding: 14px;
    }

}


/* =====================================================
   VERY SMALL MOBILE
   ===================================================== */

@media (max-width: 340px) {

    .course-card {
        flex-basis: 260px;

        width: 260px;
    }


    .course-thumbnail {
        height: 135px;
    }

}

/*  scrollable*/
.course-track {
    cursor: grab;
}

.course-track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.course-track.is-dragging .course-card {
    pointer-events: none;
}


/* gallery section */

/* =========================================================
   PREMIUM GALLERY
   ========================================================= */

.gallery-grid {
    column-count: 3;
    column-gap: 20px;
}


/* =========================================================
   GALLERY ITEM
   ========================================================= */

.gallery-item {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;

    border-radius: 18px;
    background: #f8fafc;

    cursor: pointer;

    break-inside: avoid;

    box-shadow:
        0 8px 30px rgba(0, 31, 92, 0.07);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}


.gallery-item:hover {
    transform: translateY(-5px);

    box-shadow:
        0 18px 45px rgba(0, 31, 92, 0.14);
}


/* =========================================================
   IMAGE
   ========================================================= */

.gallery-item img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: cover;

    transition:
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.4s ease;
}


.gallery-item:hover img {
    transform: scale(1.045);
}


/* =========================================================
   OVERLAY
   ========================================================= */

.gallery-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: flex-end;
    justify-content: flex-end;

    padding: 18px;

    background:
        linear-gradient(
            to top,
            rgba(0, 31, 92, 0.50),
            transparent 45%
        );

    opacity: 0;

    transition:
        opacity 0.35s ease;
}


.gallery-item:hover .gallery-overlay {
    opacity: 1;
}


/* =========================================================
   VIEW ICON
   ========================================================= */

.gallery-view-icon {
    display: flex;

    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.95);

    color: #003e9b;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.15);

    transform: translateY(8px);

    transition:
        transform 0.35s ease,
        background 0.35s ease,
        color 0.35s ease;
}


.gallery-item:hover .gallery-view-icon {
    transform: translateY(0);
}


.gallery-view-icon:hover {
    background: #edae09;
    color: #001f5c;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .gallery-grid {
        column-count: 2;
        column-gap: 18px;
    }

    .gallery-item {
        margin-bottom: 18px;
        border-radius: 16px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .gallery-grid {
        column-count: 1;
    }

    .gallery-item {
        margin-bottom: 16px;
        border-radius: 16px;
    }

    .gallery-overlay {
        opacity: 1;

        padding: 14px;

        background:
            linear-gradient(
                to top,
                rgba(0, 31, 92, 0.38),
                transparent 40%
            );
    }

    .gallery-view-icon {
        width: 38px;
        height: 38px;

        transform: translateY(0);
    }

}


/* =========================================================
   LIGHTBOX
   ========================================================= */

#gallery-lightbox {
    opacity: 0;

    transition:
        opacity 0.3s ease;
}


#gallery-lightbox.gallery-lightbox-active {
    opacity: 1;
}


#gallery-lightbox-image {
    animation:
        galleryImageIn 0.35s ease;
}


@keyframes galleryImageIn {

    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}


/* =========================================================
   BODY LOCK
   ========================================================= */

body.gallery-open {
    overflow: hidden;
}

