/*
 * clsspro.com look-and-feel.
 *
 * clsspro.com is built with Elementor on top of the EduBlink theme, so its design tokens
 * come from Elementor globals rather than the theme's own --edublink-* variables (the
 * theme vars still say teal #1AB69D; the site actually renders gold #C7B04E). Every value
 * below was measured from the live page with a headless browser at 1440px.
 *
 * Loaded last, after app.css and portal-custom*.css.
 */

:root {
    --clss-primary: #228371; /* Elementor --e-global-color-primary */
    --clss-accent: #C7B04E; /* Elementor --e-global-color-accent  */
    --clss-secondary: #54595F;
    --clss-text: #808080;
    --clss-heading: #181818;
    --clss-teal-deep: #166155;
    --clss-teal-mid: #299381;
    --clss-shade: #F0F4F5;
    --clss-gradient: linear-gradient(-90deg, #166155 0%, #299381 100%);
    --clss-gradient-alt: linear-gradient(90deg, #2A9884 0%, #176659 100%);
}

/* ------------------------------------------------------------------ base */

.clss {
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--clss-text);
    background: #fff;
}

.clss h1,
.clss h2,
.clss h3,
.clss h4,
.clss h5,
.clss h6 {
    font-family: 'Cairo', sans-serif;
    color: var(--clss-heading);
    font-weight: 600;
    margin: 0;
}

.clss p {
    margin: 0 0 15px;
}

.clss ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.clss a {
    text-decoration: none;
    transition: .3s;
}

.clss img {
    max-width: 100%;
}

.clss .clss-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.clss .clss-container--wide {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 15px;
}

.clss .clss-section-title {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.39;
    color: var(--clss-accent);
    text-align: center;
    margin-bottom: 40px;
}

.clss .clss-section-title.on-dark {
    color: #fff;
}

.clss .clss-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    border-radius: 37px;
    background: var(--clss-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border: 0;
}

.clss .clss-btn:hover {
    background: #b39a3d;
    color: #fff;
}

.clss .clss-btn--teal {
    background: var(--clss-primary);
}

.clss .clss-btn--teal:hover {
    background: #1b6c5d;
}

/* ---------------------------------------------------------------- header */

.clss .clss-topstrip {
    height: 4px;
    background: var(--clss-accent);
}

.clss .clss-header {
    position: absolute;
    inset-inline: 0;
    top: 4px;
    z-index: 20;
    height: 137px;
    background: transparent;
    display: flex;
    align-items: center;
}

.clss .clss-header__inner {
    width: 100%;
    max-width: 1410px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.clss .clss-header__logo img {
    width: 136px;
}

.clss .clss-nav {
    display: flex;
    align-items: center;
    margin-inline-start: auto;
}

.clss .clss-nav a {
    display: flex;
    align-items: center;
    height: 90px;
    padding: 0 26px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.clss .clss-nav a:hover {
    color: var(--clss-accent);
}

.clss .clss-header__cta {
    margin-inline-start: 20px;
}

/* Login link inside the burger panel — only shown on mobile where the CTA is hidden.
   Needs to beat `.clss-nav a` on specificity, otherwise it leaks onto desktop. */
.clss .clss-nav a.clss-nav__login {
    display: none;
}

/* Hamburger — only shown once the inline nav collapses. */
.clss .clss-navtoggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    order: 3;
}

.clss .clss-header.is-stuck .clss-navtoggle,
.clss .clss-header--solid .clss-navtoggle {
    color: var(--clss-heading);
}

.clss .clss-navbackdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 3;
}

.clss .clss-navclose {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: var(--clss-heading);
    font-size: 20px;
    cursor: pointer;
    display: none;
}

/* Sticky state: the transparent bar turns solid once the hero is scrolled past. */
.clss .clss-header.is-stuck {
    position: fixed;
    top: 0;
    height: 90px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}

.clss .clss-header.is-stuck .clss-nav a {
    color: var(--clss-heading);
    height: 90px;
}

.clss .clss-header.is-stuck .clss-nav a:hover {
    color: var(--clss-primary);
}

.clss .clss-header.is-stuck .clss-logo--light {
    display: none;
}

.clss .clss-logo--dark {
    display: none;
}

.clss .clss-header.is-stuck .clss-logo--dark {
    display: block;
}

/* ------------------------------------------------------------------ hero */

.clss .clss-hero {
    position: relative;
    height: 650px;
    overflow: hidden;
}

.clss .clss-hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.clss .clss-hero__slide.is-active {
    opacity: 1;
}

.clss .clss-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .45) 100%);
}

