

/* ---------- HERO ---------- */

.tech-hero {
    position: relative;
    padding: 88px 0 92px;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 18%, rgba(0,107,82,.08), transparent 28%),
        radial-gradient(circle at 88% 70%, rgba(143,209,189,.12), transparent 30%);
}

.tech-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    align-items: center;
    gap: clamp(50px, 7vw, 105px);
}

.tech-hero-content {
    min-width: 0;
    max-width: 650px;
}

.tech-hero-content h1 {
    margin: 16px 0 0;
    max-width: 650px;
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.02;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.tech-hero-image {
    position: relative;
    width: 100%;
    min-width: 0;
    padding: 26px;
    border: 1px solid rgba(0,107,82,.10);
    border-radius: 34px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.96), rgba(242,248,245,.88));
    box-shadow:
        0 28px 70px rgba(10,30,24,.10),
        inset 0 1px 0 rgba(255,255,255,.9);
}


.tech-hero-image img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 680px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

/* ---------- GENERAL ---------- */

.soft-section {
    background:
        linear-gradient(180deg, #f5f9f7 0%, #f8fbf9 100%);
}

/* Give every main section breathing room without touching HTML */
main > .section {
    padding-top: 92px;
    padding-bottom: 92px;
}

/* ---------- LABEL / STICKER DEFINITION ---------- */

.label-definition {
    position: relative;
    display: grid;
    grid-template-columns: minmax(170px, .36fr) minmax(0, 1.64fr);
    grid-template-rows: auto auto;
    column-gap: clamp(38px, 5vw, 75px);
    padding: clamp(42px, 5vw, 64px);
    border: 1px solid rgba(143,209,189,.16);
    border-radius: 32px;
    background:
        radial-gradient(circle at 8% 12%, rgba(143,209,189,.16), transparent 27%),
        radial-gradient(circle at 95% 90%, rgba(0,107,82,.28), transparent 34%),
        linear-gradient(135deg, #09271f 0%, #0d3a2f 58%, #0a3027 100%);
    color: #fff;
    box-shadow: 0 30px 80px rgba(8,38,31,.16);
    overflow: hidden;
}

.label-definition::before,
.iml-definition::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -100px;
    top: -110px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    box-shadow:
        0 0 0 35px rgba(255,255,255,.018),
        0 0 0 70px rgba(255,255,255,.012);
    pointer-events: none;
}

.label-definition > .eyebrow {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    margin: 0;

    display: inline-flex;
    align-items: center;
    gap: 12px;

    font-size: 1.5rem;
}

.label-definition > .eyebrow::before {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    flex: 0 0 36px;
    background: #3f8f76;
    border-radius: 2px;
}

html[dir="rtl"] .label-definition > .eyebrow,
.rtl .label-definition > .eyebrow {
        transform: translateX(900px);

    flex-direction: row-reverse;
    text-align: right;
}

.label-definition > h2 {
    grid-column: 1;
    grid-row: 2;
    margin: 10px 0 0;
    color: #fff;
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1.08;
}

.label-definition > .definition-text {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    position: relative;
    z-index: 1;
    max-width: 1000px;
}

.label-definition .definition-text strong {
    display: block;
    margin-bottom: 12px;
    color: #8fd1bd;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .11em;
}

.label-definition .definition-text p {
    margin: 0;
    color: rgba(255,255,255,.88);
    font-size: clamp(1rem, 1.35vw, 1.12rem);
    line-height: 1.9;
}

.label-definition::after {
    content: "LABEL";
    position: absolute;
    right: 28px;
    bottom: -32px;
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.06em;
    color: rgba(255,255,255,.035);
    pointer-events: none;
}

/* ---------- LABEL TYPES ---------- */

.label-types {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 42px;
}

.label-type-card {
    position: relative;
    min-width: 0;
    min-height: 145px;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 24px;
    border: 1px solid #dfe9e4;
    border-radius: 24px;
    background: linear-gradient(145deg, #fff 0%, #f8fbf9 100%);
    box-shadow: 0 10px 30px rgba(10,30,24,.045);
    box-sizing: border-box;
    overflow: hidden;
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.label-type-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: #006b52;
    opacity: 0;
    transition: opacity .28s ease;
}

.label-type-card::after {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    right: -55px;
    bottom: -65px;
    border-radius: 50%;
    background: rgba(143,209,189,.14);
    transition: transform .3s ease;
    pointer-events: none;
}

.label-type-card:hover {
    transform: translateY(-7px);
    border-color: #bdd8ce;
    background: #fff;
    box-shadow: 0 20px 42px rgba(10,30,24,.10);
}

.label-type-card:hover::before {
    opacity: 1;
}


.label-type-card:hover::after {
    transform: scale(1.45);
}

.label-type-featured {
    border-color: #afd0c3;
    box-shadow: 0 14px 34px rgba(0,107,82,.09);
}

.label-type-icon {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px;
    border: 1px solid rgba(0,107,82,.07);
    border-radius: 20px;
    background: #edf7f3;
    box-sizing: border-box;
}

.label-type-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.label-type-content {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.label-type-content .card-num {
    display: block;
    margin-bottom: 8px;
    color: #006b52;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .13em;
}

.label-type-content h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.05rem;
    line-height: 1.35;
}

/* ---------- PROBLEM COMPARISON ---------- */

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: start;
}

.problem-box {
    position: relative;
    min-width: 0;
    padding: 32px;
    border: 1px solid #dfe8e3;
    border-radius: 28px;
    background:
        radial-gradient(circle at 100% 0%, rgba(0,107,82,.055), transparent 32%),
        #fff;
    box-shadow: 0 16px 42px rgba(10,30,24,.06);
    overflow: hidden;
}

.problem-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 32px;
    right: 32px;
    height: 4px;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(90deg, #006b52, #8fd1bd);
}

.problem-box-head {
    margin-bottom: 26px;
}

.problem-box-head .eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 26px;
    margin-bottom: 12px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #edf7f3;
    color: #006b52;
}

.problem-box-head h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    line-height: 1.25;
}

.problem-list {
    display: grid;
    gap: 13px;
}

.problem-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 18px;
    border: 1px solid #e3ebe7;
    border-radius: 19px;
    background: #f8fbf9;
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, background .24s ease;
}

.problem-card:hover {
    transform: translateX(4px);
    border-color: #c3dad1;
    background: #fff;
    box-shadow: 0 12px 28px rgba(10,30,24,.075);
}

.problem-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #006b52;
    color: #fff;
    font-size: .7rem;
    font-weight: 900;
    box-shadow: 0 6px 14px rgba(0,107,82,.18);
}

