/*
 * Z Academy brand layer
 *
 * Source of truth for the public frontend. The legacy theme remains loaded
 * before this file so existing components and interactions continue to work,
 * while this layer applies the approved brand tokens consistently.
 */
@font-face {
    font-family: "Shubbak";
    src: url("../font/shubbak/Shubbak-Regular.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Shubbak";
    src: url("../font/shubbak/Shubbak-Medium.otf") format("opentype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Shubbak";
    src: url("../font/shubbak/Shubbak-Bold.otf") format("opentype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --zahra-purple: #6728eb;
    --zahra-navy: #031130;
    --zahra-yellow: #ffca3a;
    --zahra-lavender: #a073fc;
    --zahra-slate: #1c2841;
    --zahra-light-lavender: #e6e8fd;
    --zahra-pale-yellow: #fdecba;
    --zahra-soft-gray: #eeeef3;
    --zahra-white: #ffffff;
    /* Primary purple leads the gradient; lavender is the secondary accent. */
    --zahra-gradient: linear-gradient(135deg, #6728eb 0%, #a073fc 100%);
    --zahra-gradient-deep: linear-gradient(135deg, #6728eb 0%, #031130 100%);
    --zahra-font: "Shubbak", "Cairo", "Arial", sans-serif;
    --zahra-display-size: clamp(2.35rem, 4.4vw, 4.75rem);
    --zahra-heading-size: clamp(1.8rem, 3vw, 3.1rem);
    --zahra-body-size: 1rem;
    --zahra-radius-sm: 12px;
    --zahra-radius-md: 20px;
    --zahra-radius-lg: 32px;
    --zahra-shadow-sm: 0 8px 24px rgba(3, 17, 48, .08);
    --zahra-shadow: 0 18px 50px rgba(3, 17, 48, .12);
    --zahra-shadow-purple: 0 18px 38px rgba(103, 40, 235, .2);
}

.brand-site,
.brand-site * {
    font-family: var(--zahra-font) !important;
}

/* Preserve the icon font loaded by the legacy asset bundle. */
.brand-site [class*=" ri-"],
.brand-site [class^="ri-"] {
    font-family: remixicon !important;
    font-style: normal;
}

.brand-site {
    direction: inherit;
    background: var(--zahra-white);
    color: var(--zahra-navy);
    font-size: var(--zahra-body-size);
    line-height: 1.65;
}

.brand-site main {
    position: relative;
    overflow: hidden;
}

.brand-site img {
    max-width: 100%;
}

.brand-site a {
    color: var(--zahra-purple);
    transition: color .2s ease, background-color .2s ease, border-color .2s ease,
        box-shadow .2s ease, transform .2s ease;
}

.brand-site a:hover {
    color: var(--zahra-navy);
}

.brand-site ::selection {
    color: var(--zahra-navy);
    background: var(--zahra-yellow);
}

.brand-site :focus-visible {
    outline: 3px solid rgba(255, 202, 58, .9);
    outline-offset: 3px;
}

.brand-site h1,
.brand-site h2,
.brand-site h3,
.brand-site h4,
.brand-site h5,
.brand-site h6 {
    color: var(--zahra-navy);
    font-weight: 700;
    letter-spacing: -.025em;
}

.brand-site p {
    color: var(--zahra-slate);
}

.brand-site .container {
    max-width: 1180px;
}

.brand-site .section-ptb,
.brand-site .page-content {
    padding-top: clamp(3.5rem, 7vw, 6rem);
    padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

/* Header and navigation */
.brand-site #header {
    position: relative;
    z-index: 30;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(3, 17, 48, .08);
    box-shadow: 0 6px 24px rgba(3, 17, 48, .045);
}

.brand-site .header-top-first {
    background: transparent !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.brand-site .header-area {
    min-height: 66px;
}

.brand-site .header-theme-logo,
.brand-site .theme-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-site .header-theme-logo img,
.brand-site .theme-logo img {
    width: auto;
    height: 47px;
    max-width: 160px;
    object-fit: contain;
}

.brand-site .menu-ul {
    gap: .35rem;
    margin: 0;
}

.brand-site .menu-link {
    color: var(--zahra-navy) !important;
    border-radius: 999px;
    font-size: 1rem !important;
    padding: .65rem 1rem !important;
}

.brand-site .menu-link:hover,
.brand-site .menu-link:focus-visible {
    color: var(--zahra-purple) !important;
    background: var(--zahra-light-lavender);
}

.brand-site .menu-title {
    font-weight: 700;
}

.brand-site .header-icon-element {
    gap: .35rem;
}

.brand-site .header-icon-spacing {
    margin-inline-start: .35rem;
}

.brand-site .header-block-icon-wrap,
.brand-site .header-block-icon,
.brand-site .header-block-icon i {
    color: var(--zahra-purple) !important;
}

.brand-site .cart-wrap img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: invert(22%) sepia(88%) saturate(5233%) hue-rotate(257deg) brightness(91%) contrast(108%);
}

.brand-site .btn-login,
.brand-site .btn-register,
.brand-site .user-account-pill {
    min-height: 42px;
    border-radius: 999px !important;
    padding: .55rem 1.1rem !important;
    font-size: .9rem !important;
    font-weight: 700 !important;
}

.brand-site .btn-login {
    color: var(--zahra-purple) !important;
    background: var(--zahra-white) !important;
    border: 1px solid var(--zahra-purple) !important;
}

.brand-site .btn-login:hover {
    color: var(--zahra-white) !important;
    background: var(--zahra-purple) !important;
}

.brand-site .btn-register,
.brand-site .btn-register:hover {
    color: var(--zahra-navy) !important;
    background: var(--zahra-yellow) !important;
    border: 1px solid var(--zahra-yellow) !important;
    box-shadow: 0 7px 18px rgba(255, 202, 58, .22);
}

.brand-site .btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 202, 58, .34);
}

.brand-site .user-account-pill {
    color: var(--zahra-navy) !important;
    border: 1px solid var(--zahra-light-lavender);
    background: var(--zahra-white);
}

.brand-site .user-account-avatar {
    border: 2px solid var(--zahra-yellow);
}

.brand-site .user-account-menu {
    padding: .5rem;
    border: 1px solid var(--zahra-light-lavender);
    border-radius: var(--zahra-radius-sm);
    box-shadow: var(--zahra-shadow);
}

.brand-site .user-account-menu .dropdown-item {
    border-radius: 10px;
    color: var(--zahra-navy);
    padding: .6rem .8rem;
}

.brand-site .user-account-menu .dropdown-item:hover {
    color: var(--zahra-purple);
    background: var(--zahra-light-lavender);
}

.brand-site .header-icon-toggler {
    width: 42px;
    height: 42px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: var(--zahra-navy) !important;
    background: var(--zahra-light-lavender);
    border-radius: 50%;
}

/* Shared buttons and controls */
.brand-site .btn,
.brand-site button:not(.btn-close):not(.qty-btn):not(.delete-btn) {
    font-weight: 700;
}

.brand-site .btn-primary,
.brand-site .btn-primary-gradient,
.brand-site .btn-purple-action,
.brand-site .btn-register-now,
.brand-site .btn-subscribe,
.brand-site .btn-subscribe-featured,
.brand-site .btn-show-results,
.brand-site .btn-back-to-products,
.brand-site .account-update-btn,
.brand-site .account-reset-btn,
.brand-site .btn-send {
    color: var(--zahra-white) !important;
    background: var(--zahra-purple) !important;
    border: 1px solid var(--zahra-purple) !important;
    border-radius: 999px !important;
    box-shadow: 0 9px 22px rgba(103, 40, 235, .2);
}

.brand-site .btn-primary:hover,
.brand-site .btn-primary-gradient:hover,
.brand-site .btn-purple-action:hover,
.brand-site .btn-register-now:hover,
.brand-site .btn-subscribe:hover,
.brand-site .btn-subscribe-featured:hover,
.brand-site .btn-show-results:hover,
.brand-site .btn-back-to-products:hover,
.brand-site .account-update-btn:hover,
.brand-site .account-reset-btn:hover,
.brand-site .btn-send:hover {
    color: var(--zahra-navy) !important;
    background: var(--zahra-yellow) !important;
    border-color: var(--zahra-yellow) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(255, 202, 58, .28);
}

.brand-site .btn-secondary,
.brand-site .btn-secondary-action,
.brand-site .btn-reset,
.brand-site .btn-outline-primary {
    color: var(--zahra-purple) !important;
    background: var(--zahra-white) !important;
    border: 1px solid var(--zahra-purple) !important;
    border-radius: 999px !important;
}

.brand-site .btn-secondary:hover,
.brand-site .btn-secondary-action:hover,
.brand-site .btn-reset:hover,
.brand-site .btn-outline-primary:hover {
    color: var(--zahra-navy) !important;
    background: var(--zahra-light-lavender) !important;
}

.brand-site input:not([type="checkbox"]):not([type="radio"]),
.brand-site textarea,
.brand-site select,
.brand-site .form-control,
.brand-site .form-select {
    color: var(--zahra-navy) !important;
    background-color: var(--zahra-white) !important;
    border: 1px solid rgba(3, 17, 48, .16) !important;
    border-radius: var(--zahra-radius-sm) !important;
    min-height: 46px;
}

.brand-site input:not([type="checkbox"]):not([type="radio"]):focus,
.brand-site textarea:focus,
.brand-site select:focus,
.brand-site .form-control:focus,
.brand-site .form-select:focus {
    border-color: var(--zahra-purple) !important;
    box-shadow: 0 0 0 4px rgba(103, 40, 235, .12) !important;
}

.brand-site ::placeholder {
    color: rgba(28, 40, 65, .58) !important;
    opacity: 1;
}

/* Home hero, sections, and branded geometry */
.brand-site .slider-section {
    max-width: 1180px;
    padding-top: clamp(1.25rem, 3vw, 2.5rem);
}

.brand-site .slider-section .home-slider,
.brand-site .slider-section .slider-image {
    overflow: hidden;
    border-radius: var(--zahra-radius-lg);
}

.brand-site .slider-section .home-slider {
    box-shadow: var(--zahra-shadow);
    background: var(--zahra-light-lavender);
}

.brand-site .slider-section .slider-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 56%, rgba(103, 40, 235, .14) 100%);
}

.brand-site .slider-section .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: var(--zahra-white);
    opacity: .7;
}

.brand-site .slider-section .swiper-pagination-bullet-active {
    width: 26px;
    border-radius: 999px;
    background: var(--zahra-yellow);
    opacity: 1;
}

.brand-site .swiper-buttons-wrap button,
.brand-site .testimonials-nav-btn-right,
.brand-site .testimonials-nav-btn-left {
    border-radius: 50% !important;
}

.brand-site .swiper-buttons-wrap button {
    color: var(--zahra-navy);
    background: var(--zahra-yellow);
    border: 0;
}

.brand-site .welcome-section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
    background-color: var(--zahra-white);
    background-image: linear-gradient(135deg, rgba(160, 115, 252, .1) 0 12%, transparent 12% 100%),
        linear-gradient(315deg, rgba(230, 232, 253, .8) 0 11%, transparent 11% 100%);
    background-position: -5% 5%, 105% 95%;
    background-size: 360px 360px, 420px 420px;
}

.brand-site .welcome-section::before,
.brand-site .educational-services::before,
.brand-site .testimonials-section::before {
    content: "";
    display: block;
    width: 76px;
    height: 7px;
    margin: 0 auto 1.25rem;
    border-radius: 999px;
    background: var(--zahra-yellow);
}

.brand-site .welcome-title {
    max-width: 900px;
    margin: 0 auto 1rem;
    color: var(--zahra-navy);
    font-size: var(--zahra-display-size);
    font-weight: 800;
    line-height: 1.15;
}

.brand-site .welcome-title-gradient {
    background: var(--zahra-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-site .welcome-subtitle {
    max-width: 650px;
    margin: 0 auto 2rem;
    color: var(--zahra-slate);
    font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.brand-site .welcome-btn {
    color: var(--zahra-navy) !important;
    background: var(--zahra-yellow) !important;
    border: 1px solid var(--zahra-yellow);
    border-radius: 999px;
    padding: .85rem 1.7rem;
    font-size: 1rem;
    box-shadow: 0 12px 28px rgba(255, 202, 58, .3);
}

.brand-site .welcome-btn:hover {
    color: var(--zahra-white) !important;
    background: var(--zahra-purple) !important;
    border-color: var(--zahra-purple);
    box-shadow: var(--zahra-shadow-purple);
}

.brand-site .educational-services {
    position: relative;
    overflow: hidden;
    background: var(--zahra-light-lavender);
}

.brand-site .educational-services::after,
.brand-site .testimonials-section::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border: 2px solid rgba(103, 40, 235, .18);
    transform: rotate(45deg);
    pointer-events: none;
}

.brand-site .educational-services::after {
    top: -110px;
    inset-inline-start: -110px;
}

.brand-site .testimonials-section::after {
    bottom: -120px;
    inset-inline-end: -120px;
    border-color: rgba(255, 202, 58, .35);
}

.brand-site .section-heading-large,
.brand-site .section-heading-medium {
    position: relative;
    z-index: 1;
    margin-top: 0;
    color: var(--zahra-navy);
    font-size: var(--zahra-heading-size);
    font-weight: 800;
    line-height: 1.2;
}

.brand-site .section-heading-primary,
.brand-site .section-heading-color-span {
    color: var(--zahra-purple);
}

.brand-site .section-heading-dark {
    color: var(--zahra-navy);
}

.brand-site .section-description {
    color: var(--zahra-slate);
    font-size: 1rem;
}

.brand-site .heading-underline img,
.brand-site .heading-underline-small img {
    width: 110px;
    height: auto;
    opacity: .95;
}

.brand-site .service-card {
    width: 100%;
    min-height: 250px;
    padding: 2rem 1.25rem;
    background: var(--zahra-white);
    border: 1px solid rgba(103, 40, 235, .12);
    border-radius: var(--zahra-radius-md);
    box-shadow: var(--zahra-shadow-sm);
}

.brand-site .service-card::before,
.brand-site .service-card::after {
    width: 40%;
    height: 40%;
    border-color: var(--zahra-yellow);
    border-width: 2px;
    border-radius: 0;
}

.brand-site .service-card:hover {
    border-color: var(--zahra-purple);
    box-shadow: var(--zahra-shadow-purple);
    transform: translateY(-8px);
}

.brand-site .service-icon {
    display: inline-flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem !important;
    border-radius: 22px;
    background: var(--zahra-light-lavender);
}

.brand-site .service-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.brand-site .service-title {
    margin-bottom: .6rem;
    color: var(--zahra-navy);
    font-size: 1.12rem;
}

.brand-site .service-description {
    margin-bottom: 0;
    color: var(--zahra-slate);
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.8;
}

.brand-site .testimonials-section {
    position: relative;
    overflow: hidden;
    background: var(--zahra-gradient);
    padding: clamp(4rem, 7vw, 6rem) 0;
}

/* Brand pattern for the testimonial field: subtle enough to preserve
   readability, visible enough to connect the section to the hero language. */
.brand-site .testimonials-section {
    background-image:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .13) 0 1px, transparent 1px 72px),
        repeating-linear-gradient(45deg, transparent 0 124px, rgba(255, 202, 58, .2) 124px 126px, transparent 126px 250px),
        var(--zahra-gradient);
    background-position: 0 0, 44px 44px, 0 0;
    background-size: auto, auto, 100% 100%;
    background-repeat: repeat, repeat, no-repeat;
}

.brand-site .testimonials-title,
.brand-site .testimonials-description {
    position: relative;
    z-index: 1;
    color: var(--zahra-white);
}

.brand-site .testimonials-title {
    max-width: min(100%, 1100px);
    margin-inline: auto;
    padding-inline: 1rem;
    font-size: var(--zahra-heading-size);
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.brand-site .testimonials-description {
    color: rgba(255, 255, 255, .82);
}

.brand-site .testimonial-card {
    min-height: 240px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: var(--zahra-radius-md);
    box-shadow: 0 18px 38px rgba(3, 17, 48, .18);
}

.brand-site .testimonial-quote-icon i {
    color: var(--zahra-yellow);
}

.brand-site .testimonial-author-name {
    color: var(--zahra-navy);
}

.brand-site .testimonial-author-role,
.brand-site .testimonial-text {
    color: var(--zahra-slate);
}

.brand-site .testimonials-nav-btn-right {
    background: var(--zahra-yellow);
}

.brand-site .testimonials-nav-btn-left {
    background: var(--zahra-white);
}

/* Category, course, and breadcrumb surfaces */
.brand-site .breadcrumb-area,
.brand-site .breadcrumb-area-custom,
.brand-site .page-header.breadcrumb-wrap {
    position: relative;
    background: var(--zahra-navy) !important;
    padding: 1.1rem 0 !important;
    border: 0 !important;
    overflow: hidden;
}

.brand-site .breadcrumb-area::after,
.brand-site .page-header.breadcrumb-wrap::after {
    background: linear-gradient(135deg, transparent 50%, rgba(160, 115, 252, .35) 50%);
    opacity: 1;
}

.brand-site .breadcrumb-area .breadcrumb,
.brand-site .breadcrumb-area .breadcrumb-item,
.brand-site .breadcrumb-area .breadcrumb-item.active,
.brand-site .breadcrumb-area .breadcrumb-item a,
.brand-site .breadcrumb-area-custom .breadcrumb,
.brand-site .breadcrumb-area-custom .breadcrumb-item,
.brand-site .breadcrumb-area-custom .breadcrumb-item.active,
.brand-site .breadcrumb-area-custom .breadcrumb-item a,
.brand-site .page-header.breadcrumb-wrap .breadcrumb,
.brand-site .page-header.breadcrumb-wrap .breadcrumb-item,
.brand-site .page-header.breadcrumb-wrap .breadcrumb-item.active,
.brand-site .page-header.breadcrumb-wrap .breadcrumb-item a {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, .85) !important;
}

.brand-site .breadcrumb-area .breadcrumb-item a:hover,
.brand-site .breadcrumb-area-custom .breadcrumb-item a:hover,
.brand-site .page-header.breadcrumb-wrap .breadcrumb-item a:hover {
    color: var(--zahra-yellow) !important;
}

.brand-site .account-breadcrumb-nav,
.brand-site .account-breadcrumb {
    position: relative;
    z-index: 1;
}

.brand-site .account-breadcrumb .breadcrumb-item,
.brand-site .account-breadcrumb .breadcrumb-item.active,
.brand-site .account-page-title {
    color: #111827 !important;
}

.brand-site .account-breadcrumb .breadcrumb-item a {
    color: #6b7280 !important;
    text-decoration: none;
}

.brand-site .account-breadcrumb .breadcrumb-item a:hover {
    color: #111827 !important;
}

.brand-site .account-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #9ca3af !important;
}

.brand-site .cat-search-wrapper,
.brand-site .search-box-wrapper {
    background: var(--zahra-white);
    border: 1px solid rgba(103, 40, 235, .18);
    border-radius: 999px;
    box-shadow: var(--zahra-shadow-sm);
}

