/* Approved yellow hero artwork supplied by the client. */
.approved-hero-media {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  isolation: isolate;
}

.approved-hero-media::before,
.approved-hero-media::after {
  content: none !important;
  display: none !important;
}

.approved-hero-art {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: min(100%, 680px) !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: clamp(390px, 56vw, 690px) !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

/* The approved images replace every generated drawing inside secondary heroes. */
main > .page-hero > .brand-section-motif,
main > .hero.section-dark > .brand-section-motif {
  display: none !important;
}

/* Arabic heroes always place copy on the right and artwork on the left. */
html[dir="rtl"] .page-hero-grid {
  direction: rtl !important;
}

html[dir="rtl"] .page-hero-copy {
  direction: rtl !important;
  align-items: flex-start !important;
  text-align: right !important;
}

html[dir="rtl"] .page-hero-copy :is(h1, h2, h3, p) {
  width: 100%;
  text-align: right !important;
}

.certifications-reference-hero__mark.approved-hero-media,
.blog-reference-hero__mark.approved-hero-media,
.contact-reference-hero__mark.approved-hero-media,
.specialized-reference-mark.approved-hero-media {
  aspect-ratio: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
}

.certifications-reference-hero__mark.approved-hero-media {
  padding-left: clamp(28px, 4.5vw, 72px) !important;
  padding-right: clamp(28px, 4.5vw, 72px) !important;
}

.specialized-reference-mark .approved-hero-art {
  width: min(100%, 760px) !important;
}

.corporate-training-reference-hero .approved-hero-art,
.contact-reference-hero .approved-hero-art {
  width: min(100%, 560px) !important;
  max-height: min(56svh, 560px) !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.blog-reference-hero .approved-hero-art,
.certifications-reference-hero .approved-hero-art {
  width: min(100%, 820px) !important;
  max-height: min(72svh, 720px) !important;
  margin-top: -48px !important;
  object-position: center top !important;
}

.partners-hero .approved-hero-art {
  width: min(100%, 580px) !important;
}

/* About has a different legacy hero structure, so the image is integrated here. */
.approved-about-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  grid-template-rows: auto auto auto auto;
  column-gap: clamp(34px, 6vw, 90px);
  align-items: center;
  text-align: right !important;
}

.approved-about-hero > :not(.approved-about-hero__media) {
  grid-column: 1;
}

.approved-about-hero__media {
  grid-column: 2;
  grid-row: 1 / -1;
}

.approved-about-hero__media .approved-hero-art {
  width: min(100%, 560px) !important;
  max-height: 650px !important;
}

@media (max-width: 900px) {
  .approved-hero-art {
    width: min(82vw, 520px) !important;
    max-height: 520px !important;
  }

  .approved-about-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    text-align: center !important;
  }

  .approved-about-hero > :not(.approved-about-hero__media),
  .approved-about-hero__media {
    grid-column: 1;
  }

  .approved-about-hero__media {
    grid-row: 1;
    margin-bottom: 24px;
  }
}

@media (max-width: 560px) {
  .approved-hero-art,
  .approved-about-hero__media .approved-hero-art {
    width: min(78vw, 360px) !important;
    max-height: 390px !important;
  }
}

/* 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;
  }
}

/* ==========================================================================
   GLOBAL HERO STANDARD (Measurements & Layout Matching Homepage Exactly)
   Preserves all existing content, backgrounds, gradients, and custom colors.
   ========================================================================== */

/* 1. Hero Containers & 2-Column Grid Layout */
@media (min-width: 1200px) {
  .page-hero-grid,
  .page-hero .container,
  .hero-layout-grid,
  .approved-about-hero,
  .certifications-reference-hero__grid,
  .blog-reference-hero__grid,
  .contact-reference-hero__grid,
  .specialized-reference-grid,
  .corporate-training-reference-grid,
  .partners-hero-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr) !important;
    align-items: center !important;
    gap: clamp(40px, 5vw, 80px) !important;
    width: min(1440px, calc(100% - 76px)) !important;
    margin-inline: auto !important;
  }
}

/* 2. Language Direction & Positioning (Artwork on Left in RTL, Right in LTR) */
html[dir="rtl"] .page-hero-grid,
html[dir="rtl"] .approved-about-hero,
html[dir="rtl"] .hero-layout-grid {
  direction: rtl !important;
}

html[dir="rtl"] :is(.page-hero-copy, .hero-copy, .hero-content, .approved-about-hero > :not(.approved-about-hero__media)) {
  text-align: right !important;
  align-items: flex-start !important;
}

html[dir="ltr"] .page-hero-grid,
html[dir="ltr"] .approved-about-hero,
html[dir="ltr"] .hero-layout-grid {
  direction: ltr !important;
}

