@import url("https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&display=swap');

/* ===================================================================
 * 1. المتغيرات والنسق الأساسي (Variables & System Setup)
 * =================================================================== */
:root {
    --font-1: "Public Sans", "Almarai", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-2: "Almarai", "Public Sans", sans-serif;

    /* Colors */
    --color-1: hsla(12, 75%, 45%, 1);
    --color-1-light: hsla(12, 75%, 55%, 1);
    --color-1-lighter: hsla(12, 75%, 65%, 1);
    --color-3: #121212;
    --color-3-dark: #0a0a0a;

    --color-gray-1: #fbfcfb;
    --color-gray-7: #f2f3f2;
    --color-gray-10: #eceeec;
    --color-gray-11: #d4d6d4;
    --color-gray-12: #bdbebd;
    --color-gray-14: #a0a2a0;
    --color-gray-15: #767776;
    --color-gray-19: #181818;
    --color-white: #ffffff;

    --color-text: var(--color-gray-19);
    --color-text-dark: var(--color-3-dark);
    --color-text-light: var(--color-gray-15);
    --color-link: var(--color-1);

    --color-btn-primary: var(--color-1);
    --color-btn-primary-text: var(--color-white);
    --color-btn-primary-hover: var(--color-1-light);

    --color-body-bg: var(--color-gray-1);
    --border-radius: 6px;
    --width-default: 1180px;
}

/* ===================================================================
 * 2. إعادة التعيين ومنع الـ Overflow (Anti-Overflow Reset)
 * =================================================================== */
html {
    font-size: 62.5%;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

*, *::before, *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-body-bg);
    font-family: var(--font-1);
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--color-text);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

p {
    margin-bottom: 1.6rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

a { color: var(--color-link); text-decoration: none; transition: all 0.25s ease; }
svg, img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-2);
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.25;
    word-break: break-word;
}

h1 { font-size: clamp(2.4rem, 4vw, 4.8rem); margin-bottom: 1.2rem; }
h2 { font-size: clamp(2.2rem, 3vw, 3.6rem); margin-bottom: 1.2rem; }
h3 { font-size: clamp(1.8rem, 2.4vw, 2.6rem); margin-bottom: 1rem; }
h4 { font-size: clamp(1.6rem, 2vw, 2rem); margin-bottom: 0.8rem; }
h5 { font-size: 1.5rem; margin-bottom: 0.6rem; }

/* Grid */
.row {
    width: 100%;
    max-width: var(--width-default);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
}

.column {
    flex: 1;
    width: 100%;
    max-width: 100%;
}

.xl-12 { flex: 0 0 100%; width: 100%; }
.xl-6 { flex: 0 0 50%; width: 50%; }
.xl-4 { flex: 0 0 33.3333%; width: 33.3333%; }

.attention-getter {
    font-size: clamp(1.45rem, 1.6vw, 1.75rem);
    line-height: 1.8;
    color: #2d3748;
    margin-bottom: 2rem;
}

.text-pretitle {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--color-1);
    margin-bottom: 0.6rem;
}

.text-display-title {
    font-size: clamp(2.4rem, 3.5vw, 4rem);
    margin-bottom: 1.6rem;
}

.u-screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.u-fullwidth { width: 100%; }

/* ===================================================================
 * 3. الأزرار (Buttons)
 * =================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-1);
    font-weight: 600;
    font-size: 1.35rem;
    height: 4.8rem;
    padding: 0 2.6rem;
    border-radius: var(--border-radius);
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    text-align: center;
}

.btn--primary {
    background: var(--color-btn-primary);
    color: #fff;
}

.btn--primary:hover {
    background: var(--color-btn-primary-hover);
    color: #fff;
}

.btn--stroke {
    background: rgba(255, 255, 255, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    backdrop-filter: blur(4px);
}

.btn--stroke:hover {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: var(--color-3-dark) !important;
}

.btn--large {
    height: 5.2rem;
    font-size: 1.45rem;
}

/* ===================================================================
 * 4. شريط التنقل (Header & Nav)
 * =================================================================== */