.brand-site .cat-search-input,
.brand-site .filter-search-input {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.brand-site .cat-search-icon,
.brand-site .search-box-wrapper .search-icon {
    color: var(--zahra-purple);
}

.brand-site .cat-count-header {
    color: var(--zahra-purple);
    font-weight: 700;
}

/* Brand category marker: a learning path replaces the generic stack icon. */
.brand-site .cat-count-header > span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.brand-site .cat-count-header .category-brand-icon,
.brand-site .cat-count-header .material-brand-icon {
    display: block;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    object-fit: contain;
}

.brand-site .cat-card {
    min-height: 190px;
    background: var(--zahra-white);
    border: 1px solid rgba(3, 17, 48, .1);
    border-radius: var(--zahra-radius-md);
    box-shadow: var(--zahra-shadow-sm);
}

.brand-site .cat-card:hover {
    background: var(--zahra-light-lavender);
    border-color: var(--zahra-purple);
    box-shadow: var(--zahra-shadow-purple);
    transform: translateY(-6px);
}

.brand-site .cat-card-icon,
.brand-site .cat-badge-pill {
    color: var(--zahra-purple);
    background: var(--zahra-light-lavender);
}

.brand-site .cat-card-title,
.brand-site .cat-card-cta,
.brand-site .cat-card-arrow {
    color: var(--zahra-navy);
}

.brand-site .cat-pill {
    color: var(--zahra-slate);
    background: var(--zahra-soft-gray);
    border: 1px solid rgba(3, 17, 48, .06);
}

.brand-site .cat-pill-more {
    color: var(--zahra-navy);
    background: var(--zahra-pale-yellow);
}

.brand-site .main-nav-tabs-list {
    gap: .55rem;
}

.brand-site .main-nav-link,
.brand-site .filter-pill-btn,
.brand-site .filter-pill {
    color: var(--zahra-slate) !important;
    background: var(--zahra-white) !important;
    border: 1px solid rgba(3, 17, 48, .12) !important;
    border-radius: 999px !important;
}

.brand-site .main-nav-link.active,
.brand-site .main-nav-link:hover,
.brand-site .filter-pill-btn.active,
.brand-site .filter-pill-btn:hover,
.brand-site .filter-pill.active,
.brand-site .filter-pill:hover {
    color: var(--zahra-white) !important;
    background: var(--zahra-purple) !important;
    border-color: var(--zahra-purple) !important;
}

.brand-site .course-card-container,
.brand-site .course-card,
.brand-site .product-card-custom,
.brand-site .no-products-card,
.brand-site .cart-item,
.brand-site .cart-summary,
.brand-site .account-content-card,
.brand-site .account-sidebar,
.brand-site .faq-content,
.brand-site .contact-us-content {
    background: var(--zahra-white);
    border: 1px solid rgba(3, 17, 48, .1);
    border-radius: var(--zahra-radius-md);
    box-shadow: var(--zahra-shadow-sm);
}

.brand-site .course-card-container,
.brand-site .course-card {
    overflow: hidden;
}

.brand-site .course-card-container:hover,
.brand-site .course-card:hover,
.brand-site .product-card-custom:hover {
    border-color: rgba(103, 40, 235, .4);
    box-shadow: var(--zahra-shadow-purple);
    transform: translateY(-6px);
}

.brand-site .course-image-custom,
.brand-site .product-image-custom {
    background: var(--zahra-light-lavender);
}

.brand-site .badge-purple-custom,
.brand-site .course-category-badge,
.brand-site .badge-red-custom,
.brand-site .badge-green-custom,
.brand-site .badge-orange-custom,
.brand-site .badge-pink-custom,
.brand-site .badge-cyan-custom,
.brand-site .badge-violet-custom,
.brand-site .badge-teal-custom {
    color: var(--zahra-white) !important;
    background: var(--zahra-purple) !important;
    border: 0;
}

.brand-site .course-title-custom,
.brand-site .course-title,
.brand-site .product-title-custom,
.brand-site .favorites-title,
.brand-site .cart-main-title {
    color: var(--zahra-navy) !important;
}

.brand-site .course-desc-text,
.brand-site .course-meta-item,
.brand-site .provider-name-custom,
.brand-site .favorites-subtitle,
.brand-site .products-count,
.brand-site .cart-item-category,
.brand-site .cart-item-desc {
    color: var(--zahra-slate) !important;
}

.brand-site .course-price-custom,
.brand-site .product-price-custom,
.brand-site .total-value,
.brand-site .summary-value {
    color: var(--zahra-purple) !important;
}

.brand-site .course-action-btn {
    color: var(--zahra-navy) !important;
    background: var(--zahra-yellow) !important;
}

.brand-site .course-action-btn:hover {
    color: var(--zahra-white) !important;
    background: var(--zahra-purple) !important;
}

.brand-site .pagination .page-link,
.brand-site .page-link {
    color: var(--zahra-purple);
    border-color: var(--zahra-light-lavender);
    border-radius: 10px;
    margin-inline: .15rem;
}

.brand-site .pagination .active .page-link,
.brand-site .page-item.active .page-link {
    color: var(--zahra-white);
    background: var(--zahra-purple);
    border-color: var(--zahra-purple);
}

/* Product, wishlist, and cart */
.brand-site .category-slide {
    color: var(--zahra-slate) !important;
    background: var(--zahra-white);
    border: 1px solid rgba(3, 17, 48, .12);
    border-radius: 999px;
}

.brand-site .category-slide.active,
.brand-site .category-slide:hover {
    color: var(--zahra-white) !important;
    background: var(--zahra-purple);
    border-color: var(--zahra-purple);
}

.brand-site .favorites-controls {
    padding: 1rem 1.25rem;
    background: var(--zahra-light-lavender);
    border-radius: var(--zahra-radius-md);
}

.brand-site .view-btn {
    color: var(--zahra-purple);
    border-color: transparent;
    border-radius: 10px;
}

.brand-site .view-btn.active,
.brand-site .view-btn:hover {
    background: var(--zahra-white);
    box-shadow: var(--zahra-shadow-sm);
}

.brand-site .discount-val,
.brand-site .cart-item-discount-badge,
.brand-site .bonus-badge {
    color: var(--zahra-navy) !important;
    background: var(--zahra-yellow) !important;
}

.brand-site .cart-page-wrapper {
    background: var(--zahra-white);
}

.brand-site .cart-item,
.brand-site .cart-summary {
    padding: 1.25rem;
}

.brand-site .cart-item:hover {
    border-color: rgba(103, 40, 235, .35);
}

.brand-site .quantity-control {
    border: 1px solid var(--zahra-light-lavender);
    border-radius: 999px;
    overflow: hidden;
}

.brand-site .qty-btn {
    color: var(--zahra-purple);
    background: var(--zahra-light-lavender);
}

.brand-site .delete-btn {
    color: var(--zahra-purple);
}

.brand-site .btn-checkout {
    color: var(--zahra-navy) !important;
    background: var(--zahra-yellow) !important;
    border: 1px solid var(--zahra-yellow);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(255, 202, 58, .25);
}

.brand-site .btn-checkout:hover {
    color: var(--zahra-white) !important;
    background: var(--zahra-purple) !important;
    border-color: var(--zahra-purple);
}

/* Account, contact, and FAQ */
.brand-site .account-sidebar,
.brand-site .account-content-card,
.brand-site .faq-content,
.brand-site .contact-us-content {
    border-color: rgba(103, 40, 235, .12);
}

.brand-site .account-menu-link {
    color: var(--zahra-slate) !important;
    border-radius: 12px;
}

.brand-site .account-menu-link:hover,
.brand-site .account-menu-link.active {
    color: var(--zahra-purple) !important;
    background: var(--zahra-light-lavender) !important;
}

.brand-site .account-menu-link.active {
    box-shadow: inset -4px 0 0 var(--zahra-purple);
}

.brand-site .account-page-title,
.brand-site .account-section-heading,
.brand-site .faq-title,
.brand-site .contact-title {
    color: var(--zahra-navy) !important;
}

.brand-site .account-section-title,
.brand-site .faq-question,
.brand-site .contact-method-title {
    color: var(--zahra-navy) !important;
}

.brand-site .account-input,
.brand-site .account-select,
.brand-site .contact-input,
.brand-site .contact-textarea {
    border-color: rgba(3, 17, 48, .16) !important;
    background: var(--zahra-white) !important;
}

.brand-site .account-input:focus,
.brand-site .account-select:focus,
.brand-site .contact-input:focus,
.brand-site .contact-textarea:focus {
    border-color: var(--zahra-purple) !important;
    box-shadow: 0 0 0 4px rgba(103, 40, 235, .12) !important;
}

.brand-site .contact-method-item {
    border-color: rgba(103, 40, 235, .14);
    background: var(--zahra-light-lavender);
}

.brand-site .contact-method-item:hover {
    border-color: var(--zahra-purple);
    background: var(--zahra-white);
    box-shadow: var(--zahra-shadow-sm);
}

.brand-site .contact-method-icon.call,
.brand-site .contact-method-icon.whatsapp,
.brand-site .contact-method-icon.email {
    color: var(--zahra-purple);
    background: var(--zahra-pale-yellow);
}

.brand-site .contact-method-value,
.brand-site .faq-subtitle,
.brand-site .contact-subtitle {
    color: var(--zahra-slate) !important;
}

.brand-site .faq-item {
    border-color: rgba(3, 17, 48, .1) !important;
}

.brand-site .faq-question:hover,
.brand-site .faq-question[aria-expanded="true"] {
    color: var(--zahra-purple) !important;
    background: var(--zahra-light-lavender);
}

.brand-site .faq-icon {
    color: var(--zahra-purple);
}

/* Modals and side drawers inherit the same brand surfaces */
.brand-site .modal-content,
.brand-site .quickview-modal .modal-content,
.brand-site .drawer-fixed,
.brand-site .drawer-fixed-content {
    border: 0;
    border-radius: var(--zahra-radius-md);
    box-shadow: var(--zahra-shadow);
}

.brand-site .modal-header,
.brand-site .drawer-fixed-header {
    border-bottom-color: var(--zahra-light-lavender);
}

.brand-site .modal-title,
.brand-site .modal-title-custom,
.brand-site .drawer-title {
    color: var(--zahra-navy) !important;
}

.brand-site .modal-logo {
    max-height: 52px;
    width: auto;
}

.brand-site .modal-backdrop.show {
    opacity: .65;
    background: var(--zahra-navy);
}

/* Footer brand lockup */
.brand-site #footer {
    position: relative;
    overflow: hidden;
    color: var(--zahra-white);
    background: var(--zahra-gradient-deep) !important;
    padding: clamp(2.25rem, 4vw, 3.25rem) 0 0;
}

.brand-site #footer::before {
    content: "";
    position: absolute;
    top: -96px;
    inset-inline-end: 10%;
    width: 190px;
    height: 190px;
    border: 2px solid rgba(255, 202, 58, .55);
    transform: rotate(45deg);
    pointer-events: none;
}

.brand-site #footer::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .12;
    background: linear-gradient(135deg, transparent 0 45%, var(--zahra-yellow) 45% 46%, transparent 46% 100%);
    background-size: 84px 84px;
}

.brand-site #footer .container {
    position: relative;
    z-index: 1;
}

.brand-site .footer-logo {
    width: auto;
    max-width: 165px;
    height: 42px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.brand-site .footer-link-title,
.brand-site .footer-copyright p {
    color: rgba(255, 255, 255, .82) !important;
}

.brand-site .footer-link-title:hover {
    color: var(--zahra-yellow) !important;
}

.brand-site .social-icon {
    width: 38px;
    height: 38px;
    background: var(--zahra-white) !important;
    border-radius: 50%;
    box-shadow: none;
}

.brand-site .social-icon i {
    color: var(--zahra-purple) !important;
}

.brand-site .social-icon:hover {
    background: var(--zahra-yellow) !important;
    transform: translateY(-3px);
}

.brand-site .footer-copyright {
    border-top-color: rgba(255, 255, 255, .22);
    padding: 14px 0;
}

.brand-site .footer-copyright-bold {
    color: var(--zahra-yellow) !important;
}

.brand-site .footer-developer {
    padding: 8px 0 16px;
}

.brand-site .footer-developer p {
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-size: .78rem;
}

.brand-site .footer-developer a {
    color: var(--zahra-yellow);
    font-weight: 700;
}

.brand-site .footer-developer a:hover {
    color: var(--zahra-white);
}

@media (max-width: 1199.98px) {
    .brand-site .header-area {
        min-height: 58px;
    }

    .brand-site .header-theme-logo img,
    .brand-site .theme-logo img {
        height: 42px;
    }
}

@media (max-width: 767.98px) {
    .brand-site .container {
        width: min(100% - 2rem, 1180px);
    }

    .brand-site .header-top-first {
        padding-top: .7rem !important;
        padding-bottom: .7rem !important;
    }

    .brand-site .header-theme-logo img,
    .brand-site .theme-logo img {
        height: 38px;
        max-width: 130px;
    }

    .brand-site .header-icon-element {
        gap: .15rem;
    }

    .brand-site .cart-wrap {
        margin-inline-start: 0;
    }

    .brand-site .slider-section {
        padding-top: .75rem;
    }

    .brand-site .slider-section .home-slider,
    .brand-site .slider-section .slider-image {
        border-radius: var(--zahra-radius-md);
    }

    .brand-site .welcome-title {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    .brand-site .welcome-subtitle {
        font-size: .95rem;
    }

    .brand-site .service-card {
        min-height: 215px;
        padding: 1.25rem .75rem;
    }

    .brand-site .service-icon {
        width: 58px;
        height: 58px;
        border-radius: 17px;
    }

    .brand-site .service-icon img {
        width: 34px;
        height: 34px;
    }

    .brand-site .service-title {
        font-size: .95rem;
    }

    .brand-site .service-description {
        font-size: .76rem;
        line-height: 1.7;
    }

    .brand-site .cat-card {
        min-height: 160px;
        padding: 1rem;
    }

    .brand-site .cat-card-title {
        font-size: .95rem;
    }

    .brand-site .cat-pill {
        font-size: .72rem;
    }

    .brand-site .course-image-custom {
        height: 150px;
    }

    .brand-site .course-content-custom {
        padding: 1rem .85rem .85rem;
    }

    .brand-site .course-title-custom {
        font-size: .9rem;
    }

    .brand-site .course-desc-text {
        height: auto;
        min-height: 42px;
        font-size: .76rem;
    }

    .brand-site .course-meta-bottom-custom {
        gap: .5rem;
        flex-wrap: wrap;
    }

    .brand-site .course-meta-item {
        font-size: .7rem;
    }

    .brand-site .favorites-controls {
        padding: .75rem;
    }

    .brand-site .cart-item,
    .brand-site .cart-summary {
        padding: 1rem;
    }

    .brand-site .footer-logo {
        max-width: 138px;
        height: 36px;
    }

    .brand-site #footer {
        padding-top: 1.75rem;
    }

    .brand-site .footer-links-row {
        margin-bottom: .75rem !important;
    }

    .brand-site .footer-social-row {
        margin-bottom: .75rem !important;
    }

    .brand-site .social-icon {
        width: 34px;
        height: 34px;
    }

    .brand-site .footer-copyright {
        padding: 10px 0;
    }

    .brand-site .footer-developer {
        padding: 6px 0 12px;
    }
}

/* Course detail v2: a vertical, branded learning journey. */
.brand-site .course-page-v2 {
    position: relative;
    overflow: hidden;
    color: var(--zahra-navy);
    background: transparent;
}

.brand-site .course-page-v2::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .38;
    background-image:
        linear-gradient(135deg, transparent 0 49%, rgba(103, 40, 235, .10) 49% 50%, transparent 50% 100%),
        linear-gradient(315deg, transparent 0 49%, rgba(230, 232, 253, .84) 49% 50%, transparent 50% 100%);
    background-position: 0 0, 100% 100%;
    background-size: 180px 180px, 240px 240px;
}

.brand-site .course-page-v2 > * {
    position: relative;
    z-index: 1;
}

.brand-site .course-page-hero {
    padding: clamp(2.2rem, 5vw, 4.4rem) 0 clamp(2.8rem, 6vw, 5.2rem);
    background: var(--zahra-gradient-deep);
    color: var(--zahra-white);
    overflow: hidden;
}

.brand-site .course-page-hero::after,
.brand-site .course-story-card__media::after,
.brand-site .course-bottom-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .26;
    background-image: linear-gradient(135deg, transparent 0 49%, rgba(160, 115, 252, .55) 49% 50%, transparent 50% 100%);
    background-size: 150px 150px;
}

.brand-site .course-page-hero .container,
.brand-site .course-story-section .container,
.brand-site .course-access-section .container,
.brand-site .course-content-section .container,
.brand-site .course-bottom-cta .container {
    position: relative;
    z-index: 1;
}

.brand-site .course-page-hero__eyebrow,
.brand-site .course-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--zahra-yellow);
    font-size: .92rem;
    font-weight: 600;
}

.brand-site .course-page-hero__eyebrow {
    margin-bottom: 1.25rem;
}

.brand-site .course-page-hero__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.brand-site .course-page-hero__parent,
.brand-site .course-page-hero__category {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: clamp(.9rem, 1.5vw, 1.1rem);
}

.brand-site .course-page-hero h1 {
    max-width: 920px;
    margin: .25rem 0 .4rem;
    color: var(--zahra-white);
    font-size: clamp(2.1rem, 5vw, 4.7rem);
    font-weight: 700;
    line-height: 1.13;
}

.brand-site .course-page-hero__category {
    color: var(--zahra-lavender);
    font-weight: 500;
}

.brand-site .course-page-hero__status,
.brand-site .course-subscription-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .45rem;
    padding: .7rem 1rem;
    color: var(--zahra-navy);
    background: var(--zahra-yellow);
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(3, 17, 48, .2);
}

.brand-site .course-page-hero__status.is-active {
    color: var(--zahra-white);
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .34);
    box-shadow: none;
}

.brand-site .course-page-hero__description {
    max-width: 760px;
    margin: 1.5rem 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.95;
}

.brand-site .course-page-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.8rem;
}

.brand-site .course-page-hero__facts span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .65rem .9rem;
    color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px 5px 12px 5px;
    font-size: .86rem;
}

.brand-site .course-page-hero__facts i {
    color: var(--zahra-yellow);
}

.brand-site .course-story-section,
.brand-site .course-access-section,
.brand-site .course-content-section {
    padding: clamp(2.6rem, 6vw, 5.2rem) 0;
}

.brand-site .course-story-card {
    display: block;
    overflow: hidden;
    background: var(--zahra-white);
    border: 1px solid rgba(103, 40, 235, .16);
    border-radius: 34px 14px 34px 14px;
    box-shadow: 0 22px 58px rgba(3, 17, 48, .12);
}

.brand-site .course-story-card__media {
    position: relative;
    min-height: clamp(460px, 52vw, 680px);
    overflow: hidden;
    background: var(--zahra-gradient);
}

.brand-site .course-story-card__media > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: soft-light;
    opacity: .3;
}

.brand-site .course-story-card__media-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(103, 40, 235, .95), rgba(160, 115, 252, .72));
}

.brand-site .course-story-card__media-copy {
    position: absolute;
    top: 2rem;
    inset-inline-start: 2.2rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    max-width: 270px;
    color: var(--zahra-white);
}

.brand-site .course-story-card__media-copy span {
    color: var(--zahra-yellow);
    font-size: .9rem;
    font-weight: 700;
}

.brand-site .course-story-card__media-copy strong {
    margin-top: .35rem;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.35;
}

.brand-site .course-story-card__media-copy small {
    margin-top: .45rem;
    color: rgba(255, 255, 255, .8);
    line-height: 1.8;
}

.brand-site .course-story-card__intro {
    position: absolute;
    inset-inline-start: 2.2rem;
    bottom: 2rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    width: fit-content;
    padding: .8rem 1.15rem;
    color: var(--zahra-navy);
    background: var(--zahra-yellow);
    border-radius: 14px 6px 14px 6px;
    font-size: .9rem;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(3, 17, 48, .18);
}

.brand-site .course-learning-map {
    position: absolute;
    inset: 5.4rem 1.5rem 4rem;
    z-index: 3;
}

.brand-site .course-learning-map__node {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .7rem .9rem;
    color: var(--zahra-navy);
    background: rgba(255, 255, 255, .95);
    border-radius: 13px 5px 13px 5px;
    box-shadow: 0 10px 20px rgba(3, 17, 48, .14);
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
}

.brand-site .course-learning-map__node--root {
    top: 26%;
    inset-inline-start: 50%;
    width: 66px;
    height: 66px;
    padding: 0;
    color: var(--zahra-purple);
    background: var(--zahra-white);
    border: 3px solid var(--zahra-yellow);
    border-radius: 22px 8px 22px 8px;
    font-size: 1.65rem;
    transform: translateX(-50%);
}

.brand-site .course-learning-map__node--explain { top: 8%; inset-inline-start: 4%; }
.brand-site .course-learning-map__node--notes { top: 53%; inset-inline-start: 2%; }
.brand-site .course-learning-map__node--quiz { top: 53%; inset-inline-end: 2%; }
.brand-site .course-learning-map__node--final { bottom: 2%; inset-inline-end: 7%; }

.brand-site .course-learning-map__line {
    position: absolute;
    z-index: -1;
    height: 2px;
    background: var(--zahra-yellow);
    transform-origin: right center;
}

.brand-site .course-learning-map__line--one { top: 38%; inset-inline-start: 15%; width: 37%; transform: rotate(-25deg); }
.brand-site .course-learning-map__line--two { top: 48%; inset-inline-start: 16%; width: 37%; transform: rotate(25deg); }
.brand-site .course-learning-map__line--three { top: 48%; inset-inline-end: 15%; width: 37%; transform: rotate(-25deg); }

.brand-site .course-story-card__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4.5rem);
    text-align: center;
    background: var(--zahra-white);
}

.brand-site .course-story-card__content .course-kicker,
.brand-site .course-access-card .course-kicker,
.brand-site .course-section-heading .course-kicker,
.brand-site .course-plans-modal .course-kicker,
.brand-site .course-confirm-modal .course-kicker {
    color: var(--zahra-purple);
}

.brand-site .course-story-card__content h2,
.brand-site .course-access-card h2,
.brand-site .course-section-heading h2,
.brand-site .course-bottom-cta h2,
.brand-site .course-plans-modal h2,
.brand-site .course-confirm-modal h2 {
    margin: .65rem 0 .75rem;
    color: var(--zahra-navy);
    font-size: clamp(1.65rem, 3vw, 2.85rem);
    font-weight: 700;
    line-height: 1.35;
}

.brand-site .course-story-card__content > p {
    max-width: 680px;
    margin: 0;
    color: var(--zahra-slate);
    line-height: 2;
}

.brand-site .course-story-card__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
    width: 100%;
    max-width: 700px;
    margin: 1.8rem 0 2rem;
}

.brand-site .course-story-card__steps div {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    padding: .75rem;
    color: var(--zahra-navy);
    background: var(--zahra-light-lavender);
    border-radius: 13px 5px 13px 5px;
    font-size: .78rem;
    font-weight: 600;
}

.brand-site .course-story-card__steps b {
    color: var(--zahra-purple);
    font-family: Arial, sans-serif !important;
    font-size: .75rem;
    letter-spacing: .08em;
}

.brand-site .zahra-btn {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .85rem 1.35rem;
    border: 0;
    border-radius: 15px 6px 15px 6px;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.brand-site .zahra-btn:hover {
    color: inherit;
    transform: translateY(-2px);
}

.brand-site .zahra-btn--primary { color: var(--zahra-white); background: var(--zahra-gradient); box-shadow: 0 15px 30px rgba(103, 40, 235, .2); }
.brand-site .zahra-btn--yellow { color: var(--zahra-navy); background: var(--zahra-yellow); box-shadow: 0 15px 30px rgba(255, 202, 58, .23); }
.brand-site .zahra-btn--muted { color: var(--zahra-navy); background: var(--zahra-light-lavender); }

.brand-site .course-access-card {
    padding: clamp(1.3rem, 3vw, 2.3rem);
    background: rgba(230, 232, 253, .75);
    border: 1px solid rgba(103, 40, 235, .14);
    border-radius: 28px 12px 28px 12px;
}

.brand-site .course-access-card__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.brand-site .course-access-card__heading h2 { margin-bottom: 0; font-size: clamp(1.35rem, 2.4vw, 2rem); }
.brand-site .course-subscription-badge { padding: .55rem .85rem; color: var(--zahra-navy); background: var(--zahra-yellow); box-shadow: none; }

.brand-site .course-access-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .8rem;
}

.brand-site .course-access-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: .7rem;
    min-height: 110px;
    padding: 1rem;
    background: var(--zahra-white);
    border: 1px solid rgba(103, 40, 235, .1);
    border-radius: 17px 7px 17px 7px;
}

.brand-site .course-access-item > i {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--zahra-purple);
    background: var(--zahra-light-lavender);
    border-radius: 14px 5px 14px 5px;
    font-size: 1.25rem;
}

