/* =====================================================
   course-detail.css — Shared Course Page Styles
   Link AFTER style.css
   ===================================================== */

/* ===== Course Hero ===== */
.cd-hero {
    margin-top: calc(70px + var(--announce-height));
    background: linear-gradient(135deg, var(--hero-color1, #667eea) 0%, var(--hero-color2, #764ba2) 100%);
    padding: 4rem 2rem 5rem;
    position: relative;
    overflow: hidden;
}
.cd-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Ccircle cx='40' cy='40' r='6' fill='%23ffffff' fill-opacity='0.04'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.cd-hero::after {
    content: '';
    position: absolute;
    bottom: -60px; right: -60px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}

.cd-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}
.cd-breadcrumb a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.2s;
}
.cd-breadcrumb a:hover { color: #fff; }
.cd-breadcrumb i { font-size: 0.7rem; }
.cd-breadcrumb span { color: #fff; font-weight: 600; }

.cd-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
    backdrop-filter: blur(4px);
    letter-spacing: 0.3px;
}

.cd-hero h1 {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.cd-hero-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.88);
    line-height: 1.7;
    margin-bottom: 1.8rem;
    max-width: 720px;
}

.cd-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.cd-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

/* ===== Main Layout ===== */
.cd-layout {
    max-width: 1200px;
    margin: -2.5rem auto 0;
    padding: 0 2rem 5rem;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

/* ===== Content Blocks ===== */
.cd-main { display: flex; flex-direction: column; gap: 2rem; }

.cd-block {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(102,126,234,0.08);
    border: 1px solid #f0f4ff;
    transition: box-shadow 0.3s ease;
}
.cd-block:hover { box-shadow: 0 16px 48px rgba(102,126,234,0.14); }

.cd-block h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #f0f4ff;
}
.cd-block h2 i { color: #667eea; font-size: 1.1rem; }

.cd-block p {
    color: #4a5568;
    line-height: 1.85;
    margin-bottom: 1rem;
    font-size: 1rem;
}
.cd-block p:last-child { margin-bottom: 0; }

/* ===== Highlights Grid ===== */
.cd-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}
.cd-highlight-card {
    background: #f8faff;
    border-radius: 14px;
    padding: 1.4rem;
    border: 2px solid #e8eeff;
    transition: all 0.3s ease;
}
.cd-highlight-card:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(102,126,234,0.12);
}
.cd-highlight-card i {
    font-size: 1.6rem;
    color: #667eea;
    margin-bottom: 0.7rem;
    display: block;
}
.cd-highlight-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.4rem;
}
.cd-highlight-card p {
    font-size: 0.88rem;
    color: #718096;
    margin: 0;
    line-height: 1.6;
}

/* ===== Curriculum List ===== */
.cd-curriculum {
    list-style: none;
    padding: 0; margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.cd-curriculum li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.95rem;
    color: #374151;
    background: #f8faff;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    border: 1px solid #e8eeff;
    transition: all 0.2s ease;
}
.cd-curriculum li:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
}
.cd-curriculum li i {
    color: #667eea;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ===== Career Grid ===== */
.cd-careers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.cd-career-card {
    background: linear-gradient(135deg, #f8faff, #eef2ff);
    border-radius: 14px;
    padding: 1.3rem 1rem;
    text-align: center;
    border: 2px solid #e8eeff;
    transition: all 0.3s ease;
    cursor: default;
}
.cd-career-card:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(102,126,234,0.15);
}
.cd-career-card i {
    font-size: 1.5rem;
    color: #667eea;
    margin-bottom: 0.6rem;
    display: block;
}
.cd-career-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

/* ===== Sidebar ===== */
.cd-sidebar { position: sticky; top: 120px; }

.cd-sidebar-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(102,126,234,0.14);
    border: 1px solid #e8eeff;
}

.cd-sidebar-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 1.8rem 1.6rem;
}
.cd-sidebar-header h3 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 0.8rem;
}
.cd-duration-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
}

.cd-sidebar-body { padding: 1.5rem 1.6rem 2rem; }

.cd-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f4ff;
    gap: 0.5rem;
}
.cd-info-row:last-of-type { border-bottom: none; }
.cd-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #718096;
}
.cd-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2d3748;
    text-align: right;
}

.cd-apply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(102,126,234,0.3);
    letter-spacing: 0.3px;
}
.cd-apply-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(102,126,234,0.4);
    color: #fff;
    text-decoration: none;
}

.cd-contact-note {
    text-align: center;
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 0.8rem;
}
.cd-contact-note a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}
.cd-contact-note a:hover { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .cd-layout { grid-template-columns: 1fr; padding: 0 1.5rem 4rem; }
    .cd-sidebar { position: static; }
    .cd-sidebar-card { max-width: 480px; }
}
@media (max-width: 768px) {
    .cd-hero h1 { font-size: 2rem; }
    .cd-hero { padding: 3rem 1.2rem 4rem; }
    .cd-layout { padding: 0 1rem 3rem; margin-top: -1.5rem; }
    .cd-highlights { grid-template-columns: 1fr; }
    .cd-curriculum { grid-template-columns: 1fr; }
    .cd-careers { grid-template-columns: 1fr 1fr; }
    .cd-block { padding: 1.8rem 1.2rem; }
}
@media (max-width: 480px) {
    .cd-hero h1 { font-size: 1.7rem; }
    .cd-careers { grid-template-columns: 1fr 1fr; }
    .cd-meta { gap: 0.5rem; }
    .cd-meta-item { font-size: 0.8rem; padding: 0.35rem 0.8rem; }
}
