/* OIE fixes for pages built on the vendor landing builder (the home page is the landing "OIE Home").
   Linked from the landing index shadow (overrides/landingBuilder/front/landing/index.blade.php, fence
   landing-css) right after the builder's front.min.css, so it loads on landing pages only. Each
   component pushes its own stylesheet AFTER this one, so every rule wins by specificity: a rule on a
   single vendor class is prefixed with `body`, and !important is used only against the vendor's
   !important utilities (.p-24, .gap-24). Lengths keep to the storefront scales
   (space 0/4/8/12/16/24/32/40/48/64, radius 6/10/16/999, text 12/13/14/16/18/22/28). Colours come
   through the var(--oie-*) tokens of tokens.css (light and dark); the only literals are the spec's
   sector colours of the domain rings, never white or black (the logo tiles' white is tokens.css --oie-card-logo).
   Exceptions to the scales, each matching the website or a rule: 1px hairline borders; 24px panel
   radius (the website's panels, on the space scale); 40px display title (the storefront's display
   size) with -1px heading tracking at 40px and above; 2px letter-spacing, the website's eyebrow
   tracking; 22px eyebrow rule width; 44px slider arrow buttons (the minimum touch target); 56px
   domain icon ring; 40px stat figure size (the website's); 84px phone logo tile height; 96px accreditation tile height (64px marks); 240px, the
   vendor hero's background band offset (D1); 20px hero text rhythm (eyebrow, title). Browser-checked by
   .superpowers/qa/home-builder/home-check.mjs (headingsUnobscured, overflow). */

/* D1. The vendor full_width_hero is a fixed 1200px band with a 234px bottom margin for the photo to
   hang into. A title that wraps to three lines pushed the 750px photo past both and over the
   "Browse by domain" heading. The section now grows with its content; the dark background band
   ends 240px above the section's foot, so the photo still hangs out of it as in the vendor design.
   The title column takes the container width (vendor 8/12), so the two title lines stay two lines
   at 1440. */
