/* ==========================================================================
   CodeBrillo Blocks — styles for the cb-* shortcodes
   Source: ghafdynamicsv2/plugin/codebrillo-blocks/public/css/cb-blocks.css
   Served by the plugin with ?v=filemtime, so every deploy busts the cache.

   Design intent (client feedback, 2026-09-12): calm and simple.
   Light sections, few dark ones, no scroll animations, no decorative effects.
   ========================================================================== */

/* ==========================================================================
   2) CodeBrillo components — .cb-*
   Every selector starts with .cb-sec: page content sits inside .ck-content, whose
   element rules (`.ck-content h2`, `.ck-content ul`) would otherwise win.
   ========================================================================== */

.cb-sec {
    --cb-ink: var(--heading-color, rgb(31, 74, 15));
    --cb-text: var(--text-color, rgb(71, 109, 57));
    --cb-accent: var(--primary-color, rgb(205, 151, 1));
    --cb-line: rgba(31, 74, 15, .12);
    --cb-tint: #f6f8f3;

    padding-block: 88px;
    background-color: #fff;
    color: var(--cb-text);
}

/* Anchor targets (e.g. #capabilities) must not land under the sticky header. */
.cb-sec[id] {
    scroll-margin-top: 110px;
}

.cb-sec--tint {
    background-color: var(--cb-tint);
}

.cb-sec--dark {
    --cb-text: rgba(255, 255, 255, .8);
    --cb-line: rgba(255, 255, 255, .16);

    background-color: var(--cb-ink);
}

/* ------------------------------------------------------------------ heading */
.cb-sec .cb-sec__head {
    max-width: 760px;
    margin-bottom: 44px;
}

.cb-sec .cb-sec__eyebrow {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--secondary-color, rgb(39, 83, 23));
}

.cb-sec--dark .cb-sec__eyebrow {
    color: var(--cb-accent);
}

.cb-sec .cb-sec__title {
    margin: 0;
    font-family: var(--heading-font, inherit);
    font-size: clamp(24px, 1.6vw + 18px, 40px);
    font-weight: 600;
    line-height: 1.2;
    color: var(--cb-ink);
}

.cb-sec--dark .cb-sec__title {
    color: #fff;
}

.cb-sec .cb-sec__intro {
    margin: 16px 0 0;
    font-size: 17px;
    line-height: 1.7;
    color: var(--cb-text);
}

/* Split: heading on the left, body on the right — for sections of running text. */
@media (min-width: 992px) {
    .cb-sec--split .cb-sec__grid {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 72px;
        align-items: start;
    }

    .cb-sec--split .cb-sec__head {
        margin-bottom: 0;
    }
}

/* ------------------------------------------------------------------ prose */
.cb-sec .cb-prose {
    max-width: 68ch;
}

.cb-sec .cb-prose p {
    margin: 0 0 18px;
    font-size: 17px;
    line-height: 1.75;
    color: var(--cb-text);
}

.cb-sec .cb-prose p:last-child {
    margin-bottom: 0;
}

/* A list between two blocks of prose (Bayan RWE "Configurable for other needs") */
.cb-sec .cb-prose + .cb-list,
.cb-sec .cb-list + .cb-prose,
.cb-sec .cb-prose + .cb-prose {
    margin-top: 22px;
}

/* ------------------------------------------------------------------ buttons */
.cb-sec .cb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.cb-sec .cb-btn {
    text-decoration: none;
}

.cb-sec .cb-btn--outline {
    background: transparent;
    color: var(--secondary-color, rgb(39, 83, 23));
    box-shadow: inset 0 0 0 1px currentColor;
}

.cb-sec .cb-btn--outline::before {
    background: var(--secondary-color, rgb(39, 83, 23));
}

.cb-sec .cb-btn--outline:hover,
.cb-sec .cb-btn--outline:focus-visible {
    background: transparent;
    color: #fff;
}

/* ------------------------------------------------------------------ opener */
.cb-sec.cb-intro {
    padding-block: 80px;
}

@media (min-width: 992px) {
    .cb-intro .cb-intro__grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 64px;
        align-items: center;
    }
}

.cb-sec .cb-intro__title {
    margin: 0 0 20px;
    font-family: var(--heading-font, inherit);
    font-size: clamp(26px, 2.2vw + 16px, 46px);
    font-weight: 600;
    line-height: 1.15;
    color: var(--cb-ink);
}

/* An intro without an image: text only, kept to a readable width. */
.cb-intro .cb-intro__grid--no-image {
    display: block;
    max-width: 820px;
}

.cb-intro .cb-intro__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
}

