/* ── أزرار التواصل داخل محتوى الدورة (هاتف / واتساب) ── */
.course-contact-actions,
.content-area .service-wrap .btns,
.page-content .service-wrap .btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 1.75rem 0;
    justify-content: center;
}

.course-contact-actions__btn {
    flex: 1 1 220px;
    max-width: 320px;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.15rem;
    border-radius: 14px;
    text-decoration: none !important;
    color: #fff !important;
    border: 1px solid transparent;
    box-shadow: 0 4px 16px rgba(15, 45, 35, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.course-contact-actions__btn:hover {
    transform: translateY(-2px);
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(15, 45, 35, 0.18);
}

.course-contact-actions__btn:focus-visible {
    outline: 3px solid #b8943f;
    outline-offset: 2px;
}

.course-contact-actions__btn--phone {
    background: linear-gradient(135deg, #165d31 0%, #1b8354 100%);
    border-color: rgba(255, 255, 255, 0.12);
}

.course-contact-actions__btn--whatsapp {
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
    border-color: rgba(255, 255, 255, 0.15);
}

.course-contact-actions__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.course-contact-actions__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 0;
}

.course-contact-actions__label {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.course-contact-actions__hint {
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0.9;
    line-height: 1.2;
}

/* توافق مع HTML القديم المخزّن في المحتوى */
.content-area .service-wrap .btns .Whatsapp-btn,
.content-area .service-wrap .btns .Call-btn,
.page-content .service-wrap .btns .Whatsapp-btn,
.page-content .service-wrap .btns .Call-btn {
    flex: 1 1 220px;
    max-width: 320px;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.content-area .service-wrap .btns .Call-btn a,
.page-content .service-wrap .btns .Call-btn a {
    width: 100%;
    padding: 0.85rem 1.15rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #165d31 0%, #1b8354 100%);
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(22, 93, 49, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-area .service-wrap .btns .Whatsapp-btn a,
.page-content .service-wrap .btns .Whatsapp-btn a {
    width: 100%;
    padding: 0.85rem 1.15rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-area .service-wrap .btns .Call-btn a:hover,
.content-area .service-wrap .btns .Whatsapp-btn a:hover,
.page-content .service-wrap .btns .Call-btn a:hover,
.page-content .service-wrap .btns .Whatsapp-btn a:hover {
    transform: translateY(-2px);
    color: #fff !important;
}

.content-area .service-wrap .btns .Call-btn a svg,
.content-area .service-wrap .btns .Whatsapp-btn a svg,
.page-content .service-wrap .btns .Call-btn a svg,
.page-content .service-wrap .btns .Whatsapp-btn a svg {
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .course-contact-actions,
    .content-area .service-wrap .btns,
    .page-content .service-wrap .btns {
        flex-direction: column;
        align-items: stretch;
    }

    .course-contact-actions__btn,
    .content-area .service-wrap .btns .Whatsapp-btn,
    .content-area .service-wrap .btns .Call-btn,
    .page-content .service-wrap .btns .Whatsapp-btn,
    .page-content .service-wrap .btns .Call-btn {
        max-width: none;
        width: 100%;
    }
}

.course-show-tabs .service-wrap ul {
    padding-right: 1.25rem;
}

.course-show-tabs .chapter-accordion .accordion-button {
    text-align: start;
}

.fellowship .course-show-tabs .course-sections .course-section {
    scroll-margin-top: calc(var(--header-height, 85px) + 72px);
}

.fellowship .course-show-tabs .listing-tab .nav-link {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.fellowship .course-show-tabs .listing-slider {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767.98px) {
    .fellowship .course-show-tabs .listing-tab-scroll-btn {
        display: flex;
    }

    .fellowship .course-show-tabs .course-sections .course-section {
        scroll-margin-top: calc(76px + 58px);
    }
}

.listing-tab-scroll-btn {
    border: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Course/diploma hero facts (moved out of enroll sidebar) */
.course-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}

.course-hero-pills__item {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.2;
}

.course-hero-pills__item--soft {
    background: rgba(255, 255, 255, 0.1);
}

.course-hero-pills__item--accent {
    background: rgba(255, 255, 255, 0.92);
    color: #145c3c;
    border-color: transparent;
}

.course-hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.15rem;
}

.course-hero-facts__item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
}

.course-hero-facts__icon {
    flex: 0 0 2.35rem;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.95rem;
}

.course-hero-facts__text {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.course-hero-facts__text em {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.78);
}

.course-hero-facts__text strong {
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
}

@media (max-width: 991.98px) {
    .course-hero-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
        margin-top: 0.85rem;
    }

    .course-hero-facts__item {
        padding: 0.65rem 0.7rem;
        gap: 0.55rem;
        border-radius: 12px;
    }

    .course-hero-facts__icon {
        flex-basis: 2rem;
        width: 2rem;
        height: 2rem;
        border-radius: 8px;
        font-size: 0.82rem;
    }

    .course-hero-facts__text em {
        font-size: 0.65rem;
    }

    .course-hero-facts__text strong {
        font-size: 0.82rem;
    }

    .course-show-enroll-col {
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .course-sidebar-enroll--focus {
        position: static !important;
        top: auto;
        z-index: 1;
    }

    .course-braedcrumb .breadcrumb-title {
        font-size: clamp(1.15rem, 4.5vw, 1.45rem) !important;
        margin-top: 0.65rem !important;
        margin-bottom: 0.35rem !important;
        line-height: 1.35;
    }
}

@media (max-width: 767.98px) {
    .course-braedcrumb {
        padding-top: 1rem !important;
        padding-bottom: 1.15rem !important;
    }

    .course-braedcrumb .page-breadcrumb {
        margin-bottom: 0.55rem;
    }

    .course-braedcrumb .breadcrumb {
        font-size: 0.75rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .course-braedcrumb .breadcrumb::-webkit-scrollbar {
        display: none;
    }

    .course-hero-pills {
        gap: 0.35rem;
    }

    .course-hero-pills__item {
        font-size: 0.68rem;
        padding: 0.22rem 0.55rem;
    }

    .course-hero-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .course-show-enroll-col {
        padding-inline: 0;
    }

    .course-sidebar-enroll--focus {
        border-radius: 18px;
        box-shadow: 0 12px 32px rgba(19, 95, 61, 0.12);
    }

    #course-enroll {
        scroll-margin-top: calc(var(--header-height, 72px) + 0.75rem);
    }
}

@media (max-width: 575.98px) {
    /* Keep 2 columns — never stack 6 tall cards on phones */
    .course-hero-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .course-hero-facts__item {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.6rem 0.65rem;
        min-height: 4.6rem;
    }

    .course-hero-facts__icon {
        flex-basis: 1.7rem;
        width: 1.7rem;
        height: 1.7rem;
        font-size: 0.72rem;
    }

    .course-hero-facts__text strong {
        font-size: 0.78rem;
        word-break: break-word;
    }
}