.brand-site .course-access-item strong,
.brand-site .course-access-item span { display: block; }
.brand-site .course-access-item strong { font-size: .92rem; }
.brand-site .course-access-item span { margin-top: .3rem; color: var(--zahra-slate); font-size: .72rem; line-height: 1.6; }
.brand-site .course-access-item > b { grid-column: 1 / -1; color: var(--zahra-slate); font-size: .72rem; font-weight: 600; }
.brand-site .course-access-item > b.is-free { color: #287f58; }

.brand-site .course-subscription-summary {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-top: 1rem;
    padding: .8rem 1rem;
    color: var(--zahra-navy);
    background: rgba(255, 202, 58, .2);
    border-radius: 12px 5px 12px 5px;
    font-size: .85rem;
}

.brand-site .course-subscription-summary > i { color: var(--zahra-purple); font-size: 1.1rem; }

.brand-site .course-section-heading { max-width: 720px; margin: 0 auto 1.8rem; text-align: center; }
.brand-site .course-section-heading h2 { margin-bottom: .3rem; }
.brand-site .course-section-heading p { margin: 0; color: var(--zahra-slate); line-height: 1.9; }

.brand-site .course-tabs {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-bottom: 1.25rem;
    padding: .4rem;
    background: var(--zahra-light-lavender);
    border-radius: 18px 7px 18px 7px;
}

.brand-site .course-tab {
    display: inline-flex;
    min-width: 150px;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .85rem 1.1rem;
    color: var(--zahra-slate);
    background: transparent;
    border: 0;
    border-radius: 13px 5px 13px 5px;
    font-size: .92rem;
    font-weight: 600;
}

.brand-site .course-tab.is-active { color: var(--zahra-white); background: var(--zahra-gradient); box-shadow: 0 8px 20px rgba(103, 40, 235, .18); }
.brand-site .course-tab-panel { display: none; }
.brand-site .course-tab-panel.is-active { display: block; }

.brand-site .course-unit-card {
    margin-bottom: .75rem;
    overflow: hidden;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(103, 40, 235, .14);
    border-radius: 20px 8px 20px 8px;
    box-shadow: 0 10px 25px rgba(3, 17, 48, .05);
}

.brand-site .course-unit-card__header {
    display: grid;
    grid-template-columns: 50px 1fr 32px;
    width: 100%;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    color: var(--zahra-navy);
    text-align: start;
    background: transparent;
    border: 0;
}

.brand-site .course-unit-card__header.is-open { background: var(--zahra-light-lavender); }
.brand-site .course-unit-card__number { color: var(--zahra-purple); font-family: Arial, sans-serif !important; font-size: .8rem; font-weight: 700; }
.brand-site .course-unit-card__title strong,
.brand-site .course-unit-card__title small { display: block; }
.brand-site .course-unit-card__title strong { font-size: 1.02rem; }
.brand-site .course-unit-card__title small { margin-top: .25rem; color: var(--zahra-slate); font-size: .76rem; }
.brand-site .course-unit-card__header > i { color: var(--zahra-purple); font-size: 1.25rem; transition: transform .2s ease; }
.brand-site .course-unit-card__header.is-open > i { transform: rotate(180deg); }

.brand-site .course-unit-card__lessons { display: none; padding: 0 1.2rem 1rem; }
.brand-site .course-unit-card__lessons.is-open { display: block; }
.brand-site .course-lesson-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-top: 1px solid rgba(3, 17, 48, .08); }
.brand-site .course-lesson-row__main { display: flex; min-width: 0; align-items: center; gap: .65rem; }
.brand-site .course-lesson-row__icon { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--zahra-purple); background: rgba(103, 40, 235, .1); border-radius: 10px 4px 10px 4px; }
.brand-site .course-lesson-row a,
.brand-site .course-lesson-row span:not(.course-lesson-row__icon) { overflow: hidden; color: var(--zahra-navy); font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.brand-site .course-lesson-row a:hover { color: var(--zahra-purple); }
.brand-site .course-lesson-row em { padding: .25rem .45rem; color: #287f58; background: rgba(40, 127, 88, .1); border-radius: 999px; font-size: .65rem; font-style: normal; white-space: nowrap; }
.brand-site .course-lesson-row > small { flex: 0 0 auto; color: var(--zahra-slate); font-size: .72rem; }

.brand-site .course-resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.brand-site .course-resource-card { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: .75rem; padding: 1rem; background: var(--zahra-white); border: 1px solid rgba(103, 40, 235, .13); border-radius: 17px 7px 17px 7px; box-shadow: 0 10px 25px rgba(3, 17, 48, .05); }
.brand-site .course-resource-card__icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; color: var(--zahra-purple); background: var(--zahra-light-lavender); border-radius: 15px 6px 15px 6px; font-size: 1.35rem; }
.brand-site .course-resource-card__icon--yellow { color: #ad7600; background: rgba(255, 202, 58, .22); }
.brand-site .course-resource-card h3 { margin: 0; font-size: .95rem; }
.brand-site .course-resource-card p { margin: .25rem 0 0; color: var(--zahra-slate); font-size: .75rem; }
.brand-site .course-resource-card__action,
.brand-site .course-resource-card__locked { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .7rem; border-radius: 10px 4px 10px 4px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.brand-site .course-resource-card__action {
    color: var(--zahra-white);
    background: var(--zahra-purple);
    border: 1px solid var(--zahra-purple);
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .2s ease, color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.brand-site .course-resource-card__action:hover,
.brand-site .course-resource-card__action:focus-visible {
    color: var(--zahra-navy);
    background: var(--zahra-yellow);
    border-color: var(--zahra-yellow);
    box-shadow: 0 8px 18px rgba(255, 202, 58, .22);
    transform: translateY(-1px);
}
.brand-site .course-resource-card__locked { color: var(--zahra-slate); background: var(--zahra-soft-gray); }
.brand-site .course-empty-state { padding: 2rem; color: var(--zahra-slate); text-align: center; background: rgba(255, 255, 255, .72); border: 1px dashed rgba(103, 40, 235, .22); border-radius: 17px 7px 17px 7px; }

.brand-site .course-bottom-cta { position: relative; padding: 2rem 0; overflow: hidden; background: var(--zahra-gradient-deep); }
.brand-site .course-bottom-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand-site .course-bottom-cta__inner span { color: var(--zahra-yellow); font-size: .85rem; }
.brand-site .course-bottom-cta h2 { margin: .25rem 0 0; color: var(--zahra-white); font-size: clamp(1.3rem, 2.4vw, 2rem); }
.brand-site .course-sticky-subscribe { position: fixed; right: 1.25rem; bottom: 1.2rem; z-index: 1030; display: inline-flex; align-items: center; gap: .65rem; min-height: 54px; padding: .85rem 1.15rem; color: var(--zahra-navy); background: var(--zahra-yellow); border: 0; border-radius: 16px 6px 16px 6px; box-shadow: 0 18px 35px rgba(3, 17, 48, .2); font-weight: 700; }
.brand-site .course-sticky-subscribe > i:first-child { color: var(--zahra-purple); }

.brand-site .course-plans-modal .modal-dialog { width: min(1180px, calc(100% - 2rem)); max-width: none; }
.brand-site .course-plans-modal .modal-content { overflow: hidden; background: var(--zahra-white); border: 1px solid rgba(103, 40, 235, .18); border-radius: 28px 12px 28px 12px; }
.brand-site .course-plans-modal .modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 2rem 2rem 1rem; border: 0; }
.brand-site .course-plans-modal .modal-header h2 { margin: .45rem 0 .25rem; font-size: clamp(1.4rem, 3vw, 2.3rem); }
.brand-site .course-plans-modal .modal-header p { margin: 0; color: var(--zahra-slate); font-size: .88rem; }
.brand-site .course-modal-close { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--zahra-navy); background: var(--zahra-light-lavender); border: 1px solid rgba(103, 40, 235, .15); border-radius: 50%; font-size: 1.25rem; }
.brand-site .course-modal-close:hover { color: var(--zahra-white); background: var(--zahra-purple); }
.brand-site .course-plans-modal .modal-body { padding: 1rem 2rem 2rem; }
.brand-site .course-plans-slider { display: flex; gap: 1rem; padding: .5rem .2rem 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: var(--zahra-purple) var(--zahra-light-lavender); }
.brand-site .course-plan-card { position: relative; display: flex; flex: 0 0 calc(33.333% - .7rem); flex-direction: column; min-height: 390px; padding: 1.3rem; scroll-snap-align: start; background: var(--zahra-white); border: 1px solid rgba(103, 40, 235, .16); border-radius: 22px 9px 22px 9px; box-shadow: 0 12px 28px rgba(3, 17, 48, .07); }
.brand-site .course-plan-card.is-featured { color: var(--zahra-white); background: var(--zahra-gradient); border-color: transparent; box-shadow: 0 18px 35px rgba(103, 40, 235, .25); }
.brand-site .course-plan-card__badge { position: absolute; top: 1rem; inset-inline-end: 1rem; padding: .35rem .55rem; color: var(--zahra-navy); background: var(--zahra-yellow); border-radius: 999px; font-size: .66rem; font-weight: 700; }
.brand-site .course-plan-card__type { color: var(--zahra-purple); font-size: .8rem; font-weight: 600; }
.brand-site .course-plan-card.is-featured .course-plan-card__type { color: rgba(255, 255, 255, .8); }
.brand-site .course-plan-card h3 { min-height: 38px; margin: .45rem 0 .8rem; font-size: 1.08rem; }
.brand-site .course-plan-card__price { display: flex; align-items: baseline; gap: .35rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(3, 17, 48, .1); }
.brand-site .course-plan-card.is-featured .course-plan-card__price { border-color: rgba(255, 255, 255, .24); }
.brand-site .course-plan-card__price strong { font-family: Arial, sans-serif !important; font-size: 1.7rem; }
.brand-site .course-plan-card__price span { color: var(--zahra-slate); font-size: .7rem; }
.brand-site .course-plan-card.is-featured .course-plan-card__price span { color: rgba(255, 255, 255, .76); }
.brand-site .course-plan-card ul { display: flex; flex: 1; flex-direction: column; gap: .7rem; margin: 1rem 0 1.25rem; padding: 0; list-style: none; }
.brand-site .course-plan-card li { display: flex; align-items: center; gap: .45rem; font-size: .8rem; }
.brand-site .course-plan-card li i { color: var(--zahra-purple); }
.brand-site .course-plan-card.is-featured li i { color: var(--zahra-yellow); }
.brand-site .course-plan-card li.is-disabled { color: #9ca3af; }
.brand-site .course-plan-card li.is-disabled i { color: #9ca3af; }
.brand-site .course-confirm-modal .modal-dialog { width: min(560px, calc(100% - 1rem)); max-width: none; }
.brand-site .course-confirm-modal .modal-content { overflow: hidden; border: 1px solid rgba(103, 40, 235, .18); border-radius: 28px 12px 28px 12px; }
.brand-site .course-confirm-modal .modal-body { position: relative; padding: 2rem; }
.brand-site .course-confirm-modal h2 { margin-top: .55rem; font-size: clamp(1.5rem, 4vw, 2rem); }
.brand-site .course-confirm-modal .modal-body > p { margin: 0 0 1.3rem; color: var(--zahra-slate); }
.brand-site .course-confirm-summary { display: flex; align-items: center; gap: .85rem; padding: .85rem; background: var(--zahra-light-lavender); border-radius: 15px 6px 15px 6px; }
.brand-site .course-confirm-summary img { width: 74px; height: 62px; flex: 0 0 auto; object-fit: cover; border-radius: 12px 5px 12px 5px; }
.brand-site .course-confirm-summary h3 { margin: 0 0 .25rem; font-size: .95rem; }
.brand-site .course-confirm-summary span { color: var(--zahra-slate); font-size: .72rem; line-height: 1.6; }
.brand-site .course-confirm-data { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 1rem 0; }
.brand-site .course-confirm-data span { display: flex; flex-direction: column; gap: .3rem; padding: .7rem; text-align: center; background: var(--zahra-soft-gray); border-radius: 12px 5px 12px 5px; }
.brand-site .course-confirm-data small { color: var(--zahra-slate); font-size: .68rem; }
.brand-site .course-confirm-data strong { font-size: .78rem; }
.brand-site .course-confirm-actions { display: grid; grid-template-columns: .75fr 1.25fr; gap: .6rem; }
.brand-site .course-success-icon { display: inline-flex; width: 70px; height: 70px; align-items: center; justify-content: center; color: #287f58; background: rgba(40, 127, 88, .12); border-radius: 22px 8px 22px 8px; font-size: 2rem; }
.brand-site .course-success-icon--error { color: #b33434; background: rgba(179, 52, 52, .1); }
.brand-site .course-confirm-modal .course-success-date { margin: 1rem 0 1.5rem; color: var(--zahra-purple); font-weight: 700; }

@media (max-width: 991.98px) {
    .brand-site .course-story-card__media { min-height: 470px; }
    .brand-site .course-story-card__content { min-height: 390px; }
    .brand-site .course-access-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .brand-site .course-plan-card { flex-basis: calc(50% - .5rem); }
}

@media (max-width: 767.98px) {
    .brand-site .course-page-hero__heading { display: block; }
    .brand-site .course-page-hero__status { margin-top: 1rem; }
    .brand-site .course-page-hero__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .brand-site .course-page-hero__facts span { justify-content: center; font-size: .75rem; }
    .brand-site .course-story-card { border-radius: 24px 10px 24px 10px; }
    .brand-site .course-story-card__media { min-height: 450px; }
    .brand-site .course-story-card__media-copy { top: 1.4rem; inset-inline-start: 1.2rem; }
    .brand-site .course-story-card__intro { inset-inline-start: 1.2rem; bottom: 1.2rem; }
    .brand-site .course-learning-map { inset-inline: .65rem; }
    .brand-site .course-learning-map__node { padding: .55rem .65rem; font-size: .68rem; }
    .brand-site .course-learning-map__node--root { width: 58px; height: 58px; font-size: 1.3rem; }
    .brand-site .course-story-card__content { min-height: 350px; padding: 1.5rem 1.2rem 1.7rem; }
    .brand-site .course-story-card__steps { margin: 1.2rem 0 1.4rem; }
    .brand-site .course-story-card__steps div { padding: .6rem; font-size: .68rem; }
    .brand-site .course-access-card__heading { display: block; }
    .brand-site .course-subscription-badge { margin-top: .8rem; }
    .brand-site .course-access-grid { gap: .55rem; }
    .brand-site .course-access-item { grid-template-columns: 36px 1fr; min-height: 106px; padding: .7rem; gap: .5rem; }
    .brand-site .course-access-item > i { width: 36px; height: 36px; font-size: 1rem; }
    .brand-site .course-access-item strong { font-size: .8rem; }
    .brand-site .course-access-item span { font-size: .64rem; }
    .brand-site .course-access-item > b { font-size: .64rem; }
    .brand-site .course-tabs { justify-content: stretch; gap: .25rem; }
    .brand-site .course-tab { min-width: 0; flex: 1; padding: .7rem .4rem; font-size: .72rem; }
    .brand-site .course-tab i { display: none; }
    .brand-site .course-unit-card__header { grid-template-columns: 34px 1fr 25px; gap: .65rem; padding: .85rem .75rem; }
    .brand-site .course-unit-card__title strong { font-size: .88rem; }
    .brand-site .course-unit-card__title small { font-size: .68rem; }
    .brand-site .course-unit-card__lessons { padding-inline: .75rem; }
    .brand-site .course-lesson-row { gap: .4rem; }
    .brand-site .course-lesson-row a,
    .brand-site .course-lesson-row span:not(.course-lesson-row__icon) { font-size: .76rem; }
    .brand-site .course-resource-grid { grid-template-columns: 1fr; }
    .brand-site .course-resource-card { grid-template-columns: 40px 1fr; }
    .brand-site .course-resource-card__icon { width: 40px; height: 40px; font-size: 1.1rem; }
    .brand-site .course-resource-card__action,
    .brand-site .course-resource-card__locked { grid-column: 1 / -1; justify-content: center; }
    .brand-site .course-bottom-cta__inner { display: block; }
    .brand-site .course-bottom-cta .zahra-btn { width: 100%; margin-top: 1rem; }
    .brand-site .course-sticky-subscribe { right: .75rem; bottom: .75rem; left: .75rem; justify-content: center; }
    .brand-site .course-plans-modal .modal-dialog { width: 100%; margin: 0; }
    .brand-site .course-plans-modal .modal-content { min-height: 100dvh; border: 0; border-radius: 0; }
    .brand-site .course-plans-modal .modal-header { padding: 1.4rem 1rem .7rem; }
    .brand-site .course-plans-modal .modal-body { padding: .7rem 1rem 1.4rem; }
    .brand-site .course-plans-slider { margin-inline: -.2rem; padding-inline: .2rem; }
    .brand-site .course-plan-card { flex-basis: 82%; min-height: 370px; }
    .brand-site .course-confirm-modal .modal-body { padding: 1.4rem 1rem; }
    .brand-site .course-confirm-data { gap: .35rem; }
    .brand-site .course-confirm-data span { padding: .55rem .35rem; }
    .brand-site .course-confirm-data small { font-size: .6rem; }
    .brand-site .course-confirm-data strong { font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
    .brand-site *,
    .brand-site *::before,
    .brand-site *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Homepage refinement from the approved client direction */
.brand-site .welcome-section {
    position: relative;
    padding: clamp(3rem, 6vw, 5.5rem) 0;
    background-color: var(--zahra-white);
    background-image: linear-gradient(135deg, rgba(230, 232, 253, .8) 0 8%, transparent 8% 100%),
        linear-gradient(315deg, rgba(160, 115, 252, .1) 0 7%, transparent 7% 100%);
    background-position: left top, right bottom;
    background-size: 280px 280px, 360px 360px;
}

.brand-site .welcome-section::before {
    display: none;
}

.brand-site .welcome-cta {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    min-height: 410px;
    padding: clamp(2.5rem, 6vw, 5rem);
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(160, 115, 252, .45);
    border-radius: 38px 12px 38px 12px;
    background: var(--zahra-navy);
    box-shadow: 0 24px 60px rgba(3, 17, 48, .2);
}

.brand-site .welcome-cta::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset-inline-start: -190px;
    top: -210px;
    width: 560px;
    height: 560px;
    border: 1px solid rgba(160, 115, 252, .48);
    transform: rotate(45deg);
}

.brand-site .welcome-cta::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .15;
    background: linear-gradient(135deg, transparent 0 45%, var(--zahra-lavender) 45% 46%, transparent 46% 100%);
    background-size: 86px 86px;
    pointer-events: none;
}

.brand-site .welcome-cta-copy,
.brand-site .welcome-visual {
    position: relative;
    z-index: 1;
}

.brand-site .welcome-cta-copy {
    text-align: start;
}

.brand-site .welcome-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: .35rem .85rem;
    color: var(--zahra-yellow);
    border: 1px solid rgba(255, 202, 58, .55);
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 500;
}

.brand-site .welcome-title {
    max-width: 760px;
    margin: 1.35rem 0 1rem;
    color: var(--zahra-white);
    text-align: start;
    font-size: clamp(2.3rem, 4.2vw, 4.5rem);
    font-weight: 700;
    line-height: 1.16;
}

.brand-site .welcome-title-primary {
    color: var(--zahra-white);
    font-weight: 700;
}

.brand-site .welcome-title-gradient {
    color: var(--zahra-light-lavender);
    background: linear-gradient(90deg, var(--zahra-purple) 0%, var(--zahra-lavender) 54%, var(--zahra-light-lavender) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
}

.brand-site .welcome-subtitle {
    max-width: 650px;
    margin: 0 0 1.9rem;
    color: rgba(230, 232, 253, .9);
    text-align: start;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    font-weight: 400;
    line-height: 1.9;
}

.brand-site .welcome-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand-site .welcome-btn {
    min-height: 54px;
    padding: .85rem 1.5rem;
    color: var(--zahra-navy) !important;
    background: var(--zahra-yellow) !important;
    border: 1px solid var(--zahra-yellow);
    border-radius: 14px 6px 14px 6px;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(255, 202, 58, .24);
}

.brand-site .welcome-btn:hover {
    color: var(--zahra-white) !important;
    background: var(--zahra-purple) !important;
    border-color: var(--zahra-purple);
}

.brand-site .welcome-btn i {
    font-size: 1.25rem;
}

.brand-site .welcome-action-note {
    color: rgba(230, 232, 253, .72);
    font-size: .9rem;
    font-weight: 400;
}

.brand-site .welcome-visual {
    display: flex;
    min-height: 280px;
    align-items: center;
    justify-content: center;
}

.brand-site .welcome-visual-frame {
    position: relative;
    display: flex;
    width: min(100%, 300px);
    min-height: 250px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(160, 115, 252, .72);
    border-radius: 26px 8px 26px 8px;
    transform: rotate(-4deg);
}

.brand-site .welcome-visual-frame::before {
    content: "";
    position: absolute;
    inset: 14px -14px -14px 14px;
    border: 2px solid var(--zahra-yellow);
    border-radius: 26px 8px 26px 8px;
    pointer-events: none;
}

.brand-site .welcome-visual-lockup {
    display: flex;
    width: 220px;
    min-height: 170px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .75rem;
    padding: 1.25rem;
    background: var(--zahra-white);
    border-radius: 18px 6px 18px 6px;
    box-shadow: 0 18px 30px rgba(3, 17, 48, .24);
    transform: rotate(4deg);
}

.brand-site .welcome-visual-lockup img {
    width: 170px;
    height: auto;
}

.brand-site .welcome-visual-lockup span {
    color: var(--zahra-purple);
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .02em;
}

.brand-site .welcome-visual-corner {
    position: absolute;
    z-index: 2;
    width: 78px;
    height: 5px;
    border-radius: 999px;
    background: var(--zahra-yellow);
}

.brand-site .welcome-visual-corner-top {
    top: -12px;
    inset-inline-end: 32px;
}

.brand-site .welcome-visual-corner-bottom {
    bottom: -12px;
    inset-inline-start: 32px;
}

@media (min-width: 992px) {
    .brand-site .welcome-title {
        max-width: none;
        white-space: nowrap;
        font-size: clamp(2.35rem, 3.5vw, 4rem);
    }
}

.brand-site .educational-services {
    padding-top: clamp(4.5rem, 7vw, 6.5rem);
    background: var(--zahra-light-lavender);
}

.brand-site .services-intro {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto clamp(2.5rem, 5vw, 4.25rem);
    text-align: center;
}

.brand-site .services-eyebrow {
    display: inline-block;
    margin-bottom: .6rem;
    color: var(--zahra-purple);
    font-size: .95rem;
    font-weight: 500;
}

.brand-site .services-heading {
    margin: 0;
    text-align: center;
    font-size: clamp(2rem, 3.4vw, 3.4rem);
    font-weight: 700;
}

.brand-site .services-heading .section-heading-dark {
    color: var(--zahra-navy);
    font-weight: 700;
}

.brand-site .services-heading .section-heading-primary {
    color: var(--zahra-purple);
    background: var(--zahra-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.brand-site .services-intro .heading-underline {
    margin: .8rem auto 0;
}

.brand-site .services-intro .heading-underline img {
    width: 104px;
}

.brand-site .services-intro .section-description {
    max-width: 650px;
    margin: 1.1rem auto 0;
    color: var(--zahra-slate);
    text-align: center;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 500;
    line-height: 1.9;
}

.brand-site .services-grid {
    position: relative;
    z-index: 1;
}

.brand-site .services-grid > [class*="col"] {
    display: flex;
}

.brand-site .services-grid .service-card {
    display: flex;
    width: 100%;
    min-height: 270px;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    padding: 2rem 1rem 1.65rem;
    text-align: center;
}

.brand-site .services-grid .service-icon {
    flex: 0 0 auto;
    margin-bottom: 1.05rem !important;
}

.brand-site .services-grid .service-title {
    margin-bottom: .7rem;
    color: var(--zahra-navy);
    font-size: 1.12rem;
    font-weight: 700;
}

.brand-site .services-grid .service-description {
    margin: 0;
    color: var(--zahra-slate);
    font-size: .92rem;
    font-weight: 400;
    line-height: 1.85;
}

@media (max-width: 991.98px) {
    .brand-site .welcome-cta {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .brand-site .welcome-cta-copy {
        text-align: center;
    }

    .brand-site .welcome-title,
    .brand-site .welcome-subtitle {
        margin-inline: auto;
        text-align: center;
    }

    .brand-site .welcome-actions {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .brand-site .welcome-section {
        padding: 2.5rem 0 4rem;
    }

    .brand-site .welcome-cta {
        min-height: 0;
        padding: 2.25rem 1.25rem 2.5rem;
        border-radius: 28px 10px 28px 10px;
    }

    .brand-site .welcome-kicker {
        font-size: .78rem;
    }

    .brand-site .welcome-title {
        margin-top: 1.1rem;
        font-size: clamp(2rem, 9vw, 2.75rem);
        line-height: 1.25;
    }

    .brand-site .welcome-title-gradient {
        display: inline;
    }

    .brand-site .welcome-subtitle {
        margin-bottom: 1.5rem;
        font-size: .92rem;
        line-height: 1.9;
    }

    .brand-site .welcome-actions {
        gap: .75rem;
    }

    .brand-site .welcome-btn {
        min-height: 50px;
        padding: .75rem 1.25rem;
        font-size: .95rem;
    }

    .brand-site .welcome-action-note {
        width: 100%;
        font-size: .78rem;
    }

    .brand-site .welcome-visual {
        min-height: 220px;
    }

    .brand-site .welcome-visual-frame {
        width: min(100%, 260px);
        min-height: 210px;
    }

    .brand-site .welcome-visual-lockup {
        width: 190px;
        min-height: 145px;
    }

    .brand-site .welcome-visual-lockup img {
        width: 145px;
    }

    .brand-site .services-intro {
        margin-bottom: 2.5rem;
    }

    .brand-site .services-eyebrow {
        font-size: .82rem;
    }

    .brand-site .services-heading {
        font-size: clamp(1.75rem, 8vw, 2.35rem);
    }

    .brand-site .services-intro .section-description {
        font-size: .9rem;
    }

    .brand-site .services-grid .service-card {
        min-height: 220px;
        padding: 1.35rem .65rem 1.2rem;
    }

    .brand-site .services-grid .service-icon {
        width: 62px;
        height: 62px;
        margin-bottom: .85rem !important;
    }

    .brand-site .services-grid .service-icon img {
        width: 38px;
        height: 38px;
    }

    .brand-site .services-grid .service-title {
        font-size: .9rem;
    }

    .brand-site .services-grid .service-description {
        font-size: .72rem;
        line-height: 1.75;
    }

}

/* Generated branded hero artwork */
.brand-site .hero-banner-section {
    padding-top: clamp(1.25rem, 3vw, 2.5rem);
}

.brand-site .hero-banner-section .home-slider,
.brand-site .hero-artboard {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 34px 12px 34px 12px;
}

.brand-site .hero-banner-section .home-slider {
    background: var(--zahra-white);
    border: 1px solid rgba(3, 17, 48, .1);
    box-shadow: var(--zahra-shadow);
}

.brand-site .hero-artwork {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.brand-site .hero-artboard::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, .16) 100%);
}

.brand-site .hero-copy {
    position: absolute;
    z-index: 2;
    top: 50%;
    inset-inline-start: 6%;
    width: min(38%, 430px);
    transform: translateY(-50%);
    text-align: start;
}

.brand-site .hero-kicker {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: .3rem .8rem;
    color: var(--zahra-purple);
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(103, 40, 235, .34);
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 500;
}

.brand-site .hero-copy h2 {
    margin: 1rem 0 .7rem;
    color: var(--zahra-navy);
    font-size: clamp(2rem, 3.2vw, 3.6rem);
    font-weight: 700;
    line-height: 1.15;
}

.brand-site .hero-copy h2 span {
    color: var(--zahra-purple);
    background: var(--zahra-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-site .hero-copy p {
    max-width: 330px;
    margin: 0 0 1.3rem;
    color: var(--zahra-slate);
    font-size: clamp(.95rem, 1.35vw, 1.1rem);
    font-weight: 400;
    line-height: 1.8;
}

.brand-site .hero-cta {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.15rem;
    color: var(--zahra-white) !important;
    background: var(--zahra-purple);
    border: 1px solid var(--zahra-purple);
    border-radius: 13px 5px 13px 5px;
    font-size: .95rem;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(103, 40, 235, .22);
}

.brand-site .hero-cta:hover {
    color: var(--zahra-navy) !important;
    background: var(--zahra-yellow);
    border-color: var(--zahra-yellow);
}

.brand-site .hero-cta i {
    font-size: 1.15rem;
}

@media (max-width: 767.98px) {
    .brand-site .hero-banner-section {
        padding-top: .75rem;
    }

    .brand-site .hero-banner-section .home-slider,
    .brand-site .hero-artboard {
        min-height: 540px;
        aspect-ratio: auto;
        border-radius: 26px 9px 26px 9px;
    }

    .brand-site .hero-artwork {
        object-position: 28% center;
    }

    .brand-site .hero-artboard::after {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 35%, rgba(3, 17, 48, .25) 100%);
    }

    .brand-site .hero-copy {
        top: auto;
        inset-inline: 1rem;
        bottom: 1rem;
        width: auto;
        padding: 1.15rem 1rem 1.25rem;
        transform: none;
        text-align: center;
        background: rgba(3, 17, 48, .92);
        border: 1px solid rgba(160, 115, 252, .55);
        border-radius: 20px 6px 20px 6px;
    }

    .brand-site .hero-kicker {
        color: var(--zahra-yellow);
        background: transparent;
        border-color: rgba(255, 202, 58, .55);
        font-size: .75rem;
    }

    .brand-site .hero-copy h2 {
        margin: .75rem 0 .5rem;
        color: var(--zahra-white);
        font-size: 1.9rem;
    }

    .brand-site .hero-copy p {
        max-width: none;
        margin-bottom: 1rem;
        color: rgba(230, 232, 253, .9);
        font-size: .85rem;
    }

    .brand-site .hero-cta {
        min-height: 44px;
        color: var(--zahra-navy) !important;
        background: var(--zahra-yellow);
        border-color: var(--zahra-yellow);
        font-size: .88rem;
    }
}

/* Homepage copy refinement and welcome comparison option */
@media (min-width: 768px) {
    .brand-site .hero-copy {
        width: min(46%, 520px);
    }

    .brand-site .hero-copy h2 {
        white-space: nowrap;
        font-size: clamp(1.8rem, 3vw, 3.35rem);
    }
}

.brand-site .welcome-section--option-b {
    background: var(--zahra-light-lavender);
}

.brand-site .welcome-option-b {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
    align-items: stretch;
    min-height: 420px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(103, 40, 235, .2);
    border-radius: 16px 42px 16px 42px;
    background: var(--zahra-white);
    box-shadow: 0 24px 60px rgba(3, 17, 48, .12);
}

.brand-site .welcome-option-b::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .55;
    background: linear-gradient(135deg, transparent 0 48%, rgba(230, 232, 253, .72) 48% 49%, transparent 49% 100%);
    background-size: 112px 112px;
    pointer-events: none;
}

.brand-site .welcome-option-b__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(2.5rem, 6vw, 5rem);
    text-align: start;
}

.brand-site .welcome-option-b__title {
    max-width: 680px;
    margin: 0 0 1.2rem;
    color: var(--zahra-navy);
    font-size: clamp(2.2rem, 4.4vw, 4.2rem);
    font-weight: 700;
    line-height: 1.2;
}

.brand-site .welcome-option-b__title span,
.brand-site .welcome-option-b__title strong {
    display: block;
}

.brand-site .welcome-option-b__title strong {
    color: var(--zahra-purple);
    background: var(--zahra-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
}

.brand-site .welcome-option-b__subtitle {
    max-width: 520px;
    margin: 0 0 2rem;
    color: var(--zahra-slate);
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 400;
    line-height: 1.9;
}

.brand-site .welcome-option-b__btn {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.5rem;
    color: var(--zahra-navy) !important;
    background: var(--zahra-yellow);
    border: 1px solid var(--zahra-yellow);
    border-radius: 14px 6px 14px 6px;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(255, 202, 58, .24);
}

.brand-site .welcome-option-b__btn:hover {
    color: var(--zahra-white) !important;
    background: var(--zahra-purple);
    border-color: var(--zahra-purple);
}

.brand-site .welcome-option-b__btn i {
    font-size: 1.25rem;
}

.brand-site .welcome-option-b__visual {
    position: relative;
    display: flex;
    min-height: 320px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--zahra-navy);
    border-radius: 0 34px 0 34px;
}

.brand-site .welcome-option-b__visual::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .22;
    background: linear-gradient(135deg, transparent 0 48%, var(--zahra-lavender) 48% 49%, transparent 49% 100%);
    background-size: 88px 88px;
}

.brand-site .welcome-option-b__mark {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(52%, 230px);
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    padding: 1.65rem;
    background: var(--zahra-white);
    border: 2px solid var(--zahra-yellow);
    border-radius: 42% 12% 42% 12%;
    box-shadow: 18px 18px 0 rgba(160, 115, 252, .45);
    transform: rotate(-6deg);
}

.brand-site .welcome-option-b__mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: rotate(6deg);
}

.brand-site .welcome-option-b__shape,
.brand-site .welcome-option-b__line {
    position: absolute;
    display: block;
    pointer-events: none;
}

.brand-site .welcome-option-b__shape--one {
    top: 12%;
    inset-inline-end: 10%;
    width: 88px;
    height: 88px;
    border: 2px solid var(--zahra-purple);
    border-radius: 50%;
}

.brand-site .welcome-option-b__shape--two {
    bottom: 10%;
    inset-inline-start: 8%;
    width: 72px;
    height: 72px;
    border: 2px solid var(--zahra-yellow);
    transform: rotate(45deg);
}

.brand-site .welcome-option-b__line {
    width: 84px;
    height: 5px;
    border-radius: 999px;
    background: var(--zahra-yellow);
}

.brand-site .welcome-option-b__line--one {
    top: 18%;
    inset-inline-start: 12%;
}

.brand-site .welcome-option-b__line--two {
    bottom: 14%;
    inset-inline-end: 12%;
    background: var(--zahra-lavender);
}

@media (max-width: 991.98px) {
    .brand-site .welcome-option-b {
        grid-template-columns: 1fr;
    }

    .brand-site .welcome-option-b__copy {
        align-items: center;
        text-align: center;
    }

    .brand-site .welcome-option-b__visual {
        min-height: 260px;
        border-radius: 0 0 16px 42px;
    }
}

@media (max-width: 767.98px) {
    .brand-site .hero-copy h2 {
        white-space: normal;
    }

    .brand-site .welcome-option-b {
        border-radius: 12px 28px 12px 28px;
    }

    .brand-site .welcome-option-b__copy {
        padding: 2.5rem 1.25rem 2rem;
    }

    .brand-site .welcome-option-b__title {
        font-size: clamp(2rem, 9vw, 2.75rem);
    }

    .brand-site .welcome-option-b__subtitle {
        margin-bottom: 1.5rem;
        font-size: .92rem;
    }

    .brand-site .welcome-option-b__btn {
        min-height: 50px;
        padding: .75rem 1.25rem;
        font-size: .95rem;
    }

    .brand-site .welcome-option-b__visual {
        min-height: 220px;
        border-radius: 0 0 12px 28px;
    }

    .brand-site .welcome-option-b__mark {
        width: 150px;
        padding: 1.1rem;
    }
}

/* Service icon library and Arabic testimonial direction */
.brand-site .services-grid .service-icon {
    background: var(--zahra-light-lavender);
}

.brand-site .services-grid .service-icon img {
    width: 48px;
    height: 47px;
    object-fit: contain;
}

.brand-site .testimonials-section,
.brand-site .testimonials-slider,
.brand-site .testimonials-slider .slick-list,
.brand-site .testimonials-slider .slick-track,
.brand-site .testimonial-card {
    direction: rtl;
}

.brand-site .testimonial-card {
    text-align: right;
}

.brand-site .testimonial-card .user_info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    direction: rtl;
    text-align: right;
}

.brand-site .testimonial-author-name,
.brand-site .testimonial-author-role,
.brand-site .testimonial-text {
    text-align: right;
}

.brand-site .testimonial-quote-icon {
    right: auto;
    left: auto;
    inset-inline-end: 30px;
}

.brand-site .testimonials-slider .slick-prev {
    right: -60px;
    left: auto;
}

.brand-site .testimonials-slider .slick-next {
    left: -60px;
    right: auto;
}

@media (max-width: 992px) {
    .brand-site .testimonials-slider .slick-prev {
        right: -50px;
    }

    .brand-site .testimonials-slider .slick-next {
        left: -50px;
    }
}

/* Public catalogue surfaces */
.brand-site #main {
    position: relative;
    background: var(--zahra-white);
}

.brand-site #main::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    opacity: .42;
    pointer-events: none;
    background-image:
        linear-gradient(135deg, transparent 0 49%, rgba(160, 115, 252, .12) 49% 50%, transparent 50% 100%),
        linear-gradient(315deg, transparent 0 49%, rgba(230, 232, 253, .78) 49% 50%, transparent 50% 100%);
    background-position: 0 0, 100% 100%;
    background-size: 180px 180px, 240px 240px;
}

.brand-site #main > *:not(.modal) {
    position: relative;
    z-index: 1;
}

.brand-site #main > .modal,
.brand-site .modal {
    z-index: 1055 !important;
}

.brand-site .browse-categories,
.brand-site .course-filter-section,
.brand-site .courses-grid-section,
.brand-site .course-details-section {
    background: transparent !important;
}

.brand-site .public-page-intro {
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
}

.brand-site .public-page-intro--compact {
    margin-bottom: 1.6rem;
}

.brand-site .public-page-kicker {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .7rem;
    padding: .35rem .85rem;
    color: var(--zahra-purple);
    background: rgba(230, 232, 253, .7);
    border: 1px solid rgba(103, 40, 235, .16);
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 500;
}

.brand-site .public-page-kicker i {
    color: var(--zahra-yellow);
    font-size: 1.05rem;
}

.brand-site .public-page-intro h1 {
    margin: 0 0 .55rem;
    color: var(--zahra-navy);
    font-size: clamp(2rem, 3.7vw, 3.35rem);
    font-weight: 700;
    line-height: 1.2;
}

.brand-site .public-page-intro p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--zahra-slate);
    font-size: 1rem;
    line-height: 1.9;
}