@media (min-width: 992px) {
    body .full-width-hero-section {
        height: auto;
        margin-bottom: 64px;
    }

    body .full-width-hero-section__bg-wrapper {
        bottom: 240px;
    }

    .full-width-hero-section .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* D2. The vendor bleeds the courses, upcoming, statistics and logo bands 48px past the container.
   Between 992 and 1535px the container gutter is narrower than that (8px at 1024, 44px at 1440), so
   the bands ran off the viewport and lost their rounded ends. The statistics band also draws an
   outline offset 16px to its left (.statistics-section__mask), so it keeps 16px more room. */
@media (min-width: 992px) and (max-width: 1199px) {
    body .custom-courses-grid-section,
    body .upcoming-courses-section,
    body .company-logos-section {
        margin-left: 0;
        margin-right: 0;
    }

    body .statistics-section {
        margin-left: 8px;
        margin-right: 8px;
    }
}

@media (min-width: 1200px) and (max-width: 1535px) {
    body .custom-courses-grid-section,
    body .upcoming-courses-section,
    body .company-logos-section {
        margin-left: -32px;
        margin-right: -32px;
    }

    body .statistics-section {
        margin-left: -16px;
        margin-right: -16px;
    }
}

/* D2. Logo strips: three 1fr columns of padded cards are wider than the logo column below 1200px
   (a 1fr track never shrinks under its logo's width), so the third column ran past the edge. The
   tracks may shrink, the logos scale down inside their cards, and phones get two columns. */
.company-logos-section .grid-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.company-logos-section .company-logos-section__logo-card {
    min-width: 0;
}

.company-logos-section__logo-card img {
    max-width: 100%;
}

@media (max-width: 1199px) {
    .company-logos-section .grid-columns-3 {
        gap: 12px !important;
    }

    .company-logos-section .company-logos-section__logo-card {
        padding: 12px !important;
    }
}

@media (max-width: 767px) {
    body .company-logos-section {
        padding: 24px;
    }

    .company-logos-section .grid-columns-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* D3. links_and_images tiles draw their image with .img-cover (object-fit: cover) in a 120px box, which
   crops a square icon top and bottom. The OIE domain icons (64x64 SVG) sit whole in the middle of the
   tile; a photo from any other source keeps the vendor's cover fit. */
.links-and-images-6-items-per-row-section__link-box-img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.links-and-images-6-items-per-row-section__link-box-img img[src*="/assets/occ-oie/"] {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

/* H. Hero slider (brand v2 spec D4, D16, D17): the slider the two_columns_hero shadow renders for two or
   more enabled slides (fence oie-hero-slider). One slide is the whole hero: the text card (eyebrow pill,
   title, description, pill buttons) beside the photo; phones stack the photo first (the vendor
   flex-column-reverse order) with full-width buttons. The section drops the vendor's fixed 890px height
   so the slider decides its own; its 64px top padding clears the header, which overlaps the first block
   (header_1.min.css `.theme-header-1 { margin-bottom: -84px }`, its white bar reaching about 43px into the
   section). Desktop slides take the tallest slide's height, the card and photo fill it. The controls (44px round arrows, 8px bullets with a 24px gold active one, the counter) sit under the
   slides inside the swiper, padded so the focus ring is not clipped by its overflow. */
body .two-columns-hero-section.oie-hero-section {
    height: auto;
    padding: 64px 0 48px;
}

body .oie-hero-swiper .oie-hero-slide__card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 48px;
    background: var(--oie-card);
    border: 1px solid var(--oie-line);
    border-radius: 24px;
}

body .oie-hero-swiper .oie-hero-slide__eyebrow {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    padding: 4px 12px;
    border: 1px solid var(--oie-gold-strong);
    border-radius: var(--oie-radius-pill);
    background: var(--oie-gold-tint);
    color: var(--oie-gold-text);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

body .oie-hero-swiper .oie-hero-slide__title {
    margin: 16px 0 0;
    color: var(--oie-ink);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    text-wrap: balance;
}

body .oie-hero-swiper .oie-hero-slide__description {
    margin-top: 16px;
    color: var(--oie-charcoal);
    font-size: 16px;
    line-height: 1.6;
}

body .oie-hero-swiper .oie-hero-slide__actions {
    gap: 16px;
    margin-top: 32px;
}

body .oie-hero-swiper .oie-hero-slide__btn {
    gap: 8px;
    height: auto;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: var(--oie-radius-pill);
    font-size: 16px;
    font-weight: 700;
}

body .oie-hero-swiper .oie-hero-slide__btn--primary,
body .oie-hero-swiper .oie-hero-slide__btn--primary:hover {
    color: var(--oie-on-gold);
}

body .oie-hero-swiper .oie-hero-slide__btn--ghost {
    color: var(--oie-ink);
    background-color: transparent;
    border-color: var(--oie-ink);
}

body .oie-hero-swiper .oie-hero-slide__btn--ghost:hover {
    color: var(--oie-ink);
    background-color: var(--oie-gold-soft);
}

body .oie-hero-swiper .oie-hero-slide__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 24px;
    background: var(--oie-surface);
}

body .oie-hero-swiper .oie-hero-slide__media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body .oie-hero-swiper .oie-hero-swiper__controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 4px;
}

body .oie-hero-swiper .oie-hero-swiper__prev,
body .oie-hero-swiper .oie-hero-swiper__next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--oie-line);
    border-radius: var(--oie-radius-pill);
    background: var(--oie-card);
    color: var(--oie-ink);
    cursor: pointer;
}

body .oie-hero-swiper .oie-hero-swiper__prev:hover,
body .oie-hero-swiper .oie-hero-swiper__next:hover {
    border-color: var(--oie-gold-strong);
}

body .oie-hero-swiper .oie-hero-swiper__prev.swiper-button-disabled,
body .oie-hero-swiper .oie-hero-swiper__next.swiper-button-disabled {
    opacity: 0.4;
    cursor: default;
}

body .oie-hero-swiper .oie-hero-swiper__pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

body .oie-hero-swiper .oie-hero-swiper__pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0;
    border-radius: var(--oie-radius-pill);
    background: var(--oie-muted);
    opacity: 1;
}

body .oie-hero-swiper .oie-hero-swiper__pagination .swiper-pagination-bullet-active {
    width: 24px;
    background: var(--oie-gold);
}

body .oie-hero-swiper .oie-hero-swiper__counter {
    margin-inline-start: auto;
    color: var(--oie-muted);
    font-size: 12px;
}

@media (prefers-reduced-motion: no-preference) {
    body .oie-hero-swiper .oie-hero-swiper__pagination .swiper-pagination-bullet {
        transition: width 0.2s ease;
    }
}

/* Arabic: the website keeps Arabic eyebrows and headings untracked (spec D17); the arrows point the
   reading way (Swiper runs right-to-left from the root's dir). */
body.rtl .oie-hero-swiper .oie-hero-slide__eyebrow,
body.rtl .oie-hero-swiper .oie-hero-slide__title {
    letter-spacing: 0;
}

