/* ============================================================
   education-course-detail.css — Course Detail Page
   ============================================================ */

/* Hero — shared B2C pattern */
.cd-hero {
    position: relative;
    background: url('../../images/hero-beach.jpg') center/cover no-repeat, #0e1f5c;
    padding: 36px 0 56px;
    overflow: hidden;
}
.cd-hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(8,17,84,.82) 0%, rgba(30,64,175,.55) 50%, rgba(4,16,124,.82) 100%);
    z-index: 0; pointer-events: none;
}
.cd-hero::after {
    content: ''; position: absolute;
    bottom: -1px; left: 0; right: 0; height: 40px;
    background: #f4f6fb;
    clip-path: ellipse(70% 100% at 50% 100%);
    z-index: 1; pointer-events: none;
}
.cd-hero-dots {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 40px 40px;
}
.cd-hero-content { position: relative; z-index: 2; padding: 0 20px; text-align: center; }
.cd-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; justify-content: center; }
.cd-breadcrumb a { color: rgba(255,255,255,.8); font-size: 11.5px; font-weight: 600; text-decoration: none; }
.cd-breadcrumb a:hover { color: #fbbf24; text-decoration: none; }
.cd-breadcrumb span { color: rgba(255,255,255,.5); font-size: 11px; }
.cd-hero-type {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(251,191,36,.15); border: 1px solid rgba(251,191,36,.4);
    color: #fcd34d; font-size: 11px; font-weight: 800;
    letter-spacing: 1.4px; text-transform: uppercase;
    padding: 5px 14px; border-radius: 5px; margin-bottom: 12px;
    box-shadow: 0 4px 16px rgba(251,191,36,.18);
}
.cd-hero-title {
    font-size: 2.1rem; font-weight: 900; color: #fff;
    margin: 0 auto; line-height: 1.25; max-width: 780px;
    letter-spacing: -0.3px;
    text-shadow: 0 4px 24px rgba(0,0,0,.3);
}

/* Body */
.cd-body { background: #f4f6fb; padding: 36px 0 56px; }
.cd-flex { display: flex; gap: 24px; align-items: flex-start; }
.cd-main { flex: 1; min-width: 0; }
.cd-sidebar { width: 280px; flex-shrink: 0; position: sticky; top: 80px; align-self: flex-start; }

/* Back buttons bar (shared pattern) */
.cd-back-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.cd-back {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .9rem; font-weight: 700; text-decoration: none;
    padding: 10px 20px; border-radius: 5px;
    transition: all .2s; cursor: pointer;
    border: 1.5px solid transparent;
}
.cd-back i { font-size: .95rem; transition: transform .2s; }
.cd-back:hover { text-decoration: none; transform: translateY(-2px); }
.cd-back:hover i { transform: translateX(-3px); }
.cd-back-secondary { background: #fff; color: #64748b; border-color: #e2e8f0; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.cd-back-secondary:hover { background: #f8fafc; color: var(--tp, #04107C); border-color: var(--tp, #04107C); box-shadow: 0 6px 18px rgba(4,16,124,.12); }
.cd-back-primary { background: linear-gradient(135deg, var(--tp, #04107C) 0%, #1e40af 100%); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(4,16,124,.25); }
.cd-back-primary:hover { background: linear-gradient(135deg, #020a5e 0%, var(--tp, #04107C) 100%); color: #fff; box-shadow: 0 8px 24px rgba(4,16,124,.35); }
.cd-back-primary:hover i { transform: translateX(0) rotate(-10deg); }

/* Cards */
.cd-card { background: #fff; border-radius: 5px; border: 1.5px solid #e8eaf0; box-shadow: 0 2px 10px rgba(0,0,0,.05); margin-bottom: 18px; overflow: hidden; }
.cd-card-header { padding: 13px 20px; border-bottom: 2px solid #e8eaf0; font-size: 14px; font-weight: 800; color: #0f172a; background: #f8f9fc; display: flex; align-items: center; gap: 8px; }
.cd-card-header i { color: var(--tp, #04107C); }
.cd-card-body { padding: 20px; }
.cd-overview-text { font-size: 13.5px; color: #475569; line-height: 1.85; }

/* Highlights */
.cd-highlights { display: flex; flex-direction: column; gap: 10px; }
.cd-highlight-item { display: flex; align-items: flex-start; gap: 10px; }
.cd-highlight-check {
    width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
    background: #dcfce7; color: #16a34a; font-size: 10px;
    display: flex; align-items: center; justify-content: center; font-weight: 900;
}
.cd-highlight-text { font-size: 13px; color: #374151; line-height: 1.55; }

/* Requirements */
.cd-req-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.cd-req-box { flex: 1; min-width: 200px; background: #f8f9fc; border: 1.5px solid #e8eaf0; border-radius: 5px; padding: 16px 18px; }
.cd-req-title { font-size: 13px; font-weight: 800; color: var(--tp, #04107C); margin-bottom: 10px; }
.cd-req-list { display: flex; flex-direction: column; gap: 7px; }
.cd-req-item { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: #475569; }
.cd-req-item::before { content: '✓'; color: #16a34a; font-weight: 900; font-size: 11px; margin-top: 2px; flex-shrink: 0; }

/* Sidebar info card */
.cd-info-card { background: #fff; border-radius: 5px; box-shadow: 0 4px 20px rgba(4,16,124,.12); border: 2px solid var(--tp, #04107C); overflow: hidden; }
.cd-info-header { background: var(--tp, #04107C); padding: 18px 20px; text-align: center; }
.cd-info-header-label { color: rgba(255,255,255,.75); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.cd-info-header-name { color: #fff; font-size: 15px; font-weight: 900; margin-top: 6px; line-height: 1.3; }
.cd-info-body { padding: 16px 20px; }
.cd-info-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid #f0f3fb; font-size: 13px; gap: 8px; }
.cd-info-row:last-of-type { border-bottom: none; }
.cd-info-label { color: #64748b; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.cd-info-label i { color: var(--tp, #04107C); }
.cd-info-val { font-weight: 800; color: #1e293b; text-align: right; }
.cd-apply-btn {
    display: block; width: 100%; padding: 13px; margin-top: 14px;
    background: linear-gradient(135deg, var(--tp, #04107C), #1a2fa8);
    color: #fff; text-align: center; font-size: 14px; font-weight: 800;
    border-radius: 5px; text-decoration: none; transition: opacity .2s;
}
.cd-apply-btn:hover { opacity: .9; color: #fff; text-decoration: none; }

/* More courses */
.cd-more-card { background: #fff; border-radius: 5px; border: 1.5px solid #e8eaf0; overflow: hidden; margin-top: 16px; }
.cd-more-header { background: #e0e7ff; padding: 12px 16px; font-size: 13px; font-weight: 800; color: var(--tp, #04107C); }
.cd-more-body { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.cd-more-item {
    padding: 10px 12px; border-radius: 5px; border: 1px solid #e8eaf0;
    font-size: 12.5px; font-weight: 700; color: #0f172a;
    text-decoration: none; transition: all .15s;
}
.cd-more-item:hover { background: #e0e7ff; border-color: #c7d2fe; color: var(--tp, #04107C); text-decoration: none; }

/* Mobile fixed bar */
.cd-mobile-apply {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1050;
    padding: 12px 16px; background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.12);
}
.cd-mobile-apply-btn {
    display: block; width: 100%; padding: 14px;
    background: linear-gradient(135deg, var(--tp, #04107C), #1a2fa8);
    color: #fff; text-align: center; font-size: 15px; font-weight: 800;
    border-radius: 5px; text-decoration: none;
}
.cd-mobile-apply-btn:hover { opacity: .9; color: #fff; text-decoration: none; }

@media (max-width: 900px) {
    .cd-flex { flex-direction: column; }
    .cd-sidebar { width: 100%; position: static; }
    .cd-body { padding-bottom: 80px; }
    .cd-apply-btn { display: none; }
    .cd-hero-title { font-size: 20px; }
}