.clss .clss-hero__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 60px;
}

.clss .clss-hero__title {
    font-size: 52px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--clss-accent);
    margin-bottom: 14px;
}

.clss .clss-hero__text {
    color: #fff;
    font-size: 18px;
    white-space: nowrap;
}

.clss .clss-hero__dots {
    position: absolute;
    inset-inline-end: 26px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.clss .clss-hero__dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
}

.clss .clss-hero__dots button.is-active {
    background: #fff;
}

.clss .clss-hero__arrows {
    position: absolute;
    inset-inline-start: 26px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.clss .clss-hero__arrows button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background .3s;
}

.clss .clss-hero__arrows button:hover {
    background: var(--clss-accent);
}

/* --------------------------------------------------------- feature cards */

.clss .clss-features {
    margin-top: -50px;
    z-index: 2;
    position: relative;
}

.clss .clss-features__wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .06);
}

.clss .clss-feature {
    padding: 58px 25px 50px 50px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.clss .clss-feature__icon {
    flex: 0 0 auto;
    font-family: 'tutor';
    font-size: 40px;
    line-height: 1;
    font-style: normal;
    color: #1AB69D;
}

/* The three Tutor glyphs clsspro uses, by codepoint. */
.clss .clss-ficon-review::before {
    content: "\e92b";
}

.clss .clss-ficon-badge::before {
    content: "\e934";
}

.clss .clss-ficon-trophy::before {
    content: "\e90b";
}

/* The middle card is gold; the outer two are teal. */
.clss .clss-ficon-badge {
    color: #C8B04C;
}

/* Each card tints on hover in its own icon colour. */
.clss .clss-feature {
    transition: background-color .3s;
}

.clss .clss-feature--teal:hover {
    background-color: rgba(26, 182, 157, .07);
}

.clss .clss-feature--gold:hover {
    background-color: rgba(255, 251, 232, .44);
}

.clss .clss-feature__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--clss-heading);
    margin-bottom: 8px;
}

.clss .clss-feature__text {
    font-size: 15px;
}

/* ----------------------------------------------------------------- about */

.clss .clss-about {
    padding: 70px 0 0;
}

.clss .clss-about__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* clsspro puts the photo on the visual left, i.e. the second column in RTL. */
.clss .clss-about__media {
    position: relative;
    order: 2;
}

.clss .clss-about__media img {
    display: block;
}

.clss .clss-about__logo {
    position: absolute;
    inset-inline-end: 30px;
    bottom: -30px;
    width: 150px;
}

.clss .clss-tabs {
    display: flex;
    gap: 26px;
    margin-bottom: 22px;
}

.clss .clss-tabs button {
    background: none;
    border: 0;
    padding: 0 0 1px;
    font-family: 'Cairo', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--clss-heading);
    cursor: pointer;
}

.clss .clss-tabs button.is-active {
    color: #2B9B86;
}

.clss .clss-tabpanel {
    display: none;
}

.clss .clss-tabpanel.is-active {
    display: block;
}

.clss .clss-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.clss .clss-values h6 {
    font-size: 16px;
    color: var(--clss-heading);
    margin-bottom: 4px;
}

/* -------------------------------------------------------------- services */

.clss .clss-services {
    padding: 60px 0 67px;
}

.clss .clss-services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* clsspro stacks two cards per column and fills column by column */
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    gap: 50px 50px;
}

.clss .clss-service {
    background: #fff;
    border: 0;
    border-radius: 5px;
    box-shadow: 0 10px 50px rgba(26, 46, 85, .1);
    padding: 30px;
}

