/* Course Detail Pages (erppw_course_detail.php, abap.php, ms_project.php, etc.) */
.course-detail-hero {
    height: 50vh;
    /* Adjust height as needed */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    margin-bottom: 40px;
    /* Space below the hero section */
}

.course-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Dark overlay */
}

.course-detail-hero .container {
    position: relative;
    z-index: 1;
}

.course-hero-content h1 {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #fff;
    line-height: 1.1;
}

.course-hero-content .lead {
    font-family: var(--body-font);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    opacity: 0.9;
}

.course-hero-content .button {
    margin-top: 20px;
}

.course-main-content {
    display: flex;
    gap: 40px;
}

.course-description-area {
    flex: 2;
}

.course-sidebar {
    flex: 1;
}

.course-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow-color);
    margin-bottom: 30px;
}

.course-section h3 {
    font-family: var(--heading-font);
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--heading-color);
}

.section-title {
    font-family: var(--heading-font);
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--heading-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.two-column-list ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    /* Default to single column */
    gap: 10px;
}

@media (min-width: 768px) {
    .two-column-list ul {
        grid-template-columns: 1fr 1fr;
        /* Two columns on larger screens */
    }
}

.two-column-list ul li {
    background: var(--light-bg-color);
    padding: 12px 18px;
    /* Slightly more padding */
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    font-size: 0.98rem;
    /* Slightly larger font */
    color: var(--text-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    /* Add transition */
}

.two-column-list ul li:hover {
    transform: translateX(5px);
    /* Slight move on hover */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* Subtle shadow on hover */
}

.syllabus-part {
    margin-bottom: 15px;
    /* Reduced margin for accordion items */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow-color);
    overflow: hidden;
    /* Ensures content doesn't spill out during collapse */
}

.syllabus-part:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.syllabus-header {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin: 0;
    /* Remove default margin */
    padding: 20px 25px;
    /* Padding for clickable area */
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Distribute space between content and arrow */
    cursor: pointer;
    background-color: var(--light-bg-color);
    /* Light background for header */
    transition: background-color 0.3s ease;
    border-bottom: 1px solid var(--border-color);
    /* Separator */
}

.syllabus-header:hover {
    background-color: #e9ecef;
    /* Slightly darker on hover */
}

.syllabus-header.active {
    background-color: var(--primary-color);
    /* Active state background */
    color: #fff;
    /* Active state text color */
    border-bottom-color: var(--primary-color);
}

.syllabus-header.active .syllabus-icon {
    color: #fff;
    /* Active state icon color */
}

.syllabus-icon {
    font-size: 1.8rem;
    margin-right: 15px;
    /* Increased margin */
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.arrow-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.syllabus-header.active .arrow-icon {
    transform: rotate(180deg);
    color: #fff;
}

.syllabus-content {
    padding: 0 25px;
    /* Padding for content */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    /* Smooth transition */
}

.syllabus-content.show {
    max-height: 500px;
    /* Adjust as needed, should be larger than content */
    padding: 20px 25px;
}

.syllabus-units {
    list-style: disc;
    margin-left: 20px;
    color: var(--text-color);
    padding-bottom: 10px;
    /* Add some padding at the bottom */
}

.syllabus-units li {
    margin-bottom: 5px;
}

.course-details-sidebar {
    background: var(--light-bg-color);
    color: var(--text-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 8px 20px var(--shadow-color);
}

.course-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    /* Reduced gap */
}

.detail-item {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    /* Subtle separator */
}

.detail-item:last-child {
    border-bottom: none;
    /* No border for the last item */
    padding-bottom: 0;
}

.detail-item p {
    font-family: var(--body-font);
    margin: 0;
    font-size: 1rem;
    /* Slightly larger font */
    line-height: 1.5;
    color: var(--text-color);
}

.detail-item strong {
    color: var(--primary-color);
    display: block;
    /* Make strong text block for better separation */
    margin-bottom: 5px;
}

.session-time-display {
    font-weight: 700;
    /* Bolder */
    color: var(--primary-color);
    /* Use primary color for highlight */
    font-size: 1.2rem;
    /* Larger font */
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    gap: 10px;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 5px;
}

.countdown-item {
    display: flex;
    align-items: baseline;
}

.countdown-item .days,
.countdown-item .hours,
.countdown-item .minutes,
.countdown-item .seconds {
    font-size: 1.2em;
}

.countdown-item .label {
    font-size: 0.8em;
    margin-left: 2px;
    font-weight: normal;
}