/* ------------------------------------------------------------------ numbered list */
.cb-sec .cb-index {
    counter-reset: cb-index;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 44px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cb-sec .cb-index--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cb-sec .cb-index__item {
    counter-increment: cb-index;
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 14px;
    align-items: start;
    margin: 0;
    padding: 16px 0;
    border-top: 1px solid var(--cb-line);
}

.cb-sec .cb-index__item::before {
    content: counter(cb-index, decimal-leading-zero);
    font-family: var(--heading-font, inherit);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.75;
    color: var(--cb-accent);
    font-variant-numeric: tabular-nums;
}

.cb-sec .cb-index__item > span {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.55;
    color: var(--cb-ink);
}

.cb-sec--dark .cb-index__item > span {
    color: #fff;
}

/* ------------------------------------------------------------------ plain list */
.cb-sec .cb-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 44px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cb-sec .cb-list--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Inside a split section the body column is narrow — one column reads better. */
.cb-sec--split .cb-list {
    grid-template-columns: 1fr;
}

.cb-sec .cb-list__item {
    position: relative;
    margin: 0;
    padding-inline-start: 22px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--cb-ink);
}

.cb-sec .cb-list__item::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: .62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cb-accent);
}

/* ------------------------------------------------------------------ steps */
.cb-sec .cb-steps {
    counter-reset: cb-steps;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 44px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* `display: block` is required, not decoration: as a list-item the <li> also gets the
   browser's own numbering next to ours ("1. 01"), because ckeditor/content-styles.css loads
   last with `.ck-content ol { list-style-type: decimal }`. */
.cb-sec .cb-steps__item {
    counter-increment: cb-steps;
    display: block;
    margin: 0;
    padding-top: 22px;
    border-top: 1px solid var(--cb-line);
}

.cb-sec .cb-steps__item::before {
    content: counter(cb-steps, decimal-leading-zero);
    display: block;
    margin-bottom: 12px;
    font-family: var(--heading-font, inherit);
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    color: var(--cb-accent);
    font-variant-numeric: tabular-nums;
}

.cb-sec .cb-steps__name {
    display: block;
    margin-bottom: 8px;
    font-family: var(--heading-font, inherit);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--cb-ink);
}

.cb-sec--dark .cb-steps__name {
    color: #fff;
}

.cb-sec .cb-steps__text {
    display: block;
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--cb-text);
}

/* ------------------------------------------------------------------ features */
.cb-sec .cb-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 48px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cb-sec .cb-feature {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 18px;
    margin: 0;
    padding-top: 24px;
    border-top: 1px solid var(--cb-line);
}

.cb-sec .cb-feature__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 18px;
    color: var(--cb-accent);
    background: rgba(205, 151, 1, .14);
}

/* The dashboard icon picker renders Tabler icons as inline SVG (stroke = currentColor). */
.cb-sec .cb-feature__icon svg {
    width: 22px;
    height: 22px;
}

/* Buttons after a list or text inside a section body */
.cb-sec .cb-list + .cb-actions,
.cb-sec .cb-videos + .cb-actions {
    margin-top: 36px;
}

.cb-sec .cb-feature__name {
    display: block;
    margin-bottom: 8px;
    font-family: var(--heading-font, inherit);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--cb-ink);
}

.cb-sec--dark .cb-feature__name {
    color: #fff;
}

.cb-sec .cb-feature__text {
    display: block;
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--cb-text);
}

/* ------------------------------------------------------------------ videos */
.cb-sec .cb-videos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 28px;
}

.cb-sec .cb-video {
    display: block;
    text-decoration: none;
}

.cb-sec .cb-video__thumb {
    position: relative;
    display: block;
    margin-bottom: 14px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: var(--cb-tint);
}

.cb-sec .cb-video__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* No play-button overlay: the thumbnails carry their own titles and host names. */
.cb-sec .cb-video:hover .cb-video__thumb,
.cb-sec .cb-video:focus-visible .cb-video__thumb {
    box-shadow: 0 0 0 3px var(--cb-accent);
}

.cb-sec .cb-video__name {
    display: block;
    font-family: var(--heading-font, inherit);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--cb-ink);
}

