/* =========================================================
   LOGISTICS LEARNING PAGE
   ALL CLASSES START WITH xlp- TO AVOID CONFLICTS
   ENHANCED BLUE BACKGROUND + TEXT VISIBILITY
   ========================================================= */

.xlp-page {
    margin: 0;

    /* Softer blue background instead of very dark navy */
    background: #0b2236;

    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;

    overflow-x: hidden;
}


/* ================= HERO ================= */

.xlp-hero {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 40px 20px;

    box-sizing: border-box;

    /* Smooth blue background */
    background:
        radial-gradient(
            circle at 50% 15%,
            #3b7198 0%,
            #1d4d70 38%,
            #0b2236 85%
        );
}

.xlp-hero-content {
    max-width: 900px;

    animation: xlpHeroIn 1.2s ease forwards;
}

@keyframes xlpHeroIn {

    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* ================= HERO LABEL ================= */

.xlp-label {
    color: #ffd34f;

    font-size: 12px;

    letter-spacing: 5px;

    font-weight: 800;

    text-shadow:
        0 2px 5px rgba(0,0,0,0.45);
}


/* ================= HERO HEADING ================= */

.xlp-hero h1 {
    margin: 25px 0;

    font-size: clamp(45px, 8vw, 90px);

    line-height: 0.95;

    color: #ffffff;

    font-weight: 900;

    text-shadow:
        0 3px 10px rgba(0,0,0,0.45),
        0 8px 25px rgba(0,0,0,0.25);
}

.xlp-hero h1 span {
    display: block;

    color: #ffd34f;

    font-weight: 900;

    text-shadow:
        0 3px 8px rgba(0,0,0,0.4);
}


/* ================= HERO PARAGRAPH ================= */

.xlp-hero p {
    max-width: 700px;

    margin: auto;

    color: #f1f7fb;

    font-size: 18px;

    line-height: 1.8;

    font-weight: 500;

    text-shadow:
        0 2px 5px rgba(0,0,0,0.4);
}


/* ================= SCROLL ================= */

.xlp-scroll {
    margin-top: 60px;

    color: #ffd34f;

    font-size: 11px;

    letter-spacing: 3px;

    font-weight: 800;

    text-shadow:
        0 2px 5px rgba(0,0,0,0.45);
}

.xlp-scroll b {
    display: block;

    margin-top: 15px;

    font-size: 25px;

    animation: xlpArrow 1.5s infinite;

    color: #ffffff;

    text-shadow:
        0 2px 7px rgba(0,0,0,0.5);
}

@keyframes xlpArrow {

    50% {
        transform: translateY(10px);
    }

}


/* ================= LEARNING ================= */

.xlp-learning {
    width: min(950px, 90%);

    margin: auto;

    padding-bottom: 150px;
}


/* ================= CARDS ================= */

.xlp-card {

    margin: 160px 0;

    padding: 55px;

    border-radius: 25px;

    /* Less white, more blue */
    background:
        linear-gradient(
            145deg,
            rgba(39, 91, 126, 0.72),
            rgba(14, 45, 68, 0.82)
        );

    border: 1px solid rgba(143, 202, 235, 0.25);

    box-shadow:
        0 30px 80px rgba(0,0,0,0.28),
        inset 0 1px 0 rgba(255,255,255,0.08);

    opacity: 0;

    transform: translateY(80px);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.xlp-card.xlp-show {

    opacity: 1;

    transform: translateY(0);
}


/* ================= CARD LABEL ================= */

.xlp-card small {

    color: #ffd34f;

    letter-spacing: 3px;

    font-weight: 800;

    text-shadow:
        0 2px 5px rgba(0,0,0,0.45);
}


/* ================= CARD HEADING ================= */

.xlp-card h2 {

    font-size: clamp(30px, 5vw, 52px);

    margin: 20px 0;

    color: #ffffff;

    font-weight: 900;

    line-height: 1.08;

    text-shadow:
        0 3px 8px rgba(0,0,0,0.5);
}


/* ================= CARD TEXT ================= */

.xlp-card p {

    color: #f0f7fb;

    font-size: 18px;

    line-height: 1.9;

    font-weight: 500;

    text-shadow:
        0 1px 4px rgba(0,0,0,0.35);
}/* ================= GRID ================= */

.xlp-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(180px, 1fr));

    gap: 18px;

    margin-top: 35px;
}

.xlp-grid div {

    padding: 25px;

    /* Blue instead of white */
    background:
        rgba(57, 112, 146, 0.38);

    border: 1px solid rgba(151, 211, 240, 0.16);

    border-radius: 15px;

    transition:
        transform 0.3s ease,
        background 0.3s ease;

    color: #ffffff;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.15);
}