.clss .clss-service__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(26, 182, 157, .07);
    color: #1AB69D;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clss .clss-service__icon svg {
    width: 54px;
    height: 54px;
    fill: currentColor;
}

.clss .clss-service__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--clss-heading);
    margin-bottom: 12px;
}

.clss .clss-service li {
    position: relative;
    padding-inline-start: 14px;
    font-size: 11px;
    line-height: 19px;
    margin-bottom: 2px;
}

.clss .clss-service li::before {
    content: "•";
    position: absolute;
    inset-inline-start: 0;
    color: var(--clss-primary);
}

/* -------------------------------------------------------------- programs */

.clss .clss-programs {
    background: var(--clss-shade);
    padding: 100px 0 67px;
}

.clss .clss-progtabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.clss .clss-progtabs button,
.clss .clss-progtabs a {
    border: 0;
    border-radius: 4px;
    padding: 12px 22px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 500;
    background: #e7ecee;
    color: var(--clss-heading);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.clss .clss-progtabs button.is-active,
.clss .clss-progtabs a.is-active {
    background: var(--clss-primary);
    color: #fff;
}

.clss .clss-programs__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.clss .clss-programs__more {
    text-align: center;
    margin-top: 45px;
}

.clss .clss-programs__empty {
    text-align: center;
    padding: 40px 0;
    color: #6b6b6b;
}

/* ----------------------------------------------------------------- staff */

.clss .clss-staff {
    background: var(--clss-teal-deep);
    padding: 45px 0 55px;
}

.clss .clss-staff__grid {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.clss .clss-staff__box {
    width: 264px;
    height: 120px;
    background: #fff;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    font-size: 20px;
    font-weight: 600;
    color: var(--clss-heading);
}

/* ------------------------------------------------------- target orgs row */

.clss .clss-orgs {
    padding: 55px 0;
    background: #fff;
}

.clss .clss-orgs__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.clss .clss-orgs__row img {
    height: 62px;
    width: auto;
    object-fit: contain;
    flex: 0 0 auto;
}

/* ------------------------------------------------------------ CTA bands  */

.clss .clss-band {
    position: relative;
    overflow: hidden;
    background-image: var(--clss-gradient);
    padding: 15px 0;
    min-height: 395px;
    display: flex;
    align-items: center;
}

.clss .clss-band__title {
    font-size: 44px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 12px;
}

.clss .clss-band p {
    color: rgba(255, 255, 255, .9);
}

.clss .clss-contactband {
    background-image: var(--clss-gradient-alt);
    padding: 68px 0 10px;
    min-height: 235px;
    text-align: center;
}

.clss .clss-contactband .clss-section-title {
    font-size: 24px;
    color: var(--clss-accent);
    text-align: start;
    margin-bottom: 30px;
}

/* ----------------------------------------------------------- testimonial */

.clss .clss-testimonial {
    background: var(--clss-shade);
    padding: 40px 0 8px;
}

.clss .clss-testimonial__card {
    position: relative;
    background: #fff;
    border-radius: 5px;
    padding: 45px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .05);
}

.clss .clss-testimonial__card p {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.75;
    color: var(--clss-heading);
}

.clss .clss-testimonial__person {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
    text-align: right;
}

.clss .clss-testimonial__person img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.clss .clss-testimonial__person h6 {
    font-size: 18px;
    font-weight: 600;
    color: var(--clss-heading);
    margin: 0;
}

.clss .clss-testimonial__person span {
    font-size: 15px;
}

.clss .clss-testimonial .clss-section-title {
    color: #2B9B86;
}

/* ---------------------------------------------------------------- footer */

.clss .clss-footer {
    background-image: var(--clss-gradient-alt);
    padding: 17px 0;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    text-align: center;
}

/* ------------------------------------------------------------ responsive */

/* ============================================================ inner pages */

/* On inner pages the bar is a solid white 94px strip instead of the transparent
   137px overlay used on the home page. */
.clss .clss-header--solid {
    position: static;
    top: 0;
    height: 94px;
    background: #fff;
}

.clss .clss-header--solid .clss-nav a {
    color: var(--clss-heading);
    height: 94px;
}

.clss .clss-header--solid .clss-nav a:hover {
    color: var(--clss-accent);
}

/* The active nav item keeps the theme teal on clsspro, not the gold accent. */
.clss .clss-header--solid .clss-nav a.is-current {
    color: #1AB69D;
}

.clss .clss-header--solid .clss-logo--light {
    display: none;
}

.clss .clss-header--solid .clss-logo--dark {
    display: block;
}

.clss .clss-pagebanner {
    position: relative;
    height: 394px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.clss .clss-pagebanner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(14, 60, 52, .45);
}

.clss .clss-pagebanner__inner {
    position: relative;
    z-index: 2;
}

.clss .clss-pagebanner__title {
    font-size: 50px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 10px;
}

.clss .clss-crumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-size: 15px;
}