body.rtl .oie-hero-swiper .oie-hero-swiper__prev svg,
body.rtl .oie-hero-swiper .oie-hero-swiper__next svg {
    transform: scaleX(-1);
}

/* Every slide is as tall as the tallest one, at every width (Task 6 fix round 1; was phones only). Swiper's
   `.swiper-slide { height: 100% }` cannot resolve against the auto-height wrapper, so a slide never stretched and a
   shorter one left the difference as a gap above the controls (101-145px on phones and at 1024). With height auto
   the wrapper's flex stretch sizes every slide to the tallest and the row fills it. A slide clips its own content:
   the Bootstrap row's -8px margins otherwise reach 8px into the neighbouring slide (nothing is painted there, the
   columns' 8px padding sits under it, so the clip hides nothing a reader sees). */
body .oie-hero-swiper .oie-hero-slide {
    height: auto;
    overflow: hidden;
}

body .oie-hero-swiper .oie-hero-slide > .row {
    height: 100%;
    flex-wrap: nowrap;
}

/* From 992px the photo fills its column's height (the tallest card's) but never more than its width: the 4:3 ratio
   transfers min-height into a minimum width, which at 992-1199px drew a photo wider than the column (693px in a 496px
   column at 1024), cut off at the container's edge. At 1440 the ratio still sets the height (668x501, as before). */
@media (min-width: 992px) {
    body .oie-hero-swiper .oie-hero-slide__media {
        min-height: 100%;
        max-width: 100%;
    }

    /* The counter joins the arrows and dots at the start of the row (final fix wave H): at the far end the fixed
       "OIE Assistant" launcher (bottom right, assistant.css) covered it at 1024. */
    body .oie-hero-swiper .oie-hero-swiper__counter {
        margin-inline-start: 0;
    }
}

/* Revision D2. From 992px the text block is anchored to the top of its card, so the eyebrow starts at the same
   height on every slide; one rhythm (eyebrow 20, title 20, copy 32 above the buttons); the headline wraps
   balanced and the copy is capped at 52ch. */
@media (min-width: 992px) {
    body .oie-hero-swiper .oie-hero-slide__card {
        justify-content: flex-start;
    }

    body .oie-hero-swiper .oie-hero-slide__eyebrow {
        margin-bottom: 20px;
    }

    body .oie-hero-swiper .oie-hero-slide__title {
        margin: 0 0 20px;
    }

    body .oie-hero-swiper .oie-hero-slide__description {
        max-width: 52ch;
        margin: 0 0 32px;
    }

    body .oie-hero-swiper .oie-hero-slide__actions {
        margin-top: 0;
    }
}

@media (max-width: 991px) {
    body .two-columns-hero-section.oie-hero-section {
        padding: 64px 0 24px;
    }

    /* Phones stack the photo over the card: the text card fills what the photo leaves of the stretched slide (see
       the rule above the media queries). The columns size to their content first (Bootstrap's 100% basis would read
       as 100% height in the stacked column). */
    body .oie-hero-swiper .oie-hero-slide > .row > [class*="col-"] {
        flex: 0 0 auto;
    }

    body .oie-hero-swiper .oie-hero-slide > .row > .d-flex {
        flex: 1 0 auto;
    }

    body .oie-hero-swiper .oie-hero-slide__card {
        padding: 24px;
    }

    body .oie-hero-swiper .oie-hero-slide__title {
        font-size: 28px;
        letter-spacing: 0;
    }

    body .oie-hero-swiper .oie-hero-slide__media {
        margin-bottom: 16px;
    }

    body .oie-hero-swiper .oie-hero-slide__btn {
        width: 100%;
    }
}

/* B1. Eyebrows (spec D6). The vendor pre-title is a pill: .d-inline-flex-center (.d-flex-center in the
   upcoming courses block) + .py-8.px-16.rounded-8.border-primary.bg-primary-20.font-12.text-primary. The
   website writes it as an uppercase label with a short gold rule before it. Beats the vendor's
   !important utilities app.min.css:2862/2879 (.py-8), 3026 (.px-16), 22396 (.rounded-8), 19700
   (.text-primary), and the tint drawn by .bg-primary-20:before (app.min.css:20488, background-color
   !important), which is reused as the gold rule. */
body .d-inline-flex-center.py-8.px-16.rounded-8.border-primary.bg-primary-20.font-12.text-primary,
body .d-flex-center.py-8.px-16.rounded-8.border-primary.bg-primary-20.font-12.text-primary {
    padding: 0 !important;
    border: 0;
    border-radius: 0 !important;
    background: transparent;
    color: var(--oie-gold-text) !important;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    gap: 12px;
}

