/* Course hero 3505:2770 and info bar 3505:2743.
   Page gap from the buy button to the info bar is 64px. */
.course-cards-area {
    margin-top: 64px;
}

.course-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
}

.course-breadcrumb a {
    color: #222;
    text-decoration: none;
}

.course-breadcrumb .is-current {
    color: #e74c39;
}

.course-breadcrumb img {
    display: block;
    width: 24px;
    height: 24px;
    max-width: none;
    flex: 0 0 24px;
}

[dir="rtl"] .course-breadcrumb img {
    transform: scaleX(-1);
}

.courses-single-head .course-video-wrap {
    position: relative;
}

.courses-single-head .course-video-pattern {
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    width: 441px;
    height: 433px;
    max-width: none;
    transform: translate(-50%, -50%);
    opacity: 0.65;
    border-radius: 220px;
    object-fit: cover;
    pointer-events: none;
}

.courses-single-head .course-video-box {
    position: relative;
    z-index: 1;
}

.courses-single-head .video-play-btn img {
    display: block;
    width: 88px;
    height: 88px;
    max-width: none;
    /* The video thumbnail border rule also hit this icon (yellow square). */
    border: 0;
    border-radius: 0;
    object-fit: contain;
}

/* Course images: 16:9, filled without stretching. */
.course-details-content .blog-details-thumb img,
.blog-post-item-two .blog-details-thumb img,
.course-sidebar .course-card-header .course-video-box img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

@media (min-width: 992px) {
    .courses-single-head .container > .row {
        align-items: center;
        justify-content: space-between;
    }

    .courses-single-head .container > .row > .col-lg-6:first-of-type {
        flex: 1 1 616px;
        width: auto;
        max-width: 616px;
    }

    .courses-single-head .container > .row > .col-lg-6:nth-of-type(2) {
        flex: 0 1 530px;
        width: auto;
        max-width: 530px;
    }

    .courses-single-head .courses-content,
    .courses-single-head .courses-cta {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .courses-single-head .courses-content .title,
    .courses-single-head .courses-content .excerpt,
    .courses-single-head .courses-cta .amount,
    .courses-single-head .courses-cta .amount h3 {
        margin: 0;
    }

    .courses-single-head .courses-content .title {
        color: #5e1f18;
        font-size: 48px;
        font-weight: 700;
        line-height: 1.3;
        text-transform: none;
    }

    .courses-single-head .courses-content .excerpt {
        font-size: 18px;
        line-height: 1.6;
        color: #444;
    }

    .courses-single-head .courses-cta .amount span {
        display: none;
    }

    .courses-single-head .courses-cta .amount h3 {
        font-size: 32px;
        font-weight: 700;
        line-height: 1.5;
        color: #e74c39;
    }

    .courses-single-head .courses-cta .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 339px;
        max-width: 100%;
        height: 64px;
        margin: 0;
        padding: 0 24px;
        border: 0;
        border-radius: 12px;
        background: #e74c39;
        color: #fff;
        font-family: "IBM Plex Sans Arabic", sans-serif;
        font-size: 18px;
        font-weight: 600;
        line-height: 1.4;
    }

    .courses-single-head .courses-cta .btn:hover {
        background: #cd2e19;
        color: #fff;
    }
}

/* Single course info bar — Figma 3505:2743 */
.course-cards-section {
    background: #fffaf0;
    border-radius: 12px;
    padding: 14px 48px;
}

.course-cards-section .course-cards {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
}

.course-cards-section .course-cards > [class*="col-"] {
    flex: 0 1 auto;
    width: auto;
    max-width: none;
    padding: 0;
}

.course-cards-section .card-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0;
}

.course-cards-section .card-item .card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin: 0;
}

.course-cards-section .card-item .card-icon img {
    display: block;
    width: 32px;
    height: 32px;
    max-width: none;
}

