/* ================================================
   Course Template - course.css
   Styles for all course detail pages
   ================================================ */

/* Main layout */
#main-col.main-content {
    padding: 40px 0 60px;
    background: var(--light-bg-color, #f4f6f9);
}

.course-main-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 30px;
}

.course-description-area {
    flex: 2;
    min-width: 0;
}

.course-sidebar {
    flex: 1;
    min-width: 280px;
    position: sticky;
    top: 100px;
}

/* Course sections (cards) */
.course-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

.section-title {
    font-family: var(--heading-font, 'Outfit', sans-serif);
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: var(--heading-color, #1a2340);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.section-icon {
    font-size: 1.8rem;
    color: var(--primary-color, #1a56db);
    display: block;
    margin-bottom: 8px;
}

/* Hero */
.course-detail-hero {
    height: 50vh;
    min-height: 280px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
}

.course-detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.course-detail-hero .container {
    position: relative;
    z-index: 1;
}

.course-hero-content h1 {
    font-family: var(--heading-font, 'Outfit', sans-serif);
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
    line-height: 1.1;
}

.course-hero-content .lead {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Two column lists */
.two-column-list ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

@media (min-width: 768px) {
    .two-column-list ul {
        grid-template-columns: 1fr 1fr;
    }
}

.two-column-list ul li {
    background: var(--light-bg-color, #f4f6f9);
    padding: 10px 16px;
    border-left: 4px solid var(--primary-color, #1a56db);
    border-radius: 4px;
    font-size: 0.95rem;
    color: var(--text-color, #444);
    transition: transform 0.2s, box-shadow 0.2s;
}

.two-column-list ul li:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Syllabus accordion */
.syllabus-part {
    margin-bottom: 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.syllabus-header {
    font-family: var(--heading-font, 'Outfit', sans-serif);
    font-size: 1.1rem;
    margin: 0;
    padding: 16px 20px;
    color: var(--primary-color, #1a56db);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background-color: var(--light-bg-color, #f4f6f9);
    transition: background-color 0.3s;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.syllabus-header:hover { background-color: #e9ecef; }

.syllabus-header.active {
    background-color: var(--primary-color, #1a56db);
    color: #fff;
}

.syllabus-icon {
    font-size: 1.4rem;
    margin-right: 12px;
    color: var(--primary-color, #1a56db);
}

.syllabus-header.active .syllabus-icon { color: #fff; }

.arrow-icon {
    font-size: 1rem;
    color: var(--primary-color, #1a56db);
    transition: transform 0.3s, color 0.3s;
}

.syllabus-header.active .arrow-icon {
    transform: rotate(180deg);
    color: #fff;
}

.syllabus-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.syllabus-content.show {
    max-height: 600px;
    padding: 16px 20px;
}

.syllabus-units {
    list-style: disc;
    margin-left: 20px;
    color: var(--text-color, #444);
    padding-bottom: 8px;
}

.syllabus-units li { margin-bottom: 4px; }

/* Sidebar details */
.course-details-sidebar {
    background: var(--light-bg-color, #f4f6f9);
    color: var(--text-color, #444);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.course-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.detail-item {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.detail-item strong {
    color: var(--primary-color, #1a56db);
    display: block;
    margin-bottom: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Testimonials section */
.testimonials-section {
    margin-top: 40px;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 24px;
}

.testimonials-header .section-icon {
    display: block;
    text-align: center;
}

.testimonials-header .section-title {
    justify-content: center;
}

.testimonials-table-container {
    overflow-x: auto;
}

.testimonials-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.testimonials-table thead tr {
    background: var(--primary-color, #1a56db);
    color: #fff;
}

.testimonials-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.testimonials-table tbody tr:nth-child(even) {
    background: #f8faff;
}

.testimonials-table tbody tr:hover {
    background: #e8f0fe;
}

.testimonials-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.exam-badge {
    display: inline-block;
    background: var(--primary-color, #1a56db);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.comment-cell { max-width: 300px; }
.date-cell { white-space: nowrap; color: #666; }

/* Responsive */
@media (max-width: 900px) {
    .course-main-content {
        flex-direction: column;
    }
    .course-sidebar {
        position: static;
        width: 100%;
    }
    .course-detail-hero h1 {
        font-size: 2rem;
    }
}