.problem-card h3 {
    margin: 1px 0 8px;
    font-size: 1rem;
    line-height: 1.42;
}

.problem-card p {
    margin: 0;
    color: #596861;
    font-size: .9rem;
    line-height: 1.72;
}

/* ---------- IML DEFINITION ---------- */

.iml-definition {
    position: relative;
    display: grid;
    grid-template-columns: minmax(170px, .36fr) minmax(0, 1.64fr);
    gap: clamp(38px, 5vw, 75px);
    align-items: center;
    padding: clamp(42px, 5vw, 64px);
    border: 1px solid rgba(143,209,189,.16);
    border-radius: 32px;
    background:
        radial-gradient(circle at 8% 15%, rgba(143,209,189,.16), transparent 28%),
        radial-gradient(circle at 92% 90%, rgba(0,107,82,.24), transparent 34%),
        linear-gradient(135deg, #09271f 0%, #103d31 60%, #0a3027 100%);
    color: #fff;
    box-shadow: 0 30px 80px rgba(8,38,31,.16);
    overflow: hidden;
}

.iml-definition::after {
    content: "IML";
    position: absolute;
    right: 35px;
    bottom: -55px;
    font-size: 10rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.08em;
    color: rgba(255,255,255,.035);
    pointer-events: none;
}

.iml-definition-title,
.iml-definition-content {
    position: relative;
    z-index: 1;
}

.iml-definition-title h2 {
    margin: 10px 0 0;
    color: #fff;
    font-size: clamp(3rem, 5vw, 4.8rem);
    line-height: .9;
    letter-spacing: -.06em;
}

.iml-definition-content h3 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 1.25rem;
}

.iml-language-block strong {
    display: block;
    margin-bottom: 10px;
    color: #8fd1bd;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .11em;
}

.iml-definition-content p {
    margin: 0;
    color: rgba(255,255,255,.88);
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    line-height: 1.9;
}

/* ---------- IML ADVANTAGES ---------- */

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 44px;
}

.advantage-card {
    position: relative;
    min-width: 0;
    min-height: 180px;
    padding: 27px 28px;
    border: 1px solid #dfe8e3;
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(10,30,24,.045);
    overflow: hidden;
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.advantage-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: #006b52;
    transition: height .28s ease;
}

.advantage-card::after {
    content: "";
    position: absolute;
    right: -32px;
    bottom: -48px;
    width: 125px;
    height: 125px;
    border-radius: 50%;
    background: #eef7f3;
    opacity: .8;
    pointer-events: none;
}

.advantage-card:hover {
    transform: translateY(-5px);
    border-color: #bfd9cf;
    box-shadow: 0 18px 38px rgba(10,30,24,.085);
}

.advantage-card:hover::before {
    height: 100%;
}

.advantage-card > span,
.advantage-card h3,
.advantage-card p {
    position: relative;
    z-index: 1;
}

.advantage-card > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 28px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: #edf7f3;
    color: #006b52;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .05em;
}

.advantage-card h3 {
    margin: 0 0 10px;
    font-size: 1.02rem;
    line-height: 1.45;
}

.advantage-card p {
    margin: 0;
    color: #596861;
    font-size: .9rem;
    line-height: 1.72;
}

/* ---------- IML MACHINE ---------- */

.iml-machine {
    width: 100%;
    height: 312px;
    margin-top: 42px;
    padding: 12px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;
    background: #f5f9f7;
    overflow: hidden;
}

.iml-machine img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
    object-fit: contain;
}


/* ---------- TWO VISUAL BOXES ---------- */

.tech-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}

.tech-box {
    position: relative;
    min-width: 0;
    min-height: 100%;
    padding: 32px;
    border: 1px solid #dfe8e3;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(10,30,24,.06);
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;

    display: flex;
    flex-direction: column;
}

/* BOTH IMAGES — SAME POSITION & SAME AREA */

.tech-box > img {
    display: block;
    width: 100%;
    height: 312px;
    margin-top: 42px;
    padding: 12px;
    box-sizing: border-box;

    object-fit: contain;

    border-radius: 20px;
    background: #f5f9f7;
}

/* ---------- TWO VISUAL BOXES ---------- */

.tech-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}

.tech-box {
    position: relative;
    min-width: 0;
    min-height: 100%;
    padding: 32px;
    border: 1px solid #dfe8e3;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(10,30,24,.06);
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.tech-box::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #006b52, #8fd1bd);
}

.tech-box:hover {
    transform: translateY(-5px);
    border-color: #c3d9d1;
    box-shadow: 0 22px 48px rgba(10,30,24,.09);
}

.tech-box h3 {
    margin: 12px 0 24px;
    font-size: 1.2rem;
    line-height: 1.35;
}

.tech-box img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* ---------- RTL ---------- */

.rtl .label-definition {
    grid-template-columns: 1.64fr .36fr;
}

.rtl .label-definition > .eyebrow,
.rtl .label-definition > h2 {
    grid-column: 2;
}

.rtl .label-definition > .definition-text {
    grid-column: 1;
}

.rtl .label-definition::after,
.rtl .iml-definition::after {
    right: auto;
    left: 25px;
}

.rtl .label-definition::before,
.rtl .iml-definition::before {
    right: auto;
    left: -100px;
}

.rtl .tech-hero-content,
.rtl .label-definition,
.rtl .tech-box,
.rtl .problem-card,
.rtl .advantage-card {
    text-align: right;
}

/* ---------- TABLET ---------- */