.s-pagewrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.s-header {
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-3);
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.s-header__inner {
    max-width: var(--width-default);
    margin: 0 auto;
    height: 100%;
    padding: 0 2rem;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
}

.s-header__block {
    display: flex;
    align-items: center;
}

.s-header__menu-links {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.6rem;
}

.s-header__menu-links a {
    font-size: 1.45rem;
    color: var(--color-gray-14);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
}

.s-header__menu-links a:hover,
.s-header__menu-links .current a {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.s-header__menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
    padding: 0;
    outline: none;
}

.s-header__menu-toggle span {
    display: block;
    background-color: #ffffff;
    width: 24px;
    height: 2px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.s-header__menu-toggle span::before,
.s-header__menu-toggle span::after {
    content: "";
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    position: absolute;
    right: 0;
    transition: all 0.3s ease;
}

.s-header__menu-toggle span::before { top: -7px; }
.s-header__menu-toggle span::after { bottom: -7px; }

.s-header__menu-toggle.is-clicked span { background-color: transparent; }
.s-header__menu-toggle.is-clicked span::before { top: 0; transform: rotate(45deg); }
.s-header__menu-toggle.is-clicked span::after { bottom: 0; transform: rotate(-45deg); }

/* ===================================================================
 * 5. واجهة العرض (Hero Intro)
 * =================================================================== */
.s-intro {
    position: relative;
    min-height: 100vh;
    background-color: var(--color-gray-10);
    display: flex;
    align-items: center;
    padding-top: 70px;
    overflow: hidden;
    width: 100%;
}

.s-intro__content {
    width: 100%;
    z-index: 5;
    position: relative;
}

.s-intro__content-inner {
    display: flex;
    align-items: center;
    width: 100%;
}

.s-intro__content-text {
    width: 55%;
    padding-left: 3rem;
    box-sizing: border-box;
    z-index: 6;
}

.s-intro__content-pretitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-1);
    margin-bottom: 0.8rem;
}

.s-intro__content-title {
    font-size: clamp(2.8rem, 3.8vw, 4.6rem);
    line-height: 1.25;
    margin-bottom: 1.2rem;
    color: var(--color-text-dark);
}

.s-intro__content-title2 {
    font-size: clamp(1.5rem, 1.8vw, 2.1rem);
    color: #4a5568;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.s-intro__content-btns {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.s-intro__content-btns .btn--stroke {
    background: transparent !important;
    border: 1.5px solid var(--color-3) !important;
    color: var(--color-3) !important;
}

.s-intro__content-btns .btn--stroke:hover {
    background: var(--color-3) !important;
    color: #ffffff !important;
}

.s-intro__content-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
}

.s-intro__content-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top !important;
    display: block;
}

.s-intro__content-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to left,
        var(--color-gray-10) 0%,
        rgba(236, 238, 236, 0.4) 20%,
        transparent 70%
    );
    pointer-events: none;
}

.s-intro__social {
    position: absolute;
    bottom: 2.4rem;
    right: 3rem;
    display: flex;
    flex-direction: row;
    gap: 1.6rem;
    z-index: 6;
}

.s-intro__social svg {
    width: 22px;
    height: 22px;
    fill: #2d3748 !important;
    transition: transform 0.2s ease, fill 0.2s ease;
}

.s-intro__social a:hover svg {
    fill: var(--color-1) !important;
    transform: translateY(-2px);
}

.s-intro__btn-download,
.s-intro__scroll-down {
    display: none !important;
}

/* ===================================================================
 * 6. قسم من أنا والملف المهني (About Section & Grid)
 * =================================================================== */
.s-about { padding: 6rem 0; width: 100%; }

.section-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    position: relative;
    width: 100%;
}

.section-header::before {
    content: attr(data-num);
    font-size: clamp(4.5rem, 7vw, 7.5rem);
    font-weight: 800;
    color: var(--color-gray-11);
    position: absolute;
    top: -0.3em;
    left: 0;
    opacity: 0.4;
    line-height: 1;
}