.clss .clss-crumb a {
    color: #fff;
}

.clss .clss-crumb a:hover {
    color: var(--clss-accent);
}

/* Staff cards on the about page carry a role and a description. */
.clss .clss-staffcard {
    background: #fff;
    border-radius: 5px;
    padding: 34px 28px;
    text-align: center;
}

.clss .clss-staffcard h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--clss-heading);
    margin-bottom: 4px;
}

.clss .clss-staffcard__role {
    font-size: 15px;
    color: var(--clss-text);
}

.clss .clss-staffcard p {
    font-size: 15px;
    margin: 14px 0 0;
}

/* ------------------------------------------------------------ contact page */

.clss .clss-contact {
    padding: 90px 0;
}

.clss .clss-contact__row {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 60px;
}

.clss .clss-contact__list li {
    margin-bottom: 26px;
}

.clss .clss-contact__list h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--clss-heading);
    margin-bottom: 4px;
}

.clss .clss-contact__list a {
    color: var(--clss-text);
}

.clss .clss-contact__list a:hover {
    color: var(--clss-primary);
}

.clss .clss-form input,
.clss .clss-form textarea {
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    padding: 13px 18px;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    color: var(--clss-heading);
    margin-bottom: 18px;
    background: #fff;
}

.clss .clss-form input:focus,
.clss .clss-form textarea:focus {
    outline: 0;
    border-color: var(--clss-primary);
}

.clss .clss-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* ----------------------------------------------------------- programmes page */

.clss .clss-courses {
    padding: 90px 0;
}

/* "الدورات التي قد تعجبك" block on the course-details page. */
.clss .clss-related-courses {
    padding: 20px 0 70px;
}

.clss .clss-related-courses .clss-section-title {
    text-align: right;
    color: var(--clss-heading);
}

/* Category page: sort toolbar + numbered pagination. */
.clss .clss-courses__toolbar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 30px;
}

.clss .clss-courses__sort select {
    height: 46px;
    min-width: 240px;
    padding: 0 18px;
    border: 1px solid #e1e6e7;
    border-radius: 8px;
    background: #fff;
    color: var(--clss-heading);
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 14px center;
    background-size: 16px;
    padding-inline-start: 40px;
}

.clss .clss-courses__sort select:focus {
    outline: none;
    border-color: var(--clss-primary);
}

.clss .clss-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 50px;
    flex-wrap: wrap;
    gap: 16px;
}

.clss .clss-pagination__info {
    font-size: 14px;
    color: var(--clss-heading);
}

.clss .clss-pagination__list {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.clss .clss-pagination__list a,
.clss .clss-pagination__list span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 6px;
    border: 1px solid #e1e6e7;
    border-radius: 6px;
    background: #fff;
    color: var(--clss-heading);
    font-size: 14px;
    text-decoration: none;
}

.clss .clss-pagination__list a:hover {
    border-color: var(--clss-primary);
    color: var(--clss-primary);
}

.clss .clss-pagination__list .is-active a {
    background: var(--clss-primary);
    border-color: var(--clss-primary);
    color: #fff;
}

.clss .clss-pagination__list .is-disabled span {
    opacity: .45;
}

.clss .clss-courses__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    font-size: 15px;
}

/* Contact uses a light banner with a dark title instead of a photo. */
.clss .clss-pagebanner--light {
    background: #F3F7F8;
    background-image: none;
}

