/* Learning Center Specific Styles */

.learning-paths {
    padding: 2rem;
    background: #161b22;
    border-radius: 8px;
    margin:0 auto;
}

.section-title {
    color: #c9d1d9;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    text-align: left;
}

.section-intro {
    color: #8b949e;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.path-card {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: #c9d1d9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.path-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.1);
    border-color: #238636;
}

.path-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.path-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 0;
}

.path-card .card-title {
    font-size: 1.5rem;
    color: #00d084;
    margin-bottom: 0;
}

.path-card .card-description {
    color: #8b949e;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.path-card .card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #8b949e;
    border-top: 1px solid #30363d;
    padding-top: 1rem;
    margin-top: auto;
}


/* Recommended Courses Section */
.recommended-courses {
    padding: 2rem;
    background: #161b22;
    border-radius: 8px;
    margin: 0 auto;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.course-card {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.course-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-card .course-title {
    font-size: 1.25rem;
    color: #00d084;
    margin-bottom: 0.5rem;
}

.course-card .course-description {
    color: #8b949e;
    font-size: 0.9rem;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.course-card .course-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.875rem;
    color: #8b949e;
    margin-bottom: 1rem;
}

.course-card .btn {
    margin-top: auto;
}


/* Learning Path Detail - Timeline Layout */
.path-detail {
    max-width: 1400px;
    margin:0 auto;
}

.path-detail .path-header {
    text-align: center;
    margin-bottom: 3rem;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #30363d;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 1rem 2rem;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: #238636;
    border: 2px solid #161b22;
    top: 24px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -8px;
}

.timeline-content {
    padding: 1.5rem;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    position: relative;
}

.timeline-content .course-title {
    font-size: 1.25rem;
    color: #00d084;
    margin-bottom: 0.5rem;

.content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid #30363d;
}

}

.timeline-content .course-description {
    color: #8b949e;
    margin-bottom: 1rem;
}

/* Course Content Page */
.course-layout {
    display: flex;
    gap: 2rem;
    max-width: 1400px;
    margin:0 auto;

}

.course-content-area {
    flex: 3;
}

.course-sidebar {
    flex: 1;
    background: #161b22;
    padding: 1.5rem;
    border-radius: 8px;
}
.container{
    max-width:100%;
}
/* Two-column layout for Learning Center Home */
.learning-center-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    align-items: flex-start;
}

.learning-paths-container {
    min-width: 0;
}

.recommended-courses-container {
    min-width: 0;
}

.recommended-courses .section-title,
.recommended-courses .section-intro {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

.courses-grid-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.courses-grid-sidebar .course-card {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
}

.courses-grid-sidebar .course-card-content {
    padding: 1.5rem;
}

.courses-grid-sidebar .course-meta {
    margin-bottom: 1rem;
}

.courses-grid-sidebar .btn {
    align-self: flex-end;
}
.course-sidebar h3{margin-bottom:1rem;}
.video-player-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.video-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.course-actions {
    margin-bottom: 1.5rem;
}

.course-text-content h2 {
    font-size: 1.5rem;
    color: #c9d1d9;
    margin-bottom: 1rem;
    border-bottom: 1px solid #30363d;
    padding-bottom: 0.5rem;
}

.course-directory h3 {
    font-size: 1.25rem;
    color: #c9d1d9;
    margin-bottom: 2rem;
}

.course-directory ul,li{
    list-style: none;
    padding-left: 0;
}

.course-directory li a {
    display: block;
    padding: 0.75rem;
    color: #8b949e;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.course-directory li a:hover {
    background-color: #21262d;
}

.course-directory li.active a {
    background-color: #238636;
    color: #c9d1d9;
}
