/* Courses & Course Details Stylesheet */

/* Course List Section */
.courses-sec {
    padding: 80px 0;
    background-color: var(--white);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.course-item-card {
    background-color: var(--bg-mint);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 40px;
    border: 1px solid rgba(13, 110, 70, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.course-item-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background-color: var(--white);
}

.course-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.course-item-tag {
    background-color: var(--primary);
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.course-item-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
}

.course-item-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.course-item-desc {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.7;
}

.course-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
}

.course-meta-box {
    text-align: center;
}

.course-meta-box i {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 8px;
}

.course-meta-box h5 {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.course-meta-box p {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Course Details Specifics */
.course-details-sec {
    padding: 80px 0;
}

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

/* Syllabus Timeline */
.syllabus-box {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

.syllabus-box h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--bg-mint);
    padding-bottom: 15px;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 8px;
    width: 2px;
    height: calc(100% - 20px);
    background-color: var(--bg-mint);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 4px solid var(--primary-light);
    z-index: 2;
}

.timeline-day {
    font-size: 12px;
    font-weight: 800;
    color: var(--secondary);
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
}

.timeline-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.timeline-content-list {
    margin-top: 10px;
    padding-left: 20px;
    list-style: disc;
    color: var(--text-muted);
}

.timeline-content-list li {
    margin-bottom: 6px;
}

/* Sidebar Box style */
.sidebar-box {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.sidebar-box h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-dark);
    border-bottom: 1px solid var(--bg-mint);
    padding-bottom: 10px;
}

.sidebar-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 15px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
    padding-bottom: 12px;
}

.sidebar-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.sidebar-info-label {
    color: var(--text-muted);
    font-weight: 500;
}

.sidebar-info-val {
    font-weight: 700;
    color: var(--primary-dark);
}

.sidebar-requirements-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.requirement-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
}

.requirement-item i {
    color: var(--accent);
    margin-top: 3px;
}

/* Video Showcase Box */
.details-video-showcase {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

.video-container {
    background-color: var(--primary-dark);
    height: 380px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 76, 46, 0.4);
    z-index: 1;
}

.details-gallery {
    margin-top: 40px;
}

.details-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.details-gallery-img {
    height: 180px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--primary-light);
}

.details-gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.details-gallery-img:hover img {
    transform: scale(1.06);
}

/* Responsive Courses */
@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .details-layout {
        grid-template-columns: 1fr;
    }
}