/* ===== Course Detail page — redesigned ===== */
.cd-page { background: #f6f8fc; }
.cd-page * { box-sizing: border-box; }

/* Breadcrumb */
.cd-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: #6b7280; padding: 18px 0 0; }
.cd-breadcrumb a { color: #20a8ff; text-decoration: none; }
.cd-breadcrumb a:hover { color: #071e57; }
.cd-breadcrumb .sep { color: #c2cbda; }
.cd-breadcrumb .cur { color: #071e57; font-weight: 600; }

/* ===== Hero (light theme) ===== */
.cd-hero { background: linear-gradient(135deg, #f4f9ff 0%, #eaf2ff 100%); border-bottom: 1px solid #e3ecfa; position: relative; overflow: hidden; }
.cd-hero::after { content: ""; position: absolute; top: -30%; right: -8%; width: 420px; height: 420px; background: radial-gradient(circle, rgba(32,168,255,0.14) 0%, rgba(32,168,255,0) 70%); pointer-events: none; }
.cd-hero .cd-breadcrumb { color: #6b7280; }
.cd-hero .cd-breadcrumb a { color: #20a8ff; }
.cd-hero .cd-breadcrumb a:hover { color: #071e57; }
.cd-hero .cd-breadcrumb .sep { color: #c2cbda; }
.cd-hero .cd-breadcrumb .cur { color: #071e57; }

.cd-hero-grid { display: grid; grid-template-columns: 260px 1fr; gap: 34px; align-items: center; padding: 26px 0 40px; position: relative; z-index: 2; }

.cd-hero-media { position: relative; }
.cd-hero-media img { width: 100%; border-radius: 16px; box-shadow: 0 16px 38px rgba(7,30,87,0.16); background: #fff; border: 1px solid #e3ecfa; }

.cd-hero-info { color: #071e57; }
.cd-chip { display: inline-block; background: #eaf3ff; border: 1px solid #d5e7fb; color: #1469c7; font-size: 12px; font-weight: 600; letter-spacing: .4px; padding: 5px 13px; border-radius: 30px; margin-bottom: 14px; }
.cd-title { font-size: 30px; line-height: 1.2; font-weight: 800; color: #071e57; margin: 0 0 12px; letter-spacing: -0.3px; }
.cd-provide { font-size: 14px; color: #5b6880; line-height: 1.6; margin: 0 0 16px; }
.cd-provide b { color: #071e57; }

.cd-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.cd-price-now { font-size: 30px; font-weight: 800; color: #071e57; }
.cd-price-now.free { color: #1aa260; }
.cd-price-old { font-size: 18px; color: #93a0b5; text-decoration: line-through; }
.cd-price-off { font-size: 13px; font-weight: 700; color: #c98700; background: #fff4e0; border: 1px solid #ffe0a6; padding: 3px 10px; border-radius: 20px; }

/* CTA buttons */
.courseDetailBtnSection { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.courseDetailBtnSection .btn,
.courseDetailBtnSection button { border-radius: 10px !important; font-weight: 700 !important; font-size: 15px !important; padding: 12px 28px !important; border: 0 !important; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; line-height: 1.2 !important; }
.courseDetailBtnSection .buyNow,
.courseDetailBtnSection .btn2 { background: #ffb307 !important; color: #071e57 !important; box-shadow: 0 8px 20px rgba(255,179,7,0.4); }
.courseDetailBtnSection .buyNow:hover,
.courseDetailBtnSection .btn2:hover { background: #ffc233 !important; transform: translateY(-2px); }
.courseDetailBtnSection .btn1 { background: #fff !important; color: #071e57 !important; border: 1.5px solid #cfddf2 !important; }
.courseDetailBtnSection .btn1:hover { background: #071e57 !important; color: #fff !important; border-color: #071e57 !important; transform: translateY(-2px); }
.courseDetailBtnSection form { margin: 0; }

/* ===== Highlights strip ===== */
.cd-highlights { background: #fff; border-bottom: 1px solid #eef1f7; }
.cd-highlights .row-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 26px 0; }
.cd-hl { display: flex; align-items: center; gap: 13px; }
.cd-hl-ico { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.cd-hl:nth-child(1) .cd-hl-ico { background: #eaf3ff; color: #1469c7; }
.cd-hl:nth-child(2) .cd-hl-ico { background: #fff4e0; color: #c98700; }
.cd-hl:nth-child(3) .cd-hl-ico { background: #e9faf1; color: #1aa260; }
.cd-hl:nth-child(4) .cd-hl-ico { background: #f0ecff; color: #6d28d9; }
.cd-hl-txt b { display: block; font-size: 15px; color: #071e57; font-weight: 700; }
.cd-hl-txt span { font-size: 12.5px; color: #7a89a3; }

/* ===== Details ===== */
.cd-details { padding: 44px 0; }
.cd-section-head { font-size: 22px; font-weight: 800; color: #071e57; margin: 0 0 6px; position: relative; padding-bottom: 12px; }
.cd-section-head::after { content: ""; position: absolute; left: 0; bottom: 0; width: 54px; height: 3px; background: #ffb307; border-radius: 2px; }
.cd-desc { background: #fff; border: 1px solid #eef1f7; border-radius: 16px; padding: 30px 32px; margin-top: 22px; box-shadow: 0 6px 20px rgba(7,30,87,0.05); }
.cd-desc h3 { font-size: 22px; color: #071e57; font-weight: 800; margin: 0 0 14px; }
.cd-desc h4 { font-size: 17px; color: #14346f; font-weight: 700; margin: 26px 0 12px; padding-left: 14px; position: relative; }
.cd-desc h4::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; background: #20a8ff; border-radius: 3px; }
.cd-desc p { color: #3c4852; line-height: 1.75; font-size: 15px; margin: 0 0 14px; }
.cd-desc ul { list-style: none; padding-left: 0; margin: 0 0 10px; }
.cd-desc ul li { position: relative; padding-left: 28px; margin-bottom: 10px; color: #3c4852; line-height: 1.6; font-size: 15px; }
.cd-desc ul li::before { content: "\2714"; position: absolute; left: 0; top: 0; color: #1aa260; font-size: 13px; background: #e9faf1; width: 19px; height: 19px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cd-desc-empty { color: #7a89a3; font-style: italic; }

/* ===== Related courses ===== */
.cd-related { padding: 10px 0 60px; }
.cd-related .owl-carousel .owl-stage { display: flex; }
.cd-related .owl-carousel .owl-item { display: flex; }
.cd-related .owl-carousel .owl-item .item { width: 100%; }
.cd-rel-card { background: #fff; border: 1px solid #eef1f7; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 14px rgba(7,30,87,0.05); transition: transform .25s ease, box-shadow .25s ease; height: 100%; display: flex; flex-direction: column; }
.cd-rel-card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(7,30,87,0.12); }
.cd-rel-card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.cd-rel-img { position: relative; background: #f3f6fb; }
.cd-rel-img img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.cd-rel-off { position: absolute; top: 10px; left: 10px; background: #ffb307; color: #071e57; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 20px; }
.cd-rel-body { padding: 14px 15px 16px; display: flex; flex-direction: column; flex: 1; }
.cd-rel-name { font-size: 14.5px; font-weight: 700; color: #071e57; line-height: 1.35; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.cd-rel-sub { font-size: 12px; color: #8593ad; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.cd-rel-price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.cd-rel-price .now { font-size: 18px; font-weight: 800; color: #1aa260; }
.cd-rel-price .now.free { color: #1aa260; }
.cd-rel-price .old { font-size: 13px; color: #aab4c6; text-decoration: line-through; }
.cd-related .owl-nav button { width: 38px; height: 38px; border-radius: 50% !important; background: #fff !important; box-shadow: 0 4px 12px rgba(7,30,87,0.12) !important; color: #071e57 !important; font-size: 18px !important; }
.cd-related .owl-nav button:hover { background: #071e57 !important; color: #fff !important; }
.cd-related .owl-dots { text-align: center; margin-top: 18px; }
.cd-related .owl-dots .owl-dot span { width: 9px; height: 9px; margin: 0 4px; background: #d1d9e6; display: inline-block; border-radius: 50%; }
.cd-related .owl-dots .owl-dot.active span { background: #20a8ff; }

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .cd-hero-grid { grid-template-columns: 220px 1fr; gap: 24px; }
    .cd-title { font-size: 25px; }
    .cd-highlights .row-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 22px; }
}
@media (max-width: 767px) {
    .cd-hero-grid { grid-template-columns: 1fr; gap: 22px; padding: 18px 0 36px; }
    .cd-hero-media { max-width: 280px; margin: 0 auto; }
    .cd-title { font-size: 23px; }
    .cd-price-now { font-size: 28px; }
    .courseDetailBtnSection { justify-content: stretch; }
    .courseDetailBtnSection .btn,
    .courseDetailBtnSection button,
    .courseDetailBtnSection form { flex: 1 1 100%; }
    .courseDetailBtnSection .btn,
    .courseDetailBtnSection button { width: 100%; text-align: center; }
    .cd-desc { padding: 22px 18px; }
    .cd-details { padding: 32px 0; }
}
@media (max-width: 480px) {
    .cd-highlights .row-grid { grid-template-columns: 1fr; gap: 14px; }
    .cd-title { font-size: 20px; }
}
