.tma-courses-banner.breadcrumb-bg,
.tma-courses-banner.courses-archive-breadcrumb {
    padding: 28px 0 8px;
    background: #fff;
    background-image: none;
}

.tma-banner {
    width: 100%;
    margin: 0 auto;
}

.tma-banner__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1160 / 322;
    overflow: hidden;
    border: 1px solid #fff3dc;
    border-radius: 24px;
    background: #fffaf0;
    container-type: inline-size;
}

.tma-banner__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.45s ease;
}

.tma-banner__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #fffaf0;
}

.tma-banner__visual {
    position: absolute;
    inset: -1px;
    overflow: hidden;
}

.tma-banner__visual img,
.tma-banner__glow,
.tma-banner__logo-crop img,
.tma-banner__bullet,
.tma-banner__arrow img {
    max-width: none;
}

.tma-banner__visual img {
    position: absolute;
    left: 0;
    top: -0.92%;
    width: 101.83%;
    height: 101.83%;
}

.tma-banner--en .tma-banner__visual {
    inset: -1px -1px -1px 53.1%;
}

.tma-banner--en .tma-banner__visual img {
    left: -8.7%;
    top: -0.92%;
    width: 217.39%;
    height: 101.83%;
}

.tma-banner__glow {
    position: absolute;
    top: -93.5%;
    width: 65.52%;
    height: 161.5%;
    pointer-events: none;
}

.tma-banner--ar .tma-banner__glow {
    left: 63.7%;
}

.tma-banner--en .tma-banner__glow {
    left: -29.4%;
}

.tma-banner__logo-crop {
    display: none;
}

.tma-banner--en .tma-banner__logo-crop {
    display: block;
    position: absolute;
    left: 2.67%;
    top: 51.24%;
    width: 25.43%;
    height: 33.54%;
    overflow: hidden;
    z-index: 2;
}

.tma-banner--en .tma-banner__logo-crop img {
    position: absolute;
    left: -240%;
    top: -203.03%;
    width: 400%;
    height: 303.03%;
}

.tma-banner__copy {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tma-banner--ar .tma-banner__copy {
    direction: ltr;
    align-items: flex-end;
    text-align: right;
}

.tma-banner--en .tma-banner__copy {
    align-items: flex-start;
    text-align: left;
}

.tma-banner--ar .tma-banner__slide--s1 .tma-banner__copy,
.tma-banner--ar .tma-banner__slide--s4 .tma-banner__copy {
    left: 43.36%;
    top: 21.74%;
    width: 51.72%;
}

.tma-banner--ar .tma-banner__slide--s2 .tma-banner__copy {
    left: 34.74%;
    top: 11.8%;
    width: 60.34%;
    gap: 10px;
}

.tma-banner--ar .tma-banner__slide--s3 .tma-banner__copy {
    left: 41.64%;
    top: 10.87%;
    width: 53.45%;
}

.tma-banner--en .tma-banner__slide--s1 .tma-banner__copy {
    left: 4.74%;
    top: 21.74%;
    width: 51.72%;
}

.tma-banner--en .tma-banner__slide--s2 .tma-banner__copy {
    left: 4.74%;
    top: 8.7%;
    width: 51.72%;
    gap: 10px;
}

.tma-banner--en .tma-banner__slide--s3 .tma-banner__copy {
    left: 4.74%;
    top: 10.56%;
    width: 56.9%;
}

.tma-banner--en .tma-banner__slide--s4 .tma-banner__copy {
    left: 4.74%;
    top: 21.74%;
    width: 50%;
}

.tma-banner__accent {
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: #e74c39;
}

.tma-banner__title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    color: #5e1f18;
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-size: calc(32 * 100cqi / 1160);
    font-weight: 700;
    line-height: 1.4;
}

.tma-banner--ar .tma-banner__title {
    direction: ltr;
    align-items: flex-end;
    width: 100%;
}

.tma-banner--ar .tma-banner__line,
.tma-banner--ar .tma-banner__body,
.tma-banner--ar .tma-banner__item-text {
    direction: rtl;
    text-align: right;
}

.tma-banner--ar .tma-banner__body,
.tma-banner--ar .tma-banner__items {
    width: 100%;
}

.tma-banner__line {
    white-space: nowrap;
}

.tma-banner__mark {
    position: relative;
    display: inline-block;
    padding: 0 5px;
    z-index: 0;
}

.tma-banner__mark::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 14px;
    border-radius: 2px;
    background: #ffc658;
    z-index: -1;
}

.tma-banner__body {
    margin: 0;
    color: #5e1f18;
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-size: calc(16 * 100cqi / 1160);
    font-weight: 400;
    line-height: 1.6;
}

.tma-banner__body strong,
.tma-banner__item-text strong {
    font-weight: 700;
}

.tma-banner__items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.tma-banner__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    direction: ltr;
}

.tma-banner--ar .tma-banner__item {
    justify-content: flex-end;
}

.tma-banner__item-text {
    flex: 1;
    color: #5e1f18;
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-size: calc(14 * 100cqi / 1160);
    font-weight: 400;
    line-height: 1.5;
}

.tma-banner--ar .tma-banner__item-text {
    text-align: right;
}

.tma-banner__bullet {
    flex: 0 0 6px;
    width: 6px;
    height: 15px;
    margin-top: 1px;
}

.tma-banner__book-label {
    position: absolute;
    z-index: 3;
    top: 77.6%;
    margin: 0;
    color: #fff;
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-size: calc(14 * 100cqi / 1160);
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.tma-banner--ar .tma-banner__book-label {
    left: 23.1%;
}

.tma-banner--en .tma-banner__book-label {
    left: 70.6%;
}

.tma-banner__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.tma-banner__arrow {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.tma-banner__arrow img {
    display: block;
    width: 40px;
    height: 40px;
}

.tma-banner__dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tma-banner__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #b1b1b1;
    cursor: pointer;
}

.tma-banner__dot.is-active {
    width: 24px;
    background: #e74c39;
}

@media (max-width: 991.98px) {
    .tma-courses-banner {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tma-banner__track {
        transition: none;
    }
}