@media (max-width: 900px) {
    main > .section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .tech-hero {
        padding: 65px 0 70px;
    }

    .tech-hero-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .tech-hero-content {
        text-align: center;
        max-width: 820px;
        margin: 0 auto;
    }

    .tech-hero-content h1 {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        font-size: clamp(2.6rem, 7vw, 4rem);
    }

    .tech-hero-image {
        max-width: 680px;
        margin: 0 auto;
    }

    .label-types {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .label-type-card {
        min-height: 120px;
    }

    .comparison-grid,
    .tech-two-column {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .iml-definition {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

/* ---------- MOBILE ---------- */

@media (max-width: 600px) {
    main > .section {
        padding-top: 54px;
        padding-bottom: 54px;
    }

    .tech-hero {
        padding: 48px 0 52px;
    }

    .tech-hero-grid {
        gap: 28px;
    }

    .tech-hero-content h1 {
        font-size: 2.15rem;
        line-height: 1.07;
    }

    .tech-hero-image {
        padding: 15px;
        border-radius: 24px;
    }

    .label-definition,
    .iml-definition {
        padding: 28px 22px;
        border-radius: 23px;
    }

    .label-definition {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 17px;
    }

    .label-definition > .eyebrow,
    .label-definition > h2,
    .label-definition > .definition-text {
        grid-column: 1;
        grid-row: auto;
    }

    .label-definition h2 {
        font-size: 1.35rem;
    }

    .label-definition .definition-text p,
    .iml-definition-content p {
        font-size: .9rem;
        line-height: 1.8;
    }

    .label-types {
        gap: 12px;
        margin-top: 28px;
    }

    .label-type-card {
        min-height: 100px;
        gap: 16px;
        padding: 16px;
        border-radius: 19px;
    }

    .label-type-icon {
        width: 66px;
        height: 66px;
        padding: 9px;
        border-radius: 16px;
    }

    .label-type-content h3 {
        font-size: .96rem;
    }

    .comparison-grid {
        gap: 18px;
    }

    .problem-box {
        padding: 25px 18px;
        border-radius: 22px;
    }

    .problem-box::before {
        left: 18px;
        right: 18px;
    }

    .problem-card {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 12px;
        padding: 16px;
        border-radius: 17px;
    }

    .problem-number {
        width: 30px;
        height: 30px;
        border-radius: 9px;
        font-size: .68rem;
    }

    .problem-card h3 {
        font-size: .93rem;
    }

    .problem-card p {
        font-size: .84rem;
        line-height: 1.68;
    }

    .iml-definition-title h2 {
        font-size: 3.1rem;
    }

    .iml-definition-content h3 {
        font-size: 1.1rem;
    }

    .iml-definition::after {
        right: 15px;
        bottom: -34px;
        font-size: 6.5rem;
    }

    .rtl .iml-definition::after {
        right: auto;
        left: 15px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 13px;
        margin-top: 30px;
    }

    .advantage-card {
        min-height: 0;
        padding: 23px 20px;
        border-radius: 19px;
    }

    .tech-box {
        padding: 22px 18px;
        border-radius: 21px;
    }

    .iml-machine {
        margin-top: 30px;
        padding: 8px;
    }
}

/* ---------- VERY SMALL MOBILE ---------- */

@media (max-width: 400px) {
    .tech-hero-content h1 {
        font-size: 1.85rem;
    }

    .label-type-card {
        gap: 13px;
        padding: 14px;
    }

    .label-type-icon {
        width: 58px;
        height: 58px;
    }

    .label-type-content h3 {
        font-size: .89rem;
    }

    .problem-box {
        padding: 22px 15px;
    }

    .iml-definition {
        padding: 25px 18px;
    }

    .iml-definition-title h2 {
        font-size: 2.7rem;
    }

    .advantage-card {
        padding: 21px 17px;
    }
}

/* =========================================================
   COEX LAYER NOTE
========================================================= */

.coex-layer-note {
    display: block;

    width: fit-content;
    max-width: 100%;

    margin: 0 0 24px;
    padding: 14px 22px;

    border-left: 3px solid var(--gold, #c9a968);

    color: var(--ink, #16322a);

    background: #f7faf8;

    border-radius: 0 12px 12px 0;

    font-size: .72rem;
    font-weight: 700;
    line-height: 1.75;

    white-space: pre-line;

    box-shadow:
        0 5px 16px rgba(20, 92, 74, .035);
}


/* =========================================================
   COEX STRUCTURE
========================================================= */

.coex-layer-note {
    position: relative;

    width: 100%;
    margin: 0 0 28px;

    padding: 0;

    border: 1px solid #dfe8e3;
    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 10px 30px rgba(10, 30, 24, .045);

    overflow: hidden;
}


/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */

.coex-layer-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 16px 22px;

    border-bottom: 1px solid #e7eeea;

    background:
        linear-gradient(
            90deg,
            #f1f7f4 0%,
            #ffffff 100%
        );
}


.coex-layer-title span {
    position: relative;

    padding-left: 13px;

    color: var(--green, #006b52);

    font-size: .62rem;
    font-weight: 900;

    letter-spacing: .14em;
    text-transform: uppercase;
}


.coex-layer-title span::before {
    content: "";

    position: absolute;

    left: 0;
    top: 50%;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: var(--gold, #c9a968);

    transform: translateY(-50%);
}


.coex-layer-title strong {
    color: var(--ink, #16322a);

    font-size: .78rem;
    font-weight: 850;

    letter-spacing: -.01em;
}


/* ---------------------------------------------------------
   LAYERS
--------------------------------------------------------- */

.coex-layer-list {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}


.coex-layer-list > div {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 78px;

    padding: 16px 20px;

    border-right: 1px solid #e7eeea;

    background: #fff;

    transition:
        background .25s ease,
        transform .25s ease;
}


.coex-layer-list > div:last-child {
    border-right: 0;
}


/* Number */

.coex-layer-list > div > span {
    display: block;

    margin-bottom: 7px;

    color: var(--gold, #c9a968);

    font-size: .60rem;
    font-weight: 900;

    letter-spacing: .08em;
}


/* Layer name */

.coex-layer-list > div > strong {
    color: var(--ink, #16322a);

    font-size: .78rem;
    font-weight: 800;

    line-height: 1.35;
}


/* ---------------------------------------------------------
   HOVER
--------------------------------------------------------- */

.coex-layer-list > div:hover {
    background: #f5faf7;

    transform: translateY(-2px);
}


/* Small green indicator */

.coex-layer-list > div::after {
    content: "";

    position: absolute;

    left: 20px;
    bottom: 0;

    width: 0;
    height: 2px;

    background: var(--green, #006b52);

    transition: width .25s ease;
}


.coex-layer-list > div:hover::after {
    width: calc(100% - 40px);
}


/* ---------------------------------------------------------
   RTL
--------------------------------------------------------- */

html[dir="rtl"] .coex-layer-title {
    text-align: right;
}


html[dir="rtl"] .coex-layer-title span {
    padding-left: 0;
    padding-right: 13px;
}


html[dir="rtl"] .coex-layer-title span::before {
    left: auto;
    right: 0;
}


html[dir="rtl"] .coex-layer-list > div {
    border-right: 0;
    border-left: 1px solid #e7eeea;
}


html[dir="rtl"] .coex-layer-list > div:last-child {
    border-left: 0;
}


html[dir="rtl"] .coex-layer-list > div::after {
    left: auto;
    right: 20px;
}


/* ---------------------------------------------------------
   TABLET
--------------------------------------------------------- */

@media (max-width: 800px) {

    .coex-layer-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .coex-layer-list > div:nth-child(2) {
        border-right: 0;
    }


    .coex-layer-list > div:nth-child(1),
    .coex-layer-list > div:nth-child(2) {
        border-bottom: 1px solid #e7eeea;
    }

}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 600px) {

    .coex-layer-note {
        border-radius: 17px;
        margin-bottom: 22px;
    }


    .coex-layer-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;

        padding: 14px 17px;
    }


    .coex-layer-title strong {
        font-size: .74rem;
    }


    .coex-layer-list {
        grid-template-columns: 1fr;
    }


    .coex-layer-list > div,
    html[dir="rtl"] .coex-layer-list > div {
        min-height: 60px;

        padding: 12px 17px;

        border-right: 0;
        border-left: 0;

        border-bottom: 1px solid #e7eeea;
    }


    .coex-layer-list > div:last-child {
        border-bottom: 0;
    }


    .coex-layer-list > div > span {
        margin-bottom: 4px;
    }


    .coex-layer-list > div > strong {
        font-size: .74rem;
    }


    .coex-layer-list > div::after {
        left: 17px;
        right: auto;
    }


    html[dir="rtl"] .coex-layer-list > div::after {
        left: auto;
        right: 17px;
    }

}
/* =========================================================
   COEX STRUCTURE
========================================================= */

.coex-layer-note {
    position: relative;

    width: 100%;
    margin: 0 0 30px;

    overflow: hidden;

    border: 1px solid #dce7e2;
    border-radius: 22px;

    background: #ffffff;

    box-shadow:
        0 12px 34px rgba(15, 55, 44, .055);
}


/* =========================================================
   HEADER
========================================================= */

.coex-layer-title {
    display: flex;
    align-items: center;
    gap: 18px;

    padding: 17px 24px;

    border-bottom: 1px solid #e7eeea;

    background:
        linear-gradient(
            90deg,
            #f1f7f4 0%,
            #ffffff 72%
        );
}


/* Small label */

.coex-layer-title span {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--green, #006b52);

    font-size: .61rem;
    font-weight: 900;

    letter-spacing: .14em;
    text-transform: uppercase;
}


/* Gold dot */

.coex-layer-title span::before {
    content: "";

    width: 6px;
    height: 6px;

    flex: 0 0 6px;

    border-radius: 50%;

    background: var(--gold, #c9a968);

    box-shadow:
        0 0 0 4px rgba(201,169,104,.10);
}


/* Direction */

.coex-layer-title strong {
    position: relative;

    margin-left: auto;

    color: var(--ink, #16322a);

    font-size: .78rem;
    font-weight: 850;

    letter-spacing: -.01em;
}


/* Small arrow line */

.coex-layer-title strong::before {
    content: "";

    display: inline-block;

    width: 24px;
    height: 1px;

    margin-right: 10px;

    vertical-align: middle;

    background:
        linear-gradient(
            90deg,
            var(--gold, #c9a968),
            var(--green, #006b52)
        );
}


/* =========================================================
   LAYERS
========================================================= */

.coex-layer-list {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}


/* Individual layer */

.coex-layer-list > div {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 92px;

    padding: 19px 22px;

    border-right: 1px solid #e8efeb;

    background: #ffffff;

    transition:
        background .25s ease,
        transform .25s ease;
}


/* Remove final divider */

.coex-layer-list > div:last-child {
    border-right: 0;
}


/* =========================================================
   NUMBER
========================================================= */

.coex-layer-list > div > span {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 9px;

    color: var(--gold, #c9a968);

    font-size: .58rem;
    font-weight: 900;

    letter-spacing: .10em;
}


/* Tiny line beside number */

.coex-layer-list > div > span::after {
    content: "";

    width: 16px;
    height: 1px;

    background: #d9e5df;
}


/* =========================================================
   LAYER NAME
========================================================= */

.coex-layer-list > div > strong {
    color: var(--ink, #16322a);

    font-size: .80rem;
    font-weight: 800;

    line-height: 1.4;

    transition: color .25s ease;
}


/* =========================================================
   BOTTOM ACCENT
========================================================= */

.coex-layer-list > div::after {
    content: "";

    position: absolute;

    left: 22px;
    right: 22px;
    bottom: 0;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--green, #006b52),
            var(--gold, #c9a968)
        );

    transform: scaleX(0);

    transform-origin: left;

    transition:
        transform .3s ease;
}


/* =========================================================
   HOVER
========================================================= */

.coex-layer-list > div:hover {
    z-index: 1;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f3f8f5 100%
        );

    transform: translateY(-2px);
}


.coex-layer-list > div:hover::after {
    transform: scaleX(1);
}


.coex-layer-list > div:hover > strong {
    color: var(--green, #006b52);
}


/* =========================================================
   SUBTLE LAYER DIFFERENTIATION
========================================================= */

.coex-layer-list > div:nth-child(1) {
    background:
        linear-gradient(
            180deg,
            #ffffff,
            #fbfdfc
        );
}

.coex-layer-list > div:nth-child(2) {
    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f9fcfa
        );
}

.coex-layer-list > div:nth-child(3) {
    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f7fbf9
        );
}

.coex-layer-list > div:nth-child(4) {
    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f5faf7
        );
}


/* =========================================================
   RTL
========================================================= */

html[dir="rtl"] .coex-layer-title {
    text-align: right;
}


html[dir="rtl"] .coex-layer-title strong {
    margin-left: 0;
    margin-right: auto;
}


html[dir="rtl"] .coex-layer-title strong::before {
    margin-right: 0;
    margin-left: 10px;
}


html[dir="rtl"] .coex-layer-list > div {
    border-right: 0;
    border-left: 1px solid #e8efeb;
}


html[dir="rtl"] .coex-layer-list > div:last-child {
    border-left: 0;
}


html[dir="rtl"] .coex-layer-list > div::after {
    transform-origin: right;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 850px) {

    .coex-layer-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .coex-layer-list > div:nth-child(2) {
        border-right: 0;
    }


    .coex-layer-list > div:nth-child(1),
    .coex-layer-list > div:nth-child(2) {
        border-bottom: 1px solid #e8efeb;
    }


    html[dir="rtl"] .coex-layer-list > div:nth-child(2) {
        border-right: 0;
        border-left: 0;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .coex-layer-note {
        margin-bottom: 22px;

        border-radius: 18px;
    }


    .coex-layer-title {
        align-items: flex-start;

        flex-direction: column;

        gap: 7px;

        padding: 15px 17px;
    }


    .coex-layer-title strong {
        margin-left: 0;

        font-size: .73rem;
    }


    html[dir="rtl"] .coex-layer-title strong {
        margin-right: 0;
    }


    .coex-layer-title strong::before {
        width: 18px;

        margin-right: 7px;
    }


    html[dir="rtl"] .coex-layer-title strong::before {
        margin-right: 0;
        margin-left: 7px;
    }


    .coex-layer-list {
        grid-template-columns: 1fr;
    }


    .coex-layer-list > div,
    html[dir="rtl"] .coex-layer-list > div {

        min-height: 64px;

        padding: 13px 17px;

        border-right: 0;
        border-left: 0;

        border-bottom: 1px solid #e8efeb;
    }


    .coex-layer-list > div:last-child {
        border-bottom: 0;
    }


    .coex-layer-list > div > span {
        margin-bottom: 5px;

        font-size: .56rem;
    }


    .coex-layer-list > div > strong {
        font-size: .75rem;
    }


    .coex-layer-list > div::after {
        left: 17px;
        right: 17px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .coex-layer-title {
        padding: 14px 15px;
    }


    .coex-layer-list > div {
        min-height: 60px;

        padding: 12px 15px;
    }


    .coex-layer-list > div > strong {
        font-size: .72rem;
    }

}
/* =========================================================
   COEX LAYERS
   Minimal Technical Layer System
   ========================================================= */

.coex-layers {
    width: 100%;
    max-width: 760px;

    display: flex;
    flex-direction: column;

    gap: 10px;

    margin: 30px auto;
}


/* =========================================================
   LAYER
   ========================================================= */

.coex-layer {
    position: relative;

    display: grid;
    grid-template-columns: 58px 1fr 72px;
    align-items: center;

    min-height: 86px;

    padding: 0 22px 0 12px;

    background: #ffffff;

    border: 1px solid #e5ebe8;
    border-radius: 14px;

    overflow: hidden;

    transition:
        transform .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;
}


/* subtle layer strip */

.coex-layer::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 5px;

    background:
        linear-gradient(
            180deg,
            #0f5b49,
            #5b9a87
        );
}


/* =========================================================
   INDEX
   ========================================================= */

.coex-layer-index {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: #f1f6f4;

    color: #145c4a;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .08em;

    border: 1px solid #dce8e3;
}


/* little center point */

.coex-layer-index::after {
    content: "";

    position: absolute;

    width: 5px;
    height: 5px;

    right: -3px;
    top: 50%;

    transform: translateY(-50%);

    border-radius: 50%;

    background: #145c4a;

    opacity: .35;
}


/* =========================================================
   INFORMATION
   ========================================================= */

.coex-layer-info {
    display: flex;
    flex-direction: column;

    gap: 5px;

    padding-left: 12px;
}


.coex-layer-info span {
    color: #82938d;

    font-size: 10px;
    font-weight: 600;

    line-height: 1;

    text-transform: uppercase;
    letter-spacing: .13em;
}


.coex-layer-info strong {
    color: #183a32;

    font-size: 18px;
    font-weight: 650;

    line-height: 1.2;

    letter-spacing: -.015em;
}


/* =========================================================
   TECHNICAL MARK
   ========================================================= */

.coex-layer-mark {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 4px;
}


.coex-layer-mark i {
    display: block;

    width: 7px;
    height: 28px;

    border-radius: 3px;

    background: #dce8e3;

    transition:
        height .35s ease,
        background .35s ease;
}


.coex-layer-mark i:nth-child(1) {
    height: 16px;
}


.coex-layer-mark i:nth-child(2) {
    height: 28px;

    background: #b9d4ca;
}


.coex-layer-mark i:nth-child(3) {
    height: 21px;
}


/* =========================================================
   HOVER
   ========================================================= */

.coex-layer:hover {
    transform: translateX(6px);

    border-color: #c9ddd6;

    box-shadow:
        0 10px 28px rgba(20, 92, 74, .08);
}


.coex-layer:hover .coex-layer-index {
    background: #145c4a;

    color: #ffffff;

    border-color: #145c4a;
}


.coex-layer:hover .coex-layer-info strong {
    color: #145c4a;
}


.coex-layer:hover .coex-layer-mark i {
    background: #145c4a;
}


.coex-layer:hover .coex-layer-mark i:nth-child(1) {
    height: 22px;
}


.coex-layer:hover .coex-layer-mark i:nth-child(2) {
    height: 34px;
}


.coex-layer:hover .coex-layer-mark i:nth-child(3) {
    height: 26px;
}


/* =========================================================
   LAYER RELATION
   ========================================================= */

.coex-layer + .coex-layer {
    margin-top: 4px;
}


/* connector between layers */

.coex-layer + .coex-layer::after {
    content: "";

    position: absolute;

    left: 31px;
    top: -15px;

    width: 1px;
    height: 10px;

    background: #c9d9d3;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 600px) {

    .coex-layers {
        gap: 8px;
    }

    .coex-layer {
        grid-template-columns: 48px 1fr 45px;

        min-height: 78px;

        padding-right: 14px;
    }

    .coex-layer-index {
        width: 34px;
        height: 34px;

        font-size: 10px;
    }

    .coex-layer-info {
        padding-left: 8px;
    }

    .coex-layer-info span {
        font-size: 9px;
    }

    .coex-layer-info strong {
        font-size: 16px;
    }

    .coex-layer-mark {
        gap: 3px;
    }

    .coex-layer-mark i {
        width: 5px;
    }
}

/* =========================================================
   COEX STRUCTURE
========================================================= */

.coex-structure {
    padding-top: 20px;
    padding-bottom: 70px;
}


/* =========================================================
   LAYERS WRAPPER
========================================================= */

.coex-layers {
    width: min(760px, 100%);
    margin: 0 auto;

    display: flex;
    flex-direction: column;

    gap: 10px;
}

/* =========================================================
   LAYER ORDER
========================================================= */

.coex-layer-direction {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 8px;
    padding: 0 4px;
}

.coex-layer-direction > span {
    color: #87958f;

    font-size: 16px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .14em;
}


/* Direction badge */

.coex-direction-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 6px 10px;

    border: 1px solid #dce7e3;
    border-radius: 999px;

    background: #f7faf9;

    color: #145c4a;

    font-size: 14px;
    font-weight: 700;
}


/* Direction text */

.coex-direction-badge b {
    font-weight: 700;
    white-space: nowrap;
}


/* Arrow */

.coex-direction-badge i {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 17px;
    height: 17px;

    border-radius: 50%;

    background: #e5efeb;

    color: #145c4a;

    font-size: 10px;
    font-style: normal;
    line-height: 1;
}


/* =========================================================
   LAYER CARD
========================================================= */

.coex-layer {
    position: relative;

    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 55px;
    align-items: center;

    min-height: 82px;

    padding: 12px 18px 12px 12px;

    border: 1px solid #e0e8e5;
    border-radius: 15px;

    background: #ffffff;

    box-shadow:
        0 6px 20px rgba(10, 30, 24, .035);

    overflow: hidden;

    transition:
        transform .28s ease,
        border-color .28s ease,
        box-shadow .28s ease;
}


/* Left technical edge */

.coex-layer::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    left: 0;

    width: 4px;

    background: #145c4a;

    opacity: .8;
}


/* =========================================================
   NUMBER
========================================================= */

.coex-layer-number {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #d8e5e0;
    border-radius: 50%;

    background: #f3f8f6;

    color: #145c4a;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .06em;

    transition:
        background .28s ease,
        color .28s ease,
        border-color .28s ease,
        transform .28s ease;
}


/* =========================================================
   CONTENT
========================================================= */

.coex-layer-content {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 4px;
}


.coex-layer-content span {
    display: block;

    margin: 0;

    color: #899690;

    font-size: 9px;
    font-weight: 700;

    line-height: 1.2;

    text-transform: uppercase;
    letter-spacing: .12em;
}


.coex-layer-content strong {
    display: block;

    margin: 0;

    color: #183a32;

    font-size: 17px;
    font-weight: 650;

    line-height: 1.25;
    letter-spacing: -.015em;

    transition: color .28s ease;
}


/* =========================================================
   LAYER VISUAL
========================================================= */

.coex-layer-visual {
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 4px;

    opacity: .5;

    transition: opacity .28s ease;
}


.coex-layer-visual span {
    display: block;

    width: 6px;

    border-radius: 4px;

    background: #9fc6ba;

    transition:
        height .28s ease,
        background .28s ease;
}


.coex-layer-visual span:nth-child(1) {
    height: 15px;
}


.coex-layer-visual span:nth-child(2) {
    height: 27px;
}


.coex-layer-visual span:nth-child(3) {
    height: 20px;
}


/* =========================================================
   HOVER
========================================================= */

.coex-layer:hover {
    transform: translateY(-2px);

    border-color: #c6d9d3;

    box-shadow:
        0 12px 28px rgba(10, 30, 24, .07);
}


.coex-layer:hover .coex-layer-number {
    background: #145c4a;

    border-color: #145c4a;

    color: #ffffff;

    transform: scale(1.04);
}


.coex-layer:hover .coex-layer-content strong {
    color: #145c4a;
}


.coex-layer:hover .coex-layer-visual {
    opacity: .9;
}


.coex-layer:hover .coex-layer-visual span {
    background: #145c4a;
}


.coex-layer:hover .coex-layer-visual span:nth-child(1) {
    height: 20px;
}


.coex-layer:hover .coex-layer-visual span:nth-child(2) {
    height: 32px;
}


.coex-layer:hover .coex-layer-visual span:nth-child(3) {
    height: 25px;
}


/* =========================================================
   RTL
========================================================= */

html[dir="rtl"] .coex-layer {
    grid-template-columns: 55px minmax(0, 1fr) 54px;

    padding: 12px 12px 12px 18px;
}


html[dir="rtl"] .coex-layer::before {
    left: auto;
    right: 0;
}


html[dir="rtl"] .coex-layer-content {
    text-align: right;
}


html[dir="rtl"] .coex-layer-direction {
    direction: rtl;
}


/*
   Keep the arrow visually correct:
   الداخل → الخارج
*/

html[dir="rtl"] .coex-direction-badge {
    direction: ltr;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .coex-structure {
        padding-top: 10px;
        padding-bottom: 50px;
    }

    .coex-layers {
        gap: 8px;
    }

    .coex-layer-direction {
        margin-bottom: 6px;
    }

    .coex-layer-direction > span {
        font-size: 8px;
    }

    .coex-direction-badge {
        gap: 7px;

        padding: 5px 8px;

        font-size: 8px;
    }

    .coex-direction-badge i {
        width: 15px;
        height: 15px;

        font-size: 9px;
    }

    .coex-layer {
        grid-template-columns: 46px minmax(0, 1fr) 42px;

        min-height: 74px;

        padding: 10px 13px 10px 9px;

        border-radius: 13px;
    }

    .coex-layer-number {
        width: 33px;
        height: 33px;

        font-size: 9px;
    }

    .coex-layer-content {
        gap: 3px;
    }

    .coex-layer-content span {
        font-size: 8px;
    }

    .coex-layer-content strong {
        font-size: 15px;
    }

    .coex-layer-visual {
        gap: 3px;
    }

    .coex-layer-visual span {
        width: 5px;
    }

    html[dir="rtl"] .coex-layer {
        grid-template-columns: 42px minmax(0, 1fr) 46px;

        padding: 10px 9px 10px 13px;
    }
}
/* =========================================================
   MATCHED IMAGE BOXES — NO CROPPING
========================================================= */

.tech-box .iml-machine,
.tech-box > img {
    width: 100%;
    height: 312px;
    margin-top: 42px;
    padding: 12px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;
    background: #f5f9f7;
    overflow: hidden;
}

/* LEFT IMAGE */
.tech-box .iml-machine img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    object-fit: contain;
}

/* RIGHT IMAGE */
.tech-box > img {
    display: block;
    height: 312px;
    max-width: 100%;
    margin-top: 42px;
    object-fit: contain;
}


/* =========================================================
   LABEL TYPE CARDS — FONT SIZE ONLY
   This section increases text size WITHOUT changing card dimensions.
========================================================= */

/* Card numbers: 01 - 10 */
.label-type-content .card-num {
    font-size: 2rem;
    line-height: 1.2;
}

/* Card titles */
.label-type-content h3 {
    font-size: 1.3rem;
    line-height: 1.45;
}

/* Card descriptions */
.label-type-content p {
    font-size: 2.5rem;
    line-height: 1.75;
}

/* =========================================================
   MOBILE — FONT SIZE ONLY
========================================================= */

@media (max-width: 600px) {

    /* Card numbers */
    .label-type-content .card-num {
        font-size: .9rem;
    }

    /* Card titles */
    .label-type-content h3 {
        font-size: 1.1rem;
    }

    /* Card descriptions */
    .label-type-content p {
        font-size: .95rem;
        line-height: 1.7;
    }
}


/* =========================================================
   FINAL RTL ARABIC TYPOGRAPHY
   Increase Arabic text only — no layout/dimension changes
========================================================= */

/* Main section headings */
html[dir="rtl"] .section-head h2,
.rtl .section-head h2 {
    font-size: clamp(2rem, 3.2vw, 2.8rem) !important;
}

/* Section labels / eyebrows */
html[dir="rtl"] .section-head .eyebrow,
.rtl .section-head .eyebrow,
html[dir="rtl"] .iml-definition-title .eyebrow,
.rtl .iml-definition-title .eyebrow,
html[dir="rtl"] .problem-box-head .eyebrow,
.rtl .problem-box-head .eyebrow,
html[dir="rtl"] .tech-box > .eyebrow,
.rtl .tech-box > .eyebrow {
    font-size: 1.25rem !important;
    letter-spacing: 0 !important;
}

/* Main hero heading */
html[dir="rtl"] .tech-hero-content h1,
.rtl .tech-hero-content h1 {
    font-size: clamp(3rem, 5vw, 5rem) !important;
}

/* Normal Arabic body text */
html[dir="rtl"] .label-definition .definition-text p,
.rtl .label-definition .definition-text p,
html[dir="rtl"] .iml-definition-content p,
.rtl .iml-definition-content p,
html[dir="rtl"] .problem-card p,
.rtl .problem-card p,
html[dir="rtl"] .advantage-card p,
.rtl .advantage-card p,
html[dir="rtl"] .coex-layer-note,
.rtl .coex-layer-note {
    font-size: 1.05rem !important;
}

/* Card / subsection headings */
html[dir="rtl"] .label-type-content h3,
.rtl .label-type-content h3,
html[dir="rtl"] .problem-card h3,
.rtl .problem-card h3,
html[dir="rtl"] .iml-definition-content h3,
.rtl .iml-definition-content h3,
html[dir="rtl"] .advantage-card h3,
.rtl .advantage-card h3,
html[dir="rtl"] .tech-box h3,
.rtl .tech-box h3 {
    font-size: 1.2rem !important;
}

/* COEX Arabic labels and layer names */
html[dir="rtl"] .coex-layer-direction > span,
.rtl .coex-layer-direction > span,
html[dir="rtl"] .coex-direction-badge,
.rtl .coex-direction-badge,
html[dir="rtl"] .coex-layer-title span,
.rtl .coex-layer-title span {
    font-size: 1rem !important;
    letter-spacing: 0 !important;
}

html[dir="rtl"] .coex-layer-title strong,
.rtl .coex-layer-title strong,
html[dir="rtl"] .coex-layer-list > div > strong,
.rtl .coex-layer-list > div > strong,
html[dir="rtl"] .coex-layer-info strong,
.rtl .coex-layer-info strong {
    font-size: 1.05rem !important;
}

/* Small Arabic supporting text / labels */
html[dir="rtl"] .label-definition .definition-text strong,
.rtl .label-definition .definition-text strong,
html[dir="rtl"] .iml-language-block strong,
.rtl .iml-language-block strong {
    font-size: .95rem !important;
    letter-spacing: 0 !important;
}

/* Keep the larger Arabic typography on mobile */
@media (max-width: 600px) {
    html[dir="rtl"] .section-head h2,
    .rtl .section-head h2 {
        font-size: 1.9rem !important;
    }

    html[dir="rtl"] .section-head .eyebrow,
    .rtl .section-head .eyebrow,
    html[dir="rtl"] .iml-definition-title .eyebrow,
    .rtl .iml-definition-title .eyebrow,
    html[dir="rtl"] .problem-box-head .eyebrow,
    .rtl .problem-box-head .eyebrow,
    html[dir="rtl"] .tech-box > .eyebrow,
    .rtl .tech-box > .eyebrow {
        font-size: 1.1rem !important;
    }

    html[dir="rtl"] .label-definition .definition-text p,
    .rtl .label-definition .definition-text p,
    html[dir="rtl"] .iml-definition-content p,
    .rtl .iml-definition-content p,
    html[dir="rtl"] .problem-card p,
    .rtl .problem-card p,
    html[dir="rtl"] .advantage-card p,
    .rtl .advantage-card p,
    html[dir="rtl"] .coex-layer-note,
    .rtl .coex-layer-note {
        font-size: 1rem !important;
    }

    html[dir="rtl"] .label-type-content h3,
    .rtl .label-type-content h3,
    html[dir="rtl"] .problem-card h3,
    .rtl .problem-card h3,
    html[dir="rtl"] .iml-definition-content h3,
    .rtl .iml-definition-content h3,
    html[dir="rtl"] .advantage-card h3,
    .rtl .advantage-card h3,
    html[dir="rtl"] .tech-box h3,
    .rtl .tech-box h3 {
        font-size: 1.1rem !important;
    }
}

/* =========================================================
   FINAL — ARABIC TYPOGRAPHY ONLY
   Uses [data-ar] so the Arabic version is targeted directly.
   Font sizes only — no layout, spacing, card, or section changes.
========================================================= */

/* Base Arabic text */
html[dir="rtl"] [data-ar],
.rtl [data-ar] {
    font-size: 1.08rem !important;
}

/* Main headings */
html[dir="rtl"] h1[data-ar],
.rtl h1[data-ar] {
    font-size: clamp(3rem, 5vw, 5rem) !important;
}

html[dir="rtl"] h2[data-ar],
.rtl h2[data-ar] {
    font-size: clamp(2rem, 3.2vw, 2.8rem) !important;
}

html[dir="rtl"] h3[data-ar],
.rtl h3[data-ar] {
    font-size: 1.2rem !important;
}

/* Section labels / eyebrows */
html[dir="rtl"] .eyebrow[data-ar],
.rtl .eyebrow[data-ar] {
    font-size: 1.25rem !important;
    letter-spacing: 0 !important;
}

/* Arabic paragraphs */
html[dir="rtl"] p[data-ar],
.rtl p[data-ar],
html[dir="rtl"] li[data-ar],
.rtl li[data-ar] {
    font-size: 1.05rem !important;
}

/* Arabic supporting / strong text */
html[dir="rtl"] strong[data-ar],
.rtl strong[data-ar] {
    font-size: 1.05rem !important;
    letter-spacing: 0 !important;
}

/* Card titles */
html[dir="rtl"] .label-type-content h3[data-ar],
.rtl .label-type-content h3[data-ar],
html[dir="rtl"] .problem-card h3[data-ar],
.rtl .problem-card h3[data-ar],
html[dir="rtl"] .iml-definition-content h3[data-ar],
.rtl .iml-definition-content h3[data-ar],
html[dir="rtl"] .advantage-card h3[data-ar],
.rtl .advantage-card h3[data-ar],
html[dir="rtl"] .tech-box h3[data-ar],
.rtl .tech-box h3[data-ar] {
    font-size: 1.2rem !important;
}

/* COEX text */
html[dir="rtl"] .coex-layer-content strong[data-ar],
.rtl .coex-layer-content strong[data-ar],
html[dir="rtl"] .coex-layer-info strong[data-ar],
.rtl .coex-layer-info strong[data-ar],
html[dir="rtl"] .coex-layer-list > div > strong[data-ar],
.rtl .coex-layer-list > div > strong[data-ar],
html[dir="rtl"] .coex-layer-title strong[data-ar],
.rtl .coex-layer-title strong[data-ar] {
    font-size: 1.05rem !important;
}

/* Never enlarge technical numbers */
html[dir="rtl"] .card-num[data-ar],
.rtl .card-num[data-ar],
html[dir="rtl"] .problem-number[data-ar],
.rtl .problem-number[data-ar],
html[dir="rtl"] .coex-layer-number[data-ar],
.rtl .coex-layer-number[data-ar] {
    font-size: inherit !important;
}

/* Mobile */
@media (max-width: 600px) {

    html[dir="rtl"] [data-ar],
    .rtl [data-ar] {
        font-size: 1rem !important;
    }

    html[dir="rtl"] h1[data-ar],
    .rtl h1[data-ar] {
        font-size: 2.15rem !important;
    }

    html[dir="rtl"] h2[data-ar],
    .rtl h2[data-ar] {
        font-size: 1.9rem !important;
    }

    html[dir="rtl"] h3[data-ar],
    .rtl h3[data-ar],
    html[dir="rtl"] .label-type-content h3[data-ar],
    .rtl .label-type-content h3[data-ar],
    html[dir="rtl"] .problem-card h3[data-ar],
    .rtl .problem-card h3[data-ar],
    html[dir="rtl"] .iml-definition-content h3[data-ar],
    .rtl .iml-definition-content h3[data-ar],
    html[dir="rtl"] .advantage-card h3[data-ar],
    .rtl .advantage-card h3[data-ar],
    html[dir="rtl"] .tech-box h3[data-ar],
    .rtl .tech-box h3[data-ar] {
        font-size: 1.1rem !important;
    }

    html[dir="rtl"] .eyebrow[data-ar],
    .rtl .eyebrow[data-ar] {
        font-size: 1.1rem !important;
    }

    html[dir="rtl"] p[data-ar],
    .rtl p[data-ar],
    html[dir="rtl"] li[data-ar],
    .rtl li[data-ar],
    html[dir="rtl"] strong[data-ar],
    .rtl strong[data-ar] {
        font-size: 1rem !important;
    }

    html[dir="rtl"] .card-num[data-ar],
    .rtl .card-num[data-ar],
    html[dir="rtl"] .problem-number[data-ar],
    .rtl .problem-number[data-ar],
    html[dir="rtl"] .coex-layer-number[data-ar],
    .rtl .coex-layer-number[data-ar] {
        font-size: inherit !important;
    }
}

@media (max-width: 400px) {
    html[dir="rtl"] h1[data-ar],
    .rtl h1[data-ar] {
        font-size: 1.85rem !important;
    }

    html[dir="rtl"] h2[data-ar],
    .rtl h2[data-ar] {
        font-size: 1.75rem !important;
    }
}

/* =========================================================
   FINAL ARABIC FONT BOOST
   Arabic only — English stays unchanged
========================================================= */

/* كل النصوص العربية العادية */
html[dir="rtl"] [data-ar],
.rtl [data-ar] {
    font-size: 1.18rem !important;
    line-height: 1.65 !important;
}

/* H1 */
html[dir="rtl"] h1[data-ar],
.rtl h1[data-ar] {
    font-size: clamp(3.2rem, 5.2vw, 5.2rem) !important;
    line-height: 1.05 !important;
}

/* H2 */
html[dir="rtl"] h2[data-ar],
.rtl h2[data-ar] {
    font-size: clamp(2.25rem, 3.5vw, 3rem) !important;
    line-height: 1.2 !important;
}

/* H3 */
html[dir="rtl"] h3[data-ar],
.rtl h3[data-ar] {
    font-size: 1.35rem !important;
    line-height: 1.5 !important;
}

/* Paragraphs + list items */
html[dir="rtl"] p[data-ar],
.rtl p[data-ar],
html[dir="rtl"] li[data-ar],
.rtl li[data-ar] {
    font-size: 1.15rem !important;
    line-height: 1.8 !important;
}

/* Strong / labels */
html[dir="rtl"] strong[data-ar],
.rtl strong[data-ar] {
    font-size: 1.12rem !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
}

/* Eyebrow / small section labels */
html[dir="rtl"] .eyebrow[data-ar],
.rtl .eyebrow[data-ar] {
    font-size: 1.2rem !important;
    letter-spacing: 0 !important;
}

/* COEX text */
html[dir="rtl"] .coex-layer-info strong[data-ar],
.rtl .coex-layer-info strong[data-ar],
html[dir="rtl"] .coex-layer-list > div > strong[data-ar],
.rtl .coex-layer-list > div > strong[data-ar],
html[dir="rtl"] .coex-layer-title strong[data-ar],
.rtl .coex-layer-title strong[data-ar] {
    font-size: 1.15rem !important;
}

/* أرقام الكروت تفضل صغيرة */
html[dir="rtl"] .card-num[data-ar],
.rtl .card-num[data-ar],
html[dir="rtl"] .problem-number[data-ar],
.rtl .problem-number[data-ar],
html[dir="rtl"] .coex-layer-number[data-ar],
.rtl .coex-layer-number[data-ar] {
    font-size: inherit !important;
    line-height: 1.2 !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    html[dir="rtl"] [data-ar],
    .rtl [data-ar] {
        font-size: 1.08rem !important;
        line-height: 1.7 !important;
    }

    html[dir="rtl"] h1[data-ar],
    .rtl h1[data-ar] {
        font-size: 2.35rem !important;
    }

    html[dir="rtl"] h2[data-ar],
    .rtl h2[data-ar] {
        font-size: 2.05rem !important;
    }

    html[dir="rtl"] h3[data-ar],
    .rtl h3[data-ar] {
        font-size: 1.2rem !important;
    }

    html[dir="rtl"] p[data-ar],
    .rtl p[data-ar],
    html[dir="rtl"] li[data-ar],
    .rtl li[data-ar] {
        font-size: 1.08rem !important;
        line-height: 1.8 !important;
    }
}