/* =========================================================
   COURSE PAGE - GLOBAL
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* ---------------------------------------------------------
   GLOBAL RESET / OVERFLOW PROTECTION
--------------------------------------------------------- */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.com-content-article.item-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
}

.com-content-article.item-page img,
.com-content-article.item-page iframe,
.com-content-article.item-page video {
    max-width: 100%;
}

.course-hero,
.course-intakes,
.course-why,
.course-learn,
.course-choose,
.course-testimonials,
.course-cta,
.course-faq,
.course-final-cta {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif !important;
}
/* =========================================================
   FULL-WIDTH COURSE SECTIONS
   Break sections out of Joomla article container
========================================================= */

.course-hero,
.course-cta-secondary,
.course-final-cta {
    width: 100vw !important;
    max-width: 100vw !important;

    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    box-sizing: border-box;
}
.course-hero-container,
.course-cta-secondary .course-cta-container,
.course-final-cta-container {
    width: min(1200px, calc(100% - 40px));
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.course-hero *,
.course-intakes *,
.course-why *,
.course-learn *,
.course-choose *,
.course-testimonials *,
.course-cta *,
.course-faq *,
.course-final-cta * {
    box-sizing: border-box;
}

.course-hero-container,
.course-intakes-container,
.course-why-container,
.course-learn-container,
.course-choose-container,
.course-faq-container,
.course-cta-container,
.course-final-cta-container {
    width: min(1200px, 92%);
    max-width: 100%;
    margin: 0 auto;
}


/* =========================================================
   HERO / INTRODUCTION
   Footer-style dark blue section
========================================================= */

.course-hero {
   position: relative;
    overflow: hidden;

    padding: 105px 20px 100px;

    background: #202b82;

    text-align: center;

    border-bottom: 4px solid #f97316;
}

/* Subtle background effect */
.course-hero::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    top: -300px;
    right: -150px;
    background: rgba(255, 255, 255, 0.035);
    border-radius: 50%;
    pointer-events: none;
}

.course-hero::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    bottom: -250px;
    left: -140px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    pointer-events: none;
}

.course-hero-container {
    position: relative;
    z-index: 2;
    max-width: 950px;
    margin: 0 auto;
}

.course-title {
    max-width: 900px;
    margin: 0 auto 25px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(42px, 6vw, 68px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    overflow-wrap: anywhere;
}

.course-intro {
    max-width: 850px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.92);
    font-family: 'Poppins', sans-serif;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.8;
    overflow-wrap: anywhere;
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.section-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #f97316;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.course-why h2,
.course-learn h2,
.course-choose h2,
.course-testimonials h2,
.course-faq h2 {
    margin: 0 0 25px;
    color: #101828;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.8px;
    overflow-wrap: anywhere;
}


/* =========================================================
   COURSE INTAKES
========================================================= */

.course-intakes {
    padding: 85px 20px 100px;
    background: #f5f7fb;
}

.intakes-title {
    max-width: 850px;
    margin: 0 auto 50px;
    color: #101828;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.8px;
}

.intakes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}


/* =========================================================
   INTAKE CARDS
   Darker blue - consistent with hero/footer
========================================================= */

.intake-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;

    padding: 35px 30px;

    background: linear-gradient(
        145deg,
        #17245f 0%,
        #202b82 55%,
        #263b91 100%
    );

    color: #ffffff;

    border: 0;
    border-radius: 16px;

    box-shadow: 0 18px 40px rgba(23, 36, 95, 0.20);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.intake-card::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    top: -130px;
    right: -80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.intake-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 25px 50px rgba(23, 36, 95, 0.28);
}

.intake-card-title {
    position: relative;
    z-index: 2;

    margin: 0 0 25px;

    color: #ffffff;
    font-family: 'Poppins', sans-serif;

    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;

    overflow-wrap: anywhere;
}

.intake-row {
    position: relative;
    z-index: 2;

    display: flex;
    justify-content: space-between;

    gap: 20px;
    min-width: 0;

    padding: 15px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.16);

    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.intake-row span {
    min-width: 0;
    color: rgba(255, 255, 255, 0.70);
}

