/* =============================================================
   ITM Course Detail Page — Specific Styles
   page-course-detail.css
   ============================================================= */

/* ---- Hero Enhancements ---- */
.course-detail-banner {
    padding-bottom: 120px;
    text-align: left;
}

.course-detail-banner .page-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.cd-hero-content {
    animation: fadeInUp 0.8s ease forwards;
}

.cd-hero-badge {
    display: inline-block;
    background: rgba(12, 175, 73, 0.2);
    color: #0CAF49;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.cd-hero-title {
    margin-bottom: 20px;
}

.cd-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 30px;
}

.cd-hero-meta__item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.cd-hero-meta__item svg {
    width: 20px;
    height: 20px;
    stroke: #0CAF49;
}

/* ---- Course Stats Bar ---- */
.cd-stats-bar-wrap {
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.cd-stats-bar {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 30px;
    border: 1px solid #f0f0f5;
}

.cd-stat-item {
    text-align: center;
    border-right: 1px solid #eee;
}

.cd-stat-item:last-child {
    border-right: none;
}

.cd-stat-item__value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 4px;
}

.cd-stat-item__label {
    font-size: 0.8rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- Main Content Layout ---- */
.cd-main-section {
    padding-top: 80px;
}

.cd-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
}

/* ---- Sections Styling ---- */
.cd-content-block {
    margin-bottom: 50px;
}

.cd-block-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cd-block-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: #0CAF49;
    border-radius: 4px;
}

.cd-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

/* What you will learn list */
.cd-learn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 30px;
    background: #f8f8fc;
    padding: 30px;
    border-radius: 20px;
}

.cd-learn-item {
    display: flex;
    gap: 12px;
    font-size: 0.92rem;
    color: #444;
}

.cd-learn-item svg {
    width: 20px;
    height: 20px;
    color: #0CAF49;
    flex-shrink: 0;
}

/* Curriculum Accordion */
.cd-curriculum {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cd-acc-item {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.cd-acc-item[open] {
    border-color: #2C3E8B;
    box-shadow: 0 10px 25px rgba(44, 62, 139, 0.05);
}

.cd-acc-summary {
    padding: 20px 24px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    color: #111;
    list-style: none;
}

.cd-acc-summary::-webkit-details-marker {
    display: none;
}

.cd-acc-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cd-acc-num {
    width: 32px;
    height: 32px;
    background: #f0f0f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #888;
    transition: all 0.3s;
}

.cd-acc-item[open] .cd-acc-num {
    background: #2C3E8B;
    color: #fff;
}

.cd-acc-icon {
    transition: transform 0.3s;
    color: #aaa;
}

.cd-acc-item[open] .cd-acc-icon {
    transform: rotate(180deg);
    color: #2C3E8B;
}

.cd-acc-content {
    padding: 0 24px 20px 71px;
    background: #fff;
}

.cd-acc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cd-acc-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cd-acc-list li:last-child {
    border-bottom: none;
}

.cd-acc-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0CAF49;
}

/* Instructor Box */
.cd-instructor {
    display: flex;
    gap: 25px;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #f0f0f5;
    align-items: center;
}

.cd-ins-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.cd-ins-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cd-ins-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #111;
    margin: 0 0 4px;
}

.cd-ins-role {
    display: block;
    font-size: 0.85rem;
    color: #0CAF49;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.cd-ins-bio {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* ---- Sidebar Styling ---- */
.cd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cd-widget {
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f5;
}

.cd-widget--sticky {
    position: sticky;
    top: 100px;
}

.cd-price-wrap {
    margin-bottom: 24px;
}

.cd-price-label {
    font-size: 0.85rem;
    color: #888;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.cd-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: #111;
}

.cd-price-sub {
    font-size: 0.9rem;
    color: #666;
    margin-left: 5px;
}

.cd-feature-summary {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.cd-feature-summary li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #f9f9f9;
}

.cd-f-label {
    color: #777;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cd-f-label svg {
    width: 18px;
    height: 18px;
    color: #2C3E8B;
}

.cd-f-value {
    color: #111;
    font-weight: 700;
}

.cd-sidebar-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* FAQ Item */
.cd-faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .cd-layout {
        grid-template-columns: 1fr;
    }

    .cd-sidebar {
        order: -1;
    }

    .cd-widget--sticky {
        position: static;
    }

    .course-detail-banner .page-banner__inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .cd-stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .cd-stat-item {
        border-right: none;
    }

    .cd-learn-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cd-stats-bar {
        grid-template-columns: 1fr;
    }

    .cd-hero-meta {
        flex-direction: column;
        gap: 12px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
