
/* ==========================================================================
   Course Details Redesign
   Every rule is scoped under the single parent class ".cdx-page" so this
   stylesheet can never leak out and affect any other page/template.
   ========================================================================== */

.cdx-page {
    --cdx-c1: #00E5CC;
    --cdx-c2: #2DA7E8;
    --cdx-c3: #3B6EF5;
    --cdx-gradient: linear-gradient(90deg, var(--cdx-c1), var(--cdx-c2), var(--cdx-c3));
    --cdx-ink: #0f1b2d;
    --cdx-body: #55627a;
    --cdx-line: #e8edf3;
    --cdx-card: #ffffff;
    --cdx-soft: #f4f8fb;
    --cdx-radius: 18px;
    --cdx-shadow: 0 10px 30px rgba(15, 27, 45, 0.06);
    font-family: var(--font-family, "Poppins", sans-serif);
    color: var(--cdx-ink);
    background: #fbfcfe;
}

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

.cdx-page a {
    text-decoration: none;
}

.cdx-page .container {
    max-width: 1260px;
}

/* -------------------------- Breadcrumb -------------------------- */
.cdx-crumbs {
    padding: 22px 0 0;
}

.cdx-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13.5px;
    color: var(--cdx-body);
}

.cdx-crumbs li + li::before {
    content: "/";
    margin-right: 6px;
    color: #c3cede;
}

.cdx-crumbs a {
    color: var(--cdx-body);
}

.cdx-crumbs a:hover {
    color: var(--cdx-c3);
}

.cdx-crumbs .cdx-crumb-current {
    color: var(--cdx-ink);
    font-weight: 500;
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* -------------------------- Hero -------------------------- */
.cdx-hero {
    padding: 18px 0 36px;
    background:
        radial-gradient(1100px 420px at 85% -10%, rgba(59, 110, 245, 0.07), transparent 60%),
        radial-gradient(900px 380px at -5% 10%, rgba(0, 229, 204, 0.08), transparent 55%);
}

.cdx-hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 44px;
    align-items: center;
}

.cdx-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--cdx-line);
    color: var(--cdx-c3);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.cdx-kicker i {
    background: var(--cdx-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cdx-hero h1 {
    font-size: clamp(28px, 3.6vw, 44px);
    font-weight: 700;
    line-height: 1.18;
    margin: 0 0 16px;
    color: var(--cdx-ink);
}

.cdx-hero-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--cdx-body);
    margin-bottom: 24px;
    max-width: 620px;
}

.cdx-hero-desc p {
    margin: 0;
}

.cdx-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.cdx-stars {
    display: inline-flex;
    gap: 2px;
    color: #ffb400;
    font-size: 15px;
}

.cdx-stars .cdx-star-off {
    color: #dfe4ec;
}

.cdx-trust-text {
    font-size: 14px;
    color: var(--cdx-body);
}

.cdx-trust-text strong {
    color: var(--cdx-ink);
}

.cdx-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.cdx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
}

.cdx-btn-primary {
    background: var(--cdx-gradient);
    color: #fff;
    box-shadow: 0 12px 24px -8px rgba(45, 167, 232, 0.55);
}

.cdx-btn-primary:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 16px 28px -8px rgba(45, 167, 232, 0.65);
}

.cdx-btn-outline {
    background: #fff;
    color: var(--cdx-ink);
    border: 1.5px solid var(--cdx-line);
}

.cdx-btn-outline:hover {
    border-color: var(--cdx-c3);
    color: var(--cdx-c3);
    transform: translateY(-2px);
}

.cdx-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: #fff;
    border: 1px solid var(--cdx-line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--cdx-shadow);
    max-width: 620px;
}

.cdx-meta-item {
    flex: 1 1 0;
    padding: 14px 18px;
    border-right: 1px solid var(--cdx-line);
    min-width: 130px;
}

.cdx-meta-item:last-child {
    border-right: none;
}

.cdx-meta-item span {
    display: block;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #9aa5b8;
    margin-bottom: 4px;
}

.cdx-meta-item strong {
    display: block;
    font-size: 14.5px;
    color: var(--cdx-ink);
    font-weight: 600;
}

/* Hero visual / preview card */
.cdx-hero-visual {
    position: relative;
}

.cdx-preview-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 48px -18px rgba(15, 27, 45, 0.35);
    aspect-ratio: 4 / 3;
    background: var(--cdx-gradient);
}

