/* =========================================================
   SINGLE COURSE PAGE
   Premium Green + Yellow Theme
   ========================================================= */

.single-course-page {
    background: #F7FBF8;
    padding: 90px 0;
    overflow: visible;
}


/* =========================================================
   MAIN WRAPPER
   ========================================================= */

.course-details-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 50px;
    align-items: start;
}


/* =========================================================
   LEFT CONTENT
   ========================================================= */

.course-details-main {
    min-width: 0;
}


/* =========================================================
   CATEGORY
   ========================================================= */

.course-detail-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    background: #EAF7EE;
    color: #08A63C;

    border: 1px solid rgba(8, 166, 60, 0.15);
    border-radius: 30px;

    padding: 8px 17px;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;

    margin-bottom: 15px;
}

.course-detail-category::before {
    content: "";
    width: 7px;
    height: 7px;
    background: #F9B900;
    border-radius: 50%;
}


/* =========================================================
   COURSE TITLE
   ========================================================= */

.course-detail-title {
    color: #172B3A;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 700;

    margin: 0 0 15px;

    letter-spacing: -0.5px;
}


/* =========================================================
   RATING
   ========================================================= */

.course-detail-rating {
    display: flex;
    align-items: center;
    gap: 4px;

    margin-bottom: 28px;

    font-size: 16px;
}

.course-detail-rating i {
    color: #F9B900;
    font-size: 15px;
}

.course-detail-rating span {
    color: #63727D;
    font-size: 14px;
    font-weight: 600;
    margin-left: 5px;
}


/* =========================================================
   COURSE IMAGE
   ========================================================= */

.course-detail-image {
    position: relative;

    width: 100%;
    height: 460px;

    overflow: hidden;

    border-radius: 22px;

    background: #fff;

    border: 1px solid rgba(8, 166, 60, 0.12);

    box-shadow:
        0 15px 40px rgba(23, 43, 58, 0.08);

    margin-bottom: 40px;
}

.course-detail-image::after {
    content: "";

    position: absolute;

    width: 90px;
    height: 90px;

    right: -35px;
    bottom: -35px;

    background: #F9B900;

    border-radius: 50%;

    opacity: 0.9;
}

.course-detail-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.5s ease;
}

.course-detail-image:hover img {
    transform: scale(1.03);
}


/* =========================================================
   CONTENT SECTIONS
   ========================================================= */

.course-detail-section {
    background: #fff;

    border: 1px solid rgba(8, 166, 60, 0.10);

    border-radius: 18px;

    padding: 30px 32px;

    margin-bottom: 30px;

    box-shadow:
        0 8px 30px rgba(23, 43, 58, 0.04);
}


/* SECTION HEADINGS */

.course-detail-section h2 {
    position: relative;

    color: #172B3A;

    font-size: 25px;
    line-height: 1.3;
    font-weight: 700;

    margin: 0 0 18px;

    padding-left: 16px;
}

.course-detail-section h2::before {
    content: "";

    position: absolute;

    left: 0;
    top: 4px;

    width: 4px;
    height: calc(100% - 8px);

    background: #08A63C;

    border-radius: 10px;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.course-description,
.course-achievements,
.course-start-info {
    color: #63727D;

    font-size: 15px;
    line-height: 1.8;
}

.course-description p,
.course-achievements p,
.course-start-info p {
    margin-bottom: 12px;
}

.course-description strong,
.course-achievements strong,
.course-start-info strong {
    color: #172B3A;
}


/* =========================================================
   ACHIEVEMENTS
   ========================================================= */

.course-achievements ul {
    padding: 0;
    margin: 0;

    list-style: none;
}

.course-achievements li {
    position: relative;

    padding-left: 30px;
    margin-bottom: 10px;

    color: #4F5F69;
}

.course-achievements li::before {
    content: "\f00c";

    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free";
    font-weight: 900;

    position: absolute;

    left: 0;
    top: 2px;

    width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #EAF7EE;
    color: #08A63C;

    border-radius: 50%;

    font-size: 9px;
}


/* =========================================================
   SYLLABUS
   ========================================================= */

.course-syllabus {
    background: #fff;

    border: 1px solid rgba(8, 166, 60, 0.10);

    border-radius: 18px;

    padding: 30px 32px;

    margin-bottom: 30px;

    box-shadow:
        0 8px 30px rgba(23, 43, 58, 0.04);
}

.course-syllabus > h3 {
    color: #172B3A !important;

    font-size: 25px !important;
    font-weight: 700 !important;

    margin-bottom: 22px !important;
}


/* SYLLABUS ITEM */

.syllabus-item {
    border: 1px solid #E7EFE9;

    border-radius: 14px;

    padding: 20px 22px;

    margin-bottom: 12px;

    background: #F7FBF8;

    transition: all 0.3s ease;
}

.syllabus-item:hover {
    background: #fff;

    border-color: rgba(8, 166, 60, 0.25);

    transform: translateY(-2px);

    box-shadow:
        0 8px 25px rgba(8, 166, 60, 0.08);
}


/* MODULE TITLE */

.syllabus-module h4 {
    color: #172B3A;

    font-size: 18px;
    font-weight: 700;

    margin-bottom: 7px;
}

.syllabus-module p {
    color: #63727D;

    font-size: 14px;
    line-height: 1.7;

    margin-bottom: 12px;
}


/* TOPICS */

.syllabus-topics {
    padding: 0;
    margin: 0;

    list-style: none;
}

.syllabus-topics li {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    color: #4F5F69;

    font-size: 14px;

    margin-bottom: 7px;
}

.syllabus-topics li i {
    color: #08A63C;

    font-size: 11px;

    margin-top: 5px;
}

.syllabus-empty {
    color: #63727D;

    font-size: 15px;

    margin: 0;
}


/* =========================================================
   START INFORMATION
   ========================================================= */

.course-start-bottom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 20px;

    margin-top: 22px;
}