.clss .clss-pagebanner--light::after {
    display: none;
}

.clss .clss-pagebanner--light .clss-pagebanner__title {
    color: var(--clss-heading);
}

.clss .clss-pagebanner--light .clss-crumb {
    color: var(--clss-heading);
}

.clss .clss-pagebanner--light .clss-crumb a {
    color: var(--clss-heading);
}

/* contact: info + certificate, then the form on a shaded band */
.clss .clss-contactinfo {
    padding: 40px 0 90px;
}

.clss .clss-contactinfo__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.clss .clss-contactinfo__media {
    order: 2;
}

.clss .clss-social {
    display: flex;
    gap: 14px;
    margin-top: 34px;
}

.clss .clss-social a {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clss-heading);
}

.clss .clss-social a:hover {
    background: var(--clss-primary);
    border-color: var(--clss-primary);
    color: #fff;
}

.clss .clss-formband {
    background: var(--clss-shade);
    padding: 90px 0;
}

.clss .clss-formband .clss-form {
    max-width: 770px;
    margin: 0 auto;
}

.clss .clss-formband input,
.clss .clss-formband textarea {
    border: 0;
    padding: 17px 22px;
}

.clss .clss-formband .clss-btn {
    margin: 12px auto 0;
    display: flex;
}

/* Contact-page headings are dark on clsspro, not gold like the home-page ones. */
.clss .clss-contactinfo .clss-section-title,
.clss .clss-formband .clss-section-title {
    color: var(--clss-heading);
}

/* ===================================================== decorative shapes */

/* clsspro floats two EduBlink "animation" widgets over the hero: a mouse-tracked
   dot cluster and a slowly rotating ring. */
.clss .clss-shape {
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

/* left, dropping below the white feature-card block (small dot column) */
.clss .clss-shape--dots {
    inset-inline-end: 15%;
    bottom: -200px;
    z-index: 1;
    animation: clss-float 6s ease-in-out infinite;
}

/* right, dropping down beside the about section (large dotted grid) */
.clss .clss-shape--ring {
    inset-inline-start: 5%;
    top: 70px;
    z-index: 1;
    animation: clss-spin 18s linear infinite;
}

@keyframes clss-float {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(-10px, 22px, 0);
    }
}

@keyframes clss-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ------------------------------------------------- tabs pinned to the top */

.clss .clss-about__row {
    align-items: start;
}

.clss .clss-about__col {
    padding-top: 4px;
}

/* ------------------------------------------------------- service icons */

.clss .clss-service {
    text-align: center;
}

/* the pattern clsspro layers over the gradient */
.clss .clss-band::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url('../images/clsspro/shape-46.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: .35;
}

.clss .clss-band .clss-container {
    position: relative;
    z-index: 2;
}

.clss .clss-band__title {
    font-size: 52px;
    font-weight: 600;
    color: var(--clss-accent);
    line-height: 1.2;
    margin-bottom: 12px;
}

.clss .clss-band p {
    color: #fff;
}

.clss .clss-band__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.clss .clss-band__video {
    position: relative;
}

.clss .clss-band__video img {
    display: block;
    border-radius: 6px;
}

.clss .clss-band__play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 76px;
    height: 76px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--clss-primary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 12px rgba(255, 255, 255, .25);
}

/* --------------------------------------------------------- testimonial */

.clss .clss-testimonial__row {
    position: relative;
    width: 100%;
    min-height: 440px;
    display: flex;
    align-items: center;
}

/* Left half holds the heading + testimonial card (RTL page → sits on the left). */
.clss .clss-testimonial__col {
    width: 50%;
    margin-inline-start: auto;
    padding-inline: 40px;
}

.clss .clss-testimonial__col .clss-section-title {
    text-align: right;
    margin-bottom: 30px;
}

/* Certificate: pinned to the right, ~40% of the viewport, overflowing the bottom. */
.clss .clss-testimonial__media {
    position: absolute;
    right: 250px;
    bottom: -125px;
    width: 40%;
    z-index: 999;
}

.clss .clss-testimonial__media img {
    width: 100%;
    display: block;
}