.cdx-preview-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cdx-preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 54px;
}

.cdx-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 16, 28, 0.18);
    cursor: pointer;
    border: none;
    padding: 0;
}

.cdx-play-btn span {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--cdx-c3);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    transition: transform .2s ease;
}

.cdx-play-btn:hover span {
    transform: scale(1.08);
}

.cdx-badge-float {
    position: absolute;
    left: 18px;
    bottom: -18px;
    background: #fff;
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--cdx-shadow);
    font-size: 13px;
    font-weight: 600;
    color: var(--cdx-ink);
}

.cdx-badge-float i {
    background: var(--cdx-gradient);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

/* -------------------------- Sticky sub-nav -------------------------- */
.cdx-subnav-wrap {
    position: sticky;
    top: 0;
    z-index: 500;
    background: #fff;
    border-bottom: 1px solid var(--cdx-line);
    box-shadow: 0 6px 18px rgba(15, 27, 45, 0.04);
}

.cdx-subnav-scroll {
    position: relative;
    display: flex;
    align-items: center;
}

.cdx-subnav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.cdx-subnav::-webkit-scrollbar {
    display: none;
}

.cdx-subnav li {
    flex: 0 0 auto;
}

.cdx-subnav a {
    display: inline-block;
    padding: 16px 18px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--cdx-body);
    white-space: nowrap;
    border-bottom: 2.5px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}

.cdx-subnav a:hover {
    color: var(--cdx-ink);
}

.cdx-subnav a.is-active {
    color: var(--cdx-ink);
    font-weight: 600;
    border-image: var(--cdx-gradient) 1;
    border-bottom: 2.5px solid var(--cdx-c2);
}

.cdx-nav-arrow {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--cdx-line);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cdx-ink);
    cursor: pointer;
    margin: 0 6px;
}

.cdx-nav-arrow.cdx-hidden {
    visibility: hidden;
}

/* -------------------------- Body layout -------------------------- */
.cdx-body {
    padding: 40px 0 70px;
}

.cdx-sections {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.cdx-section {
    scroll-margin-top: 84px;
}

.cdx-card {
    background: var(--cdx-card);
    border: 1px solid var(--cdx-line);
    border-radius: var(--cdx-radius);
    box-shadow: var(--cdx-shadow);
    padding: 30px;
}

.cdx-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.cdx-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--cdx-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex: 0 0 auto;
}

.cdx-card-head h4 {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
    color: var(--cdx-ink);
    text-transform: capitalize;
}

.cdx-empty {
    text-align: center;
    padding: 46px 16px;
    color: var(--cdx-body);
}

.cdx-empty i {
    font-size: 34px;
    color: #c7d1e0;
    margin-bottom: 12px;
    display: block;
}

.cdx-empty h5 {
    font-weight: 700;
    color: var(--cdx-ink);
    margin-bottom: 6px;
}

.cdx-empty p {
    margin: 0;
}

/* Overview text */
.cdx-page .editor-content.description {
    color: var(--cdx-body);
    line-height: 1.8;
    font-size: 15px;
}

.cdx-page .description.ellipsis-4 {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cdx-page .description.ellipsis-4.ellipsis-4 {
    -webkit-line-clamp: unset;
}

.cdx-see-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-weight: 600;
    font-size: 14px;
    color: var(--cdx-c3);
}

/* Curriculum accordion */
.cdx-page .accordion-item {
    border: 1px solid var(--cdx-line);
    border-radius: 14px !important;
    overflow: hidden;
    margin-bottom: 12px;
}

.cdx-page .accordion-item:last-child {
    margin-bottom: 0;
}

.cdx-page .accordion-button {
    font-weight: 600;
    font-size: 15px;
    color: var(--cdx-ink);
    background: var(--cdx-soft);
    padding: 16px 20px;
}

.cdx-page .accordion-button:not(.collapsed) {
    background: #eef7fb;
    color: var(--cdx-c3);
    box-shadow: none;
}

.cdx-page .accordion-button:focus {
    box-shadow: none;
    border-color: var(--cdx-line);
}

.cdx-page .accordion-body {
    padding: 6px 0px;
}

.cdx-page .lesson-list.course_list li {
    border-bottom: 1px dashed var(--cdx-line);
}

.cdx-page .lesson-list.course_list li:last-child {
    border-bottom: none;
}

.cdx-page .lesson-list.course_list a {
    padding: 12px 4px;
    color: var(--cdx-body);
    font-size: 14.5px;
}

