/* =========================================================
   INCEIF APEL Pages
   Works inside Flatsome text editor / HTML block
========================================================= */

.apel-page {
    --apel-navy: #06225c;
    --apel-blue: #004ed8;
    --apel-teal: #008996;
    --apel-green: #4a9b00;
    --apel-dark: #071b3a;
    --apel-muted: #5f6b7a;
    --apel-soft: #f4f9fb;
    --apel-border: #dce8ee;
    --apel-white: #ffffff;

    font-family: "Arial", sans-serif;
    color: var(--apel-dark);
    background: #ffffff;
    line-height: 1.6;
}

.apel-page * {
    box-sizing: border-box;
}

.apel-container {
    width: min(1350px, calc(100% - 40px));
    margin: 0 auto;
}

.apel-section {
    padding: 42px 0;
}

.apel-page h1,
.apel-page h2,
.apel-page h3,
.apel-page h4,
.apel-page p {
    margin-top: 0;
}

.apel-page h1,
.apel-page h2,
.apel-page h3 {
    color: var(--apel-navy);
    font-weight: 800;
}

.apel-page p {
    color: #111827;
}

/* Hero */
.apel-hero {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    background:
        linear-gradient(90deg, rgba(3, 31, 64, 0.98) 0%, rgba(3, 31, 64, 0.92) 42%, rgba(3, 31, 64, 0.15) 100%),
        url("/wp-content/themes/flatsome-child/apel/images/apel-hero.jpg") center right / cover no-repeat;
}

.apel-hero-main {
    display: flex;
    align-items: center;
}

.apel-hero-grid {
    min-height: 520px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.apel-hero-content {
    max-width: 580px;
    padding: 70px 0;
}

.apel-hero-content h1 {
    color: #ffffff;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.08;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.apel-title-line {
    width: 64px;
    height: 4px;
    background: #12c8ca;
    margin-bottom: 28px;
}

.apel-hero-content p {
    color: #ffffff;
    font-size: 20px;
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 34px;
}

.apel-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.apel-btn {
    min-width: 250px;
    min-height: 82px;
    border-radius: 8px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all .25s ease;
}

.apel-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.apel-btn strong {
    display: block;
    font-size: 18px;
    color: #ffffff;
}

.apel-btn small {
    display: block;
    font-size: 14px;
    color: #ffffff;
    opacity: .95;
}

.apel-btn-icon {
    font-size: 32px;
    line-height: 1;
}

.apel-arrow {
    margin-left: auto;
    font-size: 24px;
}

.apel-btn-teal {
    background: linear-gradient(135deg, #008b97, #00a7ad);
}

.apel-btn-blue {
    background: linear-gradient(135deg, #0043bf, #0061e8);
}

/* Intro */
.apel-intro-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 42px;
    align-items: start;
}

.apel-intro-text {
    display: flex;
    gap: 22px;
}

.apel-section-icon {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #e9f6f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.apel-intro-text h2 {
    font-size: 34px;
    margin-bottom: 20px;
}

.apel-intro-text p {
    font-size: 15px;
    line-height: 1.9;
}

.apel-source-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.apel-source-card {
    background: #ffffff;
    border: 1px solid var(--apel-border);
    border-radius: 12px;
    padding: 26px 18px;
    text-align: center;
    min-height: 250px;
    box-shadow: 0 8px 26px rgba(10, 31, 66, .05);
}

.apel-circle-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #e9f6f7;
    color: var(--apel-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}

.apel-circle-icon.large {
    width: 90px;
    height: 90px;
    font-size: 42px;
}

.apel-source-card h3 {
    font-size: 17px;
    line-height: 1.35;
    margin-bottom: 12px;
}

.apel-source-card p {
    font-size: 14px;
    line-height: 1.7;
}

/* Section heading */
.apel-section-heading.centered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 28px;
}

.apel-section-heading.centered span {
    width: 160px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--apel-teal));
    position: relative;
}

.apel-section-heading.centered span:last-child {
    background: linear-gradient(90deg, var(--apel-teal), transparent);
}

.apel-section-heading.centered h2 {
    font-size: 34px;
    margin: 0;
    text-align: center;
}

/* Pathway */
.apel-pathway-section {
    padding-top: 20px;
}