/* JOIN TODAY */

.course-join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #08A63C;
    color: #fff !important;

    border: 2px solid #08A63C;

    border-radius: 30px;

    padding: 12px 25px;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition: all 0.3s ease;
}

.course-join-btn:hover {
    background: #F9B900;
    border-color: #F9B900;

    color: #172B3A !important;

    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(249, 185, 0, 0.22);
}


/* AVAILABILITY */

.course-availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #08A63C;

    font-size: 13px;
    font-weight: 600;
}

.availability-dot {
    width: 8px;
    height: 8px;

    background: #08A63C;

    border-radius: 50%;

    box-shadow:
        0 0 0 4px #EAF7EE;
}


/* =========================================================
   RIGHT SIDEBAR
   ========================================================= */

.course-details-sidebar {
    position: relative;
}

.course-info-card {
    position: sticky;
    top: 30px;

    background: #fff;

    border-radius: 20px;

    border: 1px solid rgba(8, 166, 60, 0.12);

    padding: 28px;

    box-shadow:
        0 15px 45px rgba(23, 43, 58, 0.08);

    overflow: hidden;
}

.course-info-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background: linear-gradient(
        90deg,
        #08A63C,
        #F9B900
    );
}


/* =========================================================
   SIDEBAR PRICE
   ========================================================= */

.course-sidebar-price {
    color: #08A63C;

    font-size: 34px;
    line-height: 1;

    font-weight: 800;

    margin-bottom: 25px;

    padding-bottom: 20px;

    border-bottom: 1px solid #E8EFEA;
}


/* =========================================================
   SIDEBAR INFO ITEMS
   ========================================================= */

.course-info-item {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 14px 0;

    border-bottom: 1px solid #EDF2EE;
}

.course-info-item:last-of-type {
    border-bottom: 0;
}

.course-info-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #EAF7EE;

    color: #08A63C;

    border-radius: 12px;

    font-size: 16px;
}

.course-info-item strong {
    display: block;

    color: #172B3A;

    font-size: 13px;
    font-weight: 700;

    margin-bottom: 2px;
}

.course-info-item span {
    display: block;

    color: #63727D;

    font-size: 13px;
}


/* =========================================================
   SIDEBAR BUTTON
   ========================================================= */

.course-sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    background: #08A63C;
    color: #fff !important;

    border: 2px solid #08A63C;

    border-radius: 30px;

    padding: 14px 20px;

    margin-top: 22px;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition: all 0.3s ease;
}

.course-sidebar-btn:hover {
    background: #F9B900;
    border-color: #F9B900;

    color: #172B3A !important;

    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(249, 185, 0, 0.22);
}


/* =========================================================
   PREVIEW VIDEO
   ========================================================= */

.course-preview-box {
    margin-top: 25px;

    background: #fff;

    padding: 8px;

    border-radius: 20px;

    border: 1px solid rgba(8, 166, 60, 0.12);

    box-shadow:
        0 12px 35px rgba(23, 43, 58, 0.07);
}

.course-preview-image {
    position: relative;

    height: 210px;

    overflow: hidden;

    border-radius: 15px;
}

.course-preview-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


/* PLAY BUTTON */

.course-play-btn {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #08A63C;
    color: #fff !important;

    border: 4px solid rgba(255,255,255,0.85);

    border-radius: 50%;

    font-size: 17px;

    transition: all 0.3s ease;
}

.course-play-btn:hover {
    background: #F9B900;

    color: #172B3A !important;

    transform: translate(-50%, -50%) scale(1.08);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1199px) {

    .single-course-page {
        padding: 75px 0;
    }

    .course-details-wrapper {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 35px;
    }

    .course-detail-title {
        font-size: 40px;
    }

    .course-detail-image {
        height: 420px;
    }

    .course-info-card {
        padding: 24px;
    }
}


@media (max-width: 991px) {

    .single-course-page {
        padding: 65px 0;
    }

    .course-details-wrapper {
        display: block;
    }

    .course-details-main {
        margin-bottom: 40px;
    }

    .course-details-sidebar {
        max-width: 650px;
        margin: 0 auto;
    }

    .course-info-card {
        position: relative;
        top: auto;
    }

    .course-detail-title {
        font-size: 36px;
    }

    .course-detail-image {
        height: 400px;
    }
}


@media (max-width: 767px) {

    .single-course-page {
        padding: 55px 0;
    }

    .course-detail-title {
        font-size: 32px;
    }

    .course-detail-image {
        height: 330px;
        border-radius: 18px;
    }

    .course-detail-section,
    .course-syllabus {
        padding: 24px 20px;
        border-radius: 15px;
    }

    .course-detail-section h2,
    .course-syllabus > h3 {
        font-size: 22px !important;
    }

    .course-sidebar-price {
        font-size: 30px;
    }

    .course-preview-image {
        height: 200px;
    }
}


@media (max-width: 575px) {

    .single-course-page {
        padding: 45px 0;
    }

    .course-detail-title {
        font-size: 28px;
    }

    .course-detail-image {
        height: 280px;
    }

    .course-detail-rating {
        margin-bottom: 22px;
    }

    .course-start-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .course-join-btn {
        width: 100%;
    }

    .course-info-card {
        padding: 22px 18px;
    }

    .course-preview-image {
        height: 180px;
    }
}