.cdx-page .lesson-list.course_list a:hover {
    color: var(--cdx-c3);
}

.cdx-page .lesson-list.course_list svg path {
    fill: var(--cdx-c3);
}

.cdx-page .preview-text {
    font-size: 13px;
    color: #9aa5b8;
}

/* Requirements / outcomes */
.cdx-req-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cdx-req-col {
    background: var(--cdx-soft);
    border-radius: 14px;
    padding: 22px;
}

.cdx-req-col h5 {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--cdx-ink);
    margin-bottom: 14px;
}

.cdx-req-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cdx-req-col li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: var(--cdx-body);
    line-height: 1.55;
}

.cdx-req-col li i {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--cdx-gradient);
    color: #fff;
    font-size: 10.5px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Instructor */
.cdx-instructor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    background: var(--cdx-soft);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 18px;
}

.cdx-instructor-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cdx-instructor-left img {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: var(--cdx-shadow);
}

.cdx-instructor-left h5 {
    margin: 0 0 4px;
    font-weight: 700;
    font-size: 16.5px;
    color: var(--cdx-ink);
}

.cdx-instructor-left p {
    margin: 0;
    font-size: 13.5px;
    color: var(--cdx-body);
}

.cdx-instructor-stats {
    display: flex;
    gap: 22px;
}

.cdx-instructor-stats div {
    text-align: center;
}

.cdx-instructor-stats strong {
    display: block;
    font-size: 18px;
    color: var(--cdx-ink);
}

.cdx-instructor-stats span {
    font-size: 12px;
    color: var(--cdx-body);
}

.cdx-page .ins-designation p.description {
    -webkit-line-clamp: initial;
}

.cdx-instructor-bio {
    color: var(--cdx-body);
    font-size: 14.5px;
    line-height: 1.75;
    margin-bottom: 18px;
}

/* Reviews */
.cdx-review-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--cdx-soft);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
}

.cdx-review-score {
    font-size: 34px;
    font-weight: 700;
    color: var(--cdx-ink);
}

.cdx-page .write-review {
    background: var(--cdx-soft);
    border-radius: 14px;
    padding: 20px;
}

.cdx-page .rating-stars .rating-star {
    color: #ffb400;
    font-size: 18px;
}

.cdx-page .E-review {
    border-bottom: 1px solid var(--cdx-line);
    padding: 18px 0;
}

.cdx-page .E-review:last-child {
    border-bottom: none;
}

.cdx-page .re-star {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    display: flex;
    gap: 2px;
    color: #ffb400;
    font-size: 12.5px;
}

/* FAQ */
.cdx-page #cdx-faq .accordion-button::after {
    filter: none;
}

/* Additional info wrapper keeps default styling but inherits card look */
#cdx-additional .cdx-card {
    padding-top: 30px;
}

/* -------------------------- Sidebar / pricing card -------------------------- */
.cdx-sidebar {
    position: sticky;
    top: 96px;
}

.cdx-price-card {
    background: #fff;
    border: 1px solid var(--cdx-line);
    border-radius: var(--cdx-radius);
    box-shadow: 0 20px 44px -20px rgba(15, 27, 45, 0.25);
    overflow: hidden;
}

.cdx-price-card .hero-details img {
    border-radius: 0 !important;
}

.cdx-price-card .ps-box {
    box-shadow: none !important;
    border-radius: 0 !important;
}

.cdx-price-card .ps-price h4 {
    font-size: 26px;
    font-weight: 700;
}

.cdx-price-card .eBtn.gradient {
    background: var(--cdx-gradient);
    border: none;
}

.cdx-price-card .ps-side-feature li {
    font-size: 14px;
    color: var(--cdx-body);
    border-bottom: 1px dashed var(--cdx-line);
}