.brand-site .browse-categories {
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: clamp(4rem, 7vw, 6rem);
}

.brand-site .browse-categories-tight {
    padding-top: clamp(2.5rem, 5vw, 4rem);
}

.brand-site #categoriesGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1.1rem !important;
    margin-inline: 0;
}

.brand-site #categoriesGrid > .cat-grid-item {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    padding-inline: 0 !important;
}

.brand-site .cat-card {
    min-height: 230px;
    padding: 1.5rem;
    border-radius: 24px 12px 24px 12px;
    background: rgba(255, 255, 255, .94);
    border-color: rgba(103, 40, 235, .16);
    box-shadow: 0 14px 36px rgba(3, 17, 48, .08);
}

.brand-site .cat-card::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: 64px;
    height: 64px;
    border-top: 2px solid var(--zahra-yellow);
    border-inline-end: 2px solid var(--zahra-yellow);
    border-radius: 0 12px 0 0;
    pointer-events: none;
}

.brand-site .cat-card-top {
    align-items: center;
    gap: .8rem;
    margin-bottom: 1.4rem;
}

.brand-site .cat-card-icon {
    width: 52px;
    height: 52px;
    color: var(--zahra-purple);
    background: var(--zahra-light-lavender);
    border-radius: 17px;
    font-size: 1.4rem;
}

.brand-site .cat-card-leaf .cat-card-icon {
    color: var(--zahra-purple);
    background: var(--zahra-pale-yellow);
}

.brand-site .cat-card-title {
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
    font-weight: 700;
}

.brand-site .cat-card-pills {
    gap: .45rem;
    margin-bottom: 1.25rem;
}

.brand-site .cat-pill {
    padding: .45rem .75rem;
    color: var(--zahra-slate);
    background: var(--zahra-soft-gray);
    border-color: rgba(3, 17, 48, .08);
    font-size: .78rem;
}

.brand-site .cat-card-footer {
    padding-top: 1rem;
    border-top-color: rgba(3, 17, 48, .1);
}

.brand-site .cat-card-cta {
    min-height: 44px;
    padding: .65rem .95rem;
    color: var(--zahra-navy);
    background: var(--zahra-light-lavender);
    border-radius: 999px;
    font-size: .88rem;
}

.brand-site .cat-card:hover .cat-card-cta {
    color: var(--zahra-navy);
    background: var(--zahra-yellow);
}

.brand-site .cat-badge-pill {
    padding: .55rem .9rem;
    color: var(--zahra-purple);
    background: var(--zahra-light-lavender);
    font-size: .82rem;
}

.brand-site .cat-card-arrow {
    width: 38px;
    height: 38px;
    color: var(--zahra-navy);
    background: var(--zahra-soft-gray);
}

.brand-site .cat-card:hover .cat-card-arrow {
    color: var(--zahra-navy);
    background: var(--zahra-yellow);
}

.brand-site .courses-grid-section {
    padding-top: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: clamp(4rem, 7vw, 6rem);
}

.brand-site .courses-grid-section .courses-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 360px));
    justify-content: center;
    gap: 1.25rem !important;
    margin-inline: 0;
}

.brand-site .courses-grid-section .courses-row > [class*="col-"] {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    padding-inline: 0 !important;
}

.brand-site .course-card-container,
.brand-site .course-card {
    height: 100%;
    border-radius: 24px 12px 24px 12px;
    background: rgba(255, 255, 255, .96);
    border-color: rgba(103, 40, 235, .16);
    box-shadow: 0 14px 36px rgba(3, 17, 48, .1);
}

.brand-site .course-image-custom {
    height: 210px;
    background: var(--zahra-light-lavender);
}

.brand-site .course-content-custom {
    padding: 1.25rem 1.2rem 1.1rem;
}

.brand-site .course-title-custom {
    margin-bottom: .55rem;
    font-size: 1.18rem;
}

.brand-site .course-desc-text {
    min-height: 52px;
    color: var(--zahra-slate) !important;
    line-height: 1.8;
}

.brand-site .course-meta-bottom-custom {
    padding-top: .9rem;
    border-top: 1px solid rgba(3, 17, 48, .08);
}

.brand-site .course-meta-item {
    color: var(--zahra-slate) !important;
}

.brand-site .course-action-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px 6px 14px 6px;
}

/* Course details: keep the proven information architecture, give every surface a brand role. */
.brand-site .course-details-section {
    padding-top: clamp(2.5rem, 5vw, 4.5rem);
    padding-bottom: clamp(4rem, 7vw, 6rem);
}

.brand-site .course-header,
.brand-site .learning-outcomes,
.brand-site .course-curriculum,
.brand-site .course-sidebar-card > * {
    position: relative;
}

.brand-site .course-header {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(103, 40, 235, .14);
    border-radius: 28px 12px 28px 12px;
    box-shadow: var(--zahra-shadow-sm);
}

.brand-site .course-header h1,
.brand-site .learning-outcomes h3,
.brand-site .course-curriculum h3 {
    color: var(--zahra-navy);
}

.brand-site .course-header p {
    color: var(--zahra-slate);
}

.brand-site .course-meta-bar {
    padding: 1rem 0;
    background: transparent;
}

.brand-site .course-meta-top-row {
    padding: .9rem 1rem;
    background: var(--zahra-light-lavender);
    border-radius: 16px;
}

.brand-site .learning-outcomes,
.brand-site .course-curriculum {
    padding: 1.25rem;
    background: rgba(255, 255, 255, .72);
    border-radius: 24px 12px 24px 12px;
}

.brand-site .outcome-card,
.brand-site .curriculum-section,
.brand-site .course-info-card,
.brand-site .course-resources,
.brand-site .ask-teacher-card,
.brand-site .knowledge-test-card {
    background: rgba(255, 255, 255, .96);
    border-color: rgba(103, 40, 235, .14);
    box-shadow: 0 10px 26px rgba(3, 17, 48, .06);
}

.brand-site .outcome-card {
    min-height: 86px;
    height: auto;
    padding: 1rem;
}

.brand-site .curriculum-section {
    border-radius: 18px 8px 18px 8px;
}

.brand-site .section-header {
    background: var(--zahra-light-lavender);
}

.brand-site .lesson-item {
    border-top-color: rgba(3, 17, 48, .09);
}

.brand-site .course-media img {
    border-radius: 24px 10px 24px 10px;
}

/* Auth modals: keep the close control in view and make the phone field explicit. */
.brand-site .modal-dialog {
    width: min(calc(100% - 1.5rem), 620px);
    max-width: 620px;
    margin: .75rem auto;
}

.brand-site .modal-content.modal-rounded {
    max-height: calc(100dvh - 1.5rem);
    overflow: hidden;
    border: 1px solid rgba(103, 40, 235, .18);
    border-radius: 28px 12px 28px 12px;
    background: var(--zahra-white);
}

.brand-site .modal-content.modal-rounded > .modal-body {
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
    scrollbar-color: var(--zahra-purple) var(--zahra-light-lavender);
}

.brand-site .modal-close-custom {
    top: .9rem !important;
    inset-inline-start: .9rem !important;
    inset-inline-end: auto !important;
    z-index: 20 !important;
    display: inline-flex !important;
    width: 38px !important;
    height: 38px !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    color: var(--zahra-navy) !important;
    background: var(--zahra-light-lavender) !important;
    background-image: none !important;
    border: 1px solid rgba(103, 40, 235, .18) !important;
    border-radius: 50% !important;
    opacity: 1 !important;
}

.brand-site .modal-close-custom::before {
    content: "×";
    display: block;
    font-family: Arial, sans-serif !important;
    font-size: 1.65rem;
    font-weight: 400;
    line-height: 1;
}

.brand-site .modal-close-custom:hover {
    color: var(--zahra-white) !important;
    background: var(--zahra-purple) !important;
}

.brand-site .modal-title-custom {
    color: var(--zahra-navy) !important;
    font-weight: 700;
}

.brand-site .modal-subtitle {
    color: var(--zahra-slate) !important;
}

.brand-site .brand-phone-field {
    display: flex;
    min-height: 54px;
    align-items: stretch;
    overflow: hidden;
    background: var(--zahra-white);
    border: 1px solid rgba(3, 17, 48, .16);
    border-radius: var(--zahra-radius-sm);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.brand-site .brand-phone-field:focus-within {
    border-color: var(--zahra-purple);
    box-shadow: 0 0 0 4px rgba(103, 40, 235, .12);
}

.brand-site .brand-phone-prefix {
    display: inline-flex;
    min-width: 116px;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    color: var(--zahra-navy);
    background: var(--zahra-light-lavender);
    border-inline-end: 1px solid rgba(103, 40, 235, .16);
    font-family: Arial, sans-serif !important;
    font-size: .95rem;
    font-weight: 700;
}

.brand-site .brand-phone-prefix img {
    width: 25px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
}

.brand-site .brand-phone-number {
    flex: 1;
    min-width: 0;
    min-height: 52px !important;
    padding-inline: 1rem !important;
    color: var(--zahra-navy) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    direction: ltr;
    text-align: left !important;
    font-family: Arial, sans-serif !important;
    letter-spacing: .04em;
}

@media (max-width: 767.98px) {
    .brand-site .public-page-intro {
        margin-bottom: 1.5rem;
    }

    .brand-site .public-page-intro h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .brand-site .public-page-intro p {
        font-size: .9rem;
    }

    .brand-site #categoriesGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .75rem !important;
    }

    .brand-site .cat-card {
        min-height: 190px;
        padding: 1rem .8rem;
        border-radius: 18px 9px 18px 9px;
    }

    .brand-site .cat-card-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 1.1rem;
    }

    .brand-site .cat-card-title {
        font-size: .95rem;
    }

    .brand-site .cat-card-cta {
        min-height: 38px;
        padding: .45rem .6rem;
        font-size: .7rem;
    }

    .brand-site .courses-grid-section .courses-row {
        grid-template-columns: minmax(0, 360px);
    }

    .brand-site .course-header,
    .brand-site .learning-outcomes,
    .brand-site .course-curriculum {
        padding: 1rem;
    }

    .brand-site .modal-dialog {
        width: calc(100% - 1rem);
        margin: .5rem auto;
    }

    .brand-site .modal-content.modal-rounded,
    .brand-site .modal-content.modal-rounded > .modal-body {
        max-height: calc(100dvh - 1rem);
    }
}

/* Final review pass: catalogue, welcome alternatives and lesson workspace */

/* Classic welcome remains available as the primary version. Keep its dark,
   geometric character while keeping the headline in its own text column. */
.brand-site .welcome-section--classic .welcome-cta {
    grid-template-columns: minmax(0, 1.15fr) minmax(270px, .85fr);
}

.brand-site .welcome-section--classic .welcome-cta-copy,
.brand-site .welcome-section--classic .welcome-visual {
    min-width: 0;
}

.brand-site .welcome-section--classic .welcome-cta-copy {
    position: relative;
    z-index: 3;
    overflow: visible;
}

