/* ---File name: course-details.css |  Course Details Page Styles --- */
.course-details-section {
    padding: 140px 0 80px;
    background: var(--bg-color);
}
.course-details-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--nav-bg);
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}
.back-button:hover {
    background: var(--text-heading);
    transform: translateX(-5px);
}

/* --- Hero Banner --- */
.course-hero-banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    margin-bottom: 40px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}
.course-hero-banner img {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 6s ease;
}
.course-hero-banner:hover img {
    transform: scale(1.05);
}
.course-hero-overlay {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}
.course-hero-content {
    position: relative; z-index: 2;
    padding: 45px 40px;
    width: 100%;
}
.course-badge {
    display: inline-block;
    background: #ffc107;
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.course-hero-content h1 {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.course-hero-content p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0;
    max-width: 700px;
}

/* --- Content Grid --- */
.course-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 35px;
    align-items: start;
}
.content-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}
.content-card h3 {
    font-size: 1.4rem;
    margin-bottom: 18px;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 10px;
}
.content-card h3 .card-icon {
    font-size: 1.6rem;
    color: #ffc107;
}
.content-card p {
    font-size: 1rem;
    line-height: 1.75;
    color: #555;
}
.content-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.content-card li {
    padding: 10px 0 10px 28px;
    position: relative;
    font-size: 0.98rem;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}
.content-card li:last-child { border-bottom: none; }
.content-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.1rem;
}

/* --- Sidebar --- */
.sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    border-top: 4px solid #ffc107;
}
.sidebar-card h4 {
    font-size: 1.15rem;
    margin-bottom: 15px;
    color: var(--text-heading);
}
.sidebar-card p, .sidebar-card li {
    font-size: 0.92rem;
    color: #555;
    margin-bottom: 8px;
}
.sidebar-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.sidebar-detail:last-child { border-bottom: none; }
.sidebar-detail ion-icon {
    font-size: 1.3rem;
    color: var(--nav-bg);
    flex-shrink: 0;
    margin-top: 2px;
}
.sidebar-detail div strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-heading);
    margin-bottom: 2px;
}
.sidebar-detail div span {
    font-size: 0.88rem;
    color: #666;
}

.enroll-btn {
    display: block;
    background: linear-gradient(135deg, #ffc107 0%, #e6a800 100%);
    color: #000;
    padding: 16px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.05rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,193,7,0.3);
}
.enroll-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,193,7,0.4);
}

/* --- Curriculum Accordion --- */
.curriculum-section {
    margin-top: 10px;
}
.curriculum-module {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.curriculum-module:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}
.module-header {
    background: linear-gradient(135deg, #153a6e, #1a4a8e);
    color: #fff;
    padding: 16px 22px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}
.module-header:hover {
    background: linear-gradient(135deg, #1a4a8e, #153a6e);
}
.module-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color:#fff;
}
.module-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 22px;
}
.module-content.active {
    max-height: 500px;
    padding: 18px 22px;
}
.module-content ul { list-style: none; padding: 0; margin: 0; }
.module-content li {
    padding: 9px 0 9px 24px;
    border-bottom: 1px solid #f2f2f2;
    font-size: 0.93rem;
    position: relative;
    color: #555;
}
.module-content li:last-child { border-bottom: none; }
.module-content li::before {
    content: "📘";
    position: absolute;
    left: 0;
    font-size: 0.85rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .course-content-grid {
        grid-template-columns: 1fr;
    }
    .course-hero-content h1 {
        font-size: 2rem;
    }
    .course-hero-banner {
        min-height: 280px;
    }
    .course-hero-content {
        padding: 30px 25px;
    }
}
@media (max-width: 600px) {
    .course-details-section {
        padding: 120px 0 50px;
    }
    .course-hero-content h1 {
        font-size: 1.6rem;
    }
    .course-hero-banner {
        min-height: 220px;
        border-radius: 14px;
    }
    .content-card {
        padding: 25px 20px;
    }
    .sidebar-card {
        padding: 22px 18px;
    }
}