.apel-pathway-grid {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.apel-pathway-card {
    background: #ffffff;
    border: 1px solid var(--apel-border);
    border-radius: 14px;
    text-align: center;
    padding: 38px 46px;
    box-shadow: 0 12px 36px rgba(10, 31, 66, .06);
}

.apel-pathway-card h3 {
    font-size: 42px;
    margin-bottom: 4px;
}

.apel-pathway-card h4 {
    color: #111827;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

.apel-pathway-card p {
    max-width: 340px;
    margin: 0 auto 28px;
    font-size: 16px;
    line-height: 1.8;
}

.apel-outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 330px;
    min-height: 48px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all .25s ease;
}

.apel-outline-btn.teal {
    color: var(--apel-teal) !important;
    border: 1px solid var(--apel-teal);
}

.apel-outline-btn.blue {
    color: var(--apel-blue) !important;
    border: 1px solid var(--apel-blue);
}

.apel-outline-btn:hover {
    background: var(--apel-navy);
    color: #ffffff !important;
    border-color: var(--apel-navy);
}

/* Benefits */
.apel-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--apel-border);
}

.apel-benefit-item {
    text-align: center;
    padding: 34px 30px;
    border-right: 1px solid var(--apel-border);
}

.apel-benefit-item:last-child {
    border-right: 0;
}

.apel-benefit-item h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.apel-benefit-item p {
    font-size: 15px;
    line-height: 1.8;
}

/* Contact strip */
.apel-contact-strip {
    padding: 24px 0 48px;
}

.apel-contact-box {
    background: linear-gradient(135deg, #008d96 0%, #006f85 48%, #005a74 100%);
    border-radius: 12px;
    padding: 28px 42px;
    display: grid;
    grid-template-columns: 110px 1.4fr 1.1fr auto;
    gap: 32px;
    align-items: center;
    color: #ffffff;
}

.apel-contact-icon {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
}

.apel-contact-title h2 {
    color: #ffffff;
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.apel-contact-title p,
.apel-contact-info p {
    color: #ffffff;
    margin-bottom: 8px;
}

.apel-contact-info {
    border-left: 1px solid rgba(255,255,255,.35);
    padding-left: 32px;
}

.apel-contact-btn {
    background: #ffffff;
    color: #006f85 !important;
    padding: 15px 28px;
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
}

/* Cards shared for APEL.A / APEL.C pages */
.apel-simple-hero {
    padding: 70px 0;
    background: linear-gradient(90deg, #ffffff 0%, #f4f9fb 48%, #eaf6f8 100%);
}

.apel-simple-hero h1 {
    font-size: clamp(48px, 7vw, 86px);
    color: var(--apel-teal);
    line-height: 1;
    margin-bottom: 14px;
}

.apel-simple-hero h2 {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--apel-navy);
    margin-bottom: 28px;
}

.apel-simple-hero p {
    max-width: 520px;
    font-size: 17px;
    line-height: 1.9;
}

.apel-two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

.apel-card {
    background: #ffffff;
    border: 1px solid var(--apel-border);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(10, 31, 66, .05);
}

.apel-card h3 {
    font-size: 24px;
    margin-bottom: 18px;
}

.apel-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.apel-list li {
    padding: 12px 0 12px 34px;
    border-bottom: 1px solid #edf3f6;
    position: relative;
}

.apel-list li:last-child {
    border-bottom: 0;
}

.apel-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--apel-teal);
    font-weight: 800;
}

.apel-programme-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.apel-programme-card {
    background: #ffffff;
    border: 1px solid var(--apel-border);
    border-radius: 12px;
    min-height: 185px;
    padding: 26px 18px;
    text-align: center;
    box-shadow: 0 8px 26px rgba(10, 31, 66, .04);
}

.apel-programme-card h3 {
    font-size: 15px;
    line-height: 1.5;
}

.apel-timeline {
    display: grid;
    gap: 18px;
}

.apel-step {
    display: grid;
    grid-template-columns: 70px 90px 1fr;
    gap: 20px;
    align-items: center;
}

.apel-step-no {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--apel-blue);
    color: #ffffff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apel-step-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #eef7f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}

.apel-step-content {
    background: #ffffff;
    border: 1px solid var(--apel-border);
    border-radius: 12px;
    padding: 22px 26px;
}

