
/* ============================================================
   TURNONLEARNING — HOMEPAGE SECTION 2
   YOUR LEARNING JOURNEY
   ============================================================ */


/* ============================================================
   1. SECTION 2 — ΚΕΝΤΡΙΚΗ ΕΝΟΤΗΤΑ
   ============================================================ */

.learning-journey {
    --journey-background-color: #ffffff;
    --journey-title-color: #172033;
    --journey-accent-color: #2563eb;
    --journey-description-color: #64748b;

    position: relative;
    isolation: isolate;

    width: 100%;
    min-width: 0;

    /*
       Το Section 2 επικαλύπτει το Section 1.
       Η επικάλυψη κρύβει την ευθεία ένωση.
    */
    margin-top: -70px;

    /*
       Επιπλέον χώρος επάνω, ώστε το κύμα
       να μην πλησιάζει τον τίτλο.
    */
    padding:
        clamp(130px, 11vw, 170px)
        24px
        clamp(75px, 7vw, 105px);

    
        /* Ομαλό κύμα χωρίς γωνίες — Desktop */
        clip-path: shape(
            from 0% 40px,

            curve to 25% 28px
                with 8% 20px / 17% 20px,

            curve to 50% 38px
                with 33% 36px / 42% 52px,

            curve to 75% 24px
                with 58% 18px / 67% 16px,

            curve to 100% 35px
                with 83% 32px / 92% 48px,

            line to 100% 100%,
            line to 0% 100%,
            close
        );


    background-image:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.25),
            rgba(240, 247, 255, 0.35)
        ),
        var(--journey-background-image, none);

    background-color: var(--journey-background-color);

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    color: var(--journey-title-color);
}

.learning-journey *,
.learning-journey *::before,
.learning-journey *::after {
    box-sizing: border-box;
}

.learning-journey::before,
.learning-journey::after {
    content: none;
}


/* ============================================================
   2. ΚΕΝΤΡΙΚΟ CONTAINER
   ============================================================ */

.learning-journey__container {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 1600px;

    margin: 0 auto;
}


/* ============================================================
   3. ΕΠΙΚΕΦΑΛΙΔΑ
   ============================================================ */

.learning-journey__header {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.learning-journey__eyebrow {
    display: inline-block;
    margin-bottom: 16px;

    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: var(--journey-accent-color);
}

.learning-journey__title {
    margin: 0;

    font-size: clamp(34px, 4vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;

    color: var(--journey-title-color);
}

.learning-journey__description {
    max-width: 680px;
    margin: 22px auto 0;

    font-size: clamp(15px, 1.15vw, 18px);
    font-weight: 400;
    line-height: 1.8;

    color: var(--journey-description-color);
}


/* ============================================================
   4. ΠΕΝΤΕ ΚΑΡΤΕΣ
   ============================================================ */

.learning-journey__steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));

    gap: 16px;
    width: 100%;
    margin-top: 55px;

    align-items: stretch;
}

.learning-journey__steps::before,
.learning-journey__steps::after {
    content: none;
}

.learning-journey__steps > .journey-card {
    grid-column: auto;
}


/* ============================================================
   5. ΚΑΡΤΕΣ
   ============================================================ */

.journey-card {
    --journey-card-background: #ffffff;

    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: 0;
    min-height: 0;
    height: 100%;

    padding: 22px 14px 24px;

    border: 1px solid rgba(214, 226, 243, 0.95);
    border-radius: 20px;

    background-color: var(--journey-card-background);
    text-align: center;

    box-shadow:
        0 8px 28px rgba(15, 23, 42, 0.06);

    transition:
        box-shadow 300ms ease,
        border-color 300ms ease;
}

/* Χωρίς zoom κατά το hover */
.journey-card:hover {
    border-color: rgba(37, 99, 235, 0.30);

    box-shadow:
        0 18px 42px rgba(15, 23, 42, 0.12);
}


/* ============================================================
   6. ICONS
   ============================================================ */

.journey-card__top {
    order: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    padding-top: 12px;
    margin: 0 0 12px;
}

.journey-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;
    flex-shrink: 0;

    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.journey-card__icon img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* ============================================================
   7. ΑΡΙΘΜΟΙ ΣΤΑΔΙΩΝ
   ============================================================ */

.journey-card__number {
    display: none;
}


/* ============================================================
   8. ΕΙΚΟΝΕΣ ΚΑΡΤΩΝ
   ============================================================ */

.journey-card__media {
    order: 2;

    width: 100%;
    aspect-ratio: 5 / 4;

    margin: 0 0 14px;
    overflow: hidden;

    border-radius: 14px;
    background-color: #f1f5f9;
}

.journey-card__media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transform: none;
}


/* ============================================================
   9. ΤΙΤΛΟΙ ΚΑΡΤΩΝ
   ============================================================ */