.brand-site .welcome-section--classic .welcome-title {
    display: block;
    max-width: 100%;
    overflow: visible;
    white-space: normal !important;
    background: transparent !important;
    background-image: none !important;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.brand-site .welcome-section--classic .welcome-title-primary {
    display: inline;
    background: transparent !important;
}

.brand-site .welcome-section--classic .welcome-title-gradient {
    display: inline;
    background-color: transparent !important;
    background-image: var(--zahra-gradient) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent;
}

.brand-site .welcome-section--classic .welcome-visual {
    position: relative;
    z-index: 1;
}

/* The catalogue uses a branded pathway tile instead of a generic folder card. */
.brand-site #categoriesGrid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
    gap: 1.25rem !important;
}

.brand-site .cat-card {
    position: relative;
    display: flex;
    min-height: 270px;
    flex-direction: column;
    padding: 1.35rem;
    overflow: hidden;
    color: var(--zahra-navy);
    border: 0;
    border-radius: 28px 10px 28px 10px;
    background: var(--zahra-light-lavender);
    box-shadow: 0 18px 34px rgba(103, 40, 235, .13);
    isolation: isolate;
}

.brand-site .cat-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset-inline-end: -64px;
    top: -74px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(255, 202, 58, .72);
    border-radius: 42% 58% 50% 50%;
    transform: rotate(38deg);
    pointer-events: none;
}

.brand-site .cat-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset-inline-start: -48px;
    bottom: -76px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(103, 40, 235, .22);
    border-radius: 50%;
    pointer-events: none;
}

.brand-site .cat-card:hover {
    color: var(--zahra-navy);
    box-shadow: 0 24px 45px rgba(103, 40, 235, .22);
    transform: translateY(-6px);
}

.brand-site .cat-card-branch {
    color: var(--zahra-white);
    background: var(--zahra-navy);
    box-shadow: 0 20px 38px rgba(3, 17, 48, .2);
}

.brand-site .cat-card-branch:hover {
    color: var(--zahra-white);
}

.brand-site .cat-card-branch::after {
    border-color: rgba(160, 115, 252, .42);
}

.brand-site .cat-card-leaf:nth-child(3n) {
    background: var(--zahra-white);
    border: 1px solid rgba(103, 40, 235, .18);
}

.brand-site .cat-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.brand-site .cat-card-emblem {
    display: inline-flex;
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    align-items: center;
    justify-content: center;
    padding: .8rem;
    background: var(--zahra-white);
    border: 1px solid rgba(255, 202, 58, .55);
    border-radius: 24px 8px 24px 8px;
    box-shadow: 8px 8px 0 rgba(255, 202, 58, .9);
}

.brand-site .cat-card-emblem img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-site .cat-card-heading {
    min-width: 0;
    padding-top: .1rem;
}

.brand-site .cat-card-eyebrow {
    display: block;
    margin-bottom: .35rem;
    color: var(--zahra-purple);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .02em;
}

.brand-site .cat-card-branch .cat-card-eyebrow {
    color: var(--zahra-yellow);
}

.brand-site .cat-card-title {
    margin: 0;
    color: inherit;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 700;
    line-height: 1.35;
}

.brand-site .cat-card-pills {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0 0 1.25rem;
}

.brand-site .cat-pill {
    max-width: 100%;
    padding: .42rem .7rem;
    overflow: hidden;
    color: var(--zahra-slate);
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(3, 17, 48, .08);
    border-radius: 8px 4px 8px 4px;
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-site .cat-card-branch .cat-pill,
.brand-site .cat-card-leaf:nth-child(3n) .cat-pill {
    background: var(--zahra-soft-gray);
}

.brand-site .cat-card-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(3, 17, 48, .12);
}

.brand-site .cat-card-branch .cat-card-footer {
    border-top-color: rgba(255, 255, 255, .2);
}

.brand-site .cat-card-cta,
.brand-site .cat-badge-pill {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: .45rem;
    padding: .55rem .8rem;
    border-radius: 10px 4px 10px 4px;
    font-size: .82rem;
    font-weight: 500;
}

.brand-site .cat-card-availability {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: .5rem;
    color: var(--zahra-navy);
    font-size: .82rem;
    font-weight: 600;
}

.brand-site .cat-card-availability-dot {
    width: .62rem;
    height: .62rem;
    flex: 0 0 .62rem;
    border-radius: 50%;
    background: var(--zahra-yellow);
    box-shadow: 0 0 0 4px rgba(255, 202, 56, .18);
}

.brand-site .cat-card-availability.is-ready .cat-card-availability-dot {
    background: #32b56b;
    box-shadow: 0 0 0 4px rgba(50, 181, 107, .14);
}

.brand-site .cat-card-availability.is-empty {
    color: var(--zahra-slate);
}

.brand-site .cat-card-cta {
    color: var(--zahra-navy);
    background: var(--zahra-yellow);
}

.brand-site .cat-card-cta i {
    font-size: 1.1rem;
}

.brand-site .cat-badge-pill {
    color: var(--zahra-purple);
    background: rgba(255, 255, 255, .92);
}

.brand-site .cat-card-arrow {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: var(--zahra-navy);
    background: var(--zahra-yellow);
    border-radius: 50%;
    font-size: 1.1rem;
}

/* Keep catalogue cards natural: the legacy .course-image height:100% caused the
   image wrapper to consume the full card and pushed the actual content below it. */
.brand-site .courses-grid-section .course-card-container,
.brand-site .courses-grid-section .course-card {
    height: auto !important;
    min-height: 0 !important;
    align-self: start;
}

.brand-site .courses-grid-section .course-image,
.brand-site .course-card .course-image {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    object-fit: initial;
    transform: none !important;
}

.brand-site .course-image-custom {
    display: block;
    width: 100%;
    height: 210px !important;
    object-fit: cover;
}

.brand-site .course-content-custom {
    height: auto !important;
    min-height: 0 !important;
}

/* Welcome option C: a learning path with the headline in normal document flow. */
.brand-site .welcome-title,
.brand-site .welcome-title-primary,
.brand-site .welcome-title-gradient,
.brand-site .welcome-option-b__title,
.brand-site .welcome-option-b__title span,
.brand-site .welcome-option-b__title strong {
    background-color: transparent !important;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.brand-site .welcome-title-gradient {
    background-image: var(--zahra-gradient) !important;
}

.brand-site .welcome-section--option-c {
    padding: clamp(3rem, 6vw, 5.5rem) 0;
    background: var(--zahra-light-lavender);
}

.brand-site .welcome-secondary-section {
    position: relative;
    padding: clamp(3.5rem, 7vw, 6rem) 0;
    background: var(--zahra-light-lavender);
}

.brand-site .welcome-secondary-heading {
    max-width: 720px;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.brand-site .welcome-secondary-heading span {
    display: inline-flex;
    margin-bottom: .55rem;
    padding: .35rem .8rem;
    color: var(--zahra-purple);
    background: var(--zahra-pale-yellow);
    border-radius: 9px 4px 9px 4px;
    font-size: .82rem;
    font-weight: 500;
}

.brand-site .welcome-secondary-heading h2 {
    margin: 0 0 .35rem;
    color: var(--zahra-navy);
    font-size: clamp(1.7rem, 3vw, 2.65rem);
    font-weight: 700;
    line-height: 1.25;
}

.brand-site .welcome-secondary-heading p {
    margin: 0;
    color: var(--zahra-slate);
    font-size: .95rem;
    line-height: 1.8;
}

.brand-site .welcome-option-c {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(260px, .88fr);
    align-items: stretch;
    min-height: 460px;
    overflow: hidden;
    border: 1px solid rgba(103, 40, 235, .18);
    border-radius: 34px 12px 34px 12px;
    background: var(--zahra-white);
    box-shadow: var(--zahra-shadow);
}

.brand-site .welcome-option-c__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(2.5rem, 6vw, 5rem);
    text-align: start;
}

.brand-site .welcome-option-c__kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: .45rem .85rem;
    color: var(--zahra-purple);
    background: var(--zahra-pale-yellow);
    border-radius: 10px 4px 10px 4px;
    font-size: .85rem;
    font-weight: 500;
}

.brand-site .welcome-option-c__title {
    max-width: 620px;
    margin: 0 0 1rem;
    color: var(--zahra-navy);
    font-size: clamp(2.2rem, 4.4vw, 4.2rem);
    font-weight: 700;
    line-height: 1.2;
}

.brand-site .welcome-option-c__title span,
.brand-site .welcome-option-c__title strong {
    display: block;
}

.brand-site .welcome-option-c__title strong {
    color: var(--zahra-purple);
    background: var(--zahra-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
}

.brand-site .welcome-option-c__subtitle {
    margin: 0 0 1.8rem;
    color: var(--zahra-slate);
    font-size: 1.1rem;
    line-height: 1.9;
}

.brand-site .welcome-option-c__btn {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.45rem;
    color: var(--zahra-navy) !important;
    background: var(--zahra-yellow);
    border: 1px solid var(--zahra-yellow);
    border-radius: 14px 6px 14px 6px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(255, 202, 58, .24);
}

.brand-site .welcome-option-c__btn:hover {
    color: var(--zahra-white) !important;
    background: var(--zahra-purple);
    border-color: var(--zahra-purple);
}

.brand-site .welcome-option-c__path {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    overflow: hidden;
    padding: 2rem;
    background: var(--zahra-navy);
}

.brand-site .welcome-option-c__path::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .2;
    background: linear-gradient(135deg, transparent 0 49%, var(--zahra-lavender) 49% 50%, transparent 50% 100%);
    background-size: 92px 92px;
}

.brand-site .welcome-option-c__path-line {
    position: absolute;
    z-index: 0;
    top: 14%;
    bottom: 14%;
    width: 2px;
    background: linear-gradient(var(--zahra-yellow), var(--zahra-purple), var(--zahra-yellow));
}

.brand-site .welcome-option-c__brand-mark,
.brand-site .welcome-option-c__step {
    position: relative;
    z-index: 1;
}

.brand-site .welcome-option-c__brand-mark {
    display: flex;
    width: 110px;
    height: 110px;
    align-items: center;
    justify-content: center;
    padding: 1.35rem;
    background: var(--zahra-white);
    border: 2px solid var(--zahra-yellow);
    border-radius: 36% 12% 36% 12%;
    box-shadow: 10px 10px 0 rgba(160, 115, 252, .45);
    transform: rotate(-6deg);
}

.brand-site .welcome-option-c__brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: rotate(6deg);
}

.brand-site .welcome-option-c__step {
    display: flex;
    width: min(100%, 250px);
    min-height: 54px;
    align-items: center;
    gap: .85rem;
    padding: .65rem 1rem;
    color: var(--zahra-navy);
    background: var(--zahra-white);
    border-radius: 12px 5px 12px 5px;
    box-shadow: 0 10px 22px rgba(3, 17, 48, .16);
}

.brand-site .welcome-option-c__step span {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    color: var(--zahra-white);
    border-radius: 50%;
    font-family: Arial, sans-serif !important;
    font-size: .72rem;
    direction: ltr;
}

.brand-site .welcome-option-c__step strong {
    font-size: 1rem;
    font-weight: 700;
}

.brand-site .welcome-option-c__step--purple span { background: var(--zahra-purple); }
.brand-site .welcome-option-c__step--yellow span { color: var(--zahra-navy); background: var(--zahra-yellow); }
.brand-site .welcome-option-c__step--navy span { background: var(--zahra-navy); }

/* Lesson workspace */
.brand-site .course-watch-shell {
    min-height: calc(100vh - 160px);
    padding: 1.75rem 0 5rem;
    background: var(--zahra-light-lavender);
}

.brand-site .course-watch-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.brand-site .course-watch-kicker,
.brand-site .course-watch-lesson-overline {
    display: block;
    color: var(--zahra-purple);
    font-size: .82rem;
    font-weight: 500;
}

.brand-site .course-watch-kicker {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-bottom: .45rem;
    padding: .35rem .75rem;
    background: rgba(255, 202, 58, .42);
    border-radius: 9px 4px 9px 4px;
}

.brand-site .course-watch-heading h1 {
    margin: 0;
    color: var(--zahra-navy);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
}

.brand-site .course-watch-heading p {
    margin: .35rem 0 0;
    color: var(--zahra-slate);
    font-size: .95rem;
}

.brand-site .course-watch-back {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: .35rem;
    padding: .6rem 1rem;
    color: var(--zahra-navy) !important;
    background: var(--zahra-white);
    border: 1px solid rgba(103, 40, 235, .15);
    border-radius: 12px 5px 12px 5px;
    font-size: .88rem;
    font-weight: 500;
    white-space: nowrap;
}

.brand-site .course-watch-back:hover {
    color: var(--zahra-white) !important;
    background: var(--zahra-purple);
}

.brand-site .course-watch-shell .video-player-fullwidth {
    margin-top: 0;
    padding: .85rem;
    background: var(--zahra-navy);
    border: 1px solid rgba(160, 115, 252, .4);
    border-radius: 26px 10px 26px 10px;
    box-shadow: 0 22px 44px rgba(3, 17, 48, .22);
}

.brand-site .course-watch-video-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .15rem .4rem .8rem;
    color: var(--zahra-white);
    font-size: .78rem;
}

.brand-site .course-watch-video-current {
    display: flex;
    flex-direction: column;
    gap: .12rem;
    min-width: 0;
}

.brand-site .course-watch-video-current-label {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--zahra-yellow);
}

.brand-site .course-watch-video-current-title {
    overflow: hidden;
    color: var(--zahra-white);
    font-size: 1.05rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-site .course-watch-video-duration {
    color: rgba(255, 255, 255, .78);
    direction: ltr;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.brand-site .course-watch-shell .ratio,
.brand-site .course-watch-shell .video-element {
    overflow: hidden;
    background: #050b1e;
    border-radius: 18px 7px 18px 7px;
}

.brand-site .course-watch-shell .ratio iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.brand-site .course-watch-lesson-bar {
    margin-top: 1rem !important;
    padding: 1rem 1.15rem;
    background: var(--zahra-white);
    border: 1px solid rgba(3, 17, 48, .1);
    border-radius: 18px 7px 18px 7px;
    box-shadow: var(--zahra-shadow-sm);
}

.brand-site .course-watch-lesson-title {
    margin-top: .15rem;
    color: var(--zahra-navy);
    font-size: 1.2rem;
    font-weight: 700;
}

.brand-site .course-watch-shell .telegram-badge {
    color: var(--zahra-purple);
    background: var(--zahra-light-lavender);
    border: 1px solid rgba(103, 40, 235, .12);
}

.brand-site .course-watch-shell .course-content-area {
    margin-top: 1rem;
    padding: .35rem 1.15rem 1.25rem;
    background: var(--zahra-white);
    border: 1px solid rgba(3, 17, 48, .1);
    border-radius: 22px 8px 22px 8px;
    box-shadow: var(--zahra-shadow-sm);
}

.brand-site .course-watch-shell .course-tabs-fullwidth {
    gap: .5rem;
    padding: .7rem 0 .8rem;
    border-bottom: 1px solid rgba(3, 17, 48, .1);
}

.brand-site .course-watch-shell .course-tabs-fullwidth .nav-link {
    margin: 0;
    padding: .55rem .85rem;
    color: var(--zahra-slate);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px 4px 10px 4px;
    font-size: .88rem;
}

.brand-site .course-watch-shell .course-tabs-fullwidth .nav-link.active,
.brand-site .course-watch-shell .course-tabs-fullwidth .nav-link:hover {
    color: var(--zahra-navy);
    background: var(--zahra-yellow);
    border-color: var(--zahra-yellow);
}

.brand-site .course-watch-shell .units-content-fullwidth {
    padding: 1.25rem 0 .25rem;
}

.brand-site .course-watch-shell .units-header-fullwidth {
    margin-bottom: 1rem;
}

.brand-site .course-watch-shell .units-header-fullwidth h5 {
    color: var(--zahra-navy);
    font-size: 1.2rem;
}

.brand-site .course-watch-shell .section-fullwidth {
    margin-bottom: .8rem;
    border: 1px solid rgba(103, 40, 235, .14);
    border-radius: 14px 5px 14px 5px;
    box-shadow: none;
}

.brand-site .course-watch-shell .section-header-fullwidth {
    padding: 1rem 1.1rem;
    background: var(--zahra-light-lavender);
}

.brand-site .course-watch-shell .section-header-fullwidth:hover {
    background: var(--zahra-pale-yellow);
}

.brand-site .course-watch-shell .section-name {
    color: var(--zahra-navy);
    font-size: 1rem;
    font-weight: 700;
}

.brand-site .course-watch-shell .lesson-row {
    padding: .85rem 1.1rem;
    border-top-color: rgba(3, 17, 48, .08);
}

.brand-site .course-watch-shell .lesson-row:hover {
    background: rgba(230, 232, 253, .42);
}

.brand-site .course-watch-shell .lesson-name {
    color: var(--zahra-navy);
    font-size: .9rem;
}

@media (max-width: 991.98px) {
    .brand-site .welcome-option-c {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(390px, 1.18fr) minmax(290px, .82fr);
        min-height: 680px;
    }

    .brand-site .welcome-option-c__copy {
        align-items: center;
        text-align: center;
    }

    .brand-site .welcome-option-c__path {
        min-height: 290px;
    }

    .brand-site .course-watch-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    /* The classic welcome card is a single mobile column. The later desktop
       comparison rules must not force its copy and visual back into two
       narrow columns on phones. */
    .brand-site .welcome-section--classic .welcome-cta {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.25rem 1.25rem 2.5rem;
    }

    .brand-site .welcome-section--classic .welcome-cta-copy {
        text-align: center;
    }

    .brand-site .welcome-section--classic .welcome-title,
    .brand-site .welcome-section--classic .welcome-subtitle {
        margin-inline: auto;
        text-align: center;
    }

    .brand-site .welcome-section--classic .welcome-title {
        font-size: clamp(1.85rem, 8.5vw, 2.7rem);
        line-height: 1.3;
    }

    .brand-site .welcome-section--classic .welcome-title-gradient {
        display: inline;
    }

    .brand-site .welcome-section--classic .welcome-actions {
        justify-content: center;
    }

    .brand-site .welcome-section--classic .welcome-visual {
        min-height: 220px;
    }

    .brand-site #categoriesGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .75rem !important;
    }

    .brand-site .cat-card {
        min-height: 220px;
        padding: 1rem;
        border-radius: 20px 8px 20px 8px;
    }

    .brand-site .cat-card-top {
        gap: .7rem;
        margin-bottom: 1rem;
    }

    .brand-site .cat-card-emblem {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
        padding: .6rem;
        border-radius: 18px 6px 18px 6px;
        box-shadow: 5px 5px 0 rgba(255, 202, 58, .9);
    }

    .brand-site .cat-card-eyebrow {
        font-size: .66rem;
    }

    .brand-site .cat-card-title {
        font-size: .95rem;
    }

    .brand-site .cat-card-footer {
        padding-top: .75rem;
    }

    .brand-site .cat-card-cta,
    .brand-site .cat-badge-pill {
        min-height: 34px;
        padding: .42rem .55rem;
        font-size: .68rem;
    }

    .brand-site .cat-card-arrow {
        width: 34px;
        height: 34px;
        font-size: .9rem;
    }

    .brand-site .welcome-option-c__copy {
        min-height: 390px;
        padding: 3rem 1.25rem 2.5rem;
    }

    .brand-site .welcome-secondary-section {
        padding: 3rem 0 4rem;
    }

    .brand-site .welcome-secondary-heading {
        margin-bottom: 1.15rem;
        padding-inline: .5rem;
    }

    .brand-site .welcome-secondary-heading p {
        font-size: .86rem;
    }

    .brand-site .welcome-option-c__title {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    .brand-site .welcome-option-c__subtitle {
        font-size: .95rem;
    }

    .brand-site .welcome-option-c__path {
        min-height: 290px;
        padding: 1.5rem 1rem;
    }

    .brand-site .welcome-option-c__brand-mark {
        width: 82px;
        height: 82px;
        padding: 1rem;
    }

    .brand-site .welcome-option-c__step {
        width: min(100%, 210px);
        min-height: 44px;
        padding: .45rem .7rem;
    }

    .brand-site .welcome-option-c__step strong {
        font-size: .86rem;
    }

    .brand-site .course-watch-shell {
        padding: 1.25rem 0 3rem;
    }

    .brand-site .course-watch-heading h1 {
        font-size: 1.55rem;
    }

    .brand-site .course-watch-heading p {
        font-size: .82rem;
    }

    .brand-site .course-watch-back {
        width: 100%;
        justify-content: center;
    }

    .brand-site .course-watch-shell .video-player-fullwidth {
        padding: .55rem;
        border-radius: 18px 7px 18px 7px;
    }

    .brand-site .course-watch-shell .ratio {
        min-height: 220px;
    }

    .brand-site .course-watch-shell .course-content-area {
        padding-inline: .75rem;
        border-radius: 16px 6px 16px 6px;
    }

    .brand-site .course-watch-shell .course-tabs-fullwidth {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .brand-site .course-watch-shell .course-tabs-fullwidth .nav-link {
        flex: 0 0 auto;
        font-size: .76rem;
    }

    .brand-site .course-watch-shell .units-header-fullwidth {
        align-items: flex-start;
        flex-direction: column;
        gap: .75rem;
    }

    .brand-site .course-watch-shell .btn-ask-floating {
        position: static;
        width: 100%;
        justify-content: center;
    }
}

/* Testimonials: give the desktop slider room for four comfortable cards and
   keep the decorative quote in its own column beside the author block. */
.brand-site .testimonials-section > .container {
    width: 100%;
    max-width: 1440px;
}

.brand-site .testimonials-slider-wrapper {
    padding-inline: 60px;
}

.brand-site .testimonials-slider {
    padding-inline: 0;
}

.brand-site .testimonials-slider .slick-list {
    margin-inline: -10px;
}

.brand-site .testimonials-slider .slick-slide {
    padding-inline: 10px;
}

.brand-site .testimonial-card {
    min-height: 310px;
    padding: 2rem 1.75rem;
    overflow: hidden;
}

.brand-site .testimonial-card .user_info {
    position: relative;
    z-index: 1;
    min-height: 76px;
    margin-bottom: 1.5rem !important;
    padding-left: 4.25rem;
}

.brand-site .testimonial-quote-icon {
    top: 1.35rem;
    right: auto;
    left: 1.35rem;
    z-index: 0;
    width: 3.25rem;
    height: 3.25rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 202, 58, .18);
    overflow: hidden;
}

.brand-site .testimonial-quote-icon i {
    font-size: 1.65rem;
    line-height: 1;
    color: var(--zahra-yellow);
    opacity: .85;
}

.brand-site .testimonial-author-name {
    font-size: clamp(1.08rem, 1.35vw, 1.35rem);
    line-height: 1.35;
}

.brand-site .testimonial-author-role {
    font-size: .9rem;
    line-height: 1.5;
}

.brand-site .testimonial-text {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    line-height: 2;
}

@media (min-width: 1200px) {
    .brand-site .testimonials-slider .slick-prev {
        right: -55px;
    }

    .brand-site .testimonials-slider .slick-next {
        left: -58px;
    }
}

@media (max-width: 1199.98px) {
    .brand-site .testimonials-section > .container {
        max-width: 1180px;
    }

    .brand-site .testimonials-slider-wrapper {
        padding-inline: 60px;
    }
}

@media (max-width: 767.98px) {
    .brand-site .testimonials-slider-wrapper {
        padding-inline: 0;
    }

    .brand-site .testimonial-card {
        min-height: 280px;
        padding: 1.5rem 1.25rem;
    }

    .brand-site .testimonial-card .user_info {
        padding-left: 3.5rem;
    }
}

/* Replace the remaining near-black brand surfaces with the approved purple
   gradient while preserving the white content tiles and navy text contrast. */
.brand-site .welcome-option-c__path,
.brand-site .cat-card-branch {
    background: linear-gradient(135deg, var(--zahra-purple) 0%, var(--zahra-lavender) 100%);
}

.brand-site .welcome-option-c__path::before {
    opacity: .26;
    background-image: linear-gradient(135deg, transparent 0 49%, var(--zahra-yellow) 49% 50%, transparent 50% 100%);
}

.brand-site .welcome-option-c__path-line {
    background: linear-gradient(var(--zahra-yellow), var(--zahra-yellow));
    box-shadow: 0 0 0 1px rgba(255, 202, 58, .2), 0 0 18px rgba(255, 202, 58, .45);
}

.brand-site .cat-card-branch::before,
.brand-site .cat-card-branch::after {
    border-color: rgba(255, 202, 58, .72);
}

.brand-site .cat-card-branch::after {
    opacity: .9;
}

/* The secondary concept is intentionally a compact single-line statement. */
.brand-site .welcome-section--option-c .welcome-option-c__title,
.brand-site .welcome-secondary-section .welcome-option-c__title {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(1.9rem, 3.5vw, 3.2rem);
}

@media (max-width: 767.98px) {
    .brand-site .welcome-section--option-c .welcome-option-c__title {
        text-align: right;
        text-align-last: right;
    }

    .brand-site .welcome-section--option-c .welcome-option-c__title,
    .brand-site .welcome-secondary-section .welcome-option-c__title {
        font-size: clamp(1.32rem, 6.8vw, 2.2rem);
    }
}

/* Both catalogue card types share the same primary gradient. The lighter
   surface is reserved for hover so the interactive state remains obvious. */
.brand-site .cat-card-leaf,
.brand-site .cat-card-leaf:nth-child(3n) {
    color: var(--zahra-white);
    background: linear-gradient(135deg, var(--zahra-purple) 0%, var(--zahra-lavender) 100%);
    border: 0;
    box-shadow: 0 20px 38px rgba(103, 40, 235, .2);
}

.brand-site .cat-card-leaf .cat-card-eyebrow {
    color: var(--zahra-yellow);
}

.brand-site .cat-card-leaf .cat-card-footer {
    border-top-color: rgba(255, 255, 255, .2);
}

.brand-site .cat-card-branch:hover,
.brand-site .cat-card-leaf:hover,
.brand-site .cat-card-leaf:nth-child(3n):hover {
    color: var(--zahra-navy);
    background: linear-gradient(135deg, var(--zahra-light-lavender) 0%, var(--zahra-white) 100%);
    border: 1px solid rgba(103, 40, 235, .22);
    box-shadow: 0 24px 45px rgba(103, 40, 235, .22);
}

.brand-site .cat-card-branch:hover .cat-card-eyebrow,
.brand-site .cat-card-leaf:hover .cat-card-eyebrow {
    color: var(--zahra-purple);
}

/* Keep the former welcome canvas around the confirmed primary concept now
   that the older section is no longer rendered. */
.brand-site .welcome-section--option-c {
    background-color: var(--zahra-white);
    background-image: linear-gradient(135deg, rgba(230, 232, 253, .8) 0 8%, transparent 8% 100%),
        linear-gradient(315deg, rgba(160, 115, 252, .1) 0 7%, transparent 7% 100%);
    background-position: left top, right bottom;
    background-size: 280px 280px, 360px 360px;
}

.brand-site .cat-card-branch:hover .cat-card-footer,
.brand-site .cat-card-leaf:hover .cat-card-footer {
    border-top-color: rgba(3, 17, 48, .12);
}

/* Keep the longer service descriptions balanced across desktop and mobile. */
.brand-site .services-grid .service-description {
    width: 100%;
    max-width: 235px;
    min-height: 5.25em;
    margin-inline: auto;
    line-height: 1.8;
}

@media (max-width: 767.98px) {
    .brand-site .services-grid .service-description {
        max-width: 178px;
        min-height: 5.6em;
        font-size: .76rem;
        line-height: 1.75;
    }
}

/* Welcome hierarchy: the greeting leads, while the platform descriptor
   supports it at the next identity scale. */
.brand-site .welcome-section--option-c .welcome-option-c__title {
    max-width: 680px;
    width: 100%;
    white-space: normal;
    font-size: 3rem;
    line-height: 1.2;
    text-align: center;
    text-align-last: center;
}

.brand-site .welcome-section--option-c .welcome-option-c__title span {
    font-size: 3rem;
    font-weight: 700;
}

.brand-site .welcome-section--option-c .welcome-option-c__title strong {
    margin-top: .3rem;
    font-size: 2.25rem;
    font-weight: 500;
    line-height: 1.25;
}

@media (max-width: 767.98px) {
    .brand-site .welcome-section--option-c .welcome-option-c__title {
        font-size: 2rem;
        text-align: center;
        text-align-last: center;
    }

    .brand-site .welcome-section--option-c .welcome-option-c__title span {
        font-size: 2rem;
    }

    .brand-site .welcome-section--option-c .welcome-option-c__title strong {
        margin-top: .2rem;
        font-size: 1.5rem;
    }
}

/* Keep the welcome copy centered at every breakpoint. */
.brand-site .welcome-section--option-c .welcome-option-c__copy {
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    text-align: center;
}

.brand-site .welcome-section--option-c .welcome-option-c__title {
    margin: 0;
}

.brand-site .welcome-section--option-c .welcome-option-c__subtitle {
    width: 100%;
    margin: 0;
    text-align: center;
}

.brand-site .welcome-section--option-c .welcome-option-c__btn {
    margin-top: 0;
}

/* Services use a predictable grid instead of Bootstrap's mixed column and
   margin rules, so the cards stay balanced on narrow screens. */
.brand-site .services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin-inline: 0;
}

.brand-site .services-grid > [class*="col"] {
    width: auto;
    max-width: none;
    padding-inline: 0;
}

@media (max-width: 991.98px) {
    .brand-site .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand-site .services-grid > [class*="col"]:last-child {
        margin-inline: 0;
    }
}

@media (max-width: 420px) {
    .brand-site .services-grid {
        gap: .75rem;
    }
}

/* Keep text on branded purple cards intentional: light copy for the surface,
   with compact light badges for metadata instead of isolated dark labels. */
.brand-site .cat-card-branch,
.brand-site .cat-card-leaf,
.brand-site .cat-card-leaf:nth-child(3n) {
    color: var(--zahra-white);
}

.brand-site .cat-card-branch .cat-card-title,
.brand-site .cat-card-leaf .cat-card-title,
.brand-site .cat-card-branch .cat-card-eyebrow,
.brand-site .cat-card-leaf .cat-card-eyebrow {
    color: var(--zahra-white);
}

.brand-site .cat-card-branch .cat-card-eyebrow,
.brand-site .cat-card-leaf .cat-card-eyebrow {
    color: var(--zahra-yellow);
}

.brand-site .cat-card-branch .cat-card-availability,
.brand-site .cat-card-leaf .cat-card-availability,
.brand-site .cat-card-branch .cat-badge-pill,
.brand-site .cat-card-leaf .cat-badge-pill {
    min-height: 38px;
    padding: .5rem .8rem;
    color: var(--zahra-navy) !important;
    background: rgba(255, 255, 255, .92);
    border-radius: 10px 4px 10px 4px;
    box-shadow: 0 8px 16px rgba(3, 17, 48, .1);
}

.brand-site .cat-card-branch .cat-card-availability.is-empty,
.brand-site .cat-card-leaf .cat-card-availability.is-empty {
    color: var(--zahra-navy) !important;
}

.brand-site .cat-card-branch:hover,
.brand-site .cat-card-leaf:hover,
.brand-site .cat-card-leaf:nth-child(3n):hover {
    color: var(--zahra-navy);
}

.brand-site .cat-card-branch:hover .cat-card-title,
.brand-site .cat-card-leaf:hover .cat-card-title,
.brand-site .cat-card-leaf:nth-child(3n):hover .cat-card-title {
    color: var(--zahra-navy);
}

.brand-site .course-watch-shell .quest-chat-body .main-question-title {
    color: var(--zahra-navy) !important;
}

/* Student reviews: authenticated users can submit a review without leaving
   the homepage; published reviews reuse the same testimonial card language. */
.brand-site .testimonials-header-actions {
    display: flex;
    justify-content: center;
}

.brand-site .testimonial-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 54px;
    padding: .85rem 1.45rem;
    color: var(--zahra-navy) !important;
    background: var(--zahra-yellow);
    border: 1px solid var(--zahra-yellow);
    border-radius: 14px 6px 14px 6px;
    box-shadow: 0 12px 24px rgba(255, 202, 58, .24);
    font-size: 1rem;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.brand-site .testimonial-submit-btn {
    position: relative;
    z-index: 1;
    margin-top: .85rem;
}

.brand-site .testimonial-submit-btn:hover {
    color: var(--zahra-white) !important;
    background: var(--zahra-purple);
    border-color: var(--zahra-purple);
    box-shadow: 0 16px 30px rgba(103, 40, 235, .28);
    transform: translateY(-2px);
}

.brand-site .testimonial-submit-btn:focus-visible,
.brand-site .review-submit-btn:focus-visible,
.brand-site .review-star-picker label:focus-visible,
.brand-site #studentReviewText:focus-visible {
    outline: 3px solid rgba(255, 202, 58, .72);
    outline-offset: 3px;
}

