/* SQE Courses — self-contained branded page. Loaded only on its template. */

.sqe-courses {
    --c-accent: #66599a;
    --c-accent-dark: #50447e;
    --c-cta: #ff6b35;
    --c-ink: #2a2a2a;
    --c-muted: #6b6b6b;
    --c-line: #e7e7f0;
    --c-card: #fff;
    --c-radius: 18px;
    --c-shadow: 0 14px 36px rgba(40, 30, 80, .09);

    display: block;
    width: 100%;
    background: #f7f9ff;
    padding: 34px 0 72px;
}

.sqe-courses-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ---- Header + intro ---- */
.sqe-courses-header {
    margin-bottom: 22px;
}

.sqe-courses-title {
    margin: 10px 0 0;
    font-size: clamp(34px, 4.4vw, 52px);
    line-height: 1.04;
}

.sqe-courses-intro {
    max-width: 860px;
    margin-bottom: 40px;
    color: #3a3a44;
}

.sqe-courses-intro h2 {
    font-size: clamp(24px, 3vw, 34px);
    margin: 8px 0 14px;
}

.sqe-courses-intro p {
    margin: 0 0 14px;
    line-height: 1.7;
}

.sqe-courses-heading {
    text-align: center;
    margin: 0 0 30px;
    font-size: clamp(26px, 3.4vw, 40px);
}

/* ---- Course list ---- */
.sqe-courses-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.course-card {
    --course-accent: #66599a;
    position: relative;
    background: var(--c-card);
    border-radius: var(--c-radius);
    border-top: 6px solid var(--course-accent);
    box-shadow: var(--c-shadow);
    padding: 32px 34px;
    scroll-margin-top: 90px;
}

.course-card.is-featured {
    box-shadow: 0 0 0 2px var(--course-accent), var(--c-shadow);
}

/* head: name/aim left, price right */
.course-card-head {
    display: flex;
    gap: 24px;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--c-line);
    margin-bottom: 24px;
}

.course-head-main {
    min-width: 0;
}

.course-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 14px;
    border-radius: 20px;
    background: var(--course-accent);
    color: #2a2a2a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.course-name {
    margin: 0;
    font-family: "Roboto Slab", serif;
    font-weight: 700;
    font-size: clamp(22px, 2.6vw, 30px);
    color: var(--c-ink);
}

.course-aim {
    margin: 12px 0 0;
    color: var(--c-muted);
    font-size: 15px;
    line-height: 1.6;
    max-width: 640px;
}

.course-aim-label {
    font-weight: 700;
    color: var(--c-accent-dark);
}

.course-price {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding: 14px 20px;
    border-radius: 14px;
    background: #f4f2fb;
}

.course-price-note {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--c-muted);
}

.course-price-value {
    font-family: "Anton", sans-serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 1;
    color: var(--c-accent-dark);
    white-space: nowrap;
}

/* feature sections */
.course-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    margin-bottom: 26px;
}

.course-section-heading {
    margin: 0 0 12px;
    font-family: "Roboto Slab", serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--c-accent-dark);
}

.course-section-body {
    color: #444;
    font-size: 15px;
    line-height: 1.7;
}

.course-section-body p {
    margin: 0 0 10px;
}

.course-section-body p:last-child {
    margin-bottom: 0;
}

.course-section-body a {
    color: var(--c-accent);
    font-weight: 600;
}

.course-section-body strong {
    color: var(--c-ink);
}

/* CTAs */
.course-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.course-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.course-cta-primary {
    background: var(--c-cta);
    color: #fff;
    box-shadow: 0 10px 24px rgba(255, 107, 53, .35);
}

.course-cta-primary:hover {
    background: #ff5a1f;
    color: #fff;
    transform: translateY(-2px);
}

.course-cta-secondary {
    background: #fff;
    color: var(--c-accent-dark);
    border: 2px solid var(--c-accent);
}

.course-cta-secondary:hover {
    background: var(--c-accent);
    color: #fff;
    transform: translateY(-2px);
}

/* ---- Tables (e.g. the top-up discount table) ---- */
.sqe-courses .wp-block-table {
    margin: 18px 0;
    overflow-x: auto;
}

.sqe-courses table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(40, 30, 80, .1);
    font-size: 15px;
    background: var(--c-card);
}

.sqe-courses table th,
.sqe-courses table td {
    padding: 14px 20px;
    text-align: left;
    vertical-align: middle;
    border: 0;
}

.sqe-courses thead th {
    background: linear-gradient(135deg, #6f60a6 0%, #50447e 100%);
    color: #fff;
    font-family: "Roboto Slab", serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.sqe-courses tbody td {
    border-top: 1px solid var(--c-line);
    color: #3a3a44;
}

.sqe-courses tbody tr:nth-child(even) {
    background: #f7f6fc;
}

.sqe-courses tbody tr:hover {
    background: #eef4d4;
}

.sqe-courses tbody td:first-child strong {
    color: var(--c-accent-dark);
}

/* highlight the value in the last column (e.g. the discount) */
.sqe-courses tbody td:last-child strong {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    background: #d9ec9b;
    color: #41551a;
    font-weight: 700;
}

/* ---- Responsive ---- */
@media (max-width: 760px) {
    .course-card {
        padding: 26px 22px;
    }

    .course-card-head {
        flex-direction: column;
        gap: 16px;
    }

    .course-price {
        align-self: stretch;
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        text-align: left;
    }

    .course-sections {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .course-cta {
        flex: 1 1 100%;
    }
}
