/* =========================================================
   EduOrk Academy — courses page styles
   ========================================================= */

/* =====================================================
   Courses page — same look as Home / Events / Contact
   ===================================================== */
.cp-hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 5rem 1rem 5.25rem;
    color: #fff;
    background:
        radial-gradient(900px 420px at 15% -10%, rgba(220, 38, 38, .22), transparent 60%),
        radial-gradient(800px 420px at 90% 10%, rgba(245, 158, 11, .09), transparent 60%),
        linear-gradient(180deg, #0f172a 0%, #111c33 100%);
    border-bottom: 1px solid #1e293b;
}

.cp-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 72%);
    mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 72%);
    pointer-events: none;
}

.cp-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.cp-orb-a {
    width: 320px;
    height: 320px;
    left: -80px;
    bottom: -90px;
    background: rgba(220, 38, 38, .16);
}

.cp-orb-b {
    width: 280px;
    height: 280px;
    right: -60px;
    top: 30px;
    background: rgba(245, 158, 11, .09);
}

.cp-inner {
    position: relative;
    z-index: 2;
    max-width: 56rem;
    margin: 0 auto;
}

.cp-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .5rem 1.15rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fecaca;
    background: rgba(220, 38, 38, .14);
    border: 1px solid rgba(248, 113, 113, .38);
}

.cp-dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: #f87171;
    animation: cpPing 2s ease-out infinite;
}

@keyframes cpPing {
    0% {
        box-shadow: 0 0 0 0 rgba(248, 113, 113, .6);
    }

    70%,
    100% {
        box-shadow: 0 0 0 10px rgba(248, 113, 113, 0);
    }
}

.cp-title {
    margin-top: 1.25rem;
    font-size: clamp(2.2rem, 5.6vw, 4rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -.02em;
    color: #fff;
}

.cp-title span {
    display: block;
}

/* red-to-amber shimmer needs lighter stops to read on the dark hero */
.cp-hero .gradient-text-anim {
    background-image: linear-gradient(90deg, #f87171, #fbbf24, #f87171);
}

.cp-sub {
    margin: 1.2rem auto 0;
    max-width: 40rem;
    font-size: clamp(.98rem, 2vw, 1.15rem);
    line-height: 1.7;
    font-weight: 500;
    color: #cbd5e1;
}

.cp-cta {
    margin-top: 1.9rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
}

.cp-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-size: .95rem;
    font-weight: 800;
    transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease, background .25s ease;
}

.cp-btn:hover {
    transform: translateY(-2px);
}

.cp-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 12px 28px -10px rgba(220, 38, 38, .7);
}

.cp-btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .28);
}

.cp-btn-ghost:hover {
    background: rgba(255, 255, 255, .16);
}

.cp-btn:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 3px;
}

/* trust chips under the hero buttons */
.cp-trust {
    margin: 2.25rem auto 0;
    max-width: 46rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem 1.5rem;
    font-size: .85rem;
    font-weight: 700;
    color: #e2e8f0;
}

.cp-trust span {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.cp-trust i {
    color: #fbbf24;
}

/* stats bar (white, like Home) */
.cp-stats {
    background: #fff;
    border-top: 1px solid rgba(226, 232, 240, .8);
    border-bottom: 1px solid rgba(226, 232, 240, .8);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
    padding: 2rem 1rem;
}

.cp-stats-grid {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    text-align: center;
}

@media(min-width:768px) {
    .cp-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cp-stat:not(:last-child) {
        border-right: 1px solid #f1f5f9;
    }
}

.cp-stat b {
    display: block;
    font-size: clamp(1.9rem, 4vw, 2.4rem);
    font-weight: 900;
    line-height: 1.1;
    color: #dc2626;
}

.cp-stat:nth-child(even) b {
    color: #0f172a;
}

.cp-stat:nth-child(4n) b {
    color: #d97706;
}

.cp-stat span {
    display: block;
    margin-top: .3rem;
    font-size: .82rem;
    font-weight: 700;
    color: #475569;
}

/* the live counters (14 / 7) are <span>s inside <b>: keep them styled like the other numbers */
.cp-stat b span {
    display: inline;
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

/* section heading */
.cp-head {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 2.75rem;
}

.cp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem 1rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #b91c1c;
    background: #fff1f2;
    border: 1px solid #fca5a5;
}

.cp-h2 {
    margin-top: .9rem;
    font-size: clamp(1.9rem, 4.2vw, 2.8rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: #0f172a;
}

.cp-lead {
    margin-top: .8rem;
    font-size: 1.02rem;
    line-height: 1.7;
    font-weight: 500;
    color: #334155;
}

.cp-list {
    position: relative;
    overflow: hidden;
    padding: 4rem 0 4.5rem;
    background: #f8fafc;
    border-bottom: 1px solid rgba(226, 232, 240, .8);
}


/* the grid cards are always visible on this page, so the staggered
   reveal delay only made hover / tilt / shadow feel laggy — remove it */
#all-courses-container>.reveal {
    transition-delay: 0s !important;
}

/* closing CTA (dark band, same as Events) */
.cp-cta-band {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 1rem;
    text-align: center;
    color: #fff;
    background: #0f172a;
}

.cp-cta-band::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -10rem;
    width: 36rem;
    height: 36rem;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(220, 38, 38, .14);
    filter: blur(70px);
    pointer-events: none;
}

.cp-cta-band>div {
    position: relative;
    max-width: 42rem;
    margin: 0 auto;
}

.cp-cta-band h2 {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 900;
    line-height: 1.15;
    color: #fff;
}

.cp-cta-band p {
    margin: .9rem auto 0;
    max-width: 34rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #e2e8f0;
}

.cp-cta-band .cp-cta {
    margin-top: 1.75rem;
}

.cp-cta-band .cp-btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .25);
    box-shadow: none;
}

.cp-cta-band .cp-btn-ghost:hover {
    background: rgba(255, 255, 255, .16);
}

.cp-hero .reveal,
.cp-stats .reveal,
.cp-list .reveal,
.cp-cta-band .reveal {
    opacity: 1;
    transform: none;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .gradient-text-anim {
        background: none !important;
        color: #f87171 !important;
    }
}