.clss .clss-testimonial__slide {
    display: none;
}

.clss .clss-testimonial__slide.is-active {
    display: block;
}

.clss .clss-testimonial__person img {
    width: 70px;
    height: 70px;
}

.clss .clss-testimonial__nav {
    position: absolute;
    left: 40px;
    bottom: 45px;
    display: flex;
    gap: 12px;
    margin-top: 0;
}

.clss .clss-testimonial__nav button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e1e6e7;
    background: #fff;
    color: var(--clss-heading);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clss .clss-testimonial__nav button:hover {
    background: var(--clss-primary);
    border-color: var(--clss-primary);
    color: #fff;
}

/* ------------------------------------------------- contact band / footer */

/* On clsspro this band is the footer: gradient, pattern, contact details and socials. */
.clss .clss-contactband {
    position: relative;
    background-image: var(--clss-gradient-alt);
    overflow: hidden;
    text-align: center;
}

.clss .clss-contactband::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/clsspro/shape-46.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: .35;
}

.clss .clss-contactband .clss-container {
    position: relative;
    z-index: 2;
}

.clss .clss-contactband__col {
    width: 640px;
    max-width: 100%;
    margin-inline-start: auto;
    text-align: start;
}

.clss .clss-contactband .clss-section-title {
    text-align: start;
    margin-bottom: 30px;
}

/* The details sit in a single dark rounded bar, not stacked. */
.clss .clss-footbox {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--clss-teal-deep);
    border-radius: 12px;
    padding: 10px;
    min-height: 63px;
}

.clss .clss-footcontact {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 15px;
    padding-inline-end: 18px;
    white-space: nowrap;
}

.clss .clss-footcontact i {
    font-size: 17px;
}

.clss .clss-footcontact a {
    color: #fff;
}

.clss .clss-footcontact a:hover {
    color: var(--clss-accent);
}

.clss .clss-footsocial {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-inline-start: auto;
}

.clss .clss-footsocial a svg {
    width: 15px;
    height: 15px;
}

.clss .clss-footsocial a {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
}

.clss .clss-footsocial a:hover {
    color: var(--clss-accent);
}

/* ------------------------------------------------------- back to top */

/* Restyle the theme's own back-to-top (it owns the progress ring behaviour). */
html[dir="rtl"] .clss .rn-progress-parent,
.clss .rn-progress-parent {
    right: 30px;
    left: auto;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .12);
}

.clss .rn-progress-parent::after {
    color: var(--clss-primary);
}

.clss .rn-progress-parent svg.rn-back-circle {
    stroke: var(--clss-primary);
}

@media (prefers-reduced-motion: reduce) {
    .clss .clss-shape {
        animation: none;
    }
}

/* =========================================================================
   Responsive
   These live at the very end on purpose: the component rules above are
   written desktop-first, so the overrides have to come last to win.
   ========================================================================= */

/* -------------------------------------------------- large desktop / laptop */
@media (max-width: 1399px) {
    .clss .clss-services__grid {
        gap: 24px;
    }

    .clss .clss-orgs__row {
        gap: 18px;
    }

    .clss .clss-orgs__row img {
        height: 48px;
    }
}

/* --------------------------------------------------------------- tablet */
@media (max-width: 1199px) {
    .clss .clss-nav a {
        padding: 0 16px;
        font-size: 14px;
    }

    .clss .clss-services__grid {
        grid-auto-flow: row;
        grid-template-rows: auto;
        grid-template-columns: repeat(2, 1fr);
    }

    .clss .clss-hero__title {
        font-size: 42px;
    }

    .clss .clss-band__title {
        font-size: 40px;
    }

    .clss .clss-orgs__row {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 26px;
    }

    .clss .clss-staff__grid {
        flex-wrap: wrap;
    }

    .clss .clss-staff__box {
        width: calc(33.333% - 20px);
    }

    /* Certificate is hidden below desktop (mirrors clsspro.com); card goes full width. */
    .clss .clss-testimonial__media {
        display: none;
    }

    .clss .clss-testimonial__col {
        width: 100%;
        margin-inline-start: 0;
    }
}