.journey-card__title {
    order: 3;

    width: 100%;
    margin: 0 0 10px;

    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.02em;

    color: var(--journey-title-color);
    overflow-wrap: break-word;
}


/* ============================================================
   10. ΠΕΡΙΓΡΑΦΕΣ ΚΑΡΤΩΝ
   ============================================================ */

.journey-card__description {
    order: 4;

    width: 100%;
    margin: 0;

    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;

    color: var(--journey-description-color);
    overflow-wrap: break-word;
}


/* ============================================================
   11. ΚΑΤΩ ΚΕΙΜΕΝΟ
   ============================================================ */

.learning-journey__footer {
    margin: 48px 0 0;
    text-align: center;
}

.learning-journey__footer p {
    margin: 0;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.8;

    color: var(--journey-description-color);
}


/* ============================================================
   12. SCROLL ANIMATION
   ============================================================ */

.learning-journey.journey-animation-ready .journey-card {
    opacity: 0;
    transform: translateY(55px) scale(0.96);

    transition:
        opacity 800ms ease,
        transform 800ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 300ms ease,
        border-color 300ms ease;

    transition-delay: 0ms;
}

.learning-journey.journey-animation-ready.journey-animation-visible
.journey-card {
    opacity: 1;
    transform: translateY(0) scale(1);

    transition-delay: var(--journey-delay, 0ms);
}

.learning-journey.journey-animation-ready:not(.journey-animation-visible)
.journey-card {
    transition-delay: 0ms;
}


/* ============================================================
   13. RESPONSIVE — ΜΙΚΡΟΤΕΡΟΙ ΥΠΟΛΟΓΙΣΤΕΣ
   ============================================================ */

@media (max-width: 1250px) {

    .learning-journey {
        padding-left: 16px;
        padding-right: 16px;
    }

    .learning-journey__steps {
        gap: 12px;
    }

    .journey-card {
        padding: 20px 12px 22px;
    }

    .journey-card__title {
        font-size: 15px;
    }

    .journey-card__description {
        font-size: 12px;
        line-height: 1.6;
    }
}


/* ============================================================
   14. RESPONSIVE — TABLETS
   ============================================================ */

@media (max-width: 950px) {

    .learning-journey__steps {
        display: flex;
        gap: 18px;

        overflow-x: auto;
        overflow-y: hidden;

        padding: 12px 4px 28px;

        scroll-snap-type: x mandatory;
        scroll-padding-inline: 4px;

        -webkit-overflow-scrolling: touch;
    }

    .journey-card {
        flex: 0 0 min(300px, 72vw);
        height: auto;
        scroll-snap-align: start;
    }

    .journey-card__icon {
        width: 64px;
        height: 64px;
    }

    .journey-card__title {
        font-size: 18px;
    }

    .journey-card__description {
        font-size: 13px;
    }
}


/* ============================================================
   15. RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .learning-journey {
        margin-top: -48px;
        padding: 105px 16px 70px;

        
        /* Ομαλό κύμα χωρίς γωνίες — Mobile */
        clip-path: shape(
            from 0% 28px,

            curve to 50% 22px
                with 17% 10px / 33% 40px,

            curve to 100% 26px
                with 67% 8px / 83% 40px,

            line to 100% 100%,
            line to 0% 100%,
            close
        );

    }

    .learning-journey__header {
        margin-bottom: 0;
    }

    .learning-journey__title {
        font-size: clamp(30px, 8vw, 40px);
    }

    .learning-journey__steps {
        gap: 14px;
        margin-top: 38px;
    }

    .journey-card {
        flex: 0 0 min(300px, 84vw);
        padding: 20px 16px 24px;
    }

    .journey-card__media {
        aspect-ratio: 5 / 4;
    }

    .learning-journey__footer {
        margin-top: 36px;
    }
}


/* ============================================================
   16. ACCESSIBILITY — REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .learning-journey .journey-card {
        opacity: 1 !important;
        transform: none !important;

        animation: none !important;
        transition: none !important;
    }

    .journey-card__icon,
    .journey-card__media img {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    .learning-journey__steps {
        scroll-behavior: auto;
    }
}


/* ============================================================
   17. ΠΑΛΑΙΟ SVG DIVIDER — ΑΠΕΝΕΡΓΟΠΟΙΗΜΕΝΟ
   ============================================================ */

/*
   Η μετάβαση γίνεται πλέον από το Section 2.
   Δεν εμφανίζουμε τη γκρίζα λωρίδα.
*/

.home-section-divider {
    display: none;
}


/* ============================================================
   18. HOMEPAGE WRAPPER
   ============================================================ */

.home-page {
    display: flow-root;
}


/* ============================================================
   END — TURNONLEARNING SECTION 2
   ============================================================ */