.brand-site .testimonial-rating {
    position: relative;
    z-index: 1;
    display: flex;
    gap: .18rem;
    margin: -.35rem 0 .75rem;
    color: var(--zahra-yellow);
    direction: ltr;
}

.brand-site .testimonial-rating i {
    font-size: 1rem;
}

.brand-site .brand-review-modal .modal-dialog {
    width: min(calc(100% - 1.5rem), 620px);
    max-width: 620px;
}

/* #main gives its direct children a small presentation layer for the page
   pattern. Keep the review modal in Bootstrap's modal layer even before the
   body-move fallback runs, otherwise the backdrop can cover the dialog. */
.brand-site #main > .brand-review-modal,
.brand-site .brand-review-modal {
    z-index: 1055;
}

.brand-site .brand-review-modal .modal-content {
    background: var(--zahra-white);
}

.brand-site .brand-review-modal .modal-body {
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
}

.brand-site .review-modal-heading {
    margin-bottom: 1.5rem;
}

.brand-site .review-modal-icon {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    margin-bottom: .75rem;
    color: var(--zahra-purple);
    background: var(--zahra-light-lavender);
    border-radius: 16px 7px 16px 7px;
}

.brand-site .review-modal-icon i {
    font-size: 1.65rem;
}

.brand-site .review-modal-heading h3 {
    margin-bottom: .45rem;
    color: var(--zahra-navy);
    font-size: 1.65rem;
    font-weight: 800;
}

.brand-site .review-modal-heading p {
    margin-bottom: 0;
    color: var(--zahra-slate);
}

.brand-site .review-form-field {
    margin-bottom: 1.2rem;
}

.brand-site .review-form-label {
    display: block;
    margin-bottom: .55rem;
    color: var(--zahra-navy);
    font-size: .95rem;
    font-weight: 700;
    text-align: right;
}

.brand-site .review-star-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    direction: ltr;
}

.brand-site .review-star-picker input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.brand-site .review-star-picker label {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: rgba(3, 17, 48, .22);
    background: rgba(230, 232, 253, .72);
    border-radius: 14px 6px 14px 6px;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

.brand-site .review-star-picker label:hover,
.brand-site .review-star-picker label.is-active {
    color: var(--zahra-yellow);
    background: rgba(255, 202, 58, .2);
    transform: translateY(-2px);
}

.brand-site .review-star-picker label i {
    font-size: 1.4rem;
}

.brand-site .review-rating-hint,
.brand-site .review-character-hint {
    margin-top: .45rem;
    color: var(--zahra-slate);
    font-size: .78rem;
    text-align: center;
}

.brand-site .review-form-field textarea,
.brand-site #studentReviewText,
.brand-site #courseReviewText {
    display: block;
    width: 100%;
    min-height: 130px;
    padding: .9rem 1rem;
    color: var(--zahra-navy);
    background: var(--zahra-white);
    border: 1px solid rgba(3, 17, 48, .16);
    border-radius: 16px 7px 16px 7px;
    resize: vertical;
    text-align: right;
}

.brand-site .review-form-field textarea:focus,
.brand-site #studentReviewText:focus,
.brand-site #courseReviewText:focus {
    border-color: var(--zahra-purple);
    box-shadow: 0 0 0 4px rgba(103, 40, 235, .12);
}

.brand-site .review-form-feedback {
    min-height: 1.5rem;
    margin-bottom: .8rem;
    color: #b42318;
    font-size: .86rem;
    line-height: 1.6;
    text-align: right;
}

.brand-site .review-form-feedback.is-success {
    color: #157347;
}

.brand-site .review-form-feedback.is-error {
    color: #b42318;
}

.brand-site .review-submit-btn {
    width: 100%;
}

.brand-site .review-submit-btn:disabled {
    cursor: wait;
    opacity: .65;
    transform: none;
}

@media (max-width: 767.98px) {
    .brand-site .testimonials-title {
        max-width: 100%;
        padding-inline: .75rem;
        font-size: clamp(1.45rem, 6.8vw, 2.25rem);
        line-height: 1.5;
        overflow-wrap: normal;
        text-wrap: pretty;
    }

    .brand-site .testimonials-description {
        max-width: 28rem;
        margin-inline: auto;
        padding-inline: 1rem;
        line-height: 1.8;
    }

    .brand-site .testimonial-submit-btn {
        min-height: 44px;
        padding-inline: 1.1rem;
        font-size: .86rem;
    }

    .brand-site .brand-review-modal .modal-body {
        max-height: calc(100dvh - 1rem);
    }

    .brand-site .review-modal-heading h3 {
        font-size: 1.4rem;
    }

    .brand-site .review-star-picker label {
        width: 40px;
        height: 40px;
    }
}

/* Course detail final overrides: compact visual journey and always-available action. */
.brand-site .course-page-hero__facts { display: none !important; }
.brand-site .course-page-hero { padding-top: clamp(1.65rem, 3.5vw, 3rem); padding-bottom: clamp(2rem, 4vw, 3.2rem); }
.brand-site .course-story-section,
.brand-site .course-access-section,
.brand-site .course-content-section { padding-top: clamp(1.8rem, 3.5vw, 3rem); padding-bottom: clamp(1.8rem, 3.5vw, 3rem); }
.brand-site .course-story-card__media { min-height: clamp(260px, 31vw, 460px); }
.brand-site .course-story-card__media::after { display: none; }
.brand-site .course-story-card__media--image { background: var(--zahra-white); }
.brand-site .course-story-card__media--image .course-learning-map-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; opacity: 1; }
.brand-site .course-story-card__visual-heading,
.brand-site .course-story-card__visual-label { position: absolute; z-index: 2; color: var(--zahra-navy); font-weight: 700; text-align: center; pointer-events: none; }
.brand-site .course-story-card__visual-heading { top: 8%; inset-inline: 0; color: var(--zahra-yellow); font-size: clamp(1rem, 2vw, 1.45rem); }
.brand-site .course-story-card__visual-label { display: inline-flex; min-width: 150px; align-items: center; justify-content: center; padding: .6rem .9rem; background: rgba(255, 255, 255, .94); border-radius: 12px 5px 12px 5px; box-shadow: 0 8px 18px rgba(3, 17, 48, .1); font-size: clamp(.7rem, 1.2vw, .9rem); }
.brand-site .course-story-card__visual-label--one { top: 21%; inset-inline-start: 9.8%; }
.brand-site .course-story-card__visual-label--two { bottom: 21%; inset-inline-start: 9.8%; }
.brand-site .course-story-card__visual-label--three { top: 21%; inset-inline-end: 9.8%; }
.brand-site .course-story-card__visual-label--four { bottom: 21%; inset-inline-end: 9.8%; }
.brand-site .course-story-card__intro { border: 0; cursor: pointer; font-family: inherit; }
.brand-site .course-story-card__content { min-height: 0; padding: clamp(1.35rem, 3vw, 2.7rem) clamp(1.25rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.8rem); }
.brand-site .course-story-card__content h2 { margin-top: .4rem; }
.brand-site .course-story-card__steps { margin-top: 1.25rem; margin-bottom: 1.35rem; }
.brand-site .course-access-card { padding: clamp(1rem, 2.5vw, 1.7rem); }
.brand-site .course-access-card__heading { margin-bottom: 1rem; }
.brand-site .course-access-item { min-height: 92px; padding: .75rem; }
.brand-site .course-content-section { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.brand-site .course-sticky-subscribe { top: 5.8rem; right: 1.25rem; bottom: auto; left: auto; }

@media (max-width: 767.98px) {
    .brand-site .course-page-hero { padding-top: 1.35rem; padding-bottom: 1.8rem; }
    .brand-site .course-page-hero__eyebrow { margin-bottom: .75rem; font-size: .78rem; }
    .brand-site .course-page-hero h1 { font-size: clamp(1.7rem, 9vw, 2.8rem); }
    .brand-site .course-page-hero__description { margin-top: .9rem; font-size: .9rem; line-height: 1.75; }
    .brand-site .course-story-card__media { min-height: clamp(215px, 54vw, 330px); }
    .brand-site .course-story-card__visual-heading { top: 7%; font-size: .78rem; }
    .brand-site .course-story-card__visual-label { min-width: 90px; padding: .35rem .45rem; font-size: .55rem; }
    .brand-site .course-story-card__visual-label--one { top: 23%; inset-inline-start: 4%; }
    .brand-site .course-story-card__visual-label--two { bottom: 22%; inset-inline-start: 4%; }
    .brand-site .course-story-card__visual-label--three { top: 23%; inset-inline-end: 4%; }
    .brand-site .course-story-card__visual-label--four { bottom: 22%; inset-inline-end: 4%; }
    .brand-site .course-story-card__intro { right: .75rem; inset-inline-start: auto; bottom: .75rem; padding: .65rem .8rem; font-size: .72rem; }
    .brand-site .course-story-card__content { padding: 1.25rem .9rem 1.4rem; }
    .brand-site .course-story-card__content > p { font-size: .82rem; line-height: 1.8; }
    .brand-site .course-story-card__steps div { padding: .55rem .35rem; font-size: .65rem; }
    .brand-site .course-sticky-subscribe { top: 4.65rem; right: .7rem; left: .7rem; justify-content: center; min-height: 46px; padding: .65rem .8rem; border-radius: 13px 5px 13px 5px; font-size: .82rem; }
}

.brand-site .course-modal-lesson,
.brand-site .course-lesson-row__trigger {
    width: 100%;
    color: inherit;
    border: 0;
    font-family: inherit;
    text-align: start;
    cursor: pointer;
}

.brand-site .course-modal-lesson:hover,
.brand-site .course-lesson-row__trigger:hover {
    background: rgba(103, 40, 235, .12);
}

.brand-site .course-lesson-row__trigger {
    overflow: hidden;
    padding: 0;
    color: var(--zahra-navy);
    background: transparent;
    font-size: .88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-site .course-lesson-frame-view[hidden] { display: none; }
.brand-site .course-lesson-frame-heading { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .8rem; }
.brand-site .course-lesson-frame-heading strong { color: var(--zahra-navy); font-size: 1rem; }
.brand-site .course-back-button { display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .75rem; color: var(--zahra-purple); background: var(--zahra-light-lavender); border: 0; border-radius: 10px 4px 10px 4px; font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer; }
.brand-site .course-lesson-frame-view iframe { display: block; width: 100%; height: min(68vh, 620px); border: 1px solid rgba(103, 40, 235, .15); border-radius: 16px 7px 16px 7px; background: var(--zahra-soft-gray); }

.brand-site .course-lesson-player {
    display: grid;
    min-height: min(60vh, 520px);
    place-items: center;
    overflow: hidden;
    color: var(--zahra-slate);
    background: var(--zahra-navy);
    border: 1px solid rgba(103, 40, 235, .16);
    border-radius: 18px 7px 18px 7px;
}

.brand-site .course-lesson-player iframe,
.brand-site .course-lesson-player video {
    display: block;
    width: 100%;
    height: min(60vh, 520px);
    border: 0;
    background: var(--zahra-navy);
}

.brand-site .course-lesson-player__error {
    display: grid;
    max-width: 26rem;
    gap: .55rem;
    padding: 2rem;
    color: var(--zahra-white);
    text-align: center;
}

.brand-site .course-lesson-player__error i {
    color: var(--zahra-yellow);
    font-size: 2.6rem;
}

.brand-site .course-lesson-player__error strong { font-size: 1.15rem; }
.brand-site .course-lesson-player__error span { color: rgba(255, 255, 255, .72); font-size: .85rem; }

.brand-site .course-lessons-list-view,
.brand-site .course-lesson-frame-view {
    position: relative;
    z-index: 1;
}

.brand-site.modal-open .course-sticky-subscribe {
    visibility: hidden;
    pointer-events: none;
}

/* Course details: keep the hero as the compact summary of the material. */
.brand-site .course-page-hero {
    padding: clamp(1.35rem, 3vw, 2.4rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}

.brand-site .course-page-hero__heading {
    align-items: center;
    gap: 1.25rem;
}

.brand-site .course-page-hero h1 {
    max-width: 760px;
    margin: 0 0 .3rem;
    font-size: clamp(1.85rem, 4vw, 3.5rem);
}

.brand-site .course-page-hero__category {
    font-size: clamp(.82rem, 1.35vw, 1rem);
}

.brand-site .course-page-hero__status {
    cursor: default;
}

.brand-site .course-hero-video-trigger {
    cursor: pointer;
    color: var(--zahra-navy);
    background: var(--zahra-yellow);
    border: 0;
}

.brand-site .course-hero-actions {
    display: flex;
    justify-content: flex-start;
    gap: .7rem;
    margin-top: .9rem;
}

.brand-site .zahra-btn--ghost {
    color: var(--zahra-white);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .4);
}

.brand-site .zahra-btn--ghost:hover {
    color: var(--zahra-navy);
    background: var(--zahra-yellow);
    border-color: var(--zahra-yellow);
}

.brand-site .course-page-hero__description {
    max-width: 820px;
    margin-top: .85rem;
    font-size: clamp(.9rem, 1.45vw, 1.08rem);
    line-height: 1.75;
}

.brand-site .course-hero-access {
    margin-top: 1.15rem;
    padding: 1rem;
    background: rgba(3, 17, 48, .22);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 22px 8px 22px 8px;
}

.brand-site .course-hero-access__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .8rem;
}

.brand-site .course-hero-access__heading h2 {
    margin: .2rem 0 0;
    color: var(--zahra-white);
    font-size: clamp(1.05rem, 2vw, 1.55rem);
    line-height: 1.3;
}

.brand-site .course-hero-access .course-kicker {
    font-size: .72rem;
}

.brand-site .course-hero-access .course-subscription-badge {
    flex: 0 0 auto;
    padding: .45rem .7rem;
    font-size: .72rem;
}

.brand-site .course-hero-access .course-access-grid {
    gap: .6rem;
}

.brand-site .course-hero-access .course-access-item {
    min-height: 86px;
    padding: .7rem;
    box-shadow: 0 8px 18px rgba(3, 17, 48, .08);
}

.brand-site .course-hero-access .course-access-item > i {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
}

.brand-site .course-hero-access .course-access-item strong {
    font-size: .82rem;
}

.brand-site .course-hero-access .course-access-item span,
.brand-site .course-hero-access .course-access-item > b {
    font-size: .66rem;
}

.brand-site .course-hero-access .course-subscription-summary {
    margin-top: .7rem;
    padding: .55rem .7rem;
    color: var(--zahra-white);
    background: rgba(255, 202, 58, .16);
    font-size: .72rem;
}

.brand-site .course-page-hero .course-tabs--hero {
    margin: 1rem 0 0;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .22);
}

