/* -------------------------------------------
   Course Detail Page V2 – FINAL MERGED
---------------------------------------------- */

.course-detail-page-v2 {
    background-color: #ffffff;
    color: var(--text-color);
}

/* Header */
.course-detail-page-v2 header.header {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* ==========================================
   BANNER / HEADER SECTION
========================================== */

.course-banner-v2 {
    background: linear-gradient(to bottom, #1D1F8A 30%, #46ADB6 70%, #ffffff 100%);
    /* background: linear-gradient(135deg, #1e3c72, #2a5298); */
    color: #fff;
    padding: 80px 0;
}

.banner-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.banner-text h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 15px 0;
    line-height: 120%;
}

.banner-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
}

.banner-meta {
    display: flex;
    gap: 20px;
    margin: 20px 0 30px;
    flex-wrap: wrap;
}

.banner-meta span {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 0.9rem;
}

.banner-actions {
    display: flex;
    gap: 15px;
}

.banner-actions a {
    text-decoration: none;
    line-height: 100%;
}

.banner-actions a.btn-primary {
    line-height: 1.3;
}

.btn-primary {
    background: #ffcc00;
    color: #000;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
}

.btn-outline {
    border: 2px solid #fff;
    padding: 12px 28px;
    border-radius: 30px;
    color: #fff;
}

.banner-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* ==========================================
   MAIN LAYOUT
========================================== */

.course-content-layout {
    padding: 40px 0;
}

.course-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================
   WHAT YOU'LL LEARN
========================================== */

.what-you-learn-box {
    border: 1px solid #d1d7dc;
    padding: 30px;
    margin-bottom: 40px;
    background: #fff;
}

.what-you-learn-box h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.learning-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 30px;
    list-style: none;
    padding: 0;
}

.learning-list li {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
}

.learning-list li i {
    padding-top: 5px;
}

/* ==========================================
   DESCRIPTION
========================================== */

.block-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.description-text {
    line-height: 1.7;
}

/* ==========================================
   CURRICULUM (ACCORDION – SINGLE SOURCE)
========================================== */

.curriculum-container {
    border: 1px solid #d1d7dc;
    background: #fff;
}

.month-heading {
    background: #f7f9fa;
    padding: 15px 20px;
    font-weight: 700;
    border-bottom: 1px solid #d1d7dc;
}

.week-item {
    border-bottom: 1px solid #e5e7eb;
}

.week-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    background: #fff;
    transition: background 0.3s ease;
}

.week-header:hover {
    background: #f9fafb;
}

.week-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.week-header h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.week-header.active .toggle-icon {
    transform: rotate(180deg);
}

.week-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.week-content ul {
    padding: 20px;
    list-style: none;
}

.week-content li {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
}

.week-project {
    background: #f0f7ff;
    padding: 15px 20px;
    border-top: 1px solid #e1eeff;
}

/* ==========================================
   SIDEBAR
========================================== */

.sidebar-card {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.sidebar-media img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.sidebar-content {
    padding: 24px;
}

.course-features ul {
    list-style: none;
    margin-top: 15px;
}

.course-features ul li {
    padding: 5px 0;
}

.btn-enroll-now {
    display: block;
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    padding: 14px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #a1a1ff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb a {
    color: #a1a1ff;
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb i {
    font-size: 0.7rem;
}

.breadcrumb span {
    color: white;
}

/* Curriculum */
.curriculum-block {
    margin: 40px 0;
}

.curriculum-container {
    border: 1px solid #d1d7dc;
    background: #fff;
    border-radius: 4px;
}

.month-section {
    border-bottom: 1px solid #d1d7dc;
}

.month-section:last-child {
    border-bottom: none;
}

.month-heading {
    background-color: #f7f9fa;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--dark-color);
    border-bottom: 1px solid #d1d7dc;
}

.week-item {
    border-bottom: 1px solid #e0e0e0;
}

.week-item:last-child {
    border-bottom: none;
}

.week-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #ffffff;
    transition: background 0.2s;
}

.week-header:hover {
    background: #f1f1f1;
}

.week-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.week-title-group h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

.week-title-group .toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.3s;
    color: var(--text-color);
}

.week-header.active .toggle-icon {
    transform: rotate(180deg);
}

.week-duration {
    font-size: 0.85rem;
    color: #6a6f73;
}

.week-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    /* Toggle effect */
    background: #ffffff;
}

.week-content ul {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.week-content li {
    padding: 8px 20px 8px 50px;
    /* Indent content */
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #2d2f31;
}

.week-content li i {
    font-size: 0.8rem;
    color: #6a6f73;
}

.week-project {
    padding: 10px 20px 20px 50px;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* Instructor */
.instructor-block {
    margin: 40px 0;
}

.instructor-profile {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.instructor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #e0e0e0;
}

.instructor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.instructor-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark-color);
    text-decoration: none;
}

.instructor-role {
    font-size: 0.9rem;
    color: #6a6f73;
    margin-bottom: 10px;
}

.instructor-bio {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 992px) {
    .course-grid-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        position: static;
    }

    .learning-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .banner-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .banner-actions {
        justify-content: center;
    }

    .banner-text h1 {
        font-size: 2rem;
    }
}