.apel-step-content h3 {
    font-size: 21px;
    margin-bottom: 6px;
}

.apel-faq details {
    border-bottom: 1px solid #e4edf2;
    padding: 14px 0;
}

.apel-faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--apel-navy);
}

/* Responsive */
@media (max-width: 1024px) {
    .apel-source-grid,
    .apel-programme-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .apel-intro-grid,
    .apel-two-col {
        grid-template-columns: 1fr;
    }

    .apel-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .apel-contact-box {
        grid-template-columns: 90px 1fr;
    }

    .apel-contact-info {
        border-left: 0;
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .apel-container {
        width: min(100% - 28px, 1180px);
    }

    .apel-hero,
    .apel-hero-grid {
        min-height: auto;
    }

    .apel-hero-grid {
        grid-template-columns: 1fr;
    }

    .apel-hero-content {
        padding: 58px 0;
    }

    .apel-hero-content h1 {
        font-size: 42px;
    }

    .apel-hero-content p {
        font-size: 17px;
    }

    .apel-btn {
        width: 100%;
    }

    .apel-section {
        padding: 34px 0;
    }

    .apel-intro-text {
        flex-direction: column;
    }

    .apel-source-grid,
    .apel-programme-grid,
    .apel-pathway-grid,
    .apel-benefits-grid {
        grid-template-columns: 1fr;
    }

    .apel-benefit-item {
        border-right: 0;
        border-bottom: 1px solid var(--apel-border);
    }

    .apel-section-heading.centered span {
        display: none;
    }

    .apel-section-heading.centered h2 {
        font-size: 28px;
    }

    .apel-pathway-card {
        padding: 30px 22px;
    }

    .apel-contact-box {
        grid-template-columns: 1fr;
        padding: 28px 24px;
        text-align: center;
    }

    .apel-contact-icon {
        margin: 0 auto;
    }

    .apel-step {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .apel-step-no,
    .apel-step-icon {
        margin: 0 auto;
    }
}

/* =========================================================
   APEL.C Page
========================================================= */

.apel-c-hero {
    position: relative;
    min-height: 390px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.94) 38%, rgba(255,255,255,0.20) 68%, rgba(255,255,255,0.05) 100%),
        url("/wp-content/themes/flatsome-child/apel/images/apel-c-hero.jpg") center right / cover no-repeat;
}

.apel-c-hero-grid {
    min-height: 390px;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
    gap: 30px;
}

.apel-c-hero-content {
    max-width: 560px;
    padding: 48px 0;
}

.apel-c-hero-content h1 {
    font-size: clamp(64px, 8vw, 112px);
    line-height: 0.9;
    color: var(--apel-navy);
    letter-spacing: -3px;
    margin-bottom: 18px;
}

.apel-c-hero-content h2 {
    font-size: clamp(28px, 3.4vw, 43px);
    line-height: 1.12;
    color: var(--apel-navy);
    margin-bottom: 18px;
}

.apel-c-hero-content h2 span {
    color: var(--apel-teal);
}

.apel-green-line {
    width: 58px;
    height: 4px;
    background: var(--apel-green);
    margin-bottom: 24px;
}

.apel-c-hero-content p {
    font-size: 17px;
    line-height: 1.9;
    max-width: 520px;
    color: #000;
}

.apel-c-hero-visual {
    align-self: end;
    padding-bottom: 48px;
}

.apel-c-flow-card {
    max-width: 560px;
    margin-left: auto;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 24px 34px;
    display: grid;
    grid-template-columns: 1fr 50px 1fr 50px 1fr;
    gap: 10px;
    align-items: center;
    box-shadow: 0 18px 42px rgba(0,0,0,.13);
}

.apel-c-flow-item {
    text-align: center;
}

.apel-c-flow-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 12px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}

.apel-c-flow-icon.blue {
    background: #0047c7;
}

.apel-c-flow-icon.teal {
    background: #008c96;
}

.apel-c-flow-icon.green {
    background: #4c9d00;
}

.apel-c-flow-item strong {
    display: block;
    color: var(--apel-navy);
    text-transform: uppercase;
    font-size: 15px;
}

.apel-c-flow-arrow {
    text-align: center;
    font-size: 34px;
    color: #0047c7;
    font-weight: 700;
}