.brand-site .course-page-hero .course-tab {
    color: rgba(255, 255, 255, .82);
}

.brand-site .course-page-hero .course-tab.is-active {
    color: var(--zahra-navy);
    background: var(--zahra-yellow);
    box-shadow: 0 8px 18px rgba(3, 17, 48, .18);
}

.brand-site .course-content-section {
    padding-top: clamp(1.15rem, 2.5vw, 2rem);
}

.brand-site .course-sticky-subscribe {
    position: fixed !important;
    top: 8.25rem !important;
    right: 1.25rem;
    bottom: auto !important;
    left: auto;
    z-index: 1035;
}

@media (max-width: 767.98px) {
    .brand-site .course-page-hero {
        padding-top: 1.2rem;
        padding-bottom: 1.25rem;
    }

    .brand-site .course-page-hero__heading {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        gap: .65rem;
    }

    .brand-site .course-page-hero__status {
        margin-top: 0;
    }

    .brand-site .course-hero-actions {
        margin-top: .7rem;
    }

    .brand-site .course-hero-access {
        padding: .7rem;
    }

    .brand-site .course-hero-access__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: .45rem;
    }

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

    .brand-site .course-hero-access .course-access-item {
        min-height: 82px;
        grid-template-columns: 30px 1fr;
        gap: .4rem;
        padding: .55rem;
    }

    .brand-site .course-hero-access .course-access-item > i {
        width: 30px;
        height: 30px;
        font-size: .9rem;
    }

    .brand-site .course-page-hero .course-tabs--hero {
        gap: .25rem;
        margin-top: .75rem;
    }

    .brand-site .course-page-hero .course-tab {
        min-width: 0;
        flex: 1;
        padding: .65rem .35rem;
        font-size: .7rem;
    }

    .brand-site .course-sticky-subscribe {
        position: fixed !important;
        top: 4.75rem !important;
        right: .7rem;
        bottom: auto !important;
        left: .7rem;
        justify-content: center;
        min-height: 44px;
        padding: .55rem .75rem;
        border-radius: 13px 5px 13px 5px;
        font-size: .8rem;
    }
}

/* Course details polish: keep the hierarchy calm, clear, and unmistakably Zahra. */
.brand-site .course-page-hero {
    background: var(--zahra-gradient) !important;
}

.brand-site .course-page-hero::after {
    opacity: .12 !important;
}

.brand-site .course-tabs-shell {
    position: relative;
    z-index: 1;
    padding: .85rem 0;
    background: rgba(230, 232, 253, .78);
    border-bottom: 1px solid rgba(103, 40, 235, .14);
}

.brand-site .course-tabs--after-hero {
    max-width: 760px;
    margin: 0 auto;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(103, 40, 235, .13);
    box-shadow: 0 10px 24px rgba(3, 17, 48, .08);
}

.brand-site .course-tabs--after-hero .course-tab {
    color: var(--zahra-navy);
}

.brand-site .course-tabs--after-hero .course-tab.is-active {
    color: var(--zahra-white);
    background: var(--zahra-gradient);
}

.brand-site .course-hero-access .course-access-item,
.brand-site .course-hero-access .course-access-item strong,
.brand-site .course-hero-access .course-access-item span,
.brand-site .course-hero-access .course-access-item > b {
    color: var(--zahra-navy) !important;
}

.brand-site .course-hero-access .course-access-item span {
    color: var(--zahra-slate) !important;
}

.brand-site .course-hero-access .course-access-item > b.is-free {
    color: #287f58 !important;
}

.brand-site .course-sticky-subscribe {
    position: fixed !important;
    top: 8.25rem !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    min-width: min(440px, calc(100vw - 2rem));
    justify-content: center;
    transform: translateX(-50%);
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
    box-shadow: 0 14px 28px rgba(3, 17, 48, .2), 0 0 0 rgba(255, 202, 58, 0);
    white-space: nowrap;
}

.brand-site .course-sticky-subscribe:hover,
.brand-site .course-sticky-subscribe:focus-visible {
    background: #ffd75d;
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 18px 32px rgba(3, 17, 48, .22), 0 0 28px rgba(255, 202, 58, .55);
}

@media (max-width: 767.98px) {
    .brand-site .course-tabs-shell {
        padding: .6rem .7rem;
    }

    .brand-site .course-tabs--after-hero {
        width: 100%;
    }

    .brand-site .course-sticky-subscribe {
        top: 4.75rem !important;
        right: .7rem !important;
        bottom: auto !important;
        left: .7rem !important;
        min-width: 0;
        transform: none;
        white-space: normal;
    }

    .brand-site .course-sticky-subscribe:hover,
    .brand-site .course-sticky-subscribe:focus-visible {
        transform: translateY(-2px);
    }
}

.brand-site .course-intro-player {
    display: grid;
    min-height: min(58vh, 520px);
    place-items: center;
    overflow: hidden;
    color: var(--zahra-slate);
    background: var(--zahra-light-lavender);
    border-radius: 18px 7px 18px 7px;
}

.brand-site .course-intro-player iframe,
.brand-site .course-intro-player video {
    display: block;
    width: 100%;
    height: min(58vh, 520px);
    border: 0;
    background: var(--zahra-navy);
}

.brand-site .course-intro-player__error {
    display: grid;
    max-width: 26rem;
    gap: .55rem;
    padding: 2rem;
    color: var(--zahra-navy);
    text-align: center;
}

.brand-site .course-intro-player__error i {
    color: var(--zahra-purple);
    font-size: 2.6rem;
}

.brand-site .course-intro-player__error strong {
    font-size: 1.15rem;
}

.brand-site .course-intro-player__error span {
    color: var(--zahra-slate);
    font-size: .85rem;
}

.brand-site .course-plan-card__price {
    flex-wrap: wrap;
    column-gap: .4rem;
    row-gap: .2rem;
    direction: rtl;
}

.brand-site .course-plan-card__price strong {
    order: 1;
    direction: ltr;
}

.brand-site .course-plan-card__price .course-plan-card__currency {
    order: 2;
    color: var(--zahra-navy);
    font-size: .85rem;
    font-weight: 700;
    white-space: nowrap;
}

.brand-site .course-plan-card__price .course-plan-card__duration {
    order: 3;
    color: var(--zahra-slate);
    font-size: .72rem;
    white-space: nowrap;
}

.brand-site .course-plan-card.is-featured .course-plan-card__price .course-plan-card__currency,
.brand-site .course-plan-card.is-featured .course-plan-card__price .course-plan-card__duration {
    color: rgba(255, 255, 255, .82);
}

@media (max-width: 767.98px) {
    .brand-site .course-intro-player,
    .brand-site .course-intro-player iframe,
    .brand-site .course-intro-player video {
        min-height: 220px;
        height: 56vw;
    }

    .brand-site .course-lesson-player,
    .brand-site .course-lesson-player iframe,
    .brand-site .course-lesson-player video {
        min-height: 220px;
        height: 56vw;
    }
}

/* Final course-page placement and brand treatment. Keep the subscription action
   available without covering the hero, while retaining a clear branded rhythm
   in the course header. */
.brand-site .course-page-hero {
    background:
        repeating-linear-gradient(135deg, transparent 0 70px, rgba(255, 255, 255, .085) 71px 72px, transparent 73px 142px),
        linear-gradient(135deg, #6728eb 0%, #8c4cf4 52%, #a073fc 100%) !important;
}

.brand-site .course-page-hero::after {
    opacity: .08 !important;
}

.brand-site .course-sticky-subscribe {
    position: fixed !important;
    top: auto !important;
    right: auto !important;
    bottom: 1.15rem !important;
    left: 50% !important;
    z-index: 1035 !important;
    min-width: min(440px, calc(100vw - 2rem));
    justify-content: center;
    transform: translateX(-50%);
    box-shadow: 0 16px 32px rgba(3, 17, 48, .22), 0 0 0 rgba(255, 202, 58, 0);
}

.brand-site .course-sticky-subscribe:hover,
.brand-site .course-sticky-subscribe:focus-visible {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 20px 38px rgba(3, 17, 48, .24), 0 0 28px rgba(255, 202, 58, .55);
}

.brand-site .course-lesson-row__icon {
    width: 24px;
    height: 24px;
    color: var(--zahra-purple);
    background: transparent !important;
    border-radius: 0;
}

/* Video players are opened by the course page itself. Keep them isolated from
   Bootstrap's automatic modal lifecycle so the page never jumps, scrolls or
   keeps a stale overlay after the player is closed. */
.brand-site .course-media-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1055;
    background: var(--zahra-navy);
    opacity: .68;
}

.brand-site .course-media-modal {
    display: none;
    position: fixed !important;
    inset: 0;
    z-index: 1060 !important;
    width: 100%;
    height: 100%;
    padding: 1rem;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    overscroll-behavior: contain;
}

.brand-site .course-media-modal.show { display: block !important; }

.brand-site .course-media-modal .modal-dialog {
    display: flex;
    align-items: center;
    width: min(860px, calc(100% - 2rem));
    max-width: none;
    min-height: calc(100% - 2rem);
    margin: 1rem auto;
}

.brand-site .course-media-modal .modal-content {
    width: 100%;
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    background: var(--zahra-white);
    border: 1px solid rgba(103, 40, 235, .18);
    border-radius: 28px 12px 28px 12px;
    box-shadow: 0 24px 70px rgba(3, 17, 48, .28);
}

.brand-site .course-media-modal .modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.6rem 1.6rem 1rem;
    border: 0;
}

.brand-site .course-media-modal .modal-header h2 {
    margin: .45rem 0 .25rem;
    color: var(--zahra-navy);
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.brand-site .course-media-modal .modal-header p {
    margin: 0;
    color: var(--zahra-slate);
    font-size: .84rem;
}

.brand-site .course-media-modal .modal-body { padding: .6rem 1.6rem 1.6rem; }

@media (max-width: 767.98px) {
    .brand-site .course-media-modal { padding: .5rem; }
    .brand-site .course-media-modal .modal-dialog {
        width: 100%;
        min-height: calc(100% - 1rem);
        margin: .5rem auto;
    }
    .brand-site .course-media-modal .modal-content {
        max-height: calc(100dvh - 1rem);
        border-radius: 22px 9px 22px 9px;
    }
    .brand-site .course-media-modal .modal-header { padding: 1.15rem 1rem .7rem; }
    .brand-site .course-media-modal .modal-body { padding: .45rem 1rem 1rem; }
    .brand-site .course-media-modal .modal-header h2 { font-size: 1.2rem; }
    .brand-site .course-media-modal .course-modal-close { width: 38px; height: 38px; }
}

@media (max-width: 767.98px) {
    .brand-site .course-sticky-subscribe {
        right: .7rem !important;
        bottom: .75rem !important;
        left: .7rem !important;
        min-width: 0;
        transform: none;
    }

    .brand-site .course-sticky-subscribe:hover,
    .brand-site .course-sticky-subscribe:focus-visible {
        transform: translateY(-2px);
    }
}

/* Netflix-inspired lesson workspace: keep the brand's navy, purple and
   yellow palette while giving the watch page a focused, episode-first rhythm. */
.brand-site .course-unit-card__header--link {
    grid-template-columns: 50px minmax(0, 1fr) 34px;
    text-decoration: none;
}

.brand-site .course-unit-card__start {
    display: inline-grid;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    color: var(--zahra-purple);
    background: var(--zahra-light-lavender);
    border-radius: 11px 4px 11px 4px;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1;
}

.brand-site .course-unit-card__start.is-locked {
    color: var(--zahra-slate);
    background: var(--zahra-soft-gray);
}

.brand-site .course-lesson-row__trigger {
    display: block;
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-site .course-watch-shell {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(103, 40, 235, .95), rgba(3, 17, 48, .98) 72%),
        repeating-linear-gradient(135deg, rgba(160, 115, 252, .12) 0 1px, transparent 1px 72px);
}

.brand-site .course-watch-shell::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: '';
    background: repeating-linear-gradient(135deg, transparent 0 56px, rgba(255, 202, 58, .08) 57px, transparent 58px 112px);
    opacity: .6;
}

.brand-site .course-watch-shell > .container {
    position: relative;
    z-index: 1;
    max-width: 1320px;
}

.brand-site .course-watch-heading {
    padding-top: .5rem;
}

.brand-site .course-watch-heading h1,
.brand-site .course-watch-heading p,
.brand-site .course-watch-lesson-title {
    color: var(--zahra-white);
}

.brand-site .course-watch-heading p {
    color: rgba(255, 255, 255, .76);
}

.brand-site .course-watch-back {
    color: var(--zahra-navy) !important;
    background: var(--zahra-yellow);
    border-color: var(--zahra-yellow);
    box-shadow: 0 12px 28px rgba(255, 202, 58, .22);
}

.brand-site .course-watch-back:hover,
.brand-site .course-watch-back:focus-visible {
    color: var(--zahra-navy) !important;
    background: var(--zahra-white);
    border-color: var(--zahra-white);
}

.brand-site .course-watch-shell .video-player-fullwidth {
    max-width: 1080px;
    margin-inline: auto;
    border-color: rgba(255, 202, 58, .34);
    box-shadow: 0 24px 55px rgba(0, 0, 0, .28);
}

.brand-site .course-watch-lesson-bar {
    max-width: 1080px;
    margin-inline: auto;
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .16);
    box-shadow: none;
}

.brand-site .course-watch-navigation-label {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: rgba(255, 255, 255, .72);
    font-size: .78rem;
    font-weight: 700;
}

.brand-site .course-watch-navigation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.brand-site .course-watch-lesson-overline,
.brand-site .course-watch-queue__kicker {
    color: var(--zahra-yellow);
}

.brand-site .course-watch-lesson-bar .course-btn-purple {
    position: static;
    width: auto;
    min-height: 38px;
    padding: .55rem .85rem;
    align-items: center;
    gap: .35rem;
    color: var(--zahra-navy) !important;
    background: var(--zahra-yellow);
    border-color: var(--zahra-yellow);
    border-radius: 10px 4px 10px 4px !important;
    white-space: nowrap;
}

.brand-site .course-watch-lesson-bar .course-btn-purple i {
    transform: none;
}

.brand-site .course-watch-queue {
    max-width: 1080px;
    margin: 1.2rem auto 0;
    padding: 1.25rem;
    background: rgba(3, 17, 48, .45);
    border: 1px solid rgba(160, 115, 252, .34);
    border-radius: 22px 8px 22px 8px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .16);
}

.brand-site .course-watch-queue__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .85rem;
}

.brand-site .course-watch-queue__kicker {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    font-weight: 700;
}

.brand-site .course-watch-queue__heading h2 {
    margin: .3rem 0 0;
    color: var(--zahra-white);
    font-size: 1.35rem;
}

.brand-site .course-watch-queue__count {
    color: rgba(255, 255, 255, .68);
    font-size: .78rem;
}

.brand-site .course-watch-queue__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .65rem;
}

.brand-site .course-watch-queue__item {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .7rem;
    min-width: 0;
    padding: .7rem .8rem;
    color: var(--zahra-white) !important;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px 5px 14px 5px;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.brand-site .course-watch-queue__item:hover,
.brand-site .course-watch-queue__item:focus-visible,
.brand-site .course-watch-queue__item.is-current {
    background: rgba(255, 202, 58, .16);
    border-color: var(--zahra-yellow);
    transform: translateY(-2px);
}

.brand-site .course-watch-queue__number {
    color: var(--zahra-yellow);
    font-family: Arial, sans-serif !important;
    font-size: .78rem;
    font-weight: 700;
    direction: ltr;
}

.brand-site .course-watch-queue__play {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: var(--zahra-navy);
    background: var(--zahra-yellow);
    border-radius: 50%;
}

.brand-site .course-watch-queue__copy {
    min-width: 0;
}

.brand-site .course-watch-queue__copy strong,
.brand-site .course-watch-queue__copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-site .course-watch-queue__copy strong {
    font-size: .88rem;
}

.brand-site .course-watch-queue__copy small,
.brand-site .course-watch-queue__duration {
    margin-top: .2rem;
    color: rgba(255, 255, 255, .64);
    font-size: .7rem;
}

.brand-site .course-watch-queue__duration {
    white-space: nowrap;
}

.brand-site .course-watch-queue__empty {
    color: rgba(255, 255, 255, .76);
}

.brand-site .course-watch-shell .course-content-area {
    max-width: 1080px;
    margin-inline: auto;
    background: rgba(3, 17, 48, .54);
    border-color: rgba(160, 115, 252, .3);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .14);
}

.brand-site .course-watch-shell .course-tabs-fullwidth {
    border-bottom-color: rgba(255, 255, 255, .14);
}

.brand-site .course-watch-shell .course-tabs-fullwidth .nav-link {
    color: rgba(255, 255, 255, .78);
}

.brand-site .course-watch-shell .course-tabs-fullwidth .nav-link.active,
.brand-site .course-watch-shell .course-tabs-fullwidth .nav-link:hover,
.brand-site .course-watch-shell .course-tabs-fullwidth .nav-link:focus-visible {
    color: var(--zahra-navy);
    background: var(--zahra-yellow);
    border-color: var(--zahra-yellow);
}

.brand-site .course-watch-shell .course-tabs-fullwidth .nav-link i {
    margin-inline-end: .3rem;
}

.brand-site .course-watch-shell .units-header-fullwidth h5,
.brand-site .course-watch-shell .section-name,
.brand-site .course-watch-shell .lesson-name,
.brand-site .course-watch-shell .telegram-title,
.brand-site .course-watch-shell .telegram-description,
.brand-site .course-watch-shell .knowledge-test-card h6,
.brand-site .course-watch-shell .test-stat-label {
    color: var(--zahra-white);
}

.brand-site .course-watch-shell #exercises .file-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .8rem;
    color: var(--zahra-white);
    background: rgba(3, 17, 48, .36);
    border-color: rgba(255, 255, 255, .2);
    border-radius: 14px 5px 14px 5px;
    box-shadow: none;
}

.brand-site .course-watch-shell #exercises .file-name {
    display: block;
    overflow: hidden;
    color: var(--zahra-white);
    font-size: .88rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-site .course-watch-shell #exercises .file-details {
    min-width: 0;
    color: rgba(255, 255, 255, .7);
}

.brand-site .course-watch-shell #exercises .file-icon {
    color: var(--zahra-purple);
}

.brand-site .course-watch-shell #exercises .file-info-part {
    min-width: 0;
    gap: .65rem;
    direction: rtl;
}

.brand-site .course-watch-shell #exercises .file-icon-badge {
    display: inline-grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--zahra-purple);
    background: rgba(160, 115, 252, .18);
    border: 1px solid rgba(160, 115, 252, .52);
    border-radius: 11px 4px 11px 4px;
}

.brand-site .course-watch-shell #exercises .file-icon-badge .file-icon {
    min-width: 0;
    margin: 0;
    font-size: 1.2rem;
}

.brand-site .course-watch-shell #exercises .file-meta {
    display: block;
    margin-top: .2rem;
    color: rgba(255, 255, 255, .62);
    font-size: .68rem;
}

.brand-site .course-watch-shell #exercises .file-action-part {
    flex: 0 0 auto;
}

.brand-site .course-watch-shell #exercises .file-preview-btn,
.brand-site .course-watch-shell #exercises .file-locked-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 36px;
    padding: .5rem .75rem;
    border-radius: 10px 4px 10px 4px;
    font: inherit;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

.brand-site .course-watch-shell #exercises .file-preview-btn {
    color: var(--zahra-navy);
    background: var(--zahra-yellow);
    border: 1px solid var(--zahra-yellow);
    box-shadow: 0 8px 18px rgba(255, 202, 58, .2);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.brand-site .course-watch-shell #exercises .file-preview-btn:hover,
.brand-site .course-watch-shell #exercises .file-preview-btn:focus-visible {
    color: var(--zahra-navy);
    background: #ffd66c;
    box-shadow: 0 10px 22px rgba(255, 202, 58, .34);
    transform: translateY(-1px);
}

.brand-site .course-watch-shell #exercises .file-locked-label {
    color: rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
}

.brand-site .course-watch-shell #exercises .file-item:hover {
    background: rgba(255, 202, 58, .12);
    border-color: rgba(255, 202, 58, .56);
}

.brand-site .attachment-preview-modal .attachment-preview-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(68vh, 660px);
    overflow: hidden;
    color: var(--zahra-slate);
    background: var(--zahra-navy);
    border: 1px solid rgba(103, 40, 235, .18);
    border-radius: 17px 7px 17px 7px;
}

.brand-site .attachment-preview-modal .attachment-preview-frame > span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: rgba(255, 255, 255, .78);
    font-size: .85rem;
}

.brand-site .attachment-preview-modal .attachment-preview-frame iframe {
    display: block;
    width: 100%;
    height: min(68vh, 660px);
    border: 0;
    background: var(--zahra-white);
}

.brand-site .attachment-preview-modal .modal-dialog {
    width: min(1120px, calc(100% - 2rem));
    max-width: none;
}

.brand-site .attachment-preview-modal .modal-content {
    max-height: calc(100dvh - 2rem);
    overflow: hidden;
}

.brand-site .attachment-preview-modal__header {
    align-items: center;
    padding: 1.15rem 1.35rem .95rem;
    border-bottom: 1px solid rgba(3, 17, 48, .09) !important;
}

.brand-site .attachment-preview-modal__brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .9rem;
}

.brand-site .attachment-preview-modal__logo {
    width: 116px;
    max-width: 28vw;
    height: auto;
    object-fit: contain;
}

.brand-site .attachment-preview-modal__header h2 {
    margin: .35rem 0 0;
    overflow: hidden;
    color: var(--zahra-navy);
    font-size: clamp(1.15rem, 2.2vw, 1.75rem);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-site .attachment-preview-modal__body {
    padding: .9rem 1.35rem 1.35rem !important;
}

@media (max-width: 767.98px) {
    .brand-site .course-watch-shell #exercises .file-item {
        grid-template-columns: minmax(0, 1fr);
        gap: .65rem;
    }

    .brand-site .course-watch-shell #exercises .file-action-part {
        width: 100%;
    }

    .brand-site .course-watch-shell #exercises .file-preview-btn,
    .brand-site .course-watch-shell #exercises .file-locked-label {
        width: 100%;
    }

    .brand-site .attachment-preview-modal .attachment-preview-frame,
    .brand-site .attachment-preview-modal .attachment-preview-frame iframe {
        min-height: min(70vh, 560px);
        height: min(70vh, 560px);
    }

    .brand-site .attachment-preview-modal .modal-dialog {
        width: 100%;
        min-height: calc(100% - 1rem);
        margin: .5rem auto;
    }

    .brand-site .attachment-preview-modal .modal-content {
        max-height: calc(100dvh - 1rem);
        border-radius: 22px 9px 22px 9px;
    }

    .brand-site .attachment-preview-modal__header {
        padding: 1.15rem 1rem .7rem;
    }

    .brand-site .attachment-preview-modal__body {
        padding: .45rem 1rem 1rem !important;
    }

    .brand-site .attachment-preview-modal__logo {
        width: 92px;
    }

    .brand-site .attachment-preview-modal__brand {
        gap: .65rem;
    }

    .brand-site .attachment-preview-modal__header h2 {
        font-size: 1.1rem;
    }
}