/* ------------------------------------------------- below the desktop nav */
@media (max-width: 991px) {
    /* The inline nav is replaced by the slide-in panel. */
    .clss .clss-nav {
        position: fixed;
        inset-block: 0;
        inset-inline-end: 0;
        width: 300px;
        max-width: 85vw;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        margin: 0;
        padding: 90px 0 30px;
        background: #fff;
        box-shadow: -6px 0 30px rgba(0, 0, 0, .12);
        transform: translateX(100%);
        transition: transform .3s ease;
        z-index: 60;
        overflow-y: auto;
    }

    html[dir="rtl"] .clss .clss-nav {
        inset-inline-start: 0;
        inset-inline-end: auto;
        transform: translateX(100%);
    }

    .clss .clss-nav.is-open,
    html[dir="rtl"] .clss .clss-nav.is-open {
        transform: translateX(0);
    }

    .clss .clss-nav a {
        height: auto;
        padding: 14px 26px;
        color: var(--clss-heading);
        border-bottom: 1px solid #f0f0f0;
    }

    .clss .clss-header.is-stuck .clss-nav a {
        height: auto;
    }

    .clss .clss-navtoggle {
        display: inline-flex;
    }

    .clss .clss-navclose {
        display: block;
    }

    .clss .clss-navbackdrop.is-open {
        opacity: 1;
        visibility: visible;
    }

    .clss .clss-header {
        height: 90px;
    }

    .clss .clss-header__cta {
        margin-inline-start: 0;
    }

    .clss .clss-header__logo img {
        width: 77px;
    }

    .clss .clss-hero {
        height: 460px;
    }

    .clss .clss-hero__title {
        font-size: 34px;
    }

    .clss .clss-hero__dots {
        inset-inline-start: 12px;
    }

    /* Hide the floating decorative dot cluster and ring; on mobile they
       overflow past the feature block and clutter the sections below. */
    .clss .clss-shape {
        display: none;
    }

    .clss .clss-features {
        margin-top: -30px;
    }

    .clss .clss-features__wrap {
        grid-template-columns: 1fr;
    }

    .clss .clss-feature {
        padding: 30px 25px;
    }

    .clss .clss-about {
        padding: 50px 0 0;
    }

    .clss .clss-about__row {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .clss .clss-about__media {
        order: 0;
    }

    .clss .clss-about__logo {
        width: 110px;
        inset-inline-end: 15px;
        bottom: -22px;
    }

    .clss .clss-services {
        padding: 40px 0 50px;
    }

    .clss .clss-section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .clss .clss-programs {
        padding: 50px 0;
    }

    .clss .clss-programs__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .clss .clss-progtabs {
        flex-wrap: wrap;
    }

    .clss .clss-staff {
        padding: 35px 0 45px;
    }

    .clss .clss-staff__box {
        width: calc(50% - 15px);
        height: 100px;
        font-size: 18px;
    }

    .clss .clss-band {
        min-height: 0;
        padding: 45px 0;
    }

    .clss .clss-band__row {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .clss .clss-band__title {
        font-size: 32px;
    }

    .clss .clss-band__play {
        width: 60px;
        height: 60px;
    }

    .clss .clss-testimonial {
        min-height: 0;
        padding: 45px 0;
    }

    .clss .clss-testimonial__row {
        min-height: 0;
        display: block;
    }

    .clss .clss-testimonial__col {
        padding-inline: 0;
    }

    .clss .clss-testimonial__card {
        padding: 30px 25px;
    }

    .clss .clss-testimonial__card p {
        font-size: 17px;
    }

    .clss .clss-contactband {
        min-height: 0;
        padding: 45px 0 30px;
    }

    .clss .clss-contactband__col {
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .clss .clss-contactband .clss-section-title {
        text-align: center;
    }

    .clss .clss-footbox {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 18px;
    }

    .clss .clss-footsocial {
        margin-inline-start: 0;
    }

    .clss .clss-pagebanner {
        height: 260px;
    }

    .clss .clss-pagebanner__title {
        font-size: 32px;
    }

    .clss .clss-contact,
    .clss .clss-contactinfo,
    .clss .clss-formband,
    .clss .clss-courses {
        padding: 50px 0;
    }

    .clss .clss-contact__row,
    .clss .clss-contactinfo__row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .clss .clss-contactinfo__media {
        order: 0;
    }
}

/* --------------------------------------------------------------- mobile */
@media (max-width: 575px) {
    .clss .clss-hero {
        height: 400px;
    }

    .clss .clss-hero__title {
        font-size: 26px;
        padding-top: 15px;
    }

    .clss .clss-hero__text {
        font-size: 14px;
        white-space: normal;
        padding-top: 15px;
    }

    .clss .clss-hero__dots {
        display: none;
    }

    .clss .clss-hero__arrows {
        inset-inline-start: auto;
        inset-inline-end: 12px;
    }

    .clss .clss-section-title {
        font-size: 24px;
    }

    .clss .clss-services__grid,
    .clss .clss-programs__grid {
        grid-template-columns: 1fr;
    }

    .clss .clss-staff__box {
        width: 100%;
    }

    .clss .clss-staff__grid {
        gap: 15px;
    }

    .clss .clss-band__title {
        font-size: 26px;
    }

    .clss .clss-pagebanner {
        height: 210px;
    }

    .clss .clss-pagebanner__title {
        font-size: 26px;
    }

    .clss .clss-form__row {
        grid-template-columns: 1fr;
    }

    .clss .clss-footbox {
        border-radius: 10px;
        padding: 14px;
    }

    .clss .clss-footcontact {
        padding-inline-end: 0;
        font-size: 14px;
    }

    .clss .clss-orgs__row img {
        height: 38px;
    }

    /* Mobile header: hide the CTA, pin the burger to the left, enlarge the logo. */
    .clss .clss-header__cta {
        display: none;
    }

    .clss .clss-nav a.clss-nav__login {
        display: flex;
    }

    .clss .clss-header__logo {
        margin-inline-end: auto;
    }

    .clss .clss-header__logo img {
        width: 101px;
    }

    .clss .clss-navtoggle {
        width: 84px;
        height: 84px;
        font-size: 44px;
    }

    .clss .clss-btn {
        height: 36px;
        padding: 0 16px;
        font-size: 13px;
    }
}

/* =========================================================================
   Register-interest / consultation popup (shared by the home and all-courses
   programme cards; the course details page carries its own copy inline).
   ========================================================================= */
.clss .clss-card-interest {
    margin-top: 14px;
    width: 100%;
}

.clss-interest-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 20px;
}

.clss-interest-overlay.is-open {
    display: flex;
}

.clss-interest-dialog {
    position: relative;
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}

.clss-interest-body {
    padding: 28px;
}

.clss-interest-title {
    margin: 0 0 18px;
    text-align: center;
}

.clss-interest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.clss-interest-grid .form-group {
    margin: 0;
}

.clss-interest-grid label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.clss-interest-grid .form-control {
    width: 100%;
    height: 44px;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    box-sizing: border-box;
    line-height: 1.4;
}

.clss-interest-grid select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 16px;
    padding-inline-start: 34px;
}

.clss-interest-full {
    grid-column: 1 / -1;
}

.clss-interest-grid textarea.form-control {
    height: auto;
    min-height: 110px;
    resize: vertical;
}

.clss-interest-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.clss-interest-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 7px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all .15s ease;
    user-select: none;
}

.clss-interest-chip input {
    display: none;
}

.clss-interest-chip:has(input:checked) {
    background: #298376;
    border-color: #298376;
    color: #fff;
}

.clss-interest-alert {
    display: none;
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: 6px;
    text-align: center;
}

.clss-interest-alert.is-success {
    display: block;
    background: #e6f6ee;
    color: #1b7f53;
}

.clss-interest-alert.is-error {
    display: block;
    background: #fdecec;
    color: #c0392b;
}

.clss-interest-close {
    position: absolute;
    top: 8px;
    inset-inline-end: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f1f1f1;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 600px) {
    .clss-interest-grid {
        grid-template-columns: 1fr;
    }
}