.apel-c-flow-arrow.green {
    color: var(--apel-green);
}

/* Heading */
.apel-heading-left {
    margin-bottom: 10px;
}

.apel-heading-left h2 {
    font-size: 28px;
    margin-bottom: 7px;
    color: var(--apel-navy);
}

.apel-heading-left span {
    display: block;
    width: 44px;
    height: 3px;
    background: var(--apel-green);
}

.apel-section-intro {
    margin-bottom: 22px;
}

/* Colour icon variants */
.apel-circle-icon.blue-icon {
    color: #0047c7;
    background: #eef4ff;
}

.apel-circle-icon.teal-icon {
    color: var(--apel-teal);
    background: #eaf8f9;
}

.apel-circle-icon.green-icon {
    color: var(--apel-green);
    background: #edf8e8;
}

.apel-circle-icon.small {
    width: 58px;
    height: 58px;
    font-size: 26px;
    margin: 0;
}

/* Credit and eligibility */
.apel-section-tight {
    padding-top: 18px;
    padding-bottom: 28px;
}

.apel-align-start {
    align-items: start;
}

.apel-credit-award-card {
    background: linear-gradient(135deg, #f5fbff, #ffffff);
    border: 1px solid var(--apel-border);
    border-radius: 12px;
    padding: 28px;
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 22px;
    align-items: center;
    box-shadow: 0 10px 28px rgba(10, 31, 66, .05);
}

.apel-credit-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 2px solid #0047c7;
    color: #0047c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
}

.apel-credit-award-card h3 {
    font-size: 28px;
    color: #0047c7;
    margin-bottom: 8px;
}

.apel-credit-award-card p {
    margin-bottom: 0;
}

.apel-credit-award-card strong {
    color: var(--apel-green);
}

.apel-eligibility-card {
    background: #ffffff;
    border: 1px solid var(--apel-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(10, 31, 66, .05);
}

.apel-eligibility-card > h3 {
    padding: 0 0 10px;
    margin: 0 0 0;
    font-size: 28px;
}

.apel-eligibility-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 12px;
    overflow: hidden;
}

.apel-eligible {
    background: linear-gradient(135deg, #f1fbef, #ffffff);
    padding: 22px;
}

.apel-not-eligible {
    background: linear-gradient(135deg, #fff1f1, #ffffff);
    padding: 22px;
}

.apel-eligible h4 {
    color: var(--apel-green);
    font-size: 15px;
    margin-bottom: 12px;
}

.apel-not-eligible h4 {
    color: #d71920;
    font-size: 15px;
    margin-bottom: 12px;
}

.apel-eligible ul,
.apel-not-eligible ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.apel-eligible li,
.apel-not-eligible li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 14px;
}

.apel-eligible li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--apel-green);
    color: #fff;
    font-size: 12px;
    text-align: center;
    line-height: 18px;
}

.apel-not-eligible li::before {
    content: "×";
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d71920;
    color: #fff;
    font-size: 14px;
    text-align: center;
    line-height: 18px;
}

/* Programme cards */
.apel-c-programme-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.apel-c-programme-card {
    background: #ffffff;
    border: 1px solid var(--apel-border);
    border-radius: 12px;
    padding: 26px 22px;
    min-height: 300px;
    box-shadow: 0 10px 28px rgba(10, 31, 66, .05);
}

.apel-c-programme-card .apel-circle-icon {
    margin-left: 0;
}

.apel-c-programme-card h3 {
    font-size: 19px;
    line-height: 1.35;
    margin-bottom: 18px;
}

.apel-c-programme-card h4 {
    color: var(--apel-teal);
    font-size: 15px;
    margin-bottom: 8px;
}

.apel-c-programme-card ul {
    margin: 0;
    padding-left: 18px;
}

.apel-c-programme-card li {
    font-size: 14px;
    margin-bottom: 7px;
}

/* Assessment methods */
.apel-method-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.apel-method-card {
    background: #ffffff;
    border: 1px solid var(--apel-border);
    border-radius: 12px;
    padding: 20px;
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 16px;
    box-shadow: 0 8px 22px rgba(10, 31, 66, .04);
}

.apel-method-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.apel-method-card p {
    font-size: 13px;
    line-height: 1.6;
}

.apel-small-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