.brand-site .course-watch-shell #notes .knowledge-test-card {
    color: var(--zahra-navy);
    background: rgba(255, 255, 255, .96);
    border-color: rgba(160, 115, 252, .3);
}

.brand-site .course-watch-shell #notes .knowledge-test-card h6,
.brand-site .course-watch-shell #notes .knowledge-description,
.brand-site .course-watch-shell #notes .test-stat-label,
.brand-site .course-watch-shell #notes .test-stat-number {
    color: var(--zahra-navy);
}

.brand-site .course-watch-shell #notes .test-stats-combined-box {
    background: var(--zahra-pale-yellow);
}

.brand-site .course-watch-shell .section-fullwidth {
    overflow: hidden;
    background: rgba(255, 255, 255, .06);
    border-color: rgba(160, 115, 252, .28);
}

.brand-site .course-watch-shell .section-lessons-list {
    background: rgba(255, 255, 255, .96);
}

.brand-site .course-watch-shell .section-header-fullwidth {
    background: rgba(160, 115, 252, .18);
}

.brand-site .course-watch-shell .section-header-fullwidth:hover {
    background: rgba(255, 202, 58, .15);
}

.brand-site .course-watch-shell .section-fullwidth.has-current .section-header-fullwidth {
    background: linear-gradient(135deg, rgba(255, 202, 58, .18), rgba(160, 115, 252, .24));
    border-inline-start: 4px solid var(--zahra-yellow);
}

.brand-site .course-watch-shell .lesson-row {
    border-top-color: rgba(255, 255, 255, .12);
}

.brand-site .course-watch-shell .lesson-row:hover {
    background: rgba(230, 232, 253, .7);
}

.brand-site .course-watch-shell .lesson-row.is-current {
    background: var(--zahra-light-lavender);
    border-top-color: rgba(103, 40, 235, .22);
    box-shadow: inset -4px 0 0 var(--zahra-purple);
}

.brand-site .course-watch-shell .lesson-row.is-current .lesson-name {
    color: var(--zahra-navy) !important;
    font-weight: 700;
}

.brand-site .course-watch-shell .lesson-row.is-current .play-icon,
.brand-site .course-watch-shell .lesson-row.is-current .check-icon {
    color: var(--zahra-purple);
}

.brand-site .course-watch-shell .section-lessons-list .lesson-name {
    color: var(--zahra-navy) !important;
}

.brand-site .course-watch-shell .section-lessons-list .lesson-duration {
    color: var(--zahra-slate);
}

.brand-site .course-watch-shell .section-lessons-list .play-icon {
    color: var(--zahra-purple);
}

.brand-site .course-watch-shell .lesson-duration,
.brand-site .course-watch-shell .section-progress-text,
.brand-site .course-watch-shell .units-content-fullwidth > p,
.brand-site .course-watch-shell .file-details,
.brand-site .course-watch-shell .telegram-description,
.brand-site .course-watch-shell .test-stat-number,
.brand-site .course-watch-shell .tab-pane p {
    color: rgba(255, 255, 255, .7);
}

.brand-site .course-watch-shell .preview-label,
.brand-site .course-watch-shell .free-badge {
    color: var(--zahra-navy);
    background: var(--zahra-yellow);
}

.brand-site .course-unit-card__header {
    grid-template-columns: 50px minmax(0, 1fr) 34px;
    cursor: pointer;
}

.brand-site .course-unit-card__header .course-unit-card__start i {
    transition: transform .2s ease;
}

.brand-site .course-unit-card__header.is-open .course-unit-card__start i {
    transform: rotate(180deg);
}

.brand-site .course-unit-card__state {
    color: var(--zahra-purple);
    font-weight: 700;
}

.brand-site .course-lesson-row em {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

.brand-site .course-lesson-row em.is-locked {
    color: var(--zahra-slate);
    background: rgba(3, 17, 48, .08);
}

.brand-site .course-lesson-row em.is-available {
    color: var(--zahra-purple);
    background: rgba(103, 40, 235, .1);
}

@media (min-width: 992px) {
    .brand-site .course-watch-shell .course-watch-layout > .course_content {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
        column-gap: 1.25rem;
        row-gap: 0;
        align-items: start;
        direction: rtl;
    }

    .brand-site .course-watch-shell .course-watch-layout > .course_content > .video-player-fullwidth,
    .brand-site .course-watch-shell .course-watch-layout > .course_content > .course-watch-lesson-bar,
    .brand-site .course-watch-shell .course-watch-layout > .course_content > .course-watch-subscription-summary,
    .brand-site .course-watch-shell .course-watch-layout > .course_content > .course-content-area {
        grid-column: 1;
        width: 100%;
        max-width: none;
    }

    .brand-site .course-watch-shell .course-watch-layout > .course_content > .course-watch-lesson-bar,
    .brand-site .course-watch-shell .course-watch-layout > .course_content > .course-content-area {
        margin-inline: 0;
    }

    .brand-site .course-watch-shell .course-watch-layout > .course_content > .course-watch-units-panel {
        grid-column: 2;
        grid-row: 1 / span 5;
        width: 100%;
        max-width: none;
        margin: 1.5625rem 0 0;
        position: sticky;
        top: 1rem;
    }

    .brand-site .course-watch-shell .course-watch-queue__heading {
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .brand-site .course-unit-card__header {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
    }

    .brand-site .course-unit-card__header--link {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
    }

    .brand-site .course-unit-card__start {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        font-size: .82rem;
    }

    .brand-site .course-watch-queue {
        padding: 1rem;
        border-radius: 17px 6px 17px 6px;
    }

    .brand-site .course-watch-queue__heading h2 {
        font-size: 1.08rem;
    }

    .brand-site .course-watch-units-panel {
        position: static;
        max-width: none;
        margin: 1rem 0 0;
    }

    .brand-site .course-watch-units-panel__heading h2 {
        font-size: 1.08rem;
    }

    .brand-site .course-watch-queue__list {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .brand-site .course-watch-queue__item {
        width: 100%;
    }

    .brand-site .course-watch-video-label {
        align-items: flex-start;
    }

    .brand-site .course-watch-video-current-title {
        max-width: min(72vw, 17rem);
        font-size: .95rem;
    }

    .brand-site .course-watch-navigation-label {
        width: 100%;
    }

    .brand-site .course-watch-navigation-actions {
        width: 100%;
    }

    .brand-site .course-watch-lesson-bar .course-btn-purple {
        flex: 1 1 0;
        justify-content: center;
    }

    .brand-site .course-watch-shell .course-content-area {
        margin-top: 1rem;
    }
}

/* Course watch unit navigator: the lesson list stays in the left 4-column rail. */
.brand-site .course-watch-units-panel {
    width: 100%;
    max-width: none;
    margin: 1.2rem 0 0;
    padding: 1rem;
    background: rgba(3, 17, 48, .45);
    border: 1px solid rgba(160, 115, 252, .34);
    border-radius: 22px 8px 22px 8px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .16);
}

.brand-site .course-watch-units-panel__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .85rem;
}

.brand-site .course-watch-units-panel__kicker {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--zahra-yellow);
    font-size: .78rem;
    font-weight: 700;
}

.brand-site .course-watch-units-panel__heading h2 {
    margin: .3rem 0 0;
    color: var(--zahra-white);
    font-size: 1.28rem;
}

.brand-site .course-watch-units-panel__count {
    color: rgba(255, 255, 255, .68);
    font-size: .78rem;
    white-space: nowrap;
}

.brand-site .course-watch-units-panel__list {
    display: grid;
    gap: .65rem;
}

.brand-site .course-watch-units-panel .section-fullwidth {
    margin-bottom: 0;
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .12);
    border-radius: 14px 5px 14px 5px;
}

.brand-site .course-watch-units-panel .section-header-fullwidth {
    padding: .8rem;
    background: transparent;
}

.brand-site .course-watch-units-panel .section-header-fullwidth:hover {
    background: rgba(255, 202, 58, .12);
}

.brand-site .course-watch-units-panel .section-left-part {
    gap: .55rem;
}

.brand-site .course-watch-units-panel .section-toggle-btn {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    color: var(--zahra-yellow);
    font-size: 1.2rem;
}

.brand-site .course-watch-units-panel .section-details {
    min-width: 0;
}

.brand-site .course-watch-units-panel .section-name,
.brand-site .course-watch-units-panel .lesson-name {
    color: var(--zahra-white) !important;
}

.brand-site .course-watch-units-panel .section-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .92rem;
}

.brand-site .course-watch-units-panel .section-progress-text {
    color: rgba(255, 255, 255, .62);
    font-size: .7rem;
}

.brand-site .course-watch-units-panel .section-lessons-list {
    padding: .35rem;
    background: transparent;
}

.brand-site .course-watch-units-panel .lesson-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    min-width: 0;
    margin: .35rem 0;
    padding: .62rem .65rem;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-top-color: rgba(255, 255, 255, .12);
    border-radius: 12px 4px 12px 4px;
}

.brand-site .course-watch-units-panel .lesson-row:hover {
    background: rgba(255, 202, 58, .12);
}

.brand-site .course-watch-units-panel .lesson-row .lesson-info-part {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: .4rem;
}

.brand-site .course-watch-units-panel .lesson-row .lesson-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .78rem;
}

.brand-site .course-watch-units-panel .lesson-row .lesson-duration {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, .64);
    font-size: .68rem;
}

.brand-site .course-watch-units-panel .lesson-row .play-icon,
.brand-site .course-watch-units-panel .lesson-row .check-icon {
    flex: 0 0 auto;
    color: var(--zahra-purple);
}

.brand-site .course-watch-units-panel .lesson-row.is-current {
    background: rgba(255, 202, 58, .16);
    border-color: var(--zahra-yellow);
    box-shadow: inset -4px 0 0 var(--zahra-yellow);
}

.brand-site .course-watch-units-panel .lesson-row.is-current .lesson-name {
    color: var(--zahra-navy) !important;
    font-weight: 700;
}

.brand-site .course-watch-units-panel .lesson-row.is-current .lesson-duration {
    color: rgba(3, 17, 48, .68);
}

.brand-site .course-watch-units-panel .course-watch-lock-label {
    display: inline-flex;
    align-items: center;
    gap: .15rem;
    color: rgba(255, 255, 255, .68);
    font-size: .65rem;
    white-space: nowrap;
}

.brand-site .course-watch-unit-summary {
    padding: 1.1rem;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(160, 115, 252, .26);
    border-radius: 16px 5px 16px 5px;
}

.brand-site .course-watch-unit-summary__kicker {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--zahra-yellow);
    font-size: .78rem;
    font-weight: 700;
}

.brand-site .course-watch-unit-summary h5 {
    margin: .45rem 0 .35rem;
    color: var(--zahra-white);
    font-size: 1.18rem;
}

.brand-site .course-watch-unit-summary p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: .82rem;
}

/* Keep the long unit navigator from extending the page beside a shorter tab area. */
@media (min-width: 992px) {
    .brand-site .course-watch-units-panel {
        max-height: calc(100vh - 2rem);
        overflow: hidden;
    }

    .brand-site .course-watch-units-panel__list {
        max-height: calc(100vh - 8.5rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-inline-end: .25rem;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 202, 58, .75) rgba(255, 255, 255, .08);
    }

    .brand-site .course-watch-units-panel__list::-webkit-scrollbar {
        width: 6px;
    }

    .brand-site .course-watch-units-panel__list::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, .08);
        border-radius: 99px;
    }

    .brand-site .course-watch-units-panel__list::-webkit-scrollbar-thumb {
        background: rgba(255, 202, 58, .75);
        border-radius: 99px;
    }
}

/* High-contrast lesson rows on the branded purple surface. */
.brand-site .course-watch-shell .course-watch-units-panel .lesson-row {
    background: rgba(3, 17, 48, .34);
    border-color: rgba(255, 255, 255, .22);
    border-top-color: rgba(255, 255, 255, .22);
}

.brand-site .course-watch-shell .course-watch-units-panel .lesson-row:hover {
    background: rgba(255, 202, 58, .17);
    border-color: rgba(255, 202, 58, .65);
}

.brand-site .course-watch-shell .course-watch-units-panel .section-lessons-list .lesson-name {
    color: rgba(255, 255, 255, .96) !important;
    font-weight: 600;
}

.brand-site .course-watch-shell .course-watch-units-panel .section-lessons-list .lesson-duration {
    color: rgba(255, 255, 255, .78) !important;
}

.brand-site .course-watch-shell .course-watch-units-panel .course-watch-lesson-icon {
    display: inline-grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    color: var(--zahra-yellow);
    background: rgba(255, 202, 58, .14);
    border: 1px solid rgba(255, 202, 58, .56);
    border-radius: 10px 4px 10px 4px;
    font-size: 1rem;
}

.brand-site .course-watch-shell .course-watch-units-panel .course-watch-lesson-icon .play-icon,
.brand-site .course-watch-shell .course-watch-units-panel .course-watch-lesson-icon .check-icon {
    color: inherit;
}

.brand-site .course-watch-shell .course-watch-units-panel .lesson-row.is-locked .course-watch-lesson-icon {
    color: rgba(255, 255, 255, .78);
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .24);
}

.brand-site .course-watch-shell .course-watch-units-panel .lesson-row.is-locked .lesson-name {
    color: rgba(255, 255, 255, .84) !important;
}

.brand-site .course-watch-shell .course-watch-units-panel .lesson-row.is-current {
    background: var(--zahra-yellow);
    border-color: var(--zahra-yellow);
    box-shadow: inset -4px 0 0 var(--zahra-navy), 0 8px 18px rgba(3, 17, 48, .16);
}

.brand-site .course-watch-shell .course-watch-units-panel .lesson-row.is-current .course-watch-lesson-icon {
    color: var(--zahra-navy);
    background: rgba(3, 17, 48, .1);
    border-color: rgba(3, 17, 48, .24);
}

.brand-site .course-watch-shell .course-watch-units-panel .lesson-row.is-current .lesson-name,
.brand-site .course-watch-shell .course-watch-units-panel .lesson-row.is-current .lesson-duration {
    color: var(--zahra-navy) !important;
}

.brand-site .course-watch-shell .course-watch-units-panel .course-watch-lock-label {
    color: rgba(255, 255, 255, .78);
}

/* On phones the unit navigator belongs to the first tab, while desktop keeps
   the two-column video + navigator composition. */
@media (min-width: 992px) {
    .brand-site .course-watch-mobile-units-slot {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .brand-site .course-watch-shell .course-watch-layout > .course_content {
        display: flex;
        flex-direction: column;
        direction: rtl;
    }

    .brand-site .course-watch-shell .course-watch-layout > .course_content > .video-player-fullwidth {
        order: 1;
    }

    .brand-site .course-watch-shell .course-watch-layout > .course_content > .course-watch-lesson-bar {
        order: 2;
    }

    .brand-site .course-watch-shell .course-watch-layout > .course_content > .course-content-area {
        order: 3;
        width: 100%;
        max-width: none;
        margin-top: 1rem;
    }

    .brand-site .course-watch-shell .course-watch-layout > .course_content > .course-watch-subscription-summary {
        order: 4;
    }

    .brand-site .course-watch-shell .course-watch-layout > .course_content > .course-watch-units-panel {
        order: 5;
        position: static;
        max-width: none;
        max-height: none;
        margin: 1rem 0 0;
        overflow: visible;
    }

    .brand-site .course-watch-mobile-units-slot {
        display: block;
        margin-top: 0;
    }

    .brand-site .course-watch-mobile-units-slot > .course-watch-units-panel {
        position: static;
        width: 100%;
        max-width: none;
        max-height: none;
        margin: 0;
        overflow: visible;
        box-shadow: none;
    }

    .brand-site .course-watch-mobile-units-slot .course-watch-units-panel__list {
        max-height: none;
        overflow: visible;
    }
}

/* The desktop unit rail already owns lesson navigation. Keep the lessons tab
   for mobile, where the rail is placed inside it, but avoid showing a duplicate
   empty tab beside the desktop player. */
@media (min-width: 992px) {
    .brand-site .course-watch-shell .course-watch-tabs .course-watch-lessons-tab,
    .brand-site .course-watch-shell .course-watch-lessons-pane {
        display: none !important;
    }
}

/* Teacher chat: a persistent action opposite the page's back-to-top control. */
.brand-site .course-watch-shell .course-watch-inline-chat-trigger {
    display: none !important;
}

.brand-site .course-watch-shell > .course-chat-floating {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1055;
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    min-height: 58px;
    padding: .65rem 1rem .65rem .8rem;
    color: var(--zahra-navy);
    background: var(--zahra-yellow);
    border: 2px solid rgba(3, 17, 48, .14);
    border-radius: 18px 8px 18px 8px;
    box-shadow: 0 14px 30px rgba(3, 17, 48, .22), 0 0 0 0 rgba(255, 202, 58, .45);
    font-size: 1rem;
    font-weight: 700;
    direction: rtl;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.brand-site .course-watch-shell > .course-chat-floating:hover,
.brand-site .course-watch-shell > .course-chat-floating:focus-visible,
.brand-site .course-watch-shell > .course-chat-floating.is-active {
    color: var(--zahra-navy);
    background: linear-gradient(135deg, #ffca3a 0%, #ffe17d 100%);
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(3, 17, 48, .25), 0 0 0 8px rgba(255, 202, 58, .16);
    outline: none;
}

.brand-site .course-chat-floating__icon {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--zahra-yellow);
    background: var(--zahra-navy);
    border-radius: 12px 5px 12px 5px;
    font-size: 1.2rem;
}

.brand-site .course-chat-floating__badge,
.brand-site .course-chat-header__badge {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 .3rem;
    color: var(--zahra-white);
    background: #e5484d;
    border: 2px solid var(--zahra-white);
    border-radius: 999px;
    font-family: Arial, sans-serif !important;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1;
}

.brand-site .course-chat-floating__badge {
    position: absolute;
    top: -7px;
    right: -7px;
}

/* Override the legacy Bootstrap column so the chat never resizes or pushes
   the course page. It opens above the fixed trigger as a compact panel. */
.brand-site .course-watch-shell .quest_chat {
    position: fixed !important;
    right: 1rem;
    bottom: 5.8rem;
    z-index: 1050;
    display: none !important;
    width: min(390px, calc(100vw - 2rem)) !important;
    max-width: none !important;
    height: min(540px, calc(100vh - 7.5rem));
    padding: 0 !important;
    margin: 0 !important;
    flex: none !important;
    direction: rtl;
}

.brand-site .course-watch-shell .quest_chat.is-open {
    display: block !important;
    animation: course-chat-pop-in .2s ease both;
}

.brand-site .course-watch-shell .quest-chat-container {
    height: 100%;
    overflow: hidden;
    background: var(--zahra-white);
    border: 1px solid rgba(103, 40, 235, .15);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(3, 17, 48, .18);
}

.brand-site .course-watch-shell .quest-chat-header {
    min-height: 60px;
    padding: .85rem 1.25rem;
    color: var(--zahra-white);
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
    border-bottom: none;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
}

.brand-site .course-watch-shell .quest-chat-header h6 {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    padding: 0;
    color: var(--zahra-white);
    background: transparent;
    font-size: 1.05rem;
    font-weight: 700;
}

.brand-site .course-watch-shell .quest-chat-header h6::before {
    content: none !important;
    display: none !important;
}

.brand-site .course-watch-shell .quest-chat-header__icon {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    background: rgba(255, 255, 255, .2);
    border-radius: 10px;
    font-size: 1.1rem;
}

.brand-site .course-watch-shell .course-chat-header__badge {
    padding: 3px 9px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 20px;
    background: #f59e0b;
    color: #ffffff;
}

.brand-site .course-watch-shell .btn-close-quest {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: var(--zahra-white);
    background: rgba(255, 255, 255, .2);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s ease;
}

.brand-site .course-watch-shell .btn-close-quest:hover,
.brand-site .course-watch-shell .btn-close-quest:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, .35);
    transform: scale(1.05);
    outline: none;
}

.brand-site .course-watch-shell .quest-chat-body {
    display: flex;
    height: calc(100% - 60px);
    flex-direction: column;
    padding: 1rem;
    background: #f8fafc;
}

.brand-site .course-watch-shell .quest-chat-body .main-question-box {
    padding: .8rem 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.brand-site .course-watch-shell .quest-chat-body .main-question-title {
    margin: 0;
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
}

.brand-site .course-watch-shell .quest-chat-body .chat-messages-container {
    flex: 1;
    min-height: 80px;
    margin: .75rem 0;
    padding: .25rem;
    overflow-y: auto;
}

/* Modern chat message bubbles */
.brand-site .course-watch-shell .quest-chat-body .chat-messages-container .msg-row {
    margin-bottom: 0.75rem;
    display: flex;
}

.brand-site .course-watch-shell .quest-chat-body .chat-messages-container .msg-row.msg-out {
    justify-content: flex-start;
}

.brand-site .course-watch-shell .quest-chat-body .chat-messages-container .msg-row.msg-in {
    justify-content: flex-end;
}

.brand-site .course-watch-shell .quest-chat-body .chat-messages-container .msg-row.msg-out .msg-bubble {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    border-radius: 18px 18px 18px 4px !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
    padding: 10px 14px !important;
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
}

.brand-site .course-watch-shell .quest-chat-body .chat-messages-container .msg-row.msg-in .msg-bubble {
    background: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px 18px 4px 18px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    padding: 10px 14px !important;
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
}

.brand-site .course-watch-shell .quest-chat-body .chat-messages-container .msg-row small {
    opacity: 0.75;
    font-weight: 500;
    margin-top: 4px;
}

.brand-site .course-watch-shell .quest-chat-body .chat-input-container {
    margin-top: auto;
    padding: .75rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.brand-site .course-watch-shell .quest-chat-body .chat-input-wrapper {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 8px 12px !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.brand-site .course-watch-shell .quest-chat-body .chat-input-wrapper:focus-within {
    background: #ffffff !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

.brand-site .course-watch-shell .quest-chat-body .chat-input-field {
    color: #0f172a !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    resize: none !important;
    font-size: 0.9rem !important;
    padding: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 80px !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    outline: none !important;
}

.brand-site .course-watch-shell .quest-chat-body .chat-input-field:focus {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.brand-site .course-watch-shell .quest-chat-body .chat-bottom-row .btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: all 0.2s ease;
}

.brand-site .course-watch-shell .quest-chat-body .chat-bottom-row .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

@keyframes course-chat-pop-in {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 991.98px) {
    .brand-site .course-watch-shell > .course-chat-floating {
        right: .75rem;
        bottom: .75rem;
        min-height: 54px;
        padding: .55rem .75rem .55rem .65rem;
    }

    .brand-site .course-watch-shell .quest_chat {
        right: .5rem;
        bottom: 5.25rem;
        width: calc(100vw - 1rem) !important;
        height: min(520px, calc(100vh - 6.75rem));
    }
}

@media (max-width: 420px) {
    .brand-site .course-chat-floating__label {
        display: none;
    }

    .brand-site .course-watch-shell > .course-chat-floating {
        width: 56px;
        justify-content: center;
        padding: .5rem;
        border-radius: 16px 6px 16px 6px;
    }
}
