/* =========================================
   ESPINAS — ULTRA PREMIUM AFTER COURSES
   Ice Blue + Espinas Blue + Orange
========================================= */

.espinas-after-courses {
    --epac-navy: #082f49;
    --epac-blue: #064b83;
    --epac-blue-light: #0879bd;
    --epac-hover: #168bd2;
    --epac-ice: #eaf5fc;
    --epac-ice-light: #f5faff;
    --epac-orange: #ff8a00;
    --epac-orange-light: #ffad32;
    --epac-text: #405f78;

    position: relative;
    isolation: isolate;
    width: 100%;
    direction: rtl;
    padding: 45px 0 52px;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 5% 8%,
            rgba(22, 139, 210, .10),
            transparent 28%
        ),
        radial-gradient(
            circle at 95% 95%,
            rgba(255, 138, 0, .08),
            transparent 25%
        ),
        linear-gradient(
            180deg,
            #f5faff 0%,
            #eaf5fc 55%,
            #f5faff 100%
        );
}

.epac-container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

/* معرفی و آمار */

.epac-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .9fr);
    align-items: center;
    gap: 28px;

    padding: 30px;
    border: 1px solid #d4e8f6;
    border-radius: 26px;

    background:
        linear-gradient(
            120deg,
            rgba(255, 255, 255, .98),
            rgba(245, 250, 255, .96)
        );

    box-shadow:
        0 14px 38px rgba(8, 47, 73, .07),
        inset 0 1px 0 #ffffff;
}

.epac-intro-copy {
    min-width: 0;
}

.epac-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 7px 13px;
    border: 1px solid #c9e4f5;
    border-radius: 999px;

    background: #edf8ff;
    color: #0879bd;

    font-size: 12px;
    font-weight: 850;
}

.epac-intro-copy h2 {
    margin: 15px 0 9px;
    color: var(--epac-navy);

    font-size: clamp(23px, 2.5vw, 31px);
    font-weight: 950;
    line-height: 1.85;
}

.epac-intro-copy h2 strong {
    color: var(--epac-blue-light);
    font-weight: 950;
}

.epac-intro-copy p {
    max-width: 620px;
    margin: 0;

    color: var(--epac-text);
    font-size: 14px;
    line-height: 2.1;
}

.epac-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 43px;
    margin-top: 17px;
    padding: 0 20px;

    border: 1px solid #ff9a20;
    border-radius: 999px;

    background: linear-gradient(
        120deg,
        var(--epac-orange-light),
        #ff8500
    );

    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;

    box-shadow: 0 7px 18px rgba(255, 138, 0, .20);
    transition: transform .22s ease, box-shadow .22s ease;
}

.epac-contact-button:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(255, 138, 0, .27);
}

.epac-contact-button span {
    font-size: 19px;
    line-height: 1;
}

/* آمار */

.epac-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    min-width: 0;
}

.epac-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    min-height: 67px;
    padding: 12px 17px;

    border: 1px solid #d9eaf5;
    border-radius: 15px;
    background: #ffffff;

    box-shadow: 0 5px 15px rgba(8, 47, 73, .035);
}

.epac-stat strong {
    color: var(--epac-blue);
    font-size: 25px;
    font-weight: 950;
    line-height: 1.3;
    white-space: nowrap;
}

.epac-stat span {
    color: var(--epac-text);
    font-size: 12px;
    font-weight: 800;
}

/* کارت دوره و دسترسی سریع */

.epac-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 20px;
    margin-top: 20px;
}

/* کارت چهل راز موفقیت */

.epac-featured-course {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    min-height: 220px;
    padding: 25px 28px;
    overflow: hidden;

    border: 1px solid rgba(22, 139, 210, .25);
    border-radius: 23px;

    background:
        radial-gradient(
            circle at 10% 15%,
            rgba(255, 255, 255, .17),
            transparent 35%
        ),
        linear-gradient(
            125deg,
            #064b83 0%,
            #0879bd 58%,
            #0b5d91 100%
        );

    box-shadow: 0 13px 30px rgba(6, 75, 131, .16);
}

.epac-featured-course::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    left: -75px;
    bottom: -135px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    box-shadow:
        0 0 0 18px rgba(255, 255, 255, .035),
        0 0 0 38px rgba(255, 255, 255, .025);
    pointer-events: none;
}

.epac-course-content {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.epac-course-label {
    display: inline-block;
    padding: 6px 12px;

    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;

    background: rgba(255, 255, 255, .12);
    color: #ffffff;

    font-size: 10px;
    font-weight: 850;
}

.epac-course-content h3 {
    margin: 12px 0 4px;
    color: #ffffff;
    font-size: 22px;
    line-height: 1.7;
    font-weight: 950;
}

.epac-course-content p {
    margin: 0;
    color: #e3f3ff;
    font-size: 12px;
    line-height: 1.9;
}

.epac-course-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 12px;
}