.xlp-grid div:hover {

    transform: translateY(-7px);

    background:
        rgba(69, 132, 169, 0.5);
}

.xlp-grid strong {

    color: #ffd34f;

    font-weight: 800;

    text-shadow:
        0 2px 5px rgba(0,0,0,0.4);
}


/* ================= FACT ================= */

.xlp-fact {

    margin-top: 35px;

    padding: 25px;

    border-left: 4px solid #ffd34f;

    /* Soft blue/gold background */
    background:
        rgba(255, 211, 79, 0.09);

    color: #ffffff;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.12);
}

.xlp-fact b {

    color: #ffd34f;

    font-weight: 800;

    text-shadow:
        0 2px 5px rgba(0,0,0,0.45);
}


/* ================= FINAL SECTION ================= */

.xlp-finale {

    position: relative;

    min-height: 600px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    text-align: center;
}


/* ================= CLOTH ================= */

.xlp-cloth {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            #f5b400,
            #d39300,
            #f8c52b,
            #b77c00
        );

    transform-origin: top center;

    transform:
        perspective(1000px)
        rotateX(80deg)
        scaleY(0.08);

    transition:
        transform 2.5s cubic-bezier(.16,.8,.25,1);
}

.xlp-finale.xlp-open .xlp-cloth {

    transform:
        perspective(1000px)
        rotateX(0deg)
        scaleY(1);
}


/* ================= FINAL CONTENT ================= */

.xlp-final-content {

    position: relative;

    z-index: 5;

    opacity: 0;

    transform: translateY(40px);

    transition:
        opacity 1s ease 1.4s,
        transform 1s ease 1.4s;

    /* Makes content stay clearly above background */
    text-shadow:
        0 2px 5px rgba(255,255,255,0.15);
}

.xlp-finale.xlp-open .xlp-final-content {

    opacity: 1;

    transform: translateY(0);
}


/* ================= FINAL CHECK ================= */

.xlp-check {

    font-size: 45px;

    color: #07111d;

    font-weight: 900;

    text-shadow:
        0 2px 5px rgba(255,255,255,0.25);
}


/* ================= FINAL HEADING ================= */

.xlp-final-content h2 {

    font-size: clamp(40px, 7vw, 75px);

    color: #07111d;

    margin: 10px 0;

    font-weight: 900;

    text-shadow:
        0 2px 5px rgba(255,255,255,0.25);
}


/* ================= FINAL PARAGRAPH ================= */

.xlp-final-content p {

    color: #101a22;

    font-size: 18px;

    font-weight: 700;

    line-height: 1.7;

    text-shadow:
        0 1px 3px rgba(255,255,255,0.2);
}


/* ================= STARS ================= */

.xlp-stars {

    position: absolute;

    inset: 0;

    pointer-events: none;

    z-index: 4;
}

.xlp-star {

    position: absolute;

    width: 5px;

    height: 5px;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 0 10px rgba(255,255,255,0.9);

    animation: xlpStarPop 1.5s ease forwards;
}

@keyframes xlpStarPop {

    0% {
        opacity: 0;
        transform: scale(0);
    }

    40% {
        opacity: 1;
        transform: scale(2);
    }

    100% {
        opacity: 0;
        transform:
            scale(0.5)
            translateY(-100px);
    }
}


/* ================= RETURN ================= */

.xlp-return {

    margin-top: 30px;

    padding: 14px 35px;

    border: 2px solid #07111d;

    border-radius: 50px;

    background: rgba(255,255,255,0.12);

    color: #07111d;

    font-weight: 900;

    letter-spacing: 2px;cursor: pointer;

    transition:
        all 0.3s ease;

    box-shadow:
        0 5px 15px rgba(0,0,0,0.15);
}

.xlp-return:hover {

    background: #07111d;

    color: #ffffff;

    transform: translateY(-4px);

    box-shadow:
        0 10px 25px rgba(0,0,0,0.3);
}


/* ================= MOBILE ================= */

@media (max-width: 600px) {

    .xlp-card {

        padding: 30px 22px;

        margin: 100px 0;
    }

    .xlp-card p {

        font-size: 16px;

        line-height: 1.8;
    }

    .xlp-hero p {

        font-size: 16px;

        line-height: 1.75;
    }

    .xlp-card h2 {

        font-size: 32px;
    }

    .xlp-grid div {

        padding: 20px;
    }

}