.section-header.light-on-dark .text-display-title { color: #fff; }
.section-header.light-on-dark::before { color: rgba(255, 255, 255, 0.1); }

.s-about__block-title {
    margin-bottom: 1.8rem;
    padding-right: 1.4rem;
    position: relative;
    font-size: 1.75rem;
    color: var(--color-text-dark);
}

.s-about__block-title::before {
    content: "";
    height: 0.75em;
    width: 3px;
    background-color: var(--color-1);
    border-radius: 2px;
    transform: translateY(-50%);
    position: absolute;
    right: 0;
    top: 50%;
}

.s-about__profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin-top: 3.5rem;
    align-items: start;
    width: 100%;
}

.profile-col { display: flex; flex-direction: column; width: 100%; }

/* Timeline (الخبرات) */
.timeline-wrapper {
    border-right: 2px solid var(--color-gray-11);
    padding-right: 1.6rem;
    margin-right: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.timeline-box { position: relative; }
.timeline-box::before {
    content: "";
    position: absolute;
    right: calc(-1.6rem - 5px);
    top: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-body-bg);
    border: 2px solid var(--color-1);
}

.timeline-head { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.2rem; }
.timeline-sub { font-size: 1.3rem; color: var(--color-text-light); margin-bottom: 0.2rem; }
.timeline-role { font-size: 1.2rem; color: var(--color-1); font-weight: 600; }

/* Conferences (المؤتمرات) */
.events-wrapper { display: flex; flex-direction: column; gap: 1.4rem; }
.event-card-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1.4rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.event-card-title { font-size: 1.45rem; margin-bottom: 0.4rem; }
.event-card-desc { font-size: 1.3rem; color: var(--color-text-light); margin-bottom: 1rem; }
.event-meta-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag-badge { font-size: 1.15rem; background-color: var(--color-gray-7); color: #4a5568; padding: 0.2rem 0.8rem; border-radius: 12px; }
.tag-badge.tag-highlight { background-color: rgba(199, 62, 29, 0.1); color: var(--color-1); font-weight: 600; }

/* ===================================================================
 * 7. قسم الخدمات (Services Clean Grid)
 * =================================================================== */
.s-services {
    padding: 6rem 0;
    width: 100%;
}

.services-clean-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.4rem;
    margin-top: 3rem;
    width: 100%;
}

.service-box.flip-card {
    flex: 0 1 calc(25% - 2rem);
    min-width: 240px;
    height: 290px;
    background: transparent;
    perspective: 1000px;
    cursor: pointer;
    user-select: none;
}

.service-box .flip-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 32px;
}

.service-box.is-flipped .flip-card__inner {
    transform: rotateY(180deg);
}

.service-box .flip-card__front,
.service-box .flip-card__back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 32px;
    padding: 2.4rem 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    box-sizing: border-box;
}