.epac-course-price strong {
    color: #ffcf78;
    font-size: 23px;
    font-weight: 950;
    white-space: nowrap;
}

.epac-course-price span {
    color: #fff1d6;
    font-size: 11px;
    font-weight: 800;
}

.epac-course-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 39px;
    margin-top: 13px;
    padding: 0 17px;

    border: 1px solid #ffd38b;
    border-radius: 999px;

    background: linear-gradient(
        120deg,
        #ffbd57,
        #ff8a00
    );

    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;

    box-shadow: 0 6px 15px rgba(0, 0, 0, .12);
    transition: transform .22s ease, filter .22s ease;
}

.epac-course-button:hover {
    color: #ffffff;
    filter: brightness(1.06);
    transform: translateY(-2px);
}

.epac-course-button span {
    font-size: 18px;
    line-height: 1;
}

/* نشان تزئینی ۴۰ */

.epac-course-decoration {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 0 0 112px;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 112px;
    height: 112px;

    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 25%,
            rgba(255, 255, 255, .28),
            transparent 65%
        ),
        rgba(255, 255, 255, .10);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .2),
        0 8px 22px rgba(0, 0, 0, .10);
}

.epac-course-decoration span {
    color: #ffcf78;
    font-size: 43px;
    line-height: 1;
    font-weight: 950;
}

.epac-course-decoration small {
    margin-top: 5px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 850;
}

/* دسترسی سریع */

.epac-quick-links {
    min-width: 0;
    padding: 24px;

    border: 1px solid #d4e8f6;
    border-radius: 23px;
    background: linear-gradient(145deg, #ffffff, #f5faff);

    box-shadow:
        0 12px 30px rgba(8, 47, 73, .055),
        inset 0 1px 0 #ffffff;
}

.epac-quick-links h3 {
    margin: 0 0 17px;
    color: var(--epac-navy);
    font-size: 19px;
    font-weight: 950;
}

.epac-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.epac-links-grid a {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 40px;
    padding: 8px 11px;

    border: 1px solid #e0edf6;
    border-radius: 10px;
    background: #f5faff;

    color: #315873;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;

    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.epac-links-grid a::before {
    content: "‹";
    margin-left: 7px;
    color: var(--epac-orange);
    font-size: 18px;
    line-height: 1;
}

.epac-links-grid a:hover {
    color: var(--epac-blue);
    background: #eaf5fc;
    border-color: #b8dcef;
    transform: translateY(-2px);
}

/* تبلت */

@media (max-width: 900px) {
    .epac-intro {
        grid-template-columns: 1fr;
    }

    .epac-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .epac-stat {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 5px;
        padding: 13px 8px;
    }

    .epac-bottom-grid {
        grid-template-columns: 1fr;
    }
}

/* موبایل */

@media (max-width: 600px) {
    .espinas-after-courses {
        padding: 30px 0 35px;
    }

    .epac-container {
        width: calc(100% - 28px);
    }

    .epac-intro {
        padding: 20px 17px;
        gap: 20px;
        border-radius: 20px;
    }

    .epac-intro-copy h2 {
        font-size: 22px;
        line-height: 1.8;
    }

    .epac-intro-copy p {
        font-size: 12px;
    }

    .epac-stats {
        gap: 7px;
    }

    .epac-stat {
        min-height: 75px;
        padding: 9px 4px;
        border-radius: 12px;
    }

    .epac-stat strong {
        font-size: 18px;
    }

    .epac-stat span {
        font-size: 9px;
    }

    .epac-bottom-grid {
        gap: 13px;
        margin-top: 13px;
    }

    .epac-featured-course {
        min-height: 0;
        padding: 21px 17px;
        gap: 10px;
        border-radius: 19px;
    }

    .epac-course-content h3 {
        font-size: 19px;
    }

    .epac-course-price strong {
        font-size: 19px;
    }

    .epac-course-decoration {
        flex-basis: 78px;
        width: 78px;
        height: 78px;
    }

    .epac-course-decoration span {
        font-size: 31px;
    }

    .epac-course-decoration small {
        font-size: 9px;
    }

    .epac-quick-links {
        padding: 20px 16px;
        border-radius: 19px;
    }

    .epac-links-grid {
        gap: 7px;
    }

    .epac-links-grid a {
        min-height: 39px;
        padding: 7px 8px;
        font-size: 10px;
    }
}

@media (max-width: 370px) {
    .epac-stat strong {
        font-size: 16px;
    }

    .epac-course-decoration {
        display: none;
    }

    .epac-course-price strong {
        font-size: 17px;
    }
}