.apel-small-btn.teal {
    border: 1px solid var(--apel-teal);
    color: var(--apel-teal) !important;
}

.apel-small-btn.green {
    border: 1px solid var(--apel-green);
    color: var(--apel-green) !important;
}

/* Journey */
.apel-c-journey {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 30px;
}

.apel-c-journey::before {
    content: "";
    position: absolute;
    top: 49px;
    left: 8%;
    right: 8%;
    height: 1px;
    border-top: 1px dashed #9fb7c9;
    z-index: 0;
}

.apel-c-journey-item {
    position: relative;
    z-index: 1;
    text-align: center;
}

.apel-journey-no {
    width: 36px;
    height: 36px;
    margin: 0 auto 8px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apel-journey-no.blue {
    background: #0047c7;
}

.apel-journey-no.teal {
    background: #008c96;
}

.apel-journey-no.teal-dark {
    background: #006f85;
}

.apel-journey-no.green {
    background: #4c9d00;
}

.apel-journey-no.lime {
    background: #82a500;
}

.apel-journey-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #f0f7f8;
    border: 1px solid #dbeaf0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.apel-c-journey-item h3 {
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 7px;
}

.apel-c-journey-item p {
    font-size: 12px;
    line-height: 1.45;
}

/* Table */
.apel-table-wrap {
    overflow-x: auto;
}

.apel-fee-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 14px;
}

.apel-fee-table th {
    background: #d9f0f3;
    color: var(--apel-navy);
    font-weight: 800;
}

.apel-fee-table th,
.apel-fee-table td {
    border: 1px solid #c9dce3;
    padding: 9px 12px;
    text-align: left;
}

.apel-note {
    font-size: 13px;
    margin-top: 12px;
    margin-bottom: 0;
}

.apel-view-all-faq {
    display: inline-block;
    margin-top: 14px;
    color: var(--apel-blue) !important;
    font-weight: 800;
    text-decoration: none !important;
}

.apel-contact-blue {
    background: linear-gradient(135deg, #005caa 0%, #007a93 52%, #006f85 100%);
}

/* Responsive APEL.C */
@media (max-width: 1024px) {
    .apel-c-hero-grid {
        grid-template-columns: 1fr;
    }

    .apel-c-hero-visual {
        align-self: auto;
        padding-bottom: 40px;
    }

    .apel-c-flow-card {
        margin-left: 0;
    }

    .apel-c-programme-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .apel-c-journey {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 28px;
    }

    .apel-c-journey::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .apel-c-hero {
        min-height: auto;
        background:
            linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.94) 56%, rgba(255,255,255,0.40) 100%),
            url("/wp-content/themes/flatsome-child/apel/images/apel-c-hero.jpg") center right / cover no-repeat;
    }

    .apel-c-hero-grid {
        min-height: auto;
    }

    .apel-c-hero-content h1 {
        font-size: 64px;
        letter-spacing: -1px;
    }

    .apel-c-flow-card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 22px;
    }

    .apel-c-flow-arrow {
        transform: rotate(90deg);
        font-size: 28px;
    }

    .apel-eligibility-grid,
    .apel-c-programme-grid,
    .apel-method-grid,
    .apel-c-journey {
        grid-template-columns: 1fr;
    }

    .apel-credit-award-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .apel-credit-icon {
        margin: 0 auto;
    }

    .apel-method-card {
        grid-template-columns: 1fr;
    }

    .apel-method-card .apel-circle-icon {
        margin: 0 auto;
    }
}



/* APEL source card hover effect */
.apel-source-card {
    position: relative;
    overflow: hidden;
    transition: 
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease,
        background 0.28s ease;
}

.apel-source-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 138, 149, 0.08),
        rgba(0, 85, 216, 0.06)
    );
    opacity: 0;
    transition: opacity 0.28s ease;
    z-index: 0;
}

.apel-source-card > * {
    position: relative;
    z-index: 1;
}

.apel-source-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 138, 149, 0.45);
    box-shadow: 0 22px 45px rgba(6, 34, 92, 0.14);
    background: #ffffff;
}

.apel-source-card:hover::before {
    opacity: 1;
}