.cb-sec .cb-video:hover .cb-video__name {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cb-sec .cb-video__guest {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    color: var(--cb-text);
}

/* ------------------------------------------------------------------ closing CTA */
.cb-sec--white + .cb-sec--white.cb-cta {
    padding-top: 0;
}

.cb-cta .cb-cta__card {
    max-width: 960px;
    margin-inline: auto;
    padding: 64px 56px;
    border-radius: 20px;
    background-color: var(--cb-ink);
    text-align: center;
}

.cb-sec .cb-cta__title {
    margin: 0 0 18px;
    font-family: var(--heading-font, inherit);
    font-size: clamp(23px, 1.4vw + 18px, 38px);
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
}

.cb-cta .cb-prose {
    margin-inline: auto;
}

.cb-cta .cb-prose p {
    color: rgba(255, 255, 255, .82);
}

.cb-cta .cb-actions {
    justify-content: center;
}

.cb-cta .cb-btn--outline {
    color: #fff;
}

.cb-cta .cb-btn--outline::before {
    background: var(--cb-accent);
}

/* ==========================================================================
   Tablet and phone
   ========================================================================== */
@media (max-width: 991.98px) {
    .cb-sec {
        padding-block: 64px;
    }

    .cb-sec.cb-intro {
        padding-block: 56px 64px;
    }

    .cb-intro .cb-intro__media {
        margin-top: 36px;
    }

    .cb-intro .cb-intro__media img {
        aspect-ratio: 16 / 9;
    }

    .cb-sec .cb-sec__head {
        margin-bottom: 32px;
    }

    .cb-sec .cb-index,
    .cb-sec .cb-list--3,
    .cb-sec .cb-steps,
    .cb-sec .cb-videos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .cb-sec {
        padding-block: 52px;
    }

    .cb-sec.cb-intro {
        padding-block: 40px 52px;
    }

    .cb-sec .cb-sec__head {
        margin-bottom: 26px;
    }

    .cb-sec .cb-sec__intro,
    .cb-sec .cb-prose p {
        font-size: 16px;
    }

    .cb-sec .cb-index,
    .cb-sec .cb-index--2,
    .cb-sec .cb-list,
    .cb-sec .cb-list--3,
    .cb-sec .cb-steps,
    .cb-sec .cb-features,
    .cb-sec .cb-videos {
        grid-template-columns: 1fr;
    }

    .cb-sec .cb-index {
        gap: 0;
    }

    .cb-sec .cb-index__item {
        padding: 13px 0;
    }

    .cb-sec .cb-steps,
    .cb-sec .cb-features,
    .cb-sec .cb-videos {
        gap: 26px;
    }

    .cb-sec .cb-steps__item::before {
        font-size: 21px;
        margin-bottom: 10px;
    }

    .cb-sec .cb-feature {
        grid-template-columns: 40px 1fr;
        gap: 14px;
        padding-top: 20px;
    }

    .cb-sec .cb-feature__icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        border-radius: 10px;
    }

    .cb-cta .cb-cta__card {
        padding: 44px 22px;
        border-radius: 16px;
    }

    /* `.btn` is `white-space: nowrap` in the theme; long labels such as
       "Discuss Your Bayan RWE Requirements" are wider than a 390px screen. */
    .cb-sec .cb-btn {
        white-space: normal;
        max-width: 100%;
        line-height: 1.35;
        justify-content: center;
    }
}

/* ==========================================================================
   Arabic pages (html lang="ar", dir="rtl")
   Letter-spacing breaks the joins between Arabic letters, uppercase does not
   exist, and Arabic reads better with a little more line height. Layout needs
   no mirroring: grids, logical properties and inset-inline-start flip on their own.
   ========================================================================== */
.cb-sec:lang(ar) .cb-sec__eyebrow {
    letter-spacing: 0;
    text-transform: none;
    font-size: 14px;
}

.cb-sec:lang(ar) .cb-prose p,
.cb-sec:lang(ar) .cb-sec__intro {
    line-height: 1.9;
}

.cb-sec:lang(ar) .cb-sec__title,
.cb-sec:lang(ar) .cb-intro__title,
.cb-sec:lang(ar) .cb-cta__title {
    line-height: 1.35;
}

/* ==========================================================================
   Team profiles — [cb-team]
   Photo beside a full biography. The photo stays in view (sticky) while a long
   biography scrolls on desktop; on phones it sits above the text.
   ========================================================================== */
.cb-sec .cb-team {
    display: grid;
    gap: 0;
}

.cb-sec .cb-person {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 64px;
    align-items: start;
    padding-block: 56px;
    border-top: 1px solid var(--cb-line);
}

.cb-sec .cb-person:first-child {
    padding-top: 0;
    border-top: 0;
}

.cb-sec .cb-person:last-child {
    padding-bottom: 0;
}

.cb-sec .cb-person__photo {
    position: sticky;
    top: 120px;
}

.cb-sec .cb-person__photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: top center;
    border-radius: 16px;
    background: var(--cb-tint);
}

.cb-sec .cb-person__role {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--secondary-color, rgb(39, 83, 23));
}

.cb-sec--dark .cb-person__role {
    color: var(--cb-accent);
}

.cb-sec .cb-person__name {
    margin: 0 0 22px;
    font-family: var(--heading-font, inherit);
    font-size: clamp(26px, 1.2vw + 18px, 34px);
    font-weight: 600;
    line-height: 1.2;
    color: var(--cb-ink);
}

.cb-sec--dark .cb-person__name {
    color: #fff;
}

.cb-sec .cb-person .cb-prose {
    max-width: 72ch;
}