/* -------------------------- Responsive -------------------------- */
@media (max-width: 991.98px) {
    .cdx-hero-grid {
        grid-template-columns: 1fr;
    }

    .cdx-hero-visual {
        order: -1;
        max-width: 420px;
        margin: 0 auto 10px;
    }

    .cdx-sidebar {
        position: static;
        margin-bottom: 26px;
    }

    .cdx-req-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .cdx-card {
        padding: 20px;
    }

    .cdx-cta-row .cdx-btn {
        flex: 1 1 auto;
    }

    .cdx-meta-strip {
        max-width: 100%;
    }

    .cdx-instructor {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* -------------------------- Review badge (hidden when no reviews) -------------------------- */
.cdx-review-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cdx-review-badge.d-none {
    display: none !important;
}

/* -------------------------- Description teaser bar (below sub-nav) -------------------------- */
.cdx-quickfacts {
    background: #fff;
    border-bottom: 1px solid var(--cdx-line);
    padding: 24px 0;
}

.cdx-quickfacts-desc {
    color: var(--cdx-body);
    font-size: 14.5px;
    line-height: 1.75;
    max-width: 900px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cdx-quickfacts-desc p {
    margin: 0 0 8px;
}

.cdx-qf-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--cdx-c3);
}

.cdx-qf-more:hover {
    color: var(--cdx-ink);
}

/* -------------------------- Facts strip (duration / place / dates / time zone) -------------------------- */
/* Light card style — same look as the hero meta-strip, no dark background. */
.cdx-facts-strip {
    padding: 0 0 40px;
    background: var(--white);
}

.cdx-facts-card {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--cdx-line);
    border-radius: 18px;
    box-shadow: var(--cdx-shadow);
    overflow: hidden;
}

.cdx-fact-item {
    flex: 1 1 160px;
    padding: 20px 15px;
    border-right: 1px solid var(--cdx-line);
}

.cdx-fact-item:last-child {
    border-right: none;
}

.cdx-fact-item span {
    display: block;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #9aa5b8;
    margin-bottom: 6px;
}

.cdx-fact-item strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--cdx-ink);
}

@media (max-width: 575.98px) {
    .cdx-facts-strip {
        padding-bottom: 50px;
    }

    .cdx-fact-item {
        flex: 1 1 50%;
        padding: 18px 20px;
    }

    .cdx-fact-item:nth-child(even) {
        border-right: none;
    }
}

/* -------------------------- Why Choose Us (bento grid) -------------------------- */
.cdx-why {
    padding: 40px 0 40px;
    background: #fff;
}

.cdx-why-head {
    max-width: 640px;
    margin-bottom: 34px;
}

.cdx-why-kicker {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: var(--cdx-c3);
    margin-bottom: 10px;
}

.cdx-why-head h2 {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    color: var(--cdx-ink);
    margin: 0 0 12px;
    line-height: 1.25;
}

.cdx-why-head p {
    font-size: 15.5px;
    color: var(--cdx-body);
    margin: 0;
}

.cdx-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}

.cdx-why-col {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.cdx-why-card {
    flex: 1;
    background: var(--cdx-card);
    border: 1px solid var(--cdx-line);
    border-radius: 16px;
    padding: 26px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.cdx-why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cdx-shadow);
    border-color: transparent;
}

.cdx-why-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.cdx-why-card-head h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--cdx-ink);
    margin: 0;
}

.cdx-why-card p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--cdx-body);
    margin: 0;
}

.cdx-why-ic {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.cdx-why-ic-1 { background: #ecebff; color: #6a5bff; }
.cdx-why-ic-2 { background: #e8f2ff; color: #2d7ff9; }
.cdx-why-ic-3 { background: #e9fbf3; color: #14b871; }
.cdx-why-ic-4 { background: #fff1e6; color: #ef8a2c; }
.cdx-why-ic-5 { background: #fdeaf3; color: #e64d95; }

.cdx-why-col-media {
    gap: 22px;
}

.cdx-why-media {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    box-shadow: var(--cdx-shadow);
}

.cdx-why-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cdx-why-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    background: var(--cdx-gradient);
}

.cdx-why-combo {
    display: flex;
    flex-direction: column;
}

.cdx-why-chip-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.cdx-why-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 10px;
}

.cdx-chip-violet {
    background: #ecebff;
    color: #6a5bff;
}

.cdx-chip-green {
    background: #e9fbf3;
    color: #14b871;
}

@media (max-width: 991.98px) {
    .cdx-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cdx-why-col-media {
        grid-column: span 2;
        flex-direction: row;
    }

    .cdx-why-col-media .cdx-why-media,
    .cdx-why-col-media .cdx-why-card {
        flex: 1 1 0;
    }
}

@media (max-width: 575.98px) {
    .cdx-why {
        padding: 50px 0 56px;
    }

    .cdx-why-grid {
        grid-template-columns: 1fr;
    }

    .cdx-why-col-media {
        grid-column: auto;
        flex-direction: column;
    }
}
