:root {
    --dark: #061928;
    --green: #061928;

}

body {
    background: #f8f8f8;
    color: var(--dark);
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    font-weight: bold !important;
}

.single-course-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

.course-overview {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media(min-width: 768px) {
    .course-overview {
        flex-direction: row;
    }
}

.course-image {
    flex: 1;
    min-height: 250px;
    overflow: hidden;
}

.banner {
    display: flex;
    width: 100%;
    height: 40vh;
    padding: 20px;
    gap: 20px;
    color: #f8f8f8;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: linear-gradient(45deg, #0D0D0D, #506B56, #0D0D0D);
    border-bottom-left-radius: 2%;
    border-bottom-right-radius: 2%;
    border-top-left-radius: 0%;
    border-top-right-radius: 0%;
}

.banner h1 {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

@media screen and (max-width: 768px) {
    .banner h1 {
        font-size: 1em !important;
    }

    .banner p {
        font-size: .8em !important;
    }

    .banner .btn {
        font-size: .8em !important;
        padding: 10px 20px !important;
    }

}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.course-overview:hover .course-image img {
    transform: scale(1.05);
}

.course-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-weight: bold ;
}

.course-info h1 {
    font-size: 2rem;
    color:#061928;
    margin-bottom: 10px;
        font-weight: bold !important;
}

.course-info p {
    line-height: 1.6;
    color:#061928;
        font-weight: bold !important;
}

.course-meta {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: auto;
    font-size: 1rem;
        color:#000;
    font-weight: bold;
}

.btn-primary {
    background: var(--green) !important;
    color: #fff !important;
    padding: 10px !important;
    border: 1px solid var(--green) !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: 0.3s !important;
}

.btn-primary:hover {
    background: var(--green) !important;
    color: #fff !important;
    border: 1px solid var(--green) !important;
    letter-spacing: 1px !important;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    color:#000;
    font-weight: bold;
}

.lectures-section {
    margin-top: 40px;
    color:#000;
    font-weight: bold;
}

.lectures-section h2 {
    font-size: 1.8rem;
    color:#000;
    font-weight: bold;
        margin-bottom: 20px;
}

.lectures-list {
    counter-reset: lecture;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
}

details.lecture-card {
    display: flex;
    flex-direction: column;
    counter-increment: lecture;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 1 350px;
        justify-content: center;
    align-items: center;
    text-align: center;
}

details.lecture-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

details.lecture-card summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    font-size: 1rem;
    font-weight: bold;
}

details.lecture-card summary::-webkit-details-marker {
    display: none;
}

details.lecture-card summary::before {
    content: counter(lecture) ".";
    font-weight: bold;
    margin-inline-end: 10px;
    color: var(--green);
}

details.lecture-card .lecture-desc {
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    transition: max-height 0.4s ease, padding 0.4s ease;
    font-size: 0.95rem;
    line-height: 1.4;
}

details.lecture-card summary .lecture-duration {
    margin-inline-start: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--dark);
}

details.lecture-card[open] .lecture-desc {
    max-height: 500px;
    padding-block: 12px 16px;
}


/* ===== Instructors Section ===== */
.instructors-section {
    padding: 60px 0;
    background: #fff;
}

.instructors-section .section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 30px;
    font-weight: bold;
}

.instructors-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.instructor-card {
    background: #1f1b1e;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    max-width: 260px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instructor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.instructor-card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

.instructor-name {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 8px;
    font-weight: normal;
}

.instructor-desc {
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.4;
}

/* ===== Top Students Section ===== */
.top-students-section {
    padding: 60px 0;
    background: #fafafa;
}

.top-students-section .section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 30px;
    font-weight: bold;
}

.students-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.student-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    max-width: 240px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.student-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.student-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

.student-name {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 6px;
    font-weight: normal;
}

.student-desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    margin-bottom: 12px;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.linkedin-link:hover {
    color: var(--dark);
}