.course-cards-section .card-item .card-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.course-cards-section .card-item .card-content h3 {
    margin: 0;
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
    color: #222;
}

.course-cards-section .card-item .card-content span {
    display: block;
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #444;
}

@media (max-width: 991.98px) {
    .courses-single-head .course-video-pattern {
        display: none;
    }

    .course-cards-area {
        margin-top: 32px;
    }

    .course-cards-area .container,
    .courses-details-area .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .course-cards-section {
        padding: 24px;
        border-radius: 12px;
    }

    .course-cards-section .course-cards {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 24px;
    }

    .course-cards-section .course-cards > [class*="col-"] {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    .course-cards-section .card-item {
        align-items: center;
        gap: 16px;
        height: auto;
        padding: 0;
    }

    .course-cards-section .card-item .card-icon {
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
        margin: 0;
    }

    .course-cards-section .card-item .card-content h3 {
        font-size: 18px;
        line-height: 26px;
    }

    .course-cards-section .card-item .card-content span {
        font-size: 16px;
        line-height: 24px;
    }

    .courses-details-area {
        padding-top: 32px;
        padding-bottom: 48px;
    }

    .course-details-content > h2,
    .course-details-content .section-content > h3,
    .course-details-content .post-text :is(h2, h3) {
        margin-bottom: 12px;
        font-size: 24px;
        font-weight: 700;
        line-height: 1.5;
        color: #5e1f18;
    }

    .course-details-content .post-text,
    .course-details-content .section-content .content {
        font-size: 16px;
        line-height: 1.6;
        color: rgba(0, 0, 0, 0.8);
    }

    .course-details-content .section-inner {
        margin-bottom: 32px;
    }

    .course-details-content .section-content ul,
    .course-details-content .post-text ul {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .course-details-content .section-content ul li,
    .course-details-content .post-text ul li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin: 0;
        padding: 0;
        list-style: none;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.5;
        color: #444;
    }

    .course-details-content .section-content ul li::before,
    .course-details-content .post-text ul li::before {
        content: "";
        flex: 0 0 24px;
        width: 24px;
        height: 24px;
        margin-top: 0;
        background: url("../img/course-info/note.svg") center / 24px 24px no-repeat;
    }

    .course-details-content .blog-details-thumb img,
    .blog-post-item-two .blog-details-thumb img,
    .course-details-content .section-image img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 12px;
    }

    .course-certificate-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        margin: 0;
        padding: 32px 16px;
        border: 1px solid #ffc658;
        border-radius: 16px;
        background: #fffaf0;
        text-align: center;
    }

    .course-certificate-card__content {
        order: 2;
        max-width: 100%;
    }

    .course-certificate-card__icon {
        order: 1;
        width: 128px;
    }

    .course-certificate-card__icon img {
        width: 128px;
        height: auto;
    }

    .course-certificate-card__title {
        margin-bottom: 8px;
        font-size: 24px;
        font-weight: 700;
        line-height: 1.4;
        color: #222;
    }

    .course-certificate-card__content p {
        margin-bottom: 0;
        font-size: 16px;
        line-height: 1.6;
        color: #444;
    }

    .course-static-blocks {
        gap: 32px;
        margin-top: 32px;
    }

    .course-faq-block__title {
        margin-bottom: 16px;
        font-size: 24px;
        font-weight: 700;
        line-height: 1.5;
        color: #5e1f18;
    }

    .course-faq-list {
        gap: 16px;
    }

    .course-faq-item {
        border-radius: 12px;
        background: #f8f8f8;
    }

    .course-faq-item__trigger {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin: 0;
        padding: 16px;
        border: 0;
        background: transparent;
        text-align: start;
        cursor: pointer;
    }

    .course-faq-item__question {
        font-size: 16px;
        font-weight: 500;
        line-height: 1.6;
        color: #222;
    }

    .course-faq-item__icon {
        width: 32px;
        height: 32px;
    }
}