.intake-row strong {
    min-width: 0;
    color: #ffffff;
    text-align: right;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.intake-row a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.intake-row a:hover {
    color: #fed7aa;
    text-decoration: underline;
}

.fee-row strong {
    color: #ffb26b;
    font-size: 16px;
}

.installment-link {
    position: relative;
    z-index: 2;
    padding: 20px 0;
}

.installment-link a {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.installment-link a:hover {
    color: #fed7aa;
}

.intake-apply,.choose-cta a {
    position: relative;
    z-index: 2;

    display: block;
    width: 100%;

    margin-top: auto;
    padding: 15px 20px;

    background: #f97316;
    color: #ffffff !important;

    border: 2px solid #f97316;
    border-radius: 8px;

    text-align: center;

    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;

    text-decoration: none !important;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.intake-apply:hover {
    background: #ffffff;
    color: #f97316 !important;
    border-color: #ffffff;
    transform: translateY(-2px);
}


/* =========================================================
   WHY THIS COURSE
========================================================= */

.course-why {
    padding: 100px 20px;
    background: #ffffff;
}

.course-why-container {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);

    align-items: center;
    gap: 70px;
}

.course-why-content {
    max-width: 650px;
    min-width: 0;
}

.why-list,
.choose-list {
    padding: 0;
    margin: 30px 0 0;
    list-style: none;
}

.why-list li,
.choose-list li {
    display: flex;
    align-items: flex-start;

    gap: 15px;
    margin-bottom: 18px;

    color: #4b5563;

    font-size: 17px;
    line-height: 1.7;
}

.why-check,
.choose-check {
    flex: 0 0 28px;

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 2px;

    background: #fff1e8;
    color: #f97316;

    border-radius: 50%;

    font-size: 14px;
    font-weight: 800;
}

.course-why-image,
.course-learn-image,
.course-choose-image {
    min-width: 0;
}

.course-why-image img,
.course-learn-image img,
.course-choose-image img {
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto;

    border-radius: 20px;

    object-fit: cover;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   WHAT YOU'LL LEARN
========================================================= */

.course-learn {
    padding: 100px 20px;
    background: #f7f8fc;
}

.course-learn-container {
    display: grid;

    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(0, 1.1fr);

    align-items: center;

    gap: 70px;
}

.course-learn-content {
    max-width: 650px;
    min-width: 0;
}

.learn-description {
    color: #5b6472;

    font-size: 17px;
    line-height: 1.85;

    overflow-wrap: anywhere;
}


/* =========================================================
   CTA BASE
========================================================= */

.course-cta {
    padding: 80px 20px;
}

.course-cta-container {
    text-align: center;
}

.course-cta h2 {
    max-width: 850px;

    margin: 0 auto 30px;

    color: #ffffff;

    font-family: 'Poppins', sans-serif;

    font-size: clamp(30px, 4vw, 46px);

    font-weight: 800;

    line-height: 1.3;

    overflow-wrap: anywhere;
}

.course-cta-button {
    display: inline-block;

    max-width: 100%;

    padding: 16px 34px;

    background: #f97316;
    color: #ffffff !important;

    border: 2px solid #f97316;
    border-radius: 8px;

    font-family: 'Poppins', sans-serif;

    font-size: 15px;
    font-weight: 800;

    text-decoration: none !important;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.course-cta-button:hover {
    background: #ffffff;
    color: #f97316 !important;

    border-color: #ffffff;

    transform: translateY(-3px);

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}


/* =========================================================
   FIRST CTA
   Keep this as a slightly different blue
========================================================= */

.course-cta-primary {
   
        position: relative;
    overflow: hidden;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 90px 20px;
    background: #202b82;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 4px solid #f97316;
    box-sizing: border-box;
}



/* =========================================================
   SECOND CTA
   FOOTER-STYLE DESIGN
========================================================= */

.course-cta-secondary {
    position: relative;
    overflow: hidden;

    width: 100vw !important;
    max-width: 100vw !important;

    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    padding: 90px 20px;

    background: #202b82;

    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 4px solid #f97316;

    box-sizing: border-box;
}

.course-cta-secondary::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    top: -250px;
    right: -120px;

    background: rgba(255, 255, 255, 0.035);

    border-radius: 50%;

    pointer-events: none;
}

.course-cta-secondary::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    bottom: -220px;
    left: -100px;

    background: rgba(255, 255, 255, 0.025);

    border-radius: 50%;

    pointer-events: none;
}

.course-cta-secondary .course-cta-container {
    position: relative;
    z-index: 2;
}


/* =========================================================
   WHY CHOOSE PEMARC
========================================================= */

.course-choose {
    padding: 100px 20px;
    background: #ffffff;
}

.course-choose-container {
    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(0, 0.9fr);

    align-items: center;

    gap: 70px;
}

.choose-list li {
    margin-bottom: 20px;
}


/* =========================================================
   TESTIMONIALS
========================================================= */

.course-testimonials {
    padding: 100px 0;

    overflow: hidden;

    background: #f7f8fc;
}

.testimonials-header {
    width: min(1200px, 92%);
    max-width: 100%;

    margin: 0 auto 50px;

    text-align: center;
}

.testimonials-header h2 {
    margin-bottom: 0;
}

.testimonials-marquee {
    width: 100%;
    max-width: 100%;

    overflow: hidden;
}

.testimonials-track {
    display: flex;

    width: max-content;
    max-width: none;

    gap: 25px;

    animation:
        testimonials-scroll 18s linear infinite;

    will-change: transform;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    flex: 0 0 360px;

    width: 360px;
    max-width: calc(100vw - 40px);

    min-width: 0;

    padding: 30px;

    background: #ffffff;

    border-radius: 16px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08);
}

.testimonial-stars {
    margin-bottom: 15px;

    color: #f97316;

    font-size: 18px;
    letter-spacing: 3px;
}

.testimonial-text {
    min-height: 110px;

    margin: 0 0 25px;

    color: #4b5563;

    font-size: 16px;
    line-height: 1.7;

    overflow-wrap: anywhere;
}

.testimonial-card h4 {
    margin: 0 0 5px;

    color: #172033;

    font-size: 18px;
    font-weight: 800;

    overflow-wrap: anywhere;
}

.testimonial-role {
    color: #7b8494;

    font-size: 14px;

    overflow-wrap: anywhere;
}

@keyframes testimonials-scroll {

    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


/* =========================================================
   FAQ
========================================================= */

.course-faq {
    padding: 100px 20px;
    background: #ffffff;
}

.faq-header {
    max-width: 800px;

    margin: 0 auto 50px;

    text-align: center;
}

.faq-list {
    width: 100%;
    max-width: 900px;

    margin: 0 auto;
}

.faq-item {
    width: 100%;
    max-width: 100%;

    margin-bottom: 15px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 10px;

    overflow: hidden;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.faq-item[open] {
    border-color: #f97316;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.06);
}

.faq-item summary {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    width: 100%;

    padding: 22px 25px;

    color: #172033;

    cursor: pointer;

    font-size: 17px;
    font-weight: 700;

    list-style: none;

    overflow-wrap: anywhere;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-icon {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    color: #f97316;

    font-size: 24px;
    font-weight: 400;

    transition:
        transform 0.2s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    width: 100%;

    padding: 0 25px 25px;

    color: #667085;

    font-size: 16px;
    line-height: 1.8;

    overflow-wrap: anywhere;
}


/* =========================================================
   FINAL CTA
   FOOTER-STYLE DESIGN
========================================================= */

.course-final-cta {
    position: relative;
    overflow: hidden;

    width: 100vw !important;
    max-width: 100vw !important;

    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    padding: 95px 20px;

    background: #f97316;

    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 4px solid #f97316;

    box-sizing: border-box;
}

.course-final-cta::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    top: -310px;
    right: -150px;

    background: rgba(255, 255, 255, 0.035);

    border-radius: 50%;

    pointer-events: none;
}

.course-final-cta::after {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    bottom: -250px;
    left: -120px;

    background: rgba(255, 255, 255, 0.025);

    border-radius: 50%;

    pointer-events: none;
}

.course-final-cta-container {
    position: relative;
    z-index: 2;

    text-align: center;
}

.course-final-cta h2 {
    max-width: 900px;

    margin: 0 auto 30px;

    color: #ffffff;

    font-family: 'Poppins', sans-serif;

    font-size: clamp(32px, 5vw, 58px);

    font-weight: 800;

    line-height: 1.2;

    letter-spacing: -1px;

    overflow-wrap: anywhere;
}

.course-final-button {
    display: inline-block;

    max-width: 100%;

    padding: 16px 38px;

    background: #202b82;
    color: #ffffff !important;

    border: 2px solid #f97316;
    border-radius: 8px;

    font-family: 'Poppins', sans-serif;

    font-size: 16px;
    font-weight: 800;

    text-decoration: none !important;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.course-final-button:hover {
    background: #ffffff;
    color: #f97316 !important;

    border-color: #ffffff;

    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   TABLET
========================================================= */

/* =========================================================
   MOBILE SECTION ORDER
   Prevent consecutive images on mobile
========================================================= */

@media (max-width: 991px) {

    .course-why-container,
    .course-learn-container,
    .course-choose-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 45px;
    }

    .course-why-content,
    .course-learn-content,
    .course-choose-content {
        max-width: 100%;
        width: 100%;
    }

    .course-why-image,
    .course-learn-image,
    .course-choose-image {
        width: 100%;
        max-width: 700px;
        margin: 0 auto;
    }

    /*
     * On desktop the Learn section is:
     * Image → Content
     *
     * On mobile change it to:
     * Content → Image
     *
     * This prevents:
     * Why Image → Learn Image
     */
    .course-learn-container {
        display: flex;
        flex-direction: column;
    }

    .course-learn-content {
        order: 1;
    }

    .course-learn-image {
        order: 2;
    }
}
@media (max-width: 767px) {

    .course-why,
    .course-learn,
    .course-choose {
        padding: 65px 20px;
    }

    .course-why-container,
    .course-learn-container,
    .course-choose-container {
        gap: 35px;
    }

    .course-why-image,
    .course-learn-image,
    .course-choose-image {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .course-why-image img,
    .course-learn-image img,
    .course-choose-image img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 16px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .course-hero {
        padding: 70px 20px;
    }

    .course-title {
        font-size: clamp(36px, 11vw, 52px);

        letter-spacing: -0.8px;
    }

    .course-intro {
        font-size: 17px;
        line-height: 1.7;
    }

    .course-intakes,
    .course-why,
    .course-learn,
    .course-choose,
    .course-testimonials,
    .course-faq {
        padding: 65px 20px;
    }

    .course-cta,
    .course-cta-secondary,
    .course-final-cta {
        padding: 70px 20px;
    }

    .intakes-grid {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .intake-card {
        width: 100%;

        padding: 28px 22px;
    }

    .intake-row {
        flex-direction: column;

        gap: 5px;
    }

    .intake-row strong {
        text-align: left;
    }

    .intake-apply {
        padding: 14px 18px;
    }

    .why-list li,
    .choose-list li {
        font-size: 16px;
    }

    .testimonial-card {
        flex: 0 0 300px;

        width: 300px;

        max-width: calc(100vw - 40px);

        padding: 25px;
    }

    .testimonial-text {
        min-height: auto;
    }

    .faq-item summary {
        padding: 18px 20px;

        font-size: 16px;
    }

    .faq-answer {
        padding: 0 20px 20px;
    }

    .course-hero::before,
    .course-cta-secondary::before,
    .course-final-cta::before {
        width: 300px;
        height: 300px;

        top: -170px;
        right: -120px;
    }

    .course-hero::after,
    .course-cta-secondary::after,
    .course-final-cta::after {
        width: 220px;
        height: 220px;

        bottom: -140px;
        left: -100px;
    }

    .course-cta h2 {
        font-size: clamp(28px, 8vw, 40px);
    }

    .course-final-cta h2 {
        font-size: clamp(30px, 9vw, 46px);
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .course-hero {
        padding: 55px 16px;
    }

    .course-intakes,
    .course-why,
    .course-learn,
    .course-choose,
    .course-faq {
        padding-left: 16px;
        padding-right: 16px;
    }

    .course-cta,
    .course-cta-secondary,
    .course-final-cta {
        padding-left: 16px;
        padding-right: 16px;
    }

    .course-title {
        font-size: 36px;
    }

    .course-intro {
        font-size: 16px;
    }

    .intake-card {
        padding: 25px 20px;

        border-radius: 15px;
    }

    .intake-card-title {
        font-size: 21px;
    }

    .intake-row {
        font-size: 13px;
    }

    .testimonial-card {
        flex-basis: 280px;

        width: 280px;
    }

    .course-final-cta h2 {
        font-size: 34px;
    }

    .course-final-button,
    .course-cta-button {
        width: 100%;
        max-width: 320px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .testimonials-track {
        animation: none;
    }

    .intake-card,
    .course-cta-button,
    .course-final-button,
    .intake-apply {
        transition: none;
    }
}
