/* Visual section order: executive leadership immediately follows the hero. */
.about-page {
    display: flex;
    flex-direction: column;
}

.about-page > .hero { order: 1; }
.about-page > .team-section { order: 2; }
.about-page > .experts-section { order: 3; }
.about-page > .intro-section { order: 4; }
.about-page > .vision-section { order: 5; }
.about-page > .founders-message { order: 6; }
.about-page > .experts-intro { order: 7; }

.hero-program-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 58px;
    margin-top: 34px;
    padding: 14px 30px;
    border: 2px solid #ffc13b;
    border-radius: 999px;
    color: #073f42;
    background: #ffc13b;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.hero-program-link:hover {
    color: #fff8ed;
    background: transparent;
    transform: translateY(-3px);
}

.hero-program-link:focus-visible {
    outline: 3px solid #bdebed;
    outline-offset: 4px;
}

/* Continuous palette and geometric texture from the supplied look & feel. */
.about-page {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(circle at 86% 7%, rgba(255, 193, 59, .22), transparent 24rem),
        radial-gradient(circle at 8% 48%, rgba(189, 235, 237, .12), transparent 30rem),
        linear-gradient(180deg,
            #06494b 0%,
            #315a55 10%,
            #9b6a5b 20%,
            #d4785c 31%,
            #ef805d 50%,
            #f48855 68%,
            #ff9e41 100%);
}

.about-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .18;
    background-image:
        repeating-linear-gradient(45deg, transparent 0 53px, rgba(255, 193, 59, .72) 54px 55px, transparent 56px 108px),
        repeating-linear-gradient(-45deg, transparent 0 53px, rgba(189, 235, 237, .45) 54px 55px, transparent 56px 108px);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.35) 22%, transparent 40%, transparent 62%, rgba(0,0,0,.45) 78%, #000 100%);
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.35) 22%, transparent 40%, transparent 62%, rgba(0,0,0,.45) 78%, #000 100%);
}

.about-page > .section,
.about-page > .hero,
.about-page > .team-section,
.about-page > .intro-section,
.about-page > .vision-section,
.about-page > .founders-message,
.about-page > .experts-intro,
.about-page > .experts-section {
    background: transparent !important;
}

.about-page > .section:not(:first-child) {
    border-top: 1px solid rgba(255, 248, 237, .1);
}

.mobile-card-controls {
    display: none;
}

@media (max-width: 700px) {
    .mobile-carousel-ready {
        display: block !important;
        position: relative;
    }

    /* 2026-10-15: selectors raised so the carousel beats about-page.css (.about-page .intro-section .services-grid .info-card {display:flex !important}), which kept every card displayed but invisible (opacity 0) on mobile */
    .about-page .section .mobile-carousel-ready.mobile-card-group > .info-card,
    .about-page .section .mobile-carousel-ready.mobile-card-group > .value-card,
    .about-page .section .mobile-carousel-ready.mobile-card-group > .expert-card,
    .about-page .section .mobile-carousel-ready.mobile-card-group > article,
    .about-page .section .criteria-grid.mobile-carousel-ready.mobile-card-group > div {
        display: none !important;
        width: 100%;
        min-height: 0;
        margin: 0 !important;
        padding: 22px !important;
        border-radius: 22px !important;
        opacity: 0;
    }

    .about-page .section .mobile-carousel-ready.mobile-card-group > .is-mobile-active.is-mobile-active.is-mobile-active {
        display: block !important;
        opacity: 1;
        animation: mobileCardIn .42s ease both;
    }

    .intro-section .mobile-carousel-ready > .info-card,
    .vision-section .mobile-carousel-ready > .value-card,
    .vision-section .mobile-carousel-ready > .statement {
        padding: 0 !important;
        border-radius: 28px !important;
        overflow: hidden !important;
    }

    .about-page .experts-section .mobile-carousel-ready.mobile-card-group > .expert-card.is-mobile-active.is-mobile-active.is-mobile-active {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 26px;
    }

    .experts-section .expert-photo {
        width: min(82%, 310px);
        margin-inline: auto;
    }

    .mobile-card-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
        margin: 20px 0 38px;
    }

    .mobile-card-controls[hidden] {
        display: none;
    }

    .mobile-card-prev,
    .mobile-card-next {
        width: 42px;
        height: 42px;
        padding: 0;
        border: 1px solid rgba(255, 248, 237, .65);
        border-radius: 50%;
        color: #073f42;
        background: #ffc13b;
        font: 800 28px/1 sans-serif;
    }

    .mobile-card-dots {
        display: flex;
        gap: 7px;
    }

    .mobile-card-dot {
        width: 8px;
        height: 8px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(255, 248, 237, .45);
        transition: width .2s ease, background-color .2s ease;
    }

    .mobile-card-dot.is-active {
        width: 24px;
        border-radius: 999px;
        background: #ffc13b;
    }

    .info-card h3,
    .value-card h3 {
        font-size: 21px !important;
    }

    .info-card p,
    .value-card p,
    .method-grid p,
    .expert-copy p,
    .expert-copy li {
        font-size: 1.15rem !important;
        font-weight: 500 !important;
        line-height: 1.6 !important;
    }

    @keyframes mobileCardIn {
        from { opacity: 0; transform: translateY(12px) scale(.98); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-page .section .mobile-carousel-ready.mobile-card-group > .is-mobile-active.is-mobile-active.is-mobile-active {
        animation: none;
    }
}

/* SLOGAN VISIBILITY OVERRIDE */
.site-header.premium-header .logo-slogan,
.premium-header .logo-slogan,
.logo-slogan {
    display: block !important;
    font-size: 11px !important;
    color: #7c9494 !important;
    font-weight: 500 !important;
    white-space: normal !important;
    margin-top: 2px !important;
}

.footer-slogan {
    display: block !important;
    font-weight: 700 !important;
    color: #faba3d !important;
    margin: 0.35rem 0 0.55rem !important;
}


/* ==========================================================================
   GLOBAL MOBILE HERO TEXT REDUCTION (ALL PAGES)
   ========================================================================== */
@media (max-width: 991px) {
  body .hero h1,
  body .hero-copy h1,
  body .page-hero-copy h1,
  body .hero-showcase .hero-copy h1,
  body .hero-homepage .hero-copy h1,
  body .course-header h1,
  body .post-header h1,
  body .page-header h1,
  body .hero-content h1,
  body .section-hero h1,
  body h1.hero-title,
  body h1.page-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 0.75rem !important;
    max-width: 100% !important;
  }
  
  body .hero p,
  body .hero-copy p,
  body .page-hero-copy p,
  body .hero-showcase .hero-copy p,
  body .hero-homepage .hero-copy p,
  body .page-header p,
  body .hero-content p,
  body .section-hero p,
  body p.hero-subtitle {
    font-size: clamp(0.9rem, 4.5vw, 1.1rem) !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
    max-width: 100% !important;
  }
}