.service-box .flip-card__front {
    background-color: #e5e9ec;
    border: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-box:hover .flip-card__front {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}
.flip-hint {
    border: 1px solid #0a0a0a;
    border-radius: 12px;
    padding: 0.4rem 1.2rem;
    background-color: #0a0a0a;
    color: #ffffff;
    margin-top: 10px;
}

.service-box__icon {
    color: #1a1a1a;
    margin-bottom: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-box__title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111111;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.service-box__desc {
    font-size: 1.25rem;
    color: #555555;
    line-height: 1.5;
    margin: 0;
}

.service-box .flip-card__back {
    background-color: var(--color-3);
    color: #ffffff;
    transform: rotateY(180deg);
    gap: 1.6rem;
}

.service-box .back-title {
    color: #ffffff;
    font-size: 1.75rem;
    margin-bottom: 0.8rem;
}

.service-box .btn-book {
    padding: 0 2.8rem;
    height: 4.4rem;
    font-size: 1.35rem;
    border-radius: 12px;
}

/* ===================================================================
 * 8. الترخيص
 * =================================================================== */
.s-licenses { padding: 4rem 0; width: 100%; }
.s-licenses img { margin: 0 auto; width: 100%; max-width: 900px; border-radius: var(--border-radius); }

/* ===================================================================
 * 9. قسم آراء العملاء (Swiper Testimonials)
 * =================================================================== */
.s-testimonials {
    padding: 7rem 0;
    width: 100%;
    position: relative;
}

.s-testimonials .swiper-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 1.5rem 0 5.5rem;
    position: relative;
    direction: rtl;
}

.s-testimonials .swiper-wrapper {
    display: flex;
    box-sizing: border-box;
    width: 100%;
}

.s-testimonials__slide {
    flex-shrink: 0;
    height: auto !important;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 3rem 2.4rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.s-testimonials__slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border-color: var(--color-gray-12);
}

.s-testimonials__author {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin-bottom: 1.8rem;
}

.s-testimonials__avatar {
    width: 5.2rem;
    height: 5.2rem;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--color-gray-7);
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.s-testimonials__cite {
    display: flex;
    flex-direction: column;
    font-style: normal;
}

.s-testimonials__cite strong {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.s-testimonials__cite span {
    font-size: 1.3rem;
    color: var(--color-1);
    font-weight: 600;
}

.s-testimonials__slide p {
    font-size: 1.45rem;
    line-height: 1.8;
    color: #4a5568;
    margin: 0;
}

.s-testimonials .swiper-pagination {
    position: absolute;
    bottom: 1rem !important;
    left: 0;
    right: 0;
    text-align: center;
    width: 100%;
    z-index: 10;
}

.s-testimonials .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #cbd5e1;
    opacity: 1;
    margin: 0 0.5rem !important;
    display: inline-block;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.s-testimonials .swiper-pagination-bullet-active {
    background: var(--color-1) !important;
    width: 28px;
    border-radius: 12px;
}

/* ===================================================================
 * 10. الفوتر (Footer)
 * =================================================================== */
.s-footer { background-color: var(--color-3); padding: 5rem 0 3rem; color: var(--color-gray-15); position: relative; width: 100%; }
.s-footer h5 { color: #fff; font-size: 1.6rem; margin-bottom: 1.2rem; }
.s-footer .link-list li { margin-bottom: 0.8rem; }
.s-footer .link-list a { color: var(--color-gray-14); font-size: 1.4rem; }
.s-footer .link-list a:hover { color: #fff; }
.s-footer__buttons { display: flex; gap: 1.4rem; margin: 2.4rem 0; width: 100%; }
.ss-go-top { position: absolute; bottom: 2.4rem; left: 2.4rem; }
.ss-go-top a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.6); }
.ss-go-top svg { width: 12px; height: 12px; fill: #fff; }

/* ===================================================================
 * 11. التجاوب للشاشات (Responsive)
 * =================================================================== */
@media screen and (max-width: 1100px) {
    .service-box.flip-card {
        flex: 0 1 calc(33.333% - 1.8rem);
    }
}

@media screen and (max-width: 991px) {
    .row { padding: 0 1.6rem; }
    .s-header__inner { padding: 0 1.6rem; }
    .s-header__menu-toggle { display: block; }

    .s-header__nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--color-3);
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height 0.35s ease, visibility 0.35s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .menu-is-open .s-header__nav {
        max-height: 360px;
        visibility: visible;
    }

    .s-header__menu-links {
        flex-direction: column-reverse;
        padding: 1.5rem 2rem;
        gap: 0;
    }

    .s-header__menu-links li { width: 100%; }
    .s-header__menu-links a {
        display: block;
        width: 100%;
        font-size: 1.6rem;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .s-intro {
        padding-top: 80px;
        padding-bottom: 40px;
        align-items: flex-end;
        min-height: 92vh;
    }

    .s-intro__content-inner {
        flex-direction: column;
    }

    .s-intro__content-text {
        width: 100%;
        padding: 0;
        text-align: center;
        margin-top: auto;
        z-index: 5;
    }

    .s-intro__content-title {
        color: #ffffff;
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }

    .s-intro__content-title2 {
        color: #edf2f7 !important;
        font-size: 1.45rem;
        margin-bottom: 2rem;
    }

    .s-intro__content-btns {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .s-intro__content-btns .btn {
        width: 100%;
        margin: 0;
    }

    .s-intro__content-btns .btn--stroke {
        background: rgba(255, 255, 255, 0.16) !important;
        border: 1px solid rgba(255, 255, 255, 0.35) !important;
        color: #ffffff !important;
    }

    .s-intro__content-media {
        width: 100%;
        right: 0;
        height: 100%;
    }

    .s-intro__content-media img {
        object-position: center 5%;
    }

    .s-intro__content-media::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(0deg, rgba(18, 18, 18, 0.96) 35%, rgba(18, 18, 18, 0.25) 100%);
    }

    .s-intro__social {
        display: none !important;
    }

    .s-about__profile-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .s-footer__buttons {
        flex-direction: column;
    }

    .s-footer__buttons .btn {
        width: 100%;
    }

    .s-footer__site-links .row {
        flex-direction: column;
        gap: 2rem;
    }
}

/* ===================================================================
 * زر تبديل اللغة (Language Toggle Button)
 * =================================================================== */
.lang-switch-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 0.5rem 1.4rem;
    border-radius: 20px;
    font-size: 1.35rem;
    font-weight: 700;
    cursor: pointer;
    margin-right: 1.2rem;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-switch-btn:hover {
    background: var(--color-1);
    border-color: var(--color-1);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ===================================================================
 * ضبط اتجاه الصفحة باللغة الإنجليزية (LTR Layout Fixes)
 * =================================================================== */
html[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

html[dir="ltr"] .s-header__inner {
    flex-direction: row;
}

html[dir="ltr"] .s-header__menu-links {
    flex-direction: row;
}

html[dir="ltr"] .lang-switch-btn {
    margin-right: 0;
    margin-left: 1.2rem;
}

html[dir="ltr"] .section-header::before {
    left: auto;
    right: 0;
}

html[dir="ltr"] .s-about__block-title {
    padding-right: 0;
    padding-left: 1.4rem;
}

html[dir="ltr"] .s-about__block-title::before {
    right: auto;
    left: 0;
}

/* التايم لاين لليسار في الإنجليزية */
html[dir="ltr"] .timeline-wrapper {
    border-right: none;
    border-left: 2px solid var(--color-gray-11);
    padding-right: 0;
    padding-left: 1.6rem;
    margin-right: 0;
    margin-left: 0.4rem;
}

html[dir="ltr"] .timeline-box::before {
    right: auto;
    left: calc(-1.6rem - 5px);
}

/* واجهة العرض (الهيرو) للابتوب في الإنجليزية */
@media screen and (min-width: 992px) {
    html[dir="ltr"] .s-intro__content-text {
        padding-left: 0;
        padding-right: 3rem;
        text-align: left;
    }

    html[dir="ltr"] .s-intro__content-media {
        left: auto;
        right: 0;
    }

    html[dir="ltr"] .s-intro__content-media::after {
        background: linear-gradient(
            to right,
            var(--color-gray-10) 0%,
            rgba(236, 238, 236, 0.4) 20%,
            transparent 70%
        );
    }

    html[dir="ltr"] .s-intro__social {
        right: auto;
        left: 3rem;
    }
}
@media screen and (max-width: 768px) {
    .service-box.flip-card {
        flex: 0 1 calc(50% - 1.2rem);
        min-width: 160px;
        height: 260px;
    }
}

@media screen and (max-width: 480px) {
    .service-box.flip-card {
        flex: 0 1 100%;
    }
}

/* Preloader */
#preloader { position: fixed; inset: 0; display: flex; justify-content: center; align-items: center; background: #fff; z-index: 9999; }
.no-js #preloader, .ss-loaded #preloader { opacity: 0; visibility: hidden; transition: all 0.4s ease; }
#loader { position: relative; width: 6px; height: 6px; }
#loader > div { background: var(--color-1); width: 6px; height: 6px; position: absolute; border-radius: 50%; animation: dots-fade 1.6s infinite ease; }
#loader > div:nth-of-type(1) { left: 14px; animation-delay: 0.8s; }
#loader > div:nth-of-type(3) { left: -14px; animation-delay: 0s; }
@keyframes dots-fade { 0%, 80%, 100% { opacity: 1; } 40% { opacity: 0.2; } }

iframe[title*="Netlify"], [data-netlify-drawer], .netlify-badge { display: none !important; }