/* ==========================================================================
   COURSE DETAIL PAGE (course-detail.php)
   Every rule is scoped to .cd-page or uses the cdp- prefix, so the global
   header/footer and Bootstrap components are not affected.
   ========================================================================== */

.cd-page {
    --cdp-bg: #141414;
    --cdp-alt: #1a1a1a;
    --cdp-card: #1e1e1e;
    --cdp-line: #2c2c2c;
    --cdp-accent: #ffcc00;
    --cdp-text: #f2f2f2;
    --cdp-muted: #9a9a9a;
    font-family: "Poppins", system-ui, sans-serif;
    color: var(--cdp-text);
    background: var(--cdp-bg);
    line-height: 1.6;
    font-size: 15px;
    /* Space for the fixed navbar (adjusted by course-detail.js to the real navbar height) */
    padding-top: var(--cdp-top, 96px);
    overflow-x: clip;
}
.cd-page *, .cd-page *::before, .cd-page *::after { box-sizing: border-box; }
.cd-page p { font-size: inherit; }
.cd-page a { color: var(--cdp-accent); text-decoration: none; }
.cd-page a:hover { color: #ffdb4d; }
.cd-page img { max-width: 100%; }
.cd-page h1, .cd-page h2, .cd-page h3, .cd-page h4, .cd-page h5, .cd-page h6 { font-family: inherit; letter-spacing: normal; }
.cd-page b, .cd-page strong { font-weight: 600; }
.cd-page figure { margin: 0; }
.cd-page details > summary { list-style: none; }
.cd-page details > summary::-webkit-details-marker { display: none; }
.cd-page :focus-visible { outline: 2px solid var(--cdp-accent); outline-offset: 2px; }

/* Anchor jumps (#curriculum, #enroll ...) stop below the fixed navbar */
.cd-page section, .cd-page #buyCard { scroll-margin-top: calc(var(--cdp-top, 96px) + 8px); }

.cdp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.cdp-center { text-align: center; }

/* ---------- Buttons ---------- */
.cd-page .cdp-btn,
.cdp-pmodal .cdp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; border-radius: 10px; font-family: inherit; font-weight: 600; cursor: pointer;
    text-decoration: none; min-height: 44px; padding: 0 22px; font-size: 15px; line-height: 1.2;
    transition: background .2s, color .2s, border-color .2s;
}
.cdp-btn-pri, .cd-page a.cdp-btn-pri { background: var(--cdp-accent, #ffcc00); color: #141414; }
.cdp-btn-pri:hover, .cd-page a.cdp-btn-pri:hover { background: #ffd633; color: #141414; }
.cdp-btn-pri:disabled { opacity: .65; cursor: wait; }
.cd-page .cdp-btn-out { background: transparent; color: var(--cdp-text); border: 1px solid #444; }
.cd-page .cdp-btn-out:hover { border-color: var(--cdp-accent); color: var(--cdp-accent); }
.cdp-btn-dark, .cd-page a.cdp-btn-dark { background: #141414; color: #fff; }
.cdp-btn-dark:hover, .cd-page a.cdp-btn-dark:hover { background: #000; color: #fff; }
.cd-page .cdp-full, .cdp-pmodal .cdp-full { width: 100%; min-height: 52px; font-size: 16px; }
.cdp-linkbtn {
    display: inline-block; background: none; border: 0; padding: 0; margin-top: 2px;
    color: var(--cdp-accent); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
    text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Breadcrumb ---------- */
.cdp-crumb { background: #1b1b1b; border-top: 1px solid #242424; border-bottom: 1px solid #242424; font-size: 13px; color: var(--cdp-muted); }
.cdp-crumb .cdp-wrap { display: flex; align-items: center; gap: 8px; min-height: 40px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.cd-page .cdp-crumb a { color: #bdbdbd; }
.cd-page .cdp-crumb a:hover { color: var(--cdp-accent); }
.cdp-crumb b { color: var(--cdp-text); font-weight: 500; }

/* ---------- Hero ---------- */
.cdp-hero { padding: 48px 0 56px; background: var(--cdp-bg); }
.cdp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    grid-template-areas: "text video" "text buy";
    grid-template-rows: auto 1fr;
    column-gap: 40px; row-gap: 20px; align-items: start;
}
.cdp-hero-text { grid-area: text; }
.cdp-video { grid-area: video; }
.cdp-buy { grid-area: buy; }
.cdp-chip {
    display: inline-flex; align-items: center; gap: 6px; background: #2b2610; color: var(--cdp-accent);
    border: 1px solid #4d4214; border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600; letter-spacing: .04em;
}
.cd-page .cdp-h1 { font-size: 40px; line-height: 1.2; font-weight: 700; margin: 16px 0 12px; color: #fff; }
.cd-page .cdp-lead { color: #c9c9c9; font-size: 16px; margin: 0 0 20px; }
.cdp-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.cdp-meta li {
    display: flex; align-items: center; gap: 8px; background: #1f1f1f; border: 1px solid var(--cdp-line);
    border-radius: 10px; padding: 8px 12px; font-size: 13px; color: #e6e6e6; line-height: 1.3;
}
.cdp-meta svg { color: var(--cdp-accent); flex: none; }
.cdp-by { display: flex; align-items: center; gap: 12px; color: #bdbdbd; font-size: 14px; line-height: 1.45; }
.cdp-by img { width: 48px; height: 48px; flex: none; border-radius: 50%; object-fit: cover; object-position: top; background: #222; border: 2px solid var(--cdp-accent); }
.cdp-by strong { color: #fff; font-weight: 600; display: block; }
.cdp-by .cdp-linkbtn { display: block; }

.cdp-video { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--cdp-line); background: #000; aspect-ratio: 16 / 9; }
.cdp-video img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; }
.cdp-play {
    position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
    background: var(--cdp-accent); color: #141414; border: 0; padding: 0; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 10px rgba(255, 204, 0, .25); cursor: pointer; animation: cdpPulse 2s ease-in-out infinite;
}
.cdp-play svg { margin-left: 4px; }
.cdp-play:hover { background: #ffd633; }
@keyframes cdpPulse { 0%, 100% { box-shadow: 0 0 0 8px rgba(255, 204, 0, .28); } 50% { box-shadow: 0 0 0 16px rgba(255, 204, 0, .1); } }
.cdp-vlabel { position: absolute; left: 14px; bottom: 12px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 12px; font-weight: 500; border-radius: 6px; padding: 4px 10px; }

.cdp-buy { background: var(--cdp-card); border: 1px solid #2e2e2e; border-radius: 16px; padding: 24px; }
.cdp-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cdp-justify { justify-content: center; }
.cdp-price { font-size: 36px; font-weight: 700; color: #fff; line-height: 1.2; }
.cdp-mrp { color: #8f8f8f; text-decoration: line-through; font-size: 18px; }
.cdp-off { background: #16351f; color: #5fd38a; border-radius: 6px; padding: 2px 8px; font-size: 13px; font-weight: 600; }
.cd-page .cdp-gst { font-size: 12px; color: var(--cdp-muted); margin: 2px 0 16px; }
.cdp-coupon { display: flex; gap: 8px; margin: 0 0 6px; }
.cdp-coupon label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cdp-coupon input {
    flex: 1; min-width: 0; height: 44px; border-radius: 10px; border: 1px solid #3a3a3a; background: #151515;
    color: var(--cdp-text); padding: 0 14px; font-family: inherit; font-size: 14px; text-transform: uppercase; outline: none;
}
.cdp-coupon input::placeholder { text-transform: none; color: #7d7d7d; }
.cdp-coupon input:focus { border-color: var(--cdp-accent); }
.cd-page .cdp-coupon .cdp-btn { padding: 0 16px; flex: none; }
.cd-page .cdp-cmsg { font-size: 12px; color: var(--cdp-muted); margin: 0 0 16px; min-height: 18px; }
.cd-page .cdp-cmsg.is-ok { color: #5fd38a; }
.cd-page .cdp-cmsg.is-err { color: #ff8a80; }
.cd-page .cdp-paymsg { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #2a1818; border: 1px solid #5a2a2a; color: #ffb4ab; font-size: 13px; }
.cd-page .course-expired-note { color: #ff8a80; font-size: 13px; line-height: 1.4; margin: 0 0 10px; }
.cdp-secure { display: block; font-size: 12px; color: var(--cdp-muted); margin: 10px 0 18px; text-align: center; line-height: 1.5; }
.cdp-secure svg { display: inline-block; vertical-align: -2px; margin-right: 6px; }
.cdp-incl { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid #2e2e2e; display: grid; gap: 10px; font-size: 14px; color: #dcdcdc; line-height: 1.45; }
.cdp-incl li { display: flex; gap: 10px; align-items: flex-start; }
/* Circular orange tick */
.cdp-incl svg, .cdp-offer-list svg {
    flex: none; width: 22px; height: 22px; padding: 5px; border-radius: 50%;
    background: var(--cdp-accent); color: #141414;
}
.cdp-incl li span { padding-top: 1px; }

/* Buyer state of the buy card */
.cdp-enrolled { display: flex; align-items: center; gap: 10px; color: #5fd38a; font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.cdp-enrolled svg { flex: none; width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: #16351f; color: #5fd38a; }
.cdp-progress-box { background: #151515; border: 1px solid #2e2e2e; border-radius: 12px; padding: 14px; margin-bottom: 14px; font-size: 13px; color: #dcdcdc; }
.cdp-progress-box .learning-progress { margin-top: 10px; }
.cd-page .cdp-next { margin: 8px 0 0; font-size: 12px; color: var(--cdp-muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-page .cdp-done { color: #5fd38a; font-weight: 600; margin: 0 0 10px; }
.cd-page .cdp-valid { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--cdp-muted); margin: 12px 0 16px; }

/* ---------- Sections ---------- */
.cdp-sec { padding: 72px 0; }
.cdp-pt0 { padding-top: 0; }
.cdp-alt { background: var(--cdp-alt); }
.cd-page .cdp-eyebrow { color: var(--cdp-accent); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
.cd-page .cdp-h2 { font-size: 30px; line-height: 1.25; font-weight: 700; color: #fff; margin: 0 0 14px; }
.cd-page .cdp-sub { color: #bdbdbd; margin: 0 auto 32px; max-width: 720px; }

/* Rich text from the admin panel (course description, instructor bio) */
.cdp-prose { color: #cfcfcf; }
.cdp-prose p { margin: 0 0 16px; }
.cdp-prose strong, .cdp-prose b { color: #fff; }
.cdp-prose h3, .cdp-prose h4, .cdp-prose h5, .cdp-prose h6 { color: #fff; font-size: 18px; font-weight: 600; margin: 24px 0 12px; }
.cdp-prose ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.cdp-prose ul li { position: relative; padding-left: 34px; min-height: 24px; }
.cdp-prose ul li::before {
    content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
    background: #2b2610 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffcc00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.cdp-prose ol { margin: 0 0 16px; padding-left: 20px; }
.cdp-prose a { text-decoration: underline; }
.cdp-prose > :last-child { margin-bottom: 0; }

.cdp-desc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.cdp-learn { background: var(--cdp-card); border: 1px solid var(--cdp-line); border-radius: 16px; padding: 24px; }
.cd-page .cdp-learn h3 { margin: 0 0 16px; font-size: 18px; font-weight: 600; color: #fff; }
.cdp-learn ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cdp-learn li { display: flex; gap: 12px; color: #dcdcdc; font-size: 14px; line-height: 1.5; }
.cdp-learn li b { color: #fff; }
.cdp-tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #2b2610; color: var(--cdp-accent); display: flex; align-items: center; justify-content: center; }
.cdp-tick svg { width: 14px; height: 14px; }

/* ---------- Trust ---------- */
.cdp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 28px 0 40px; }
.cdp-stat { background: var(--cdp-card); border: 1px solid var(--cdp-line); border-radius: 16px; padding: 24px 16px; text-align: center; }
.cdp-stat strong { display: block; font-size: 26px; font-weight: 700; color: var(--cdp-accent); line-height: 1.15; margin-bottom: 4px; }
.cdp-stat span { color: #c9c9c9; font-size: 13px; }
.cd-page .cdp-logos-t { text-align: center; color: var(--cdp-muted); font-size: 13px; margin: 0 0 16px; }
.cdp-logos { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 14px; }
.cdp-logos img, .cdp-ltrack img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #fff; border: 1px solid var(--cdp-line); display: block; }
.cdp-logo-rows { display: none; }

/* ---------- Image slider ---------- */
.cdp-slider-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.cdp-slider-head .cdp-h2 { margin: 0; }
.cdp-slider-nav { display: flex; gap: 10px; flex: none; }
.cdp-snav {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid #3a3a3a; background: var(--cdp-card); color: var(--cdp-text);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.cdp-snav:hover:not(:disabled) { border-color: var(--cdp-accent); color: var(--cdp-accent); }
.cdp-snav:disabled { opacity: .4; cursor: default; }
.cdp-slider {
    display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.cdp-slider::-webkit-scrollbar { display: none; }
/* End spacer, so the last slide can also snap to the start */
.cdp-slider::after { content: ""; flex: 0 0 calc(100% - min(560px, 86%) - 20px); }
.cdp-slide { flex: 0 0 min(560px, 86%); scroll-snap-align: start; border-radius: 16px; overflow: hidden; background: var(--cdp-card); border: 1px solid var(--cdp-line); }
.cdp-slide img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.cdp-slide img.cdp-top { object-position: top; }
.cdp-slide figcaption { margin: 0; padding: 14px 18px; font-size: 14px; color: #dcdcdc; }
.cdp-dots { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.cdp-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: #444; cursor: pointer; transition: width .25s, background .25s; }
.cdp-dots button.is-on { background: var(--cdp-accent); width: 24px; }

/* ---------- Problem vs outcome ---------- */
.cdp-po { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: stretch; margin-top: 28px; }
.cdp-po-single { grid-template-columns: minmax(0, 720px); justify-content: center; }
.cdp-pcard { border-radius: 16px; padding: 28px; border: 1px solid var(--cdp-line); }
.cd-page .cdp-pcard h3 { margin: 0 0 18px; font-size: 19px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.cdp-pcard h3 svg { flex: none; }
.cdp-pcard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cdp-pcard li { display: flex; gap: 12px; font-size: 14px; line-height: 1.5; }
.cdp-bad { background: #1e1818; border-color: #3a2626; }
.cd-page .cdp-bad h3 { color: #ff8a80; }
.cdp-bad li { color: #d7c9c9; }
.cdp-bad .cdp-ic { color: #ff8a80; }
.cdp-good { background: #17201a; border-color: #244a2f; }
.cd-page .cdp-good h3 { color: #6ee09a; }
.cdp-good li { color: #d3e6d8; }
.cdp-good .cdp-ic { color: #6ee09a; }
.cdp-ic { flex: none; margin-top: 2px; }
.cdp-arrow { display: flex; align-items: center; justify-content: center; color: var(--cdp-accent); }

/* ---------- Curriculum ---------- */
.cdp-cur-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 20px; }
.cdp-cur-head .cdp-h2 { margin: 0; }
.cdp-cur-sum { color: #bdbdbd; font-size: 14px; }
.cdp-legend { display: flex; gap: 8px 16px; flex-wrap: wrap; font-size: 12px; color: var(--cdp-muted); margin: -6px 0 16px; }
.cdp-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.cdp-unit { background: var(--cdp-card); border: 1px solid var(--cdp-line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.cdp-unit summary { cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 20px; min-height: 64px; }
.cdp-unit summary:hover .cdp-utitle b { color: var(--cdp-accent); }
.cdp-unum { flex: none; width: 36px; height: 36px; border-radius: 10px; background: #2b2610; color: var(--cdp-accent); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.cdp-utitle { flex: 1; min-width: 0; line-height: 1.4; }
.cdp-utitle b { display: block; color: #fff; font-weight: 600; font-size: 15px; transition: color .2s; }
.cdp-utitle span { color: var(--cdp-muted); font-size: 13px; }
.cdp-chev { flex: none; color: var(--cdp-muted); transition: transform .2s; }
.cdp-unit[open] .cdp-chev { transform: rotate(180deg); }
.cdp-ch { list-style: none; margin: 0; padding: 0 20px 12px 70px; }
.cdp-ch li { border-top: 1px solid #2a2a2a; }
.cd-page .cdp-lesson { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 14px; color: #d6d6d6; line-height: 1.4; }
.cd-page .cdp-lesson:hover { color: #fff; }
.cd-page .cdp-lesson:hover .cdp-pbtn { background: var(--cdp-accent); color: #141414; }
.cdp-lesson-t { flex: 1; min-width: 0; }
.cdp-lesson-d { color: var(--cdp-muted); font-size: 13px; flex: none; font-variant-numeric: tabular-nums; }
.cdp-pbtn { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #2b2610; color: var(--cdp-accent); border: 1px solid #4d4214; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.cdp-pbtn svg { margin-left: 2px; }
.cdp-lk { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--cdp-muted); background: #262626; border-radius: 999px; padding: 3px 8px; line-height: 1.3; }
.cdp-lk.is-open { color: #5fd38a; background: #16351f; }
.cd-page .chapter-status { flex: none; white-space: nowrap; }
.cd-page .chapter-status:empty { display: none; }
.cd-page .chapter-done-icon { color: #22c55e; font-size: 16px; }
.cd-page .chapter-resume { color: var(--cdp-accent); font-size: 12px; font-weight: 600; }

/* ---------- Instructor ---------- */
.cdp-ins { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 40px; align-items: start; }
.cdp-ins-photo { border-radius: 20px; overflow: hidden; background: var(--cdp-card); border: 1px solid var(--cdp-line); }
.cdp-ins-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; display: block; }
.cd-page .cdp-ins h3 { margin: 0; font-size: 26px; font-weight: 700; color: #fff; }
.cd-page .cdp-exp { color: var(--cdp-accent); font-weight: 500; margin: 4px 0 16px; }
.cd-page .cdp-tags-t { color: #fff; font-weight: 600; margin: 20px 0 10px; }
.cdp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cdp-tags li { background: var(--cdp-card); border: 1px solid var(--cdp-line); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: #e0e0e0; }

/* ---------- Reviews ---------- */
.cdp-rv-wrap {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.cdp-rv-wrap .cdp-rtrack { display: flex; gap: 20px; width: max-content; animation: cdpMq 45s linear infinite; padding: 4px 0; }
.cdp-rv-wrap:hover .cdp-rtrack { animation-play-state: paused; }
.cdp-rv-wrap .cdp-rev { width: 380px; flex: none; }
.cdp-rv-static .cdp-rtrack { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.cdp-rv-static .cdp-rev { width: 380px; max-width: 100%; }
.cdp-rev { background: var(--cdp-card); border: 1px solid #333; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.cdp-quote { color: #4d4214; }
.cd-page .cdp-rev-q { color: #cfcfcf; margin: 0; font-size: 14px; }
.cdp-who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.cdp-av { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #2b2610; color: var(--cdp-accent); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.cdp-who b { display: block; color: #fff; font-size: 14px; line-height: 1.3; }
.cdp-who span { font-size: 12px; color: var(--cdp-muted); }

/* ---------- Offer ---------- */
.cdp-offer { background: var(--cdp-card); border: 1px solid #4d4214; border-radius: 20px; padding: 40px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.cdp-offer-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cdp-offer-list li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: #e0e0e0; line-height: 1.4; }
.cdp-obox { background: var(--cdp-bg); border: 1px solid var(--cdp-line); border-radius: 16px; padding: 24px; text-align: center; }
.cdp-save { display: inline-block; background: #16351f; color: #5fd38a; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.cd-page .cdp-cd-t { margin: 4px 0 10px; font-size: 13px; color: #bdbdbd; }
.cdp-cd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; }
.cdp-cd div { background: var(--cdp-card); border: 1px solid #4d4214; border-radius: 10px; padding: 10px 4px; }
.cdp-cd b { display: block; font-size: 24px; font-weight: 700; color: var(--cdp-accent); line-height: 1.1; font-variant-numeric: tabular-nums; }
.cdp-cd span { font-size: 11px; color: var(--cdp-muted); text-transform: uppercase; letter-spacing: .06em; }
.cd-page .cdp-cd-end { font-size: 12px; color: var(--cdp-muted); margin: -8px 0 16px; }

/* ---------- CTA band ---------- */
.cdp-cta { background: var(--cdp-accent); color: #141414; border-radius: 20px; padding: 48px 40px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cdp-cta-text { flex: 1 1 420px; min-width: 0; }
.cdp-cta-act { flex: 0 1 320px; min-width: 0; }
.cd-page .cdp-cta h2 { margin: 0 0 8px; font-size: 30px; font-weight: 700; line-height: 1.25; color: #141414; }
.cd-page .cdp-cta p { margin: 0; font-size: 15px; color: #3a3108; }
.cdp-pr { font-size: 15px; margin-bottom: 10px; color: #3a3108; }
.cdp-pr b { font-size: 30px; color: #141414; font-weight: 700; }
.cdp-pr s { margin-left: 8px; }

/* ---------- FAQ ---------- */
.cdp-faqs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; margin-top: 28px; }
.cdp-faq { background: var(--cdp-card); border: 1px solid var(--cdp-line); border-radius: 12px; }
.cdp-faq summary { cursor: pointer; padding: 16px 18px; display: flex; justify-content: space-between; gap: 12px; font-weight: 500; color: #fff; font-size: 15px; min-height: 56px; align-items: center; line-height: 1.4; }
.cdp-faq summary:hover { color: var(--cdp-accent); }
.cdp-pm { flex: none; position: relative; width: 14px; height: 14px; }
.cdp-pm::before, .cdp-pm::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: var(--cdp-accent); transition: transform .2s; }
.cdp-pm::after { transform: rotate(90deg); }
.cdp-faq[open] .cdp-pm::after { transform: rotate(0deg); }
.cdp-faq-a { padding: 0 18px 16px; color: #c9c9c9; font-size: 14px; }
.cdp-faq-a p { margin: 0 0 8px; }
.cdp-faq-a > :last-child { margin-bottom: 0; }

/* ---------- Mobile sticky bar ---------- */
.cdp-mbar { display: none; }

/* ---------- Marquee keyframes ---------- */
@keyframes cdpMq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes cdpMqr { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
    .cdp-rv-wrap .cdp-rtrack, .cdp-ltrack, .cdp-play { animation: none !important; }
    .cdp-rv-wrap { overflow-x: auto; }
    .cdp-slider { scroll-behavior: auto; }
}

/* ---------- Modals used by this page ---------- */
.video-popup { position: fixed; inset: 0; background: rgba(0, 0, 0, .85); display: none; align-items: center; justify-content: center; z-index: 9999; padding: 16px; }
.video-popup-content { position: relative; width: 100%; max-width: 860px; }
.video-popup video { width: 100%; border-radius: 12px; display: block; background: #000; -webkit-user-select: none; user-select: none; }
.close-video-popup { position: absolute; top: -46px; right: 0; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.close-video-popup:hover { background: var(--cdp-accent, #ffcc00); color: #141414; }

#videoModal .modal-content, #instructorModal .modal-content { background: #1e1e1e; color: #f2f2f2; border: 1px solid #2c2c2c; border-radius: 16px; }
#videoModal .modal-header, #videoModal .modal-footer, #instructorModal .modal-header, #instructorModal .modal-footer { border-color: #2c2c2c; }
#videoModal .modal-title, #instructorModal .modal-title { font-size: 16px; font-weight: 600; }
#videoModal .btn-close, #instructorModal .btn-close { filter: invert(1); }
#videoModal video { display: block; border-radius: 10px; background: #000; -webkit-user-select: none; user-select: none; }
#instructorModal .modal-body ul { padding-left: 20px; }

.cdp-pmodal { background: #1e1e1e; color: #f2f2f2; border: 1px solid #2c2c2c; border-radius: 20px; overflow: hidden; font-family: "Poppins", sans-serif; }
.cdp-pmodal .modal-header { background: #141414; color: #fff; border-color: #2c2c2c; }
.cdp-pmodal-ic { width: 80px; height: 80px; border-radius: 50%; margin: auto; display: flex; align-items: center; justify-content: center; background: #2b2610; color: #ffcc00; }
.cdp-pmodal-txt { color: #bdbdbd; margin-bottom: 20px; }
.cdp-pmodal-price { font-weight: 700; color: #fff; margin: 0; }
.cdp-pmodal-mrp { color: #8f8f8f; }
.cdp-pmodal .cdp-btn-pri { background: #ffcc00; color: #141414; }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 991px) {
    .cdp-hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "video" "text" "buy"; grid-template-rows: auto; row-gap: 28px; }
    .cdp-desc, .cdp-ins, .cdp-offer { grid-template-columns: minmax(0, 1fr); }
    .cdp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cdp-logos { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .cdp-ins-photo { max-width: 320px; }
    .cdp-buy { max-width: 560px; width: 100%; }
}

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 767px) {
    .cd-page { font-size: 14px; }
    .cdp-wrap { padding: 0 16px; }
    .cdp-crumb { font-size: 12px; }
    .cdp-crumb .cdp-wrap { min-height: 34px; }
    .cdp-crumb .cdp-mid { display: none; }
    .cdp-crumb b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
    .cdp-crumb .cdp-wrap { flex-wrap: nowrap; }
    .cdp-hero { padding: 20px 0 32px; }
    .cdp-hero-grid { row-gap: 20px; }
    .cdp-buy { max-width: none; padding: 18px; }
    .cd-page .cdp-h1 { font-size: 26px; margin: 12px 0 10px; }
    .cd-page .cdp-lead { font-size: 14px; }
    .cdp-meta { gap: 8px; }
    .cdp-meta li { font-size: 12px; padding: 6px 10px; }
    .cdp-price { font-size: 30px; }
    .cdp-play { width: 64px; height: 64px; }
    .cdp-sec { padding: 48px 0; }
    .cdp-pt0 { padding-top: 0; }
    .cd-page .cdp-h2 { font-size: 23px; }
    .cdp-stats { gap: 12px; margin: 22px 0 32px; }
    .cdp-stat { padding: 18px 10px; }
    .cdp-stat strong { font-size: 22px; }
    .cdp-stat span { font-size: 12px; }
    .cdp-logos { display: none; }
    .cdp-logo-rows { display: grid; gap: 12px; margin: 0 -16px; }
    .cdp-lrow { overflow: hidden; }
    .cdp-ltrack { display: flex; gap: 12px; width: max-content; animation: cdpMq 30s linear infinite; }
    .cdp-ltrack.cdp-right { animation-name: cdpMqr; }
    .cdp-ltrack img { width: 76px; height: 76px; flex: none; }
    .cdp-slider-nav { display: none; }
    .cdp-slider { gap: 12px; }
    .cdp-slider::after { flex-basis: calc(14% - 12px); }
    .cdp-po { grid-template-columns: minmax(0, 1fr); }
    .cdp-pcard { padding: 22px 18px; }
    .cdp-arrow { height: 48px; transform: rotate(90deg); }
    .cdp-unit summary { padding: 14px 16px; gap: 12px; }
    .cdp-ch { padding: 0 16px 10px 16px; }
    /* Lesson row: play | title over duration (+ status) | lock badge */
    .cd-page .cdp-lesson {
        display: grid; grid-template-columns: 32px minmax(0, 1fr) auto;
        grid-template-areas: "p t lk" "p d lk"; column-gap: 12px; row-gap: 2px;
    }
    .cdp-lesson .cdp-pbtn { grid-area: p; }
    .cdp-lesson .cdp-lesson-t { grid-area: t; }
    .cdp-lesson .cdp-lesson-d { grid-area: d; font-size: 12px; }
    .cdp-lesson .cdp-lk { grid-area: lk; }
    .cd-page .cdp-lesson .chapter-status { grid-area: d; justify-self: start; margin-left: 44px; align-self: center; }
    .cd-page .cdp-lesson .chapter-status .chapter-done-icon { font-size: 13px; }
    .cdp-ins { gap: 24px; }
    .cdp-ins-photo { max-width: 240px; }
    .cdp-rv-wrap .cdp-rev { width: 280px; }
    .cdp-offer { padding: 24px 18px; gap: 24px; }
    .cdp-offer-list { grid-template-columns: minmax(0, 1fr); }
    .cdp-obox { padding: 20px 14px; }
    .cdp-cd b { font-size: 20px; }
    .cdp-cta { padding: 28px 20px; gap: 20px; }
    .cdp-cta-text, .cdp-cta-act { flex: 1 1 100%; }
    .cd-page .cdp-cta h2 { font-size: 23px; }
    .cdp-faqs { grid-template-columns: minmax(0, 1fr); }
    .cdp-faq summary { font-size: 14px; }

    .cdp-mbar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
        background: #1b1b1b; border-top: 1px solid #2e2e2e; padding: 10px 16px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        align-items: center; justify-content: space-between; gap: 12px;
        box-shadow: 0 -6px 20px rgba(0, 0, 0, .35);
    }
    .cdp-mbar b { color: #fff; font-size: 18px; display: block; line-height: 1.2; }
    .cdp-mbar s { color: #8f8f8f; font-size: 12px; }
    /* Keep the footer and the floating call/WhatsApp buttons clear of the sticky bar */
    body:has(.cdp-mbar) { padding-bottom: 72px; }
    body:has(.cdp-mbar) .floating-buttons { bottom: 86px; }
}

/* ======================================================================
   Hero layout v2: left column = intro + milestones + description,
   right column = video + buy card, sticky while scrolling (desktop).
   ====================================================================== */
.cdp-side { display: contents; }               /* mobile/tablet: children keep their own grid areas */
.cdp-hero-about { grid-area: about; }
.cdp-hero-stats { display: none; }
.cdp-hero-about .cdp-learn { margin-top: 8px; }
.cdp-hero-about .cdp-prose p:last-child { margin-bottom: 0; }

@media (max-width: 991px) {
    .cdp-hero-grid { grid-template-areas: "video" "text" "buy" "about"; }
    .cdp-hero-about { margin-top: 20px; padding-top: 32px; border-top: 1px solid var(--cdp-line); }
}

@media (min-width: 992px) {
    .cdp-hero { padding: 40px 0 72px; }
    .cdp-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
        grid-template-areas: "text side" "about side";
        grid-template-rows: auto 1fr;
        column-gap: 48px; row-gap: 48px;
    }
    .cdp-side {
        grid-area: side; display: flex; flex-direction: column; gap: 16px;
        position: sticky; top: 96px; align-self: start;      /* JS adjusts top when the card is taller than the screen */
    }
    .cdp-side .cdp-buy { padding: 20px 22px; }
    .cdp-side .cdp-price { font-size: 32px; }
    .cdp-side .cdp-incl { gap: 8px; font-size: 13.5px; }

    /* Milestones fill the left column under the instructor */
    .cdp-hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
    .cdp-hero-stats .cdp-stat { padding: 16px 10px; border-radius: 14px; }
    .cdp-hero-stats .cdp-stat strong { font-size: 22px; }
    .cdp-hero-stats .cdp-stat span { font-size: 12px; line-height: 1.35; display: block; }
    #trust .cdp-stats { display: none; }                   /* shown in the hero on desktop instead */
    #trust .cdp-center { margin-bottom: 24px; }

    /* Description + "What you will learn" stacked in the left column, aligned to the same edges */
    .cdp-hero-about { display: flex; flex-direction: column; gap: 24px; }
    .cdp-hero-about .cdp-learn { margin-top: 0; }
    .cdp-hero-about .cdp-learn ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
    .cdp-meta li { min-height: 40px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .cdp-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cdp-hero-about .cdp-learn ul { grid-template-columns: minmax(0, 1fr); }
    .cdp-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); column-gap: 32px; }
}

/* Navbar readability on this page: content scrolls under the fixed navbar while the buy card is sticky */
.glass-nav { background: rgba(30, 30, 30, .86) !important; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* Client logos: two rows sliding in opposite directions on every screen size */
.cdp-logos { display: none !important; }
.cdp-logo-rows { display: grid; gap: 16px; }
.cdp-lrow { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.cdp-ltrack { display: flex; gap: 16px; width: max-content; animation: cdpMq 40s linear infinite; }
.cdp-ltrack.cdp-right { animation-name: cdpMqr; }
.cdp-ltrack img { width: 104px; height: 104px; flex: none; }
.cdp-lrow:hover .cdp-ltrack { animation-play-state: paused; }
@media (max-width: 767px) {
    .cdp-logo-rows { gap: 12px; margin: 0 -16px; }
    .cdp-ltrack { gap: 12px; animation-duration: 30s; }
    .cdp-ltrack img { width: 76px; height: 76px; }
}

/* Sticky right column, compact mode for shorter screens (video always stays visible) */
@media (min-width: 992px) {
    .cdp-side { overflow-y: auto; scrollbar-width: none; }
    .cdp-side::-webkit-scrollbar { display: none; }
    .cdp-side.cdp-compact .cdp-incl,
    .cdp-side.cdp-compact .cdp-cmsg,
    .cdp-side.cdp-compact .cdp-gst { display: none; }
    .cdp-side.cdp-compact .cdp-buy { padding: 16px 18px; }
    .cdp-side.cdp-compact .cdp-price { font-size: 28px; }
    .cdp-side.cdp-compact .cdp-secure { margin: 8px 0 0; }
    .cdp-side.cdp-compact { gap: 12px; }
}

/* Curriculum lives in the hero grid so the sticky buy card stays beside it on desktop */
.cdp-hero-curriculum { grid-area: curr; min-width: 0; }
@media (max-width: 991px) {
    .cdp-hero-grid { grid-template-areas: "video" "text" "buy" "about" "curr"; }
    .cdp-hero-curriculum { margin-top: 20px; padding-top: 32px; border-top: 1px solid var(--cdp-line); }
}
@media (min-width: 992px) {
    .cdp-hero-grid { grid-template-areas: "text side" "about side" "curr side"; grid-template-rows: auto auto 1fr; }
    .cdp-hero-curriculum { padding-top: 40px; border-top: 1px solid var(--cdp-line); }
}

/* ==========================================================================
   Light sections: the page alternates dark and light bands
   (hero dark, trust light, gallery dark, why light, instructor dark,
   reviews light, offer + CTA dark, FAQ light).
   Orange text on white is darkened (#8a6d00) so it stays readable.
   ========================================================================== */
.cdp-light {
    --cdp-card: #ffffff;
    --cdp-line: #e8e3da;
    --cdp-text: #1c1c1c;
    --cdp-muted: #6b6b6b;
    background: #f7f5f0;
    color: #1c1c1c;
}
.cdp-light#trust, .cdp-light#faq { background: #ffffff; }
.cdp-light#trust .cdp-stat, .cdp-light#faq .cdp-faq { background: #faf8f4; }
.cd-page .cdp-light a { color: #8a6d00; }
.cd-page .cdp-light .cdp-eyebrow { color: #8a6d00; }
.cd-page .cdp-light .cdp-h2 { color: #141414; }
.cd-page .cdp-light .cdp-sub { color: #555; }

/* Trust */
.cdp-light .cdp-stat { box-shadow: 0 1px 2px rgba(20, 20, 20, .04); }
.cdp-light .cdp-stat strong { color: #8a6d00; }
.cdp-light .cdp-stat span { color: #555; }
.cd-page .cdp-light .cdp-logos-t { color: #6b6b6b; }
.cdp-light .cdp-ltrack img { border-color: #e8e3da; box-shadow: 0 1px 3px rgba(20, 20, 20, .06); }

/* Problem vs outcome */
.cdp-light .cdp-bad { background: #fff5f3; border-color: #f3d3cc; }
.cd-page .cdp-light .cdp-bad h3, .cdp-light .cdp-bad .cdp-ic { color: #c62828; }
.cdp-light .cdp-bad li { color: #4a3434; }
.cdp-light .cdp-good { background: #f1faf4; border-color: #c6e7d1; }
.cd-page .cdp-light .cdp-good h3, .cdp-light .cdp-good .cdp-ic { color: #1b7f43; }
.cdp-light .cdp-good li { color: #2d4536; }
.cdp-light .cdp-arrow { color: #d4a800; }

/* Reviews */
.cdp-light .cdp-rev { border-color: #e8e3da; box-shadow: 0 2px 10px rgba(20, 20, 20, .05); }
.cdp-light .cdp-quote { color: #f2dd8c; }
.cd-page .cdp-light .cdp-rev-q { color: #444; }
.cdp-light .cdp-av { background: #fff6cc; color: #8a6d00; }
.cdp-light .cdp-who b { color: #141414; }

/* FAQ */
.cdp-light .cdp-faq summary { color: #1c1c1c; }
.cdp-light .cdp-faq summary:hover { color: #8a6d00; }
.cdp-light .cdp-faq[open] { background: #fff; border-color: #f0e0a0; box-shadow: 0 2px 10px rgba(20, 20, 20, .05); }
.cdp-light .cdp-faq-a { color: #4d4d4d; }
.cdp-light .cdp-faq-a * { color: inherit; }

/* ==========================================================================
   Reviews v2: review-site style cards with star ratings
   ========================================================================== */
.cdp-rv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.cdp-rv-head .cdp-sub { margin: 0; }
.cdp-rv-score { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #e8e3da; border-radius: 14px; padding: 14px 20px; box-shadow: 0 1px 3px rgba(20, 20, 20, .05); }
.cdp-rv-score > b { font-size: 40px; line-height: 1; font-weight: 700; color: #202124; }
.cdp-rv-score > div { display: flex; flex-direction: column; gap: 4px; }
.cdp-rv-count { font-size: 13px; color: #5f6368; }

/* Stars: grey row with a gold row on top, cut to the rating width (handles 4.5 etc.) */
.cdp-stars { position: relative; display: inline-block; font-size: 16px; line-height: 1; letter-spacing: 2px; color: #dadce0; white-space: nowrap; }
.cdp-stars::before { content: "★★★★★"; }
.cdp-stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--cdp-rate, 100%); overflow: hidden; color: #fbbc04; }
.cdp-stars-lg { font-size: 20px; }

.cdp-light .cdp-rev { background: #fff; border: 1px solid #e3e3e3; border-radius: 12px; padding: 20px; gap: 12px; box-shadow: 0 1px 2px rgba(60, 64, 67, .12), 0 1px 3px 1px rgba(60, 64, 67, .06); }
.cdp-rev .cdp-who { margin-top: 0; }
.cdp-light .cdp-av { color: #fff; font-size: 16px; }
.cdp-light .cdp-who b { color: #202124; font-size: 15px; }
.cdp-light .cdp-who span { color: #5f6368; }
.cdp-rev-meta { display: flex; align-items: center; gap: 10px; }
.cdp-rev-when { font-size: 12px; color: #70757a; }
.cd-page .cdp-light .cdp-rev-q {
    color: #3c4043; font-size: 14px; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.cdp-rv-wrap .cdp-rtrack { align-items: stretch; }

@media (max-width: 767px) {
    .cdp-rv-head { align-items: stretch; flex-direction: column; gap: 16px; }
    .cdp-rv-head .cdp-eyebrow, .cdp-rv-head .cdp-h2 { text-align: left; }
    .cdp-rv-score { padding: 12px 16px; align-self: flex-start; }
    .cdp-rv-score > b { font-size: 32px; }
}
/* Avatar initials stay white on the coloured circle (the role text rule targets spans too) */
.cdp-light .cdp-who .cdp-av { color: #fff; }

/* Lesson list indent: style.css has "ul { padding-left: 0 !important }" (from ".footer-widget-heading ol, ul"),
   which pushed the play buttons against the card edge. Restore the indent here. */
.cd-page .cdp-ch { padding-left: 70px !important; }
@media (max-width: 767px) {
    .cd-page .cdp-ch { padding-left: 16px !important; }
}

/* ==========================================================================
   "Confused about how to start a microfinance company?" consultation CTA
   ========================================================================== */
.cdp-consult {
    display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center;
    background: linear-gradient(135deg, #1f1f1f 0%, #191919 100%);
    border: 1px solid #4d4214; border-radius: 20px; padding: 40px;
}
.cd-page .cdp-consult-lead { color: #cfcfcf; margin: 0 0 20px; font-size: 15px; }
.cdp-consult-list { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: 12px; }
.cdp-consult-list li { display: flex; gap: 10px; align-items: flex-start; color: #e6e6e6; font-size: 14px; line-height: 1.5; }
.cdp-consult-list svg { flex: none; width: 22px; height: 22px; padding: 5px; border-radius: 50%; background: var(--cdp-accent); color: #141414; }
.cdp-consult-act { display: grid; gap: 12px; background: #141414; border: 1px solid var(--cdp-line); border-radius: 16px; padding: 24px; }
.cdp-consult-act .fa-whatsapp, .cdp-consult-act .fa-phone { font-size: 18px; }
.cd-page a.cdp-consult-link { text-align: center; font-size: 13px; color: #bdbdbd; text-decoration: underline; text-underline-offset: 3px; }
.cd-page a.cdp-consult-link:hover { color: var(--cdp-accent); }
@media (max-width: 991px) {
    .cdp-consult { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 767px) {
    .cdp-consult { padding: 24px 18px; border-radius: 16px; }
    .cdp-consult-act { padding: 18px; }
}

/* Mobile: description paragraphs justified */
@media (max-width: 767px) {
    .cd-page .cdp-prose p, .cd-page .cdp-prose li, .cd-page .cdp-lead, .cd-page .cdp-consult-lead,
    .cd-page .cdp-faq-a p, .cd-page .cdp-faq-a, .cd-page .cdp-rev-q { text-align: justify; text-justify: inter-word; }
}

/* Contact details popup before payment */
.cdp-pmodal .cdp-flabel { display: block; font-size: 13px; font-weight: 500; color: #dcdcdc; margin: 12px 0 6px; }
.cdp-pmodal .cdp-finput { width: 100%; height: 46px; border-radius: 10px; border: 1px solid #3a3a3a; background: #151515; color: #f2f2f2; padding: 0 14px; font-family: inherit; font-size: 15px; outline: none; }
.cdp-pmodal .cdp-finput:focus { border-color: #ffcc00; }
.cdp-pmodal .cdp-finput.is-bad { border-color: #ff8a80; }
.cdp-pmodal .cdp-price { font-size: 28px; color: #fff; }
.cdp-pmodal .cdp-secure { margin-top: 12px; }

/* One-step enroll popup (mobile -> OTP -> name/email -> pay) */
.cdp-en-mobile { display: flex; align-items: stretch; gap: 0; }
.cdp-en-mobile span { display: flex; align-items: center; padding: 0 12px; background: #222; border: 1px solid #3a3a3a; border-right: 0; border-radius: 10px 0 0 10px; color: #cfcfcf; font-size: 15px; }
.cdp-en-mobile .cdp-finput { border-radius: 0 10px 10px 0; }
.cdp-pmodal .cdp-en-otp { letter-spacing: 8px; font-size: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.cdp-pmodal .cdp-en-note { font-size: 12px; color: #9a9a9a; margin: 10px 0 0; text-align: center; }
.cdp-pmodal .cdp-en-sent { font-size: 14px; color: #dcdcdc; margin: 0 0 4px; }
.cdp-pmodal .cdp-en-sent b { color: #fff; }
.cdp-en-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: #9a9a9a; }
.cdp-pmodal .cdp-en-links a { color: #ffcc00; text-decoration: none; }
.cdp-pmodal .cdp-en-alt { text-align: center; font-size: 12px; margin: 10px 0 0; }
.cdp-pmodal .cdp-en-alt a { color: #9a9a9a; text-decoration: underline; text-underline-offset: 3px; }
.cdp-pmodal .cdp-paymsg { margin-top: 12px; }
.cdp-pmodal .cdp-en-change { color: #ffcc00; text-decoration: none; font-weight: 600; margin-left: 4px; white-space: nowrap; }
.cdp-pmodal .cdp-en-sent { margin-bottom: 10px; }
.cdp-pmodal .cdp-en-paying { text-align: center; color: #dcdcdc; font-size: 15px; margin: 8px 0; }

/* Reviews on phones: one complete review at a time (swipe / dots) instead of the moving strip */
.cdp-rv-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.cdp-rv-dots[hidden] { display: none; }
.cdp-rv-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #c9c3b8; cursor: pointer; transition: width .2s, background .2s; }
.cdp-rv-dots button.on { width: 22px; border-radius: 6px; background: #ffcc00; }
@media (max-width: 767px) {
    .cdp-rv-wrap.cdp-rv-slider, .cdp-rv-static.cdp-rv-slider { -webkit-mask-image: none; mask-image: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .cdp-rv-slider::-webkit-scrollbar { display: none; }
    .cdp-rv-slider .cdp-rtrack { animation: none !important; width: auto; display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 12px; padding: 4px 0; }
    .cdp-rv-slider .cdp-rev { width: 100%; max-width: none; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
    .cdp-rv-slider .cdp-rev[aria-hidden="true"] { display: none; }
}