/* ==========================================================================
   CENTERED MOBILE HEADER SLOGAN - V4 (ABSOLUTE CENTERING)
   ========================================================================== */
@media (max-width: 991px) {
  /* 1. Ensure header-shell is the relative parent */
  body .site-header .header-shell,
  body .site-header.premium-header .header-shell {
    position: relative !important;
  }
  
  /* 2. Remove any relative positioning from brand link and its wrappers */
  body .site-header .brand,
  body .site-header.premium-header .brand,
  html[dir="rtl"] body .site-header.premium-header .brand,
  body a.brand,
  body a.brand-saas {
    position: static !important;
  }

  /* 3. Absolute position the slogan in the exact center of header-shell */
  body .site-header .brand .logo-slogan,
  body .site-header.premium-header .brand .logo-slogan,
  body .site-header.premium-header .brand-saas .logo-slogan,
  body a.brand span.logo-slogan,
  html[dir="rtl"] body .site-header.premium-header a.brand span.logo-slogan,
  html[dir="rtl"] body .site-header a.brand span.logo-slogan {

    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    
    /* 4. Formatting */
    width: 125px !important;
    max-width: 130px !important;
    text-align: center !important;
    white-space: normal !important;
    line-height: 1.3 !important;
    font-size: 8.5px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    color: var(--color-text-muted, rgba(255, 255, 255, 0.7)) !important;
    direction: rtl !important;
  }
}


/* ==========================================================================
   MOBILE MENU CONTAINER OVERFLOW FIX - V7 (ALLOW FULL TEXT)
   ========================================================================== */
@media (max-width: 991px) {
  /* Remove overflow-x: hidden from parent containers that clip the text */
  body .premium-header .site-nav.site-nav-saas .drawer-content,
  body .premium-header .site-nav.site-nav-saas .navigation-container,
  body .site-nav .drawer-content,
  body .site-nav .navigation-container {
    overflow-x: visible !important;
    overflow: visible !important;
  }

  /* nav-panel must allow overflow too */
  body .premium-header .site-nav.site-nav-saas .nav-panel {
    overflow-x: visible !important;
  }

  /* nav-list items should not clip */  
  body .premium-header .site-nav.site-nav-saas .nav-list,
  body .nav-list {
    overflow: visible !important;
  }

  /* nav-item-dropdown should not clip */
  body .nav-item-dropdown,
  body .premium-header .nav-item-dropdown {
    overflow: visible !important;
  }

  /* open dropdown menu must show all content */
  body .premium-header .site-nav.site-nav-saas .nav-item-dropdown.open .nav-dropdown-menu,
  body .nav-item-dropdown.open .nav-dropdown-menu {
    overflow: visible !important;
    max-height: 2500px !important;
  }

  /* Force dropdown links to wrap text */
  body .nav-dropdown-link,
  body .premium-header .nav-dropdown-link,
  body .site-nav .nav-dropdown-link {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    text-overflow: unset !important;
    overflow: visible !important;
    display: block !important;
    height: auto !important;
    line-height: 1.5 !important;
  }
}



/* ==========================================================================
   MOBILE MENU DROPDOWN FIX - V8 (ACCORDION STYLE FOR MOBILE)
   ========================================================================== */
@media (max-width: 991px) {
  body .premium-header .nav-dropdown-menu,
  body .site-header .nav-dropdown-menu,
  body .site-nav-saas .nav-dropdown-menu,
  body .site-header.premium-header .nav-dropdown-menu {
    position: static !important;
    transform: none !important;
    inset-inline-start: 0 !important;
    left: 0 !important;
    right: auto !important;
    margin-top: 0.5rem !important;
    min-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* 2026-10-15: expert-criteria carousel rows (mobile, AR + EN) — keep room for the round icon so it never sits on top of the text (the generic 22px card padding above was overriding it) */
@media (max-width: 700px) {
  .about-page .section .criteria-grid.mobile-carousel-ready.mobile-card-group > div:nth-child(n) { padding-inline-start: 3.6rem !important; }
}