body .d-inline-flex-center.py-8.px-16.rounded-8.border-primary.bg-primary-20.font-12.text-primary::before,
body .d-flex-center.py-8.px-16.rounded-8.border-primary.bg-primary-20.font-12.text-primary::before {
    position: static;
    inset: auto;
    flex: 0 0 auto;
    width: 22px;
    height: 1px;
    opacity: 1;
    background-color: var(--oie-gold) !important;
}

body.dark-mode .d-inline-flex-center.py-8.px-16.rounded-8.border-primary.bg-primary-20.font-12.text-primary,
body.dark-mode .d-flex-center.py-8.px-16.rounded-8.border-primary.bg-primary-20.font-12.text-primary {
    color: var(--oie-gold) !important;
}

/* B2. Section panels. The courses, upcoming and logo bands are painted var(--section-bg) with 48px
   corners (custom_courses_grid.min.css:1, upcoming_courses.min.css:1, company_logos.min.css:1). They
   become the warm tint panel with a hairline and the website's 24px corners. */
body .custom-courses-grid-section,
body .upcoming-courses-section,
body .company-logos-section {
    background-color: var(--oie-gold-tint);
    border: 1px solid var(--oie-line);
    border-radius: 24px;
}

/* B2b. Spacing between blocks. The vendor stacks the landing blocks with no gap (the old bands had no
   border, so it passed); with hairline panels and cards each block keeps 48px above it. */
body .links-and-images-6-items-per-row-section,
body .image-information-cards-3x-section,
body .custom-courses-grid-section,
body .upcoming-courses-section,
body .features-4x-section,
body .statistics-section,
body .company-logos-section,
body .full-width-bar-cta-section {
    margin-top: 48px;
}

/* The FAQ block already carries its own 88px of padding (faq_6_col.min.css:17). The vendor leaves the
   body copy and the card headings with a line-height of about 1 inside these blocks; they read at the
   storefront's 1.6 and 1.25; the ISO band too (revision Task 6: at "normal" Core Sans C sets about 0.94 and
   its description lines touched). The figure's own rule (B6) and the Arabic 1.3 (B9) are more specific. */
body .links-and-images-6-items-per-row-section h4 {
    line-height: 1.3;
}

body .features-4x-section {
    margin-bottom: 48px;
}

body .features-4x-section p,
body .company-logos-section p,
body .faq-6-col-section p,
body .full-width-bar-cta-section p,
body .custom-courses-grid-section p,
body .upcoming-courses-section p,
body .boxed-cta-full-width-section p {
    line-height: 1.6;
}

body .features-4x-section h2,
body .features-4x-section h4,
body .company-logos-section h2,
body .faq-6-col-section h2,
body .full-width-bar-cta-section h3,
body .boxed-cta-full-width-section h2 {
    line-height: 1.25;
}

/* B3. Cards: course, programme, upcoming, feature and FAQ cards share the 16px card with a 4px gold top
   bar and the soft ink shadow (the ink at 25%, so it follows both modes; dark mode skips it). The vendor
   sets the radius and the white fill with !important utilities (app.min.css:22456 .rounded-24, 21556
   .bg-white, 22436 .rounded-16), so those rules carry !important too. The OIE course card is
   storefront.css:95 .oie-store-card (0,1,0). */
body .custom-courses-grid-section .oie-store-card,
body .upcoming-courses-section .oie-store-card {
    border-top: 4px solid var(--oie-gold);
    border-radius: var(--oie-radius-lg);
    box-shadow: 0 16px 40px -24px color-mix(in srgb, var(--oie-ink) 25%, transparent);
}

body.dark-mode .custom-courses-grid-section .oie-store-card,
body.dark-mode .upcoming-courses-section .oie-store-card,
body.dark-mode .features-4x-section .features-4x-section__card-item > .bg-white,
body.dark-mode .faq-6-col-section .accordion {
    box-shadow: none;
}

/* Programme cards: a photo card (image_information_cards_3x.min.css:1) whose caption fades from black
   (line 14; dark mode a light blue at line 21, 0,2,0). The fade is the band colour in both modes. */
body .image-information-cards-3x-section .image-information-cards-3x-section__item-card {
    border-top: 4px solid var(--oie-gold);
    border-radius: var(--oie-radius-lg) !important;
    background-color: var(--oie-band);
    box-shadow: 0 16px 40px -24px color-mix(in srgb, var(--oie-ink) 25%, transparent);
}

body .image-information-cards-3x-section .image-information-cards-3x-section__item-card img {
    border-radius: 0 !important;
}

