/* =========================
   SINGLE COURSE DETAIL
========================= */

/* Intro */
.course-intro {
    margin-bottom: 20px;
}

.course-intro-text {
    max-width: 1120px;
    font-size: 0.9rem;
    line-height: 1.65;
}

.course-intro-text p {
    margin-bottom: 10px;
}

/* Lists */

/* Blue bullets only for unordered lists */
.course-intro-text ul,
.course-text-block ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.course-intro-text ul li,
.course-text-block ul li {
    position: relative;
    margin-bottom: 6px;
    padding-left: 20px;
    line-height: 1.55;
}

.course-intro-text ul li::before,
.course-text-block ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 7px;
    height: 7px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    transform: translateY(-50%);
}

/* Ordered lists: keep numbers, no extra blue bullets */
.course-intro-text ol {
    list-style: decimal;
    margin: 0 0 0 1.4rem;
    padding-left: 1.4rem;
}

.course-text-block ol {
    list-style: decimal;
    padding-left: 1.4rem;
}

.course-intro-text ol li,
.course-text-block ol li {
    position: static;
    margin-bottom: 6px;
    padding-left: 0.35rem;
    line-height: 1.55;
}

.course-intro-text ol li::before,
.course-text-block ol li::before {
    content: none !important;
    display: none !important;
}

/* Price */
.course-cta {
    margin-top: 20px;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.course-price-large {
    color: var(--primary-blue);
    font-size: 1.9rem;
    line-height: 1;
    font-weight: 500;
    white-space: nowrap;
}

/* Detail table */
.course-detail-table-section {
    margin: 0 0 34px;
}

.course-detail-table-wrapper {
    background-color: white;
    border-left: 6px solid var(--primary-blue);
    border-radius: var(--radius-form);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.course-detail-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background-color: white;
}

.course-detail-table th,
.course-detail-table td {
    padding: 14px 22px;
    border-bottom: 1px solid #e4e4e4;
    text-align: left;
    vertical-align: top;
    font-size: 0.86rem;
    line-height: 1.55;
}

.course-detail-table th {
    width: 28%;
    font-weight: 700;
    color: black;
    background-color: #fbfbfb;
}

.course-detail-table td {
    color: #222;
}

.course-detail-table tr:last-child th,
.course-detail-table tr:last-child td {
    border-bottom: 0;
}

.course-detail-table td p + p {
    margin-top: 3px;
}

/* Text */
.course-text-block {
    margin-top: 32px;
    font-size: 0.92rem;
    line-height: 1.7;
}

.course-text-block h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.course-text-block h2::after,
.course-text-block h3::after,
.course-intro h2::after,
.course-intro h3::after {
    display: none;
    content: none;
}

.course-text-block p + p {
    margin-top: 12px;
}

.course-text-block strong {
    font-weight: 700;
}

.course-text-block h2, h3 {
    margin: 16px 0;
    text-align: justify;
}

.course-text-block p {
    text-align: justify;
}

.course-text-block ul, ol {
    margin: 10px 0 10px 22px;
}


.course-detail-code {
    margin-top: 15px;
    color: rgb(159, 159, 159);
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 900px) {
    .course-detail {
        width: min(100% - 30px, var(--page-width));
    }

    .course-detail-table,
    .course-detail-table tbody,
    .course-detail-table tr,
    .course-detail-table th,
    .course-detail-table td {
        display: block;
        width: 100%;
    }

    .course-detail-table tr {
        border-bottom: 1px solid #e4e4e4;
        padding: 12px 18px;
    }

    .course-detail-table tr:last-child {
        border-bottom: 0;
    }

    .course-detail-table th,
    .course-detail-table td {
        border-bottom: 0;
        padding: 4px 0;
    }

    .course-detail-table th {
        background-color: transparent;
        color: var(--primary-blue);
    }
}

@media (max-width: 650px) {
    .course-detail {
        width: min(100% - 24px, var(--page-width));
        padding-top: 38px;
        padding-bottom: 50px;
    }

        .course-price-large {
        font-size: 1.6rem;
    }

    .course-detail-table-wrapper {
        border-left-width: 4px;
    }
}