@media (max-width: 991.98px) {
    .cb-sec .cb-person {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 40px;
        padding-block: 48px;
    }

    .cb-sec .cb-person__photo {
        top: 100px;
    }
}

@media (max-width: 767.98px) {
    .cb-sec .cb-person {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-block: 40px;
    }

    .cb-sec .cb-person__photo {
        position: static;
        max-width: 300px;
    }
}

.cb-sec:lang(ar) .cb-person__role {
    letter-spacing: 0;
    text-transform: none;
    font-size: 14px;
}

/* ==========================================================================
   Bullets inside running text ("- item" lines in any textarea)
   ========================================================================== */
.cb-sec .cb-prose .cb-list {
    grid-template-columns: 1fr;
    margin: 0 0 18px;
}

.cb-sec .cb-prose .cb-list:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Features without an icon (e.g. Mission / Vision)
   ========================================================================== */
.cb-sec .cb-feature--no-icon {
    grid-template-columns: 1fr;
}

.cb-sec .cb-feature--no-icon .cb-feature__name {
    font-size: 22px;
}

/* ==========================================================================
   Quote — [cb-quote]
   ========================================================================== */
.cb-sec.cb-quote {
    padding-block: 72px;
}

.cb-quote .cb-quote__figure {
    max-width: 880px;
    margin: 0 auto;
    padding-inline-start: 28px;
    border-inline-start: 3px solid var(--cb-accent);
}

/* Reset the theme's blog blockquote (tinted box, 6px bar, quote-mark icon) and CKEditor's
   italic blockquote: this block brings its own single accent line on the figure. */
.cb-sec .cb-quote__text {
    position: static;
    overflow: visible;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-style: normal;
    text-transform: none;
    font-family: var(--heading-font, inherit);
    font-size: clamp(22px, 1vw + 16px, 30px);
    font-weight: 500;
    line-height: 1.45;
    color: var(--cb-ink);
}

.cb-sec--dark .cb-quote__text {
    color: #fff;
}

.cb-quote .cb-quote__by {
    display: grid;
    gap: 4px;
    margin-top: 22px;
}

.cb-sec .cb-quote__name {
    font-weight: 600;
    font-size: 16px;
    color: var(--cb-ink);
}

.cb-sec .cb-quote__role {
    font-size: 15px;
    color: var(--cb-text);
}

.cb-sec--dark .cb-quote__name {
    color: #fff;
}

/* ==========================================================================
   Accordion — [cb-accordion] on native <details>
   ========================================================================== */
.cb-sec .cb-accordion {
    border-top: 1px solid var(--cb-line);
}

.cb-sec .cb-accordion__item {
    border-bottom: 1px solid var(--cb-line);
}

.cb-sec .cb-accordion__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0;
    cursor: pointer;
    list-style: none;
    font-family: var(--heading-font, inherit);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--cb-ink);
}

.cb-sec .cb-accordion__title::-webkit-details-marker {
    display: none;
}

.cb-sec--dark .cb-accordion__title {
    color: #fff;
}

.cb-sec .cb-accordion__title:focus-visible {
    outline: 2px solid var(--cb-accent);
    outline-offset: 4px;
}

/* A plus that turns into a minus — no rotation animation */
.cb-sec .cb-accordion__icon {
    position: relative;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(205, 151, 1, .14);
}

.cb-sec .cb-accordion__icon::before,
.cb-sec .cb-accordion__icon::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--cb-accent);
}

.cb-sec .cb-accordion__icon::after {
    width: 2px;
    height: 12px;
}

.cb-sec .cb-accordion__item[open] .cb-accordion__icon::after {
    display: none;
}

.cb-sec .cb-accordion__body {
    padding: 0 0 26px;
    max-width: 880px;
}

@media (min-width: 768px) {
    /* Long lists inside an accordion item read better in two columns */
    .cb-sec .cb-accordion__body .cb-prose .cb-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 44px;
    }
}

@media (max-width: 767.98px) {
    .cb-sec.cb-quote {
        padding-block: 52px;
    }

    .cb-quote .cb-quote__figure {
        padding-inline-start: 18px;
    }

    .cb-sec .cb-accordion__title {
        padding: 18px 0;
        font-size: 17px;
    }
}

.cb-sec .cb-quote__text::before,
.cb-sec .cb-quote__text::after {
    content: none;
    display: none;
}

/* Subheadings inside running text ("### Title" lines) */
.cb-sec .cb-prose .cb-prose__heading {
    margin: 28px 0 10px;
    font-family: var(--heading-font, inherit);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--cb-ink);
}

.cb-sec .cb-prose .cb-prose__heading:first-child {
    margin-top: 0;
}

.cb-sec--dark .cb-prose .cb-prose__heading {
    color: #fff;
}