body .image-information-cards-3x-section .image-information-cards-3x-section__item-card-footer {
    border-radius: 0 0 var(--oie-radius-lg) var(--oie-radius-lg);
    background: linear-gradient(0deg, var(--oie-band) 0.34%, transparent 99.89%);
}

body .image-information-cards-3x-section .image-information-cards-3x-section__item-card-footer h3,
body .image-information-cards-3x-section .image-information-cards-3x-section__item-card-footer p {
    color: var(--oie-band-text) !important;
}

/* Feature cards: the white box is .bg-white.rounded-24.p-24 inside .features-4x-section__card-item
   (features_4x.min.css:1); its translucent twin behind it (the mask, line 23) is dropped. */
body .features-4x-section .features-4x-section__card-item-mask {
    display: none;
}

/* The vendor card is a fixed 275px tall (features_4x.min.css:1); the copy at 1.6 leading needs more. */
body .features-4x-section .features-4x-section__card-item {
    height: auto;
}

body .features-4x-section .features-4x-section__card-item > .bg-white {
    border: 1px solid var(--oie-line);
    border-top: 4px solid var(--oie-gold);
    border-radius: var(--oie-radius-lg) !important;
    background-color: var(--oie-card) !important;
    box-shadow: 0 16px 40px -24px color-mix(in srgb, var(--oie-ink) 25%, transparent);
}

/* FAQ items: .accordion.p-20.rounded-16.bg-white (faq_6_col blade line 59). */
body .faq-6-col-section .accordion {
    border: 1px solid var(--oie-line);
    border-top: 4px solid var(--oie-gold);
    background-color: var(--oie-card) !important;
    box-shadow: 0 16px 40px -24px color-mix(in srgb, var(--oie-ink) 25%, transparent);
}

/* B4. Domain tiles (links_and_images_6_items_per_row). The link box becomes the card; its image box
   (vendor 120px, white, links_and_images_6_items_per_row.min.css:5 + .bg-white) turns into a 56px ring
   whose colour is the sector's, by position on the row's column wrappers (tile 1 and tiles 7 and 8 keep the base
   ring's gold). The icon sits whole inside the ring (D3 above sized it 64px; the ring takes 32px). Each color-mix()
   follows a solid token declaration: a browser without color-mix() (Chrome < 111, Safari < 16.2, Firefox < 113)
   drops it and still draws a ring (final review M3). */
body .links-and-images-6-items-per-row-section .links-and-images-6-items-per-row-section__link-box {
    height: 100%;
    padding: 24px 12px;
    align-items: center;
    border: 1px solid var(--oie-line);
    border-top: 4px solid var(--oie-gold);
    border-radius: var(--oie-radius-lg);
    background-color: var(--oie-card);
    box-shadow: 0 16px 40px -24px color-mix(in srgb, var(--oie-ink) 25%, transparent);
}

body.dark-mode .links-and-images-6-items-per-row-section .links-and-images-6-items-per-row-section__link-box {
    box-shadow: none;
}