.apel-source-card:hover .apel-card-icon {
    background: linear-gradient(135deg, #008a95, #0055d8);
    transform: scale(1.08);
}

.apel-source-card:hover .apel-card-icon img {
    filter: brightness(0) invert(1);
}

.apel-source-card:hover h3 {
    color: #008a95;
}

.apel-card-icon {
    transition: 
        transform 0.28s ease,
        background 0.28s ease;
}

.apel-card-icon img {
    transition: filter 0.28s ease;
}

.apel-source-card h3 {
    transition: color 0.28s ease;
}





/* Title*/
/* =========================================================
   What is APEL - Centered Layout
========================================================= */

.apel-what-centered {
    padding-top: 52px;
    padding-bottom: 44px;
    background: #ffffff;
}

.apel-what-centered-text {
    max-width: 950px;
    margin: 0 auto 38px;
    text-align: center;
}

.apel-what-centered-text h2 {
    color: var(--apel-navy);
    font-size: 38px;
    line-height: 1.2;
    font-weight: 900;
    margin-bottom: 18px;
    position: relative;
    display: inline-block;
}

.apel-what-centered-text h2::after {
    content: "";
    display: block;
    width: 58px;
    height: 3px;
    background: var(--apel-teal);
    margin: 14px auto 0;
    border-radius: 10px;
}

.apel-what-centered-text p {
    color: #111827;
    font-size: 16px;
    line-height: 1.85;
    margin: 0 auto 10px;
}

.apel-what-centered-text p:last-child {
    margin-bottom: 0;
}

/* Make source grid sit below centered text */
.apel-what-centered .apel-source-grid {
    margin-top: 0;
}

/* Optional: better 5-card layout on desktop */
.apel-what-centered .apel-source-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    align-items: stretch;
}

/* Card icon image size fix for emoji/SVG images */
.apel-what-centered .apel-circle-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 1100px) {
    .apel-what-centered .apel-source-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .apel-what-centered .apel-source-card:nth-child(4) {
        grid-column: 1 / span 1;
    }

    .apel-what-centered .apel-source-card:nth-child(5) {
        grid-column: 2 / span 1;
    }
}

@media (max-width: 768px) {
    .apel-what-centered {
        padding-top: 38px;
        padding-bottom: 34px;
    }

    .apel-what-centered-text {
        margin-bottom: 28px;
    }

    .apel-what-centered-text h2 {
        font-size: 30px;
    }

    .apel-what-centered-text p {
        font-size: 15px;
        line-height: 1.75;
    }

    .apel-what-centered .apel-source-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .apel-what-centered .apel-source-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   FINAL FIX: APEL Source Grid Responsive Layout
   Desktop: 3 cards top + 2 centered below
   Tablet: 2 columns
   Mobile: 1 column
========================================================= */

/* Desktop layout: 3 + 2 centered */
.apel-main-page .apel-what-centered .apel-source-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 22px !important;
    align-items: stretch;
}

/* First row: 3 cards */
.apel-main-page .apel-what-centered .apel-source-card:nth-child(1) {
    grid-column: 1 / span 2;
}

.apel-main-page .apel-what-centered .apel-source-card:nth-child(2) {
    grid-column: 3 / span 2;
}

.apel-main-page .apel-what-centered .apel-source-card:nth-child(3) {
    grid-column: 5 / span 2;
}

/* Second row: 2 centered cards */
.apel-main-page .apel-what-centered .apel-source-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.apel-main-page .apel-what-centered .apel-source-card:nth-child(5) {
    grid-column: 4 / span 2;
}

/* Better card height consistency */
.apel-main-page .apel-what-centered .apel-source-card {
    min-height: 240px;
    height: 100%;
}

/* Tablet: 2 columns */
@media (max-width: 900px) {
    .apel-main-page .apel-what-centered .apel-source-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .apel-main-page .apel-what-centered .apel-source-card:nth-child(n) {
        grid-column: auto;
    }

    .apel-main-page .apel-what-centered .apel-source-card:nth-child(5) {
        grid-column: 1 / -1;
        max-width: 420px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile: 1 column */
@media (max-width: 560px) {
    .apel-main-page .apel-what-centered .apel-source-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .apel-main-page .apel-what-centered .apel-source-card:nth-child(n) {
        grid-column: auto;
        max-width: none;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .apel-main-page .apel-what-centered .apel-source-card {
        min-height: auto;
        padding: 26px 20px;
    }
}