html[dir="ltr"] :is(.page-hero-copy, .hero-copy, .hero-content, .approved-about-hero > :not(.approved-about-hero__media)) {
  text-align: left !important;
  align-items: flex-start !important;
}

/* 3. Hero Titles Typography Measurements (H1) */
@media (min-width: 1200px) {
  :is(.page-hero, .hero, .hero-premium-section, .booking-page-hero, .approved-about-hero, .certifications-reference-hero, .blog-reference-hero, .contact-reference-hero, .specialized-reference-hero, .corporate-training-reference-hero, .partners-hero) :is(h1, .hero-title, .page-hero-title, .hero-premium-title) {
    font-size: clamp(3.2rem, 4.65vw, 5.2rem) !important;
    line-height: 1.08 !important;
    margin-bottom: 20px !important;
    font-weight: 800 !important;
  }
}

@media (max-width: 1199px) and (min-width: 992px) {
  :is(.page-hero, .hero, .hero-premium-section, .booking-page-hero, .approved-about-hero, .certifications-reference-hero, .blog-reference-hero, .contact-reference-hero, .specialized-reference-hero, .corporate-training-reference-hero, .partners-hero) :is(h1, .hero-title, .page-hero-title, .hero-premium-title) {
    font-size: clamp(2.4rem, 4vw, 3.4rem) !important;
    line-height: 1.15 !important;
    margin-bottom: 18px !important;
    font-weight: 800 !important;
  }
}

@media (max-width: 991px) {
  :is(.page-hero, .hero, .hero-premium-section, .booking-page-hero, .approved-about-hero, .certifications-reference-hero, .blog-reference-hero, .contact-reference-hero, .specialized-reference-hero, .corporate-training-reference-hero, .partners-hero) :is(h1, .hero-title, .page-hero-title, .hero-premium-title) {
    font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 16px !important;
    font-weight: 800 !important;
  }
}

/* 4. Hero Paragraphs & Lead Typography Measurements */
@media (min-width: 1200px) {
  :is(.page-hero, .hero, .hero-premium-section, .booking-page-hero, .approved-about-hero, .certifications-reference-hero, .blog-reference-hero, .contact-reference-hero, .specialized-reference-hero, .corporate-training-reference-hero, .partners-hero) :is(p, .hero-lead, .hero-desc, .hero-premium-desc, .page-hero-copy p) {
    font-size: clamp(1.02rem, 1.22vw, 1.24rem) !important;
    line-height: 1.9 !important;
    max-width: 710px !important;
    margin-bottom: 0 !important;
  }
}

@media (max-width: 1199px) and (min-width: 992px) {
  :is(.page-hero, .hero, .hero-premium-section, .booking-page-hero, .approved-about-hero, .certifications-reference-hero, .blog-reference-hero, .contact-reference-hero, .specialized-reference-hero, .corporate-training-reference-hero, .partners-hero) :is(p, .hero-lead, .hero-desc, .hero-premium-desc, .page-hero-copy p) {
    font-size: 1.05rem !important;
    line-height: 1.8 !important;
    max-width: 650px !important;
  }
}

@media (max-width: 991px) {
  :is(.page-hero, .hero, .hero-premium-section, .booking-page-hero, .approved-about-hero, .certifications-reference-hero, .blog-reference-hero, .contact-reference-hero, .specialized-reference-hero, .corporate-training-reference-hero, .partners-hero) :is(p, .hero-lead, .hero-desc, .hero-premium-desc, .page-hero-copy p) {
    font-size: clamp(0.9rem, 4.5vw, 1.1rem) !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
  }
}

/* 5. Hero Media / Artwork Dimensions & Positioning */
:is(.approved-hero-media, .page-hero-media, .hero-media, .approved-about-hero__media, .hero-premium-visual) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 0 auto !important;
}

:is(.approved-hero-art, .page-hero-media img, .hero-media img, .approved-about-hero__media img) {
  display: block !important;
  width: min(100%, 660px) !important;
  max-width: 660px !important;
  height: auto !important;
  max-height: min(58svh, 600px) !important;
  object-fit: contain !important;
  object-position: center top !important;
  margin: 0 auto !important;
}

@media (max-width: 991px) {
  :is(.approved-hero-art, .page-hero-media img, .hero-media img, .approved-about-hero__media img) {
    max-width: min(100%, 420px) !important;
    max-height: 340px !important;
  }
}

/* Force certifications hero H1 golden yellow — overrides main.css color:#fff */
html .certifications-reference-hero .page-hero-copy h1 {
  color: #f5c518 !important;
}