body .links-and-images-6-items-per-row-section .links-and-images-6-items-per-row-section__link-box-img {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border: 1px solid var(--oie-line);
    border: 1px solid color-mix(in srgb, #FCAF17 40%, transparent);
    border-radius: var(--oie-radius-pill) !important;
    background: var(--oie-gold-tint) !important;
    background: color-mix(in srgb, #FCAF17 14%, transparent) !important;
}

body .links-and-images-6-items-per-row-section .links-and-images-6-items-per-row-section__link-box-img img[src*="/assets/occ-oie/"] {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 0 !important;
}

body .links-and-images-6-items-per-row-section .row > div:nth-child(2) .links-and-images-6-items-per-row-section__link-box-img {
    border-color: var(--oie-line);
    border-color: color-mix(in srgb, #36B37E 40%, transparent);
    background: var(--oie-gold-tint) !important;
    background: color-mix(in srgb, #36B37E 14%, transparent) !important;
}

body .links-and-images-6-items-per-row-section .row > div:nth-child(3) .links-and-images-6-items-per-row-section__link-box-img {
    border-color: var(--oie-line);
    border-color: color-mix(in srgb, #4D9FFF 40%, transparent);
    background: var(--oie-gold-tint) !important;
    background: color-mix(in srgb, #4D9FFF 14%, transparent) !important;
}

body .links-and-images-6-items-per-row-section .row > div:nth-child(4) .links-and-images-6-items-per-row-section__link-box-img {
    border-color: var(--oie-line);
    border-color: color-mix(in srgb, #E0613C 40%, transparent);
    background: var(--oie-gold-tint) !important;
    background: color-mix(in srgb, #E0613C 14%, transparent) !important;
}

body .links-and-images-6-items-per-row-section .row > div:nth-child(5) .links-and-images-6-items-per-row-section__link-box-img {
    border-color: var(--oie-line);
    border-color: color-mix(in srgb, #C3A06A 40%, transparent);
    background: var(--oie-gold-tint) !important;
    background: color-mix(in srgb, #C3A06A 14%, transparent) !important;
}

body .links-and-images-6-items-per-row-section .row > div:nth-child(6) .links-and-images-6-items-per-row-section__link-box-img {
    border-color: var(--oie-line);
    border-color: color-mix(in srgb, #9AA4AE 40%, transparent);
    background: var(--oie-gold-tint) !important;
    background: color-mix(in srgb, #9AA4AE 14%, transparent) !important;
}

/* B5. Logo tiles (.company-logos-section__logo-card.bg-white, company_logos blade line 49; the
   "Trusted by" strip is the same component, so its tiles are the same: no DOM hook tells it apart).
   Light mode: the card colour with a hairline; dark mode: pure white (--oie-card-logo; controller ruling, Task 6 fix
   round 1: five marks carry their own white background and showed as white boxes inside the warm #F5F0E6 tiles), so
   colour logos stay readable. Beats .bg-white (app.min.css:21556) by specificity. */
body .company-logos-section .company-logos-section__logo-card.bg-white {
    border: 1px solid var(--oie-line);
    background-color: var(--oie-card) !important;
}

body.dark-mode .company-logos-section .company-logos-section__logo-card.bg-white {
    background-color: var(--oie-card-logo) !important;
    border-color: var(--oie-card-logo);
}

/* B5b. The titled logo blocks ("We are accredited by", "Our major clients"). The vendor caps a logo at 32px high
   (company_logos.min.css `.company-logos-section__logo-card img`), which drew the accreditation marks (512x375, with
   their own white margins) at 44x32 and their lettering about 5px tall: the "faint" logos of the Task 5 screenshots
   (their opacity was 1 and AOS had finished; Task 6 browser check). They take 48px; on wide screens the card's 24px
   padding (.p-24, !important) drops to 16px so the 88px card holds them (below 1200px D2 already sets 12px). */
body .company-logos-section:has(h2) .company-logos-section__logo-card img {
    max-height: 48px;
}

@media (min-width: 1200px) {
    body .company-logos-section:has(h2) .company-logos-section__logo-card {
        padding: 16px !important;
    }
}

/* Revision Task 6 (controller ruling): the four accreditation marks are emblems with lettering, which read about
   40px at 48px. That block alone (found by its own files, img[src*="/accr-"]; the component carries no key or class
   of its own) draws them at 64px in a 96px tile, at every width; the clients and partners keep 48px. The files
   themselves are trimmed to their ink and fitted to 240x100. */
body .company-logos-section:has(img[src*="/accr-"]) .company-logos-section__logo-card {
    height: 96px;
}

body .company-logos-section:has(img[src*="/accr-"]) .company-logos-section__logo-card img {
    max-height: 64px;
}

/* The "Trusted by" strip is this component without a title (the home page's block 2): detected by
   :not(:has(h2)), it gets a compact look, four small tiles per row instead of three. The grid and its
   gap are vendor utilities (.grid-columns-3, .gap-24 !important), and D2 sets two columns on phones. */
body .company-logos-section:not(:has(h2)) {
    padding: 24px;
}

body .company-logos-section:not(:has(h2)) .grid-columns-3 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px !important;
}

body .company-logos-section:not(:has(h2)) .company-logos-section__logo-card {
    height: 64px;
    padding: 8px !important;
}

/* B6. The track-record band (statistics.min.css:1 .statistics-section is a fixed 192px, :17 draws the
   outlined mask, :25 the 32px contents). The band grows with its cards, drops the outline, and each
   statistic is a translucent card with a gold icon disc and a 40px figure (without color-mix() the card keeps a
   solid hairline on the band colour, final review M3). text-white and font-24 are
   !important utilities (app.min.css:19692, 1066), so the figure and labels carry !important. */
body .statistics-section {
    height: auto;
}

body .statistics-section .statistics-section__mask {
    display: none;
}

body .statistics-section .statistics-section__contents {
    height: auto;
    padding: 48px 32px;
    border-radius: 24px;
}

/* Revision D4: three tiles of the vendor's quarter width sit centred in the band. */
body .statistics-section .row {
    justify-content: center;
}

body .statistics-section .statistic-col {
    margin-top: 0;
}

body .statistics-section .statistic-col > .d-flex {
    height: 100%;
    padding: 24px;
    border: 1px solid var(--oie-line);
    border: 1px solid color-mix(in srgb, var(--oie-band-text) 12%, transparent);
    border-radius: var(--oie-radius-lg);
    background-color: var(--oie-band);
    background-color: color-mix(in srgb, var(--oie-band-text) 6%, transparent);
}

body .statistics-section [class*="statistics-section__icon-"] {
    background-color: var(--oie-gold);
    color: var(--oie-on-gold);
}

body .statistics-section .statistics-section__counter-value {
    color: var(--oie-band-text) !important;
    font-size: 40px !important;
    font-weight: 700;
    line-height: 1.15;
}

body .statistics-section .statistic-col p {
    color: var(--oie-band-text) !important;
}

/* B7. The CTA band (full_width_bar_cta.min.css:1: 128px, 32px corners, var(--secondary)). The band
   keeps the brand band colour, 24px corners, and a gold pill button; .text-white (app.min.css:19692)
   and .bg-info (21116) are !important utilities. */
body .full-width-bar-cta-section {
    height: auto;
    border-radius: 24px;
    background-color: var(--oie-band);
}

body .full-width-bar-cta-section h3,
body .full-width-bar-cta-section p {
    color: var(--oie-band-text) !important;
}

body .full-width-bar-cta-section .bg-info {
    background-color: var(--oie-gold) !important;
    color: var(--oie-on-gold);
}

body .full-width-bar-cta-section .btn,
body .full-width-bar-cta-section .btn:hover {
    border-color: var(--oie-gold);
    border-radius: var(--oie-radius-pill);
    background-color: var(--oie-gold);
    color: var(--oie-on-gold) !important;
    font-weight: 700;
}

body .full-width-bar-cta-section .btn .btn-flip-effect__text {
    color: inherit;
}

/* The button is .btn-accent.text-white (full_width_bar_cta blade line 35). In dark mode tokens.css turns band
   .text-white warm white (body.dark-mode .full-width-bar-cta-section .text-white, 0,3,1 !important), which beat the
   rule above and put light text on the gold pill (1.64:1, Task 6 browser check). */
body.dark-mode .full-width-bar-cta-section .btn.text-white {
    color: var(--oie-on-gold) !important;
}

/* Revision D6. The ISO band (boxed_cta_full_width): the brand's dark band, as the figures band. The vendor
   paints the text .text-white (!important utilities; in dark mode --white is the card colour) and the
   badge as a rotated white-on-gold sticker (position absolute, rotate(20deg)). The band colour sits under
   the background image, text takes the band-text token (AA on --oie-band in both modes), and the badge is
   upright, inline, gold with the on-gold ink. The primary button keeps the brand's gold button
   (tokens.css text-on-gold rules). */
body .boxed-cta-full-width-section .boxed-cta-full-width-section__bg-wrapper {
    background-color: var(--oie-band);
}

body .boxed-cta-full-width-section h2,
body .boxed-cta-full-width-section p,
body .boxed-cta-full-width-section .border-white {
    color: var(--oie-band-text) !important;
    opacity: 1;
}

body .boxed-cta-full-width-section .border-white {
    border-color: var(--oie-band-text) !important;
}

body .boxed-cta-full-width-section .boxed-cta-full-width-section__badge-box {
    position: static;
    transform: none;
    display: flex;
    width: fit-content;
    margin: 24px auto 0;
    background-color: var(--oie-gold) !important;
    color: var(--oie-on-gold) !important;
    font-weight: 700;
}

body .boxed-cta-full-width-section .btn.btn-primary .btn-flip-effect__text {
    color: var(--oie-on-gold) !important;
}

/* Below 1200px the vendor band (a .container whose own padding the vendor zeroes) ran from edge to edge of
   the screen with its copy 8px from it (Task 6 browser check at 1024 and 390px): it keeps the figures band's
   16px gutter and pads its copy 24px. */
@media (max-width: 1199px) {
    body .boxed-cta-full-width-section {
        width: auto;
        margin-left: 16px;
        margin-right: 16px;
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* B8. FAQ cards: see B3. The question icon keeps the brand gold (text-primary); the open panel's
   hairline follows the token. */
body .faq-6-col-section .accordion .border-gray-100 {
    border-color: var(--oie-line);
}

/* B9. Arabic: the Arabic face needs more leading on headings than the Latin one (the website brief's
   rule); the eyebrow is untracked and its gold rule follows the text. */
.rtl .links-and-images-6-items-per-row-section h1, .rtl .links-and-images-6-items-per-row-section h2, .rtl .links-and-images-6-items-per-row-section h3,
.rtl .image-information-cards-3x-section h1, .rtl .image-information-cards-3x-section h2, .rtl .image-information-cards-3x-section h3,
.rtl .custom-courses-grid-section h1, .rtl .custom-courses-grid-section h2, .rtl .custom-courses-grid-section h3,
.rtl .upcoming-courses-section h1, .rtl .upcoming-courses-section h2, .rtl .upcoming-courses-section h3,
.rtl .features-4x-section h1, .rtl .features-4x-section h2, .rtl .features-4x-section h3,
.rtl .statistics-section h1, .rtl .statistics-section h2, .rtl .statistics-section h3,
.rtl .company-logos-section h1, .rtl .company-logos-section h2, .rtl .company-logos-section h3,
.rtl .faq-6-col-section h1, .rtl .faq-6-col-section h2, .rtl .faq-6-col-section h3,
.rtl .full-width-bar-cta-section h1, .rtl .full-width-bar-cta-section h2, .rtl .full-width-bar-cta-section h3,
.rtl .boxed-cta-full-width-section h2 {
    line-height: 1.3;
}

.rtl .d-inline-flex-center.py-8.px-16.rounded-8.border-primary.bg-primary-20.font-12.text-primary,
.rtl .d-flex-center.py-8.px-16.rounded-8.border-primary.bg-primary-20.font-12.text-primary {
    letter-spacing: 0;
}

.rtl .links-and-images-6-items-per-row-section .row > div .links-and-images-6-items-per-row-section__link-box-img + h4 {
    letter-spacing: 0;
}

/* B10. Phones (767px and below, the file's breakpoint): the statistics become one column, the bands and
   the track-record panel take 24px padding, the logo tiles are 84px high. */
@media (max-width: 767px) {
    body .statistics-section .statistics-section__contents {
        padding: 24px;
    }

    body .statistics-section .statistic-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    body .statistics-section .statistic-col:nth-child(n+2) {
        margin-top: 12px;
    }

    body .custom-courses-grid-section,
    body .upcoming-courses-section {
        padding: 24px;
    }

    body .full-width-bar-cta-section {
        padding: 24px;
    }

    body .company-logos-section .company-logos-section__logo-card,
    body .company-logos-section:not(:has(h2)) .company-logos-section__logo-card {
        height: 84px;
    }

    body .company-logos-section:not(:has(h2)) .grid-columns-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* R4 H5. Clients marquee. The clients block scrolls its logos as one continuous line: the track holds the list
   twice and slides half its width, so the loop has no gap. It pauses on hover or focus; a logo is grey until
   hovered or focused, then full colour, lifted, with the gold ring. Reduced motion shows a static wrapped row
   (the copy is hidden, so nothing is duplicated). */
.oie-marquee {
    overflow: hidden;
    margin-top: 32px;
    padding: 8px 0;
}

.oie-marquee__track {
    display: flex;
    width: max-content;
    animation: oie-marquee 40s linear infinite;
}

.oie-marquee__list {
    display: flex;
    flex-shrink: 0;
    gap: 24px;
    margin: 0;
    padding: 0 12px;
    list-style: none;
}

.oie-marquee__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 10rem;
    height: 5rem;
    padding: 12px;
    background-color: var(--oie-card-logo);
    border: 1px solid var(--oie-line);
    border-radius: 16px;
    filter: grayscale(1);
    opacity: .75;
    transition: transform .2s ease, filter .2s ease, opacity .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.oie-marquee__item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.oie-marquee__item:hover,
.oie-marquee__item:focus-visible {
    transform: translateY(-4px);
    filter: none;
    opacity: 1;
    border-color: var(--oie-gold-strong);
    box-shadow: 0 0 0 2px var(--oie-gold-strong);
}

.oie-marquee:hover .oie-marquee__track,
.oie-marquee:focus-within .oie-marquee__track {
    animation-play-state: paused;
}

@keyframes oie-marquee {
    to { transform: translateX(-50%); }
}

@keyframes oie-marquee-rtl {
    to { transform: translateX(50%); }
}

[dir="rtl"] .oie-marquee__track {
    animation-name: oie-marquee-rtl;
}

@media (prefers-reduced-motion: reduce) {
    .oie-marquee__track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: auto;
    }

    .oie-marquee__list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .oie-marquee__list[data-oie-marquee-copy] {
        display: none;
    }
}
