/* ---------- Local Cairo Font ---------- */
/* cairo-200 - arabic_latin_latin-ext */
@font-face {
   font-display: swap;
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 200;
  src: url('../fonts/cairo-v31-arabic_latin_latin-ext-200.woff2') format('woff2');
}

@font-face {
   font-display: swap;
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/cairo-v31-arabic_latin_latin-ext-300.woff2') format('woff2');
}

@font-face {
   font-display: swap;
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/cairo-v31-arabic_latin_latin-ext-regular.woff2') format('woff2');
}

@font-face {
   font-display: swap;
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/cairo-v31-arabic_latin_latin-ext-500.woff2') format('woff2');
}

@font-face {
   font-display: swap;
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/cairo-v31-arabic_latin_latin-ext-600.woff2') format('woff2');
}

@font-face {
   font-display: swap;
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/cairo-v31-arabic_latin_latin-ext-700.woff2') format('woff2');
}

@font-face {
   font-display: swap;
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/cairo-v31-arabic_latin_latin-ext-800.woff2') format('woff2');
}

@font-face {
   font-display: swap;
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/cairo-v31-arabic_latin_latin-ext-900.woff2') format('woff2');
}

/* تطبيق الخط على كافة عناصر الموقع */
body {
    font-family: "Cairo", sans-serif;
}
/* ---------- 1) Variables ---------- */
:root {
    --brand: #f59e0b;
    --brand-dark: #267a37;
    --brand-deep: #23683c;
    --accent: #f59e0b;

    /* Light Mode */
    --body-bg: #f8fafc;
    --body-text: #1e293b;
    --surface: #ffffff;
    --border: #e2e8f0;

    /* Dark Mode */
    --night-body: #0c2114;
    --night-nav: #0c2114;
    --night-surface: #023d19;
    --night-surface-hover: #34415a;
    --night-border: #3b4a66;
    --night-text: #e2e8f0;

    --slide-dur: 5000ms;
}

/* ---------- 2) Reset / Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

html,
body,
button,
input,
textarea,
select,
a {
    font-family: "Cairo", sans-serif;
}

body {
    margin: 0;
    min-width: 320px;

    background-color: var(--body-bg);
    color: var(--body-text);

    font-family: "Cairo", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}
/* ============================================
   DARK MODE
   ============================================ */

.dark body {
    background-color: var(--night-body);
    color: var(--night-text);
}

button {
    border: 0;
    margin: 0;
    padding: 0;
    background: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

svg {
    display: block;
    width: 18px;
    height: 18px;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    width: min(100% - 32px, 1280px);
    margin-inline: auto;
}

::selection {
    background: var(--brand);
    color: #fff;
}


/* ---------- 3) Topbar ---------- */
#topbar {
    max-height: 60px;
    overflow: hidden;
    opacity: 1;
    color: #dcf1de;
    background: var(--brand-deep);
    transition: max-height .4s ease, opacity .35s ease, padding .4s ease;
}

body.scrolled #topbar {
    max-height: 0;
    opacity: 0;
    padding-block: 0;
}

.topbar-inner {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-socials,
.topbar-contact {
    display: flex;
    align-items: center;
}

.topbar-socials {
    gap: 4px;
}

.topbar-contact {
    gap: 20px;
}

.topbar-social {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color .3s ease, color .3s ease, transform .3s ease;
}

.topbar-social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.topbar-social:hover {
    color: #fff;
    background: rgba(255, 255, 255, .12);
    transform: translateY(-2px);
}

.topbar-info {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color .3s ease;
}

.topbar-info svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topbar-info:hover {
    color: #fff;
}

/* ---------- 4) Navbar ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: box-shadow .4s ease, background-color .4s ease, border-color .4s ease;
}

.dark .navbar {
    background: var(--night-nav);
    border-bottom-color: var(--night-border);
}

body.scrolled .navbar {
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .25);
}

.navbar-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* =========================
   LOGO
========================= */

.brand-logo {
    width: 220px;
    min-width: 220px;
    display: flex;
    align-items: center;
}

.brand-logo img {
    width: 130px;
    height: 55px;
    min-width: 130px;
    max-width: 130px;
    display: block;
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(54,151,72,.30);
    transition: transform .5s ease;
}

.brand-text {
    display: block;
    min-width: 0;
    line-height: 1.15;
}

.brand-name {
    display: block;
    color: var(--brand-dark);
    font-size: 18px;
    font-weight: 900;
}

.dark .brand-name {
    color: #5bb36a;
}

.brand-tagline {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #334155;
    font-size: 15px;
}

.dark .desktop-nav {
    color: #cbd5e1;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 2px;
    color: inherit;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: color .3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    right: auto;
    bottom: 0;
    inset-inline-start: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    transition: width .35s ease;
}

.nav-link:hover {
    color: var(--brand);
}

.nav-link:hover::after {
    width: 100%;
}
/*-منع الاهنزاز -*/
.slider-container, .carousel-class {
    overflow-anchor: none;
}

body {
    overflow-anchor: none;
}
/*-منع الاهنزاز -*/
.dropdown {
    position: relative;
}

.dropdown-trigger {
    border: 0;
}

.dropdown-arrow {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .3s ease;
}

.dropdown:hover .dropdown-arrow,
.dropdown:focus-within .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    padding-top: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel {
    width: 208px;
    padding: 8px;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .15);
}

.dark .dropdown-panel {
    border-color: var(--night-border);
    background: var(--night-body);
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .5);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 12px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    transition: padding .25s ease, color .25s ease, background-color .25s ease;
}

.dark .dropdown-item {
    color: #cbd5e1;
}

.dropdown-item:hover {
    padding-inline-start: 20px;
    color: var(--brand);
    background: #f0f9f1;
}

.dark .dropdown-item:hover {
    background: rgba(24, 65, 34, .5);
}

.dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
}

.brand-dot {
    background: var(--brand);
}

.accent-dot {
    background: var(--accent);
}

.sky-dot {
    background: #0ea5e9;
}

.nav-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-action-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: #64748b;
    cursor: pointer;
    transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .3s ease;
}

.dark .nav-action-btn {
    border-color: var(--night-border);
    color: #cbd5e1;
}

.nav-action-btn:hover {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    transform: scale(1.06);
}

.nav-action-btn svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.language-btn {
    width: auto;
    padding-inline: 14px;
    font-size: 14px;
    font-weight: 700;
}

.theme-sun,
.theme-moon {
    transition: transform .6s cubic-bezier(.34, 1.56, .64, 1);
}

.theme-moon {
    display: none;
}

.dark .theme-sun {
    display: none;
}

.dark .theme-moon {
    display: block;
}

.theme-btn:hover .theme-sun,
.theme-btn:hover .theme-moon {
    transform: rotate(40deg) scale(1.15);
}

.burger-btn {
    display: none;
}

.mobile-menu {
    display: none;
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid var(--border);
    background: var(--surface);
    transition: max-height .5s cubic-bezier(.22, 1, .36, 1);
}

.dark .mobile-menu {
    border-top-color: var(--night-border);
    background: var(--night-body);
}

.mobile-menu.open {
    max-height: 600px;
}

.mobile-menu-inner {
    width: min(100% - 32px, 1280px);
    margin-inline: auto;
    padding-block: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 15px;
    font-weight: 600;
}

.mobile-link {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 12px;
    transition: background-color .25s ease, color .25s ease;
}

.mobile-link:hover {
    background: #f0f9f1;
}

.dark .mobile-link:hover {
    background: var(--night-surface);
}

.mobile-agencies-btn {
    width: 100%;
    justify-content: space-between;
    cursor: pointer;
}

.mobile-agencies-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .3s ease;
}

.mobile-agencies-btn.open svg {
    transform: rotate(180deg);
}

.mobile-agencies-submenu {
    display: none;
    margin-block: 4px;
    padding: 8px 8px 8px 8px;
    border-radius: 12px;
    background: #f1f5f9;
}

.dark .mobile-agencies-submenu {
    background: var(--night-surface);
}

.mobile-agencies-submenu.open {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.submenu-link {
    font-size: 14px;
    gap: 8px;
}

/* ---------- 5) Hero ---------- */
.hero-slider {
    width: 100%;
    padding-top: 16px;
}

.hero-desktop {
    width: 100%;
    height: 520px;
    min-height: 520px;
    padding-inline: 16px;
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.hero-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 0;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .35);
    transition: box-shadow .4s ease;
}

.hero-card.big {
    flex: 2 1 0;
    min-width: 0;
}

.hero-smalls {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hero-card.small {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
}

.hero-card img {
    width: 100%;
    height: 100%;

    /*
     * عرض الصورة كاملة بدون قص.
     */
    object-fit: contain;
    object-position: center center;

    background: #ffffff;

    transition: transform .8s ease;
}

.hero-card:hover {
    box-shadow: 0 25px 60px -18px rgba(54, 151, 72, .4);
}

.hero-card:hover img {
    transform: scale(1.07);
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        /* rgba(6, 25, 12, .45) 0%,
        rgba(6, 25, 12, .25) 45%, */
         rgba(6, 25, 12, .30) 0%,
         rgba(6, 25, 12, .10) 40%,
        transparent 75%
    );
}

.card-caption {
    position: absolute;
    z-index: 2;
    inset-inline: 0;
    bottom: 0;
    padding: 20px 24px;
    /* color: #fff; */
    color: #16a34a;
}

.card-tag {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(245, 158, 11, .92);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.card-caption h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    opacity: .85;
    transform: translateY(8px);
    transition: transform .5s ease .1s, opacity .5s ease .1s, font-size .5s ease;
}

.card-desc {
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    font-size: 13.6px;
    transition: max-height .5s ease .2s, opacity .5s ease .2s, margin-top .5s ease .2s;
}
/* ---------- Hero Image Link ---------- */

.hero-image-link {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.hero-image-link img {
    width: 100%;
    height: 100%;
}


/* ---------- Hero Overlay ---------- */

.hero-card::after {
    pointer-events: none;
}


/* ---------- Hero Button ---------- */

.hero-btn {
    display: none;

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

    width: fit-content;

    margin-top: 14px;
    padding: 9px 18px;

    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 10px;

    color: #fff;
    background: var(--brand);

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

    cursor: pointer;

    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);

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


/* الزر يظهر فقط عندما تكون البطاقة كبيرة */
.hero-card.big .hero-btn {
    display: inline-flex;
}


.hero-btn:hover {
    background: var(--brand-dark);
    border-color: rgba(255, 255, 255, .7);

    transform: translateY(-2px);

    box-shadow: 0 12px 26px rgba(0, 0, 0, .25);
}

.hero-card.big .card-caption h3 {
    font-size: clamp(21px, 2.4vw, 32px);
    opacity: 1;
    transform: translateY(0);
}

.hero-card.big .card-desc {
    max-height: 60px;
    margin-top: 6px;
    opacity: .9;
}

.hero-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 0 8px;
}

.progress-dot {
    position: relative;
    width: 34px;
    height: 4px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: rgba(100, 116, 139, .3);
    cursor: pointer;
}

.dark .progress-dot {
    background: rgba(226, 232, 240, .2);
}

.progress-dot .fill {
    position: absolute;
    inset: 0;
    width: 0;
    border-radius: 999px;
    background: var(--brand);
}

.progress-dot.current .fill {
    animation: fillbar var(--slide-dur) linear forwards;
}

@keyframes fillbar {
    from { width: 0; }
    to { width: 100%; }
}


/* ---------- Slider / Statistics separator ---------- */
.slider-stats-separator {
    width: min(100% - 32px, 1280px);
    height: 1px;
    margin: 24px auto 0;
    position: relative;
    background: var(--border);
}

.slider-stats-separator span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72px;
    height: 3px;
    border-radius: 999px;
    background: var(--brand);
    transform: translate(-50%, -50%);
}

.dark .slider-stats-separator {
    background: var(--night-border);
}

.dark .slider-stats-separator span {
    background: #5bb36a;
}

/* ---------- 6) Stats ---------- */
.stats-section {
    width: 100%;
    padding: 34px 0 56px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.stat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    transition: transform .45s cubic-bezier(.22, 1, .36, 1),
                box-shadow .45s ease,
                border-color .3s ease;
}

.dark .stat-card {
    border-color: var(--night-border);
    background: var(--night-surface);
}

.stat-card:hover {
    border-color: rgba(54, 151, 72, .35);
    box-shadow: 0 25px 50px -18px rgba(54, 151, 72, .35);
    transform: translateY(-8px);
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    transition: width .5s ease;
}

.stat-card:hover::before {
    width: 100%;
}

.stat-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #dcf1de, #bce3c0);
    transition: transform .5s cubic-bezier(.34, 1.56, .64, 1),
                background .4s ease;
}

.dark .stat-icon {
    background: linear-gradient(135deg, #1d4e28, #20612e);
}

.stat-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    /* stroke: var(--brand-dark); */
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke:#f59e0b;
}

.stat-card:hover .stat-icon {
    background: linear-gradient(135deg, var(--brand), #5bb36a);
    transform: rotate(-8deg) scale(1.12);
}

.stat-card:hover .stat-icon svg {
    stroke: #fff;
}

.count-num {
    color: #20612e;
    font-size: 30px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
}

.dark .count-num {
    color: #5bb36a;
}

.stat-label {
    margin-top: 2px;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.dark .stat-label {
    color: #94a3b8;
}

/* ---------- 7) Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s cubic-bezier(.22, 1, .36, 1),
                transform .8s cubic-bezier(.22, 1, .36, 1);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: .1s;
}

.reveal-delay-2 {
    transition-delay: .2s;
}

.reveal-delay-3 {
    transition-delay: .3s;
}
/* ==========================================
   ABOUT — SCROLL REVEAL
   نظام مستقل عن Stats
   ========================================== */

.about-reveal {
    opacity: 0;

    transform: translateY(45px);

    transition:
        opacity 0.8s cubic-bezier(.22, 1, .36, 1),
        transform 0.8s cubic-bezier(.22, 1, .36, 1);
}

.about-reveal.about-visible {
    opacity: 1;

    transform: translateY(0);
}


/* العنوان */
.about-header-main.about-reveal {
    transition-delay: 0s;
}


/* النص */
.about-content-full.about-reveal {
    transition-delay: 0.15s;
}


/* الصورة */
.about-media-full.about-reveal {
    transition-delay: 0.30s;
}


/* قسم لسنا مجرد موزع */
.distributor-section.about-reveal {
    transition-delay: 0.45s;
}


/* الأزرار */
.about-actions-bottom.about-reveal {
    transition-delay: 0.60s;
}

/* ---------- 8) Responsive ---------- */
@media (max-width: 1100px) {
    .desktop-nav {
        gap: 18px;
    }

    .navbar-inner {
        gap: 16px;
    }

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

@media (max-width: 900px) {

    .desktop-nav {
        display: none;
    }

    .burger-btn {
        display: inline-flex;
    }

    .mobile-menu {
        display: block;
    }

    /*
     * ============================================
     * Tablet / Mobile Slider
     * صورة واحدة فقط في كل لحظة
     * ============================================
     */

    .hero-desktop {
        width: 100%;
        height: auto;
        min-height: 0;

        display: block;

        padding-inline: 12px;
    }

    /*
     * الكارت الرئيسي هو الصورة الوحيدة الظاهرة.
     */
    .hero-card.big {
        display: block;

        width: 100%;

        /*
         * ارتفاع متناسب مع عرض الشاشة.
         */
        height: clamp(320px, 58vw, 560px);

        min-height: 320px;
        max-height: 560px;
    }

    /*
     * إخفاء الكروت الصغيرة على الهاتف والتابلت.
     *
     * الـ JavaScript سيظل يغير محتوى
     * heroBig وبالتالي ستتغير الصور تلقائيًا.
     */
    .hero-smalls {
        display: none !important;
    }

    .hero-card.small {
        display: none !important;
    }

    /*
     * نقاط السليدر.
     */
    .hero-dots {
        padding-top: 18px;
        padding-bottom: 10px;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1280px);
    }

    .hide-mobile {
        display: none;
    }

    .topbar-contact {
        gap: 8px;
    }

    .topbar-inner {
        min-height: 40px;
    }

    .navbar-inner {
        min-height: 64px;
    }

    .brand-logo {
        width: auto;
        min-width: 0;
    }

    .brand-logo img {
        width: 130px;
        height: 62px;
        min-width: 130px;
        max-width: 62px;
        border-radius: 5%;
    }

    .brand-name {
        font-size: 17px;
    }

    .brand-tagline {
        font-size: 9px;
    }

    .language-btn {
        width: 40px;
        padding: 0;
    }

    .language-btn span {
        display: none;
    }

    .hero-slider {
        padding-top: 10px;
    }

    .hero-desktop {
        padding-inline: 10px;
        gap: 10px;
    }

    .hero-card {
        border-radius: 16px;
    }

    .hero-card.big {
        height: 360px;
        min-height: 360px;
    }

    .hero-smalls {
        gap: 10px;
        height: 220px;
        min-height: 220px;
    }

    .hero-card.small {
        height: 100%;
        min-height: 220px;
    }

    .card-caption {
        padding: 16px;
    }

    .hero-card.big .card-caption h3 {
        font-size: 23px;
    }

    .card-desc {
        font-size: 12.5px;
    }

    .stats-section {
        padding: 40px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .stat-card {
        padding: 20px;
    }
}

@media (max-width: 430px) {
    .nav-actions {
        gap: 6px;
    }

    .nav-action-btn {
        width: 38px;
        height: 38px;
    }

    .brand-tagline {
        display: none;
    }

    .hero-card.big {
        height: 320px;
        min-height: 320px;
    }

    .hero-smalls {
        height: 190px;
        min-height: 190px;
    }

    .hero-card.small {
        height: 100%;
        min-height: 190px;
    }

    .hero-card.small .card-caption {
        padding: 12px;
    }

    .hero-card.small .card-caption h3 {
        font-size: 15px;
    }

    .hero-card.small .card-desc {
        display: none;
    }
}


/* ==========================================
   ABOUT SECTION
   نفس عرض Navbar / Statistics
   ========================================== */

.about-section {
    width: 100%;
    padding: 60px 0;
    direction: rtl;
    background-color: var(--bg-section, transparent);
}
html[dir="rtl"] .about-section {
    direction: rtl;
}

html[dir="ltr"] .about-section {
    direction: ltr;
}

/* نفس عرض .container الموجود في الموقع */
.about-section .about-wrapper-card {
    width: min(100% - 32px, 1280px);
    max-width: 1280px;
    margin-inline: auto;
    box-sizing: border-box;

    padding: 48px 36px;
    border-radius: 24px;

    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);

    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* Dark Mode */
.dark .about-wrapper-card {
    background-color: #112217;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}


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

.about-header-main {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background-color: rgba(22, 163, 74, 0.12);
    color: #16a34a;

    padding: 8px 20px;
    border-radius: 50px;

    font-size: 0.9rem;
    font-weight: 600;

    margin-bottom: 16px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: #16a34a;
    border-radius: 50%;
    display: inline-block;
}

.about-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;

    margin: 0;

    color: var(--text-main, #18181b);
}

.dark .about-title {
    color: #ffffff;
}

.about-title .highlight {
    color: #16a34a;
}


/* ==========================================
   IMAGE + TEXT
   ========================================== */

.about-container {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.about-content-full {
    flex: 1;
}

.about-description {
    font-size: 1.05rem;
    line-height: 2.0;
    margin: 0;
    color: #52525b;
}

.dark .about-description {
    color: #a1a1aa;
}

.about-media-full {
    flex: 1;

    border-radius: 16px;
    overflow: hidden;

    background-color: #ffffff;

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

    border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-media-full img {
    width: 100%;
    height: auto;
    max-height: 320px;

    object-fit: contain;
    display: block;

    padding: 12px;
}


/* ==========================================
   DISTRIBUTOR
   ========================================== */

.distributor-section {
    margin-top: 32px;
}

.distributor-header-side {
    text-align: start;
    margin-bottom: 20px;
}

.distributor-title {
    font-size: 1.6rem;
    font-weight: 800;

    margin: 0 0 6px 0;

    color: var(--text-main, #18181b);
}

.dark .distributor-title {
    color: #ffffff;
}

.distributor-desc {
    font-size: 0.98rem;
    margin: 0;
    color: #71717a;
}

.dark .distributor-desc {
    color: #a1a1aa;
}


/* ==========================================
   DISTRIBUTOR GRID
   ========================================== */

.distributor-grid {
    display: grid;

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

    gap: 16px;

    margin-top: 20px;
}

.distributor-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 20px;

    border-radius: 12px;

    font-weight: 700;

    background-color: #f8fafc;

    border: 1px solid rgba(0, 0, 0, 0.05);

    color: #18181b;

    cursor: default;

    transition:
        transform 0.35s cubic-bezier(.22, 1, .36, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        background-color 0.35s ease;
}

.distributor-item:hover {
    transform: translateY(-2px);

    border-color: rgba(22, 163, 74, 0.35);

    background-color: #ffffff;

    box-shadow:
        0 16px 30px rgba(0, 0, 0, 0.08);
}

.dark .distributor-item {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #f4f4f5;
}

.dark .distributor-item:hover {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(22, 163, 74, 0.5);

    box-shadow:
        0 16px 30px rgba(0, 0, 0, 0.25);
}

.check-icon {
    color: #16a34a;
    font-weight: bold;

    transition:
        transform 0.35s ease,
        color 0.35s ease;
}

.distributor-item:hover .check-icon {
    transform: scale(1.25);
}

.dark .distributor-item {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #f4f4f5;
}

.check-icon {
    color: #16a34a;
    font-weight: bold;
}


/* ==========================================
   BUTTONS
   ========================================== */

.about-actions-bottom {
    display: flex;

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

    gap: 16px;

    margin-top: 40px;

    width: 100%;
}

.btn {
    padding: 14px 36px;

    border-radius: 12px;

    font-size: 1.05rem;
    font-weight: 700;

    text-decoration: none;

    transition: all 0.25s ease;

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

    min-width: 170px;
}

.btn-primary {
    background-color: #16a34a !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #15803d !important;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #27272a;
    border: 1px solid #e4e4e7;
}

.dark .btn-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: #16a34a;
    color: #16a34a;
}


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

@media (max-width: 992px) {

    .about-container {
        flex-direction: column-reverse;
    }

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


/* ==========================================
   MOBILE
   نفس عرض .container الموجود عندك
   ========================================== */

@media (max-width: 640px) {

    .about-section {
        padding: 40px 0;
    }

    .about-section .about-wrapper-card {
        width: min(100% - 24px, 1280px);
    }

    .about-wrapper-card {
        padding: 28px 18px;
    }

    .distributor-grid {
        grid-template-columns: 1fr;
    }

    .about-actions-bottom {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* ==========================================
   DISTRIBUTOR ITEMS + ICONS
   نفس قوة Hover الخاصة بالإحصائيات
   ========================================== */

.distributor-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 14px 20px;

    border-radius: 12px;

    font-weight: 700;

    background-color: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #18181b;

    cursor: default;

    overflow: hidden;

    transition:
        transform 0.45s cubic-bezier(.22, 1, .36, 1),
        box-shadow 0.45s ease,
        border-color 0.3s ease,
        background-color 0.3s ease;
}


/* الخط الأخضر المتحرك أعلى البطاقة */

.distributor-item::before {
    content: "";

    position: absolute;
    top: 0;
    inset-inline-start: 0;

    width: 0;
    height: 4px;

    background: linear-gradient(
        90deg,
        var(--brand),
        var(--accent)
    );

    transition: width 0.5s ease;

    z-index: 1;
}


/* Hover الرئيسي */

.distributor-item:hover {

    transform: translateY(-8px);

    border-color: rgba(54, 151, 72, 0.35);

    background-color: #ffffff;

    box-shadow:
        0 25px 50px -18px rgba(54, 151, 72, 0.35);
}


/* تشغيل الخط العلوي */

.distributor-item:hover::before {
    width: 100%;
}


/* النص + الأيقونة */

.distributor-label {
    display: flex;
    align-items: center;
    gap: 12px;

    position: relative;
    z-index: 2;
}


/* الأيقونة */

.distributor-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

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

    border-radius: 10px;

    background-color: rgba(22, 163, 74, 0.10);
    color: #16a34a;

    transition:
        transform 0.5s cubic-bezier(.34, 1.56, .64, 1),
        background-color 0.4s ease,
        color 0.4s ease;
}


/* SVG */

.distributor-icon svg {
    width: 21px;
    height: 21px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* حركة الأيقونة */

.distributor-item:hover .distributor-icon {

    transform:
        rotate(-8deg)
        scale(1.12);

    background-color: var(--brand);
    color: #ffffff;
}


/* علامة الصح */

.check-icon {
    position: relative;
    z-index: 2;

    color: #16a34a;

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

    transition:
        transform 0.5s cubic-bezier(.34, 1.56, .64, 1),
        color 0.3s ease;
}


.distributor-item:hover .check-icon {

    transform:
        scale(1.25)
        rotate(-5deg);

    color: var(--brand-dark);
}


/* ==========================================
   DARK MODE
   ========================================== */

.dark .distributor-item {

    background-color: rgba(255, 255, 255, 0.04);

    border-color: rgba(255, 255, 255, 0.08);

    color: #f4f4f5;
}


.dark .distributor-item:hover {

    background-color: rgba(255, 255, 255, 0.07);

    border-color: rgba(22, 163, 74, 0.5);

    box-shadow:
        0 25px 50px -18px rgba(0, 0, 0, 0.45);
}


.dark .distributor-icon {

    background-color: rgba(22, 163, 74, 0.15);

    color: #5bb36a;
}


.dark .distributor-item:hover .distributor-icon {

    background-color: #16a34a;

    color: #ffffff;
}


.dark .distributor-item:hover .check-icon {

    color: #5bb36a;
}
.about-section {
    padding-bottom: 5px;
}

.products-section {
    padding-top: 5px;
}

/*-  عناانتهي-*/

/*- القائمة المنسدلة-*/
/* ==========================================
DROPDOWN — MOBILE + DARK MODE FIX
ضبط عنوان الوكالات وعناصر القائمة
========================================== */

/* العنوان الرئيسي: الوكالات */
.dropdown-trigger {
font-family: "Cairo", sans-serif;
font-size: 18px;
font-weight: 700;
color: #334155;
}

/* العنوان الرئيسي في الوضع الداكن */
.dark .dropdown-trigger {
color: #e2e8f0;
}

/* سهم القائمة */
.dark .dropdown-trigger .dropdown-arrow {
stroke: #e2e8f0;
}

/* عناصر القائمة المنسدلة */
.dropdown-item {
font-family: "Cairo", sans-serif;
font-size: 15px;
font-weight: 600;
line-height: 1.8;
}

/* الوضع الداكن للقائمة */
.dark .dropdown-panel {
background-color: #0c2114;
border-color: #3b4a66;
}

.dark .dropdown-item {
color: #e2e8f0;
}

/* عند المرور على العنصر في الوضع الداكن */
.dark .dropdown-item:hover {
background-color: #164526;
color: #fbbf24;
}

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

@media (max-width: 900px) {


/* العنوان الرئيسي في قائمة الهاتف */
.mobile-menu .dropdown-trigger,
.mobile-menu .mobile-link {
    font-size: 17px;
    font-weight: 700;
}

/* لون العنوان الرئيسي في الوضع الداكن */
.dark .mobile-menu .dropdown-trigger,
.dark .mobile-menu .mobile-link {
    color: #f1f5f9;
}

/* عناصر القائمة الفرعية */
.mobile-menu .dropdown-item {
    font-size: 15px;
    font-weight: 600;
    padding: 11px 14px;
    line-height: 1.8;
}

/* لون العناصر الفرعية في الوضع الداكن */
.dark .mobile-menu .dropdown-item {
    color: #e2e8f0;
}

.dark .mobile-menu .dropdown-item:hover {
    background-color: #164526;
    color: #fbbf24;
}

}
/*- القائمة المنسدلة-*/



/*-  - وكالات المنتجات-*/
/* =========================================================
   PRODUCTS SECTION
   نفس هوية ABOUT:
   - نفس العرض
   - نفس الـ Card Wrapper
   - نفس Hover
   - نفس Scroll Animation
   - نفس Dark Mode
   - RTL / LTR
   ========================================================= */

.products-section {
    width: 100%;
    padding: 60px 0;

    background-color: var(--body-bg);

    transition:
        background-color .4s ease,
        color .4s ease;
}
/* =========================================================
   PRODUCTS SECTION — DARK MODE
   ========================================================= */

.dark .products-section {
    background-color: var(--night-body);
    color: var(--night-text);
}

/* اتجاه اللغة */
html[dir="rtl"] .products-section {
    direction: rtl;
}

html[dir="ltr"] .products-section {
    direction: ltr;
}

/* =========================================================
   CONTAINER
   نفس عرض About
   ========================================================= */

.products-container {
    width: min(100% - 32px, 1280px);
    max-width: 1280px;

    margin-inline: auto;
}

/* =========================================================
   WRAPPER CARD
   نفس about-wrapper-card
   ========================================================= */

.products-wrapper-card {
    width: 100%;

    padding: 48px 36px;

    border-radius: 24px;

    background-color: var(--surface);
    border: 1px solid var(--border);

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

    transition:
        background-color .4s ease,
        border-color .4s ease,
        box-shadow .4s ease;
}

/* Dark Mode */
.dark .products-wrapper-card {
    background-color: #112217;

    border-color:
        rgba(255, 255, 255, .08);

    box-shadow:
        0 12px 32px rgba(0, 0, 0, .30);
}

/* =========================================================
   SECTION TITLE
   ========================================================= */

.products-wrapper-card .section-title {
    text-align: center;

    margin-bottom: 40px;
}

/* العنوان */
.products-wrapper-card .section-title h2 {
    margin: 0 0 8px 0;

    color: var(--body-text);

    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;

    transition:
        color .3s ease;
}

.dark .products-wrapper-card .section-title h2 {
    color: #ffffff;
}

/* الوصف */
.products-wrapper-card .section-title p {
    margin: 0;

    color: #71717a;

    font-size: 1rem;
    font-weight: 500;

    transition:
        color .3s ease;
}

.dark .products-wrapper-card .section-title p {
    color: #a1a1aa;
}

/* =========================================================
   TABS
   ========================================================= */

.tabs-container {
    display: flex;

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

    gap: 12px;

    margin-bottom: 40px;

    flex-wrap: wrap;
}

/* زر التاب */
.tab-btn {
    position: relative;

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

    padding: 10px 24px;

    border-radius: 30px;

    background-color: var(--surface);
    border: 1px solid var(--border);

    color: var(--body-text);

    font-family: "Cairo", sans-serif;
    font-size: .95rem;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 6px 16px rgba(0, 0, 0, .04);

    transition:
        transform .35s cubic-bezier(.22, 1, .36, 1),
        background-color .3s ease,
        border-color .3s ease,
        color .3s ease,
        box-shadow .35s ease;
}

/* Hover */
.tab-btn:hover {
    transform: translateY(-3px);

    border-color:
        rgba(54, 151, 72, .35);

    color: var(--brand-dark);

    box-shadow:
        0 12px 24px -10px rgba(54, 151, 72, .30);
}

/* Active */
.tab-btn.active {
    background-color: var(--brand-dark);

    border-color: var(--brand-dark);

    color: #ffffff;

    box-shadow:
        0 12px 25px -10px rgba(54, 151, 72, .40);
}

.tab-btn.active:hover {
    transform: translateY(-3px);

    background-color: var(--brand-dark);

    color: #ffffff;
}

/* Dark */
.dark .tab-btn {
    background-color: rgba(255, 255, 255, .04);

    border-color:
        rgba(255, 255, 255, .08);

    color: #e2e8f0;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, .18);
}

.dark .tab-btn:hover {
    border-color:
        rgba(91, 179, 106, .50);

    background-color:
        rgba(22, 163, 74, .10);

    color: #5bb36a;
}

.dark .tab-btn.active {
    background-color: #16a34a;

    border-color: #16a34a;

    color: #ffffff;
}

/* =========================================================
   PRODUCTS GRID
   ========================================================= */

.products-grid {
    display: grid;

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

    gap: 20px;
}
/* =========================================================
   PRODUCT CARD
   نفس قوة Hover الخاصة بالإحصائيات
   ========================================================= */

.product-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    border-radius: 20px;

    background-color: var(--surface);

    border: 1px solid var(--border);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .05);

    transition:
        transform .45s cubic-bezier(.22, 1, .36, 1),
        box-shadow .45s ease,
        border-color .3s ease,
        background-color .3s ease;
}

/* الخط العلوي المتحرك */
.product-card::before {
    content: "";

    position: absolute;

    top: 0;
    inset-inline-start: 0;

    width: 0;
    height: 4px;

    z-index: 5;

    background:
        linear-gradient(
            90deg,
            var(--brand),
            var(--accent)
        );

    transition:
        width .5s ease;
}

/* Hover الرئيسي */
.product-card:hover {
    transform: translateY(-8px);

    border-color:
        rgba(54, 151, 72, .35);

    box-shadow:
        0 25px 50px -18px
        rgba(54, 151, 72, .35);
}
/* =========================================================
   PRODUCT FILTER
   ========================================================= */

.product-card.product-filter-hidden {
    display: none !important;
}

/* الخط العلوي */
.product-card:hover::before {
    width: 100%;
}

/* Dark */
.dark .product-card {
    background-color: var(--night-surface);

    border-color:
        var(--night-border);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, .22);
}

.dark .product-card:hover {
    background-color:
        rgba(255, 255, 255, .06);

    border-color:
        rgba(22, 163, 74, .50);

    box-shadow:
        0 25px 50px -18px
        rgba(0, 0, 0, .45);
}

/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

/* =========================================================
   PRODUCT IMAGE BOX
   نفس أسلوب صورة About
   ========================================================= */

.product-img {
    position: relative;

    width: calc(100% - 24px);
    height: 240px;

    margin: 12px 12px 0;

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

    padding: 16px;

    overflow: hidden;

    background-color: #ffffff;

    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 16px;

    transition:
        background-color .4s ease,
        border-color .4s ease,
        box-shadow .4s ease;
}

.product-img img {
    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    display: block;

    object-fit: contain;

    transition:
        transform .8s cubic-bezier(.22, 1, .36, 1);
}

/* تكبير الصورة */
.product-card:hover .product-img img {
    transform: scale(1.07);
}
.product-card:hover .product-img {
    border-color:
        rgba(54, 151, 72, .35);

    box-shadow:
        inset 0 0 0 1px
        rgba(54, 151, 72, .06);
}
.dark .product-card:hover .product-img {
    border-color:
        rgba(91, 179, 106, .45);

    box-shadow:
        inset 0 0 0 1px
        rgba(91, 179, 106, .08);
}

/* =========================================================
   PRODUCT INFO
   ========================================================= */

.product-info {
    display: flex;
    flex-direction: column;

    flex-grow: 1;

    padding: 20px;
}

/* =========================================================
   BADGE
   ========================================================= */

.product-info .badge {
    align-self: flex-start;

    display: inline-flex;
    align-items: center;

    margin-bottom: 12px;

    padding: 5px 12px;

    border-radius: 999px;

    background-color:
        rgba(22, 163, 74, .10);

    color: #16a34a;

    font-size: .75rem;
    font-weight: 700;

    transition:
        transform .35s ease,
        background-color .3s ease,
        color .3s ease;
}

.product-card:hover .badge {
    transform: translateY(-2px);

    background-color:
        rgba(245, 158, 11, .14);

    color: var(--brand-dark);
}

.dark .product-info .badge {
    background-color:
        rgba(22, 163, 74, .15);

    color: #5bb36a;
}

/* =========================================================
   PRODUCT TITLE
   ========================================================= */

.product-title {
    margin: 0 0 6px 0;

    color: var(--body-text);

    font-size: 1.1rem;
    font-weight: 800;

    line-height: 1.6;

    transition:
        color .3s ease;
}

.product-card:hover .product-title {
    color: var(--brand-dark);
}

.dark .product-title {
    color: #f4f4f5;
}

.dark .product-card:hover .product-title {
    color: #5bb36a;
}

/* =========================================================
   PRODUCT SUB
   ========================================================= */

.product-sub {
    margin: 0 0 16px 0;

    color: #71717a;

    font-size: .85rem;
    font-weight: 500;

    line-height: 1.8;
}

.dark .product-sub {
    color: #a1a1aa;
}

/* =========================================================
   PRODUCT FOOTER
   ========================================================= */

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-top: auto;

    padding-top: 12px;

    border-top:
        1px dashed var(--border);
}

.dark .product-footer {
    border-top-color:
        rgba(255, 255, 255, .12);
}

.agency-name {
    min-width: 0;

    color: #71717a;

    font-size: .8rem;
    font-weight: 600;

    transition:
        color .3s ease;
}

.dark .agency-name {
    color: #94a3b8;
}

.product-card:hover .agency-name {
    color: #475569;
}

.dark .product-card:hover .agency-name {
    color: #cbd5e1;
}

/* =========================================================
   DETAILS BUTTON
   ========================================================= */

.details-btn {
    flex: 0 0 auto;

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

    padding: 5px 13px;

    border:
        1px solid var(--brand-dark);

    border-radius: 9px;

    color: var(--brand-dark);

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

    transition:
        transform .35s cubic-bezier(.34, 1.56, .64, 1),
        background-color .3s ease,
        color .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.details-btn:hover {
    transform:
        translateY(-2px)
        scale(1.03);

    background-color: var(--brand-dark);

    border-color: var(--brand-dark);

    color: #ffffff;

    box-shadow:
        0 10px 20px -8px
        rgba(54, 151, 72, .45);
}

.dark .details-btn {
    border-color: #5bb36a;

    color: #5bb36a;
}

.dark .details-btn:hover {
    background-color: #16a34a;

    border-color: #16a34a;

    color: #ffffff;
}

/* =========================================================
   PRODUCTS SCROLL REVEAL
   نفس فكرة ABOUT
   ========================================================= */

/* العنوان */
.products-section .section-title {
    opacity: 0;
    transform: translateY(45px);

    transition:
        opacity .8s cubic-bezier(.22, 1, .36, 1),
        transform .8s cubic-bezier(.22, 1, .36, 1);
}

/* التابات */
.products-section .tabs-container {
    opacity: 0;
    transform: translateY(45px);

    transition:
        opacity .8s cubic-bezier(.22, 1, .36, 1),
        transform .8s cubic-bezier(.22, 1, .36, 1);

    transition-delay: .15s;
}

/* البطاقات */
.products-section .product-card {
    opacity: 0;

    transform: translateY(45px);

    --product-delay: 0s;

    transition:
        opacity .8s cubic-bezier(.22, 1, .36, 1) var(--product-delay),
        transform .8s cubic-bezier(.22, 1, .36, 1) var(--product-delay),
        box-shadow .45s ease,
        border-color .3s ease,
        background-color .3s ease;
}

/* تشغيل العنوان */
.products-section.products-visible .section-title {
    opacity: 1;
    transform: translateY(0);
}

/* تشغيل التابات */
.products-section.products-visible .tabs-container {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   دخول البطاقات بالتتابع
   ========================================================= */

.products-section.products-visible
.product-card:not(.product-filter-hidden) {

    opacity: 1;

    transform: translateY(0);
}

#homeProductsSection .products-view-all {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 30px;
}




/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .products-section .section-title,
    .products-section .tabs-container,
    .products-section .product-card {
        opacity: 1;
        transform: none;
        animation: none !important;
        transition: none !important;
    }
}

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

@media (max-width: 992px) {

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

}

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

@media (max-width: 640px) {

    .products-section {
        padding: 40px 0;
    }

    .products-container {
        width:
            min(100% - 24px, 1280px);
    }

    .products-wrapper-card {
        padding: 28px 18px;
    }

    .products-wrapper-card .section-title {
        margin-bottom: 30px;
    }

    .products-wrapper-card .section-title h2 {
        font-size: 1.8rem;
    }

    .products-wrapper-card .section-title p {
        font-size: .9rem;
    }

    .tabs-container {
        gap: 8px;

        margin-bottom: 30px;
    }

    .tab-btn {
        padding: 9px 16px;

        font-size: .88rem;
    }
    /* =========================================================
        ALL PRODUCTS LINK
        رابط فقط وليس Tab محدد
        ========================================================= */

    .all-products-btn {
        text-decoration: none;
    }

    /* لا يتصرف كرابط Active */
    .all-products-btn:hover {
        background-color: var(--surface);

        color: var(--brand-dark);

        border-color:
            rgba(54, 151, 72, .35);
    }

    /* Dark Mode */
    .dark .all-products-btn:hover {
        background-color:
            rgba(255, 255, 255, .04);

        color: #5bb36a;

        border-color:
            rgba(91, 179, 106, .50);
    }

    .products-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .product-card {
        border-radius: 16px;
    }

    .product-img {
        height: 230px;
    }

    .product-info {
        padding: 18px;
    }

}

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

@media (max-width: 430px) {

    .product-img {
        height: 210px;
    }

    .product-title {
        font-size: 1rem;
    }

    .product-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .details-btn {
        width: 100%;
    }

}
/*- المنتجات - وكالات-*/
 
/*-المدونات -*/
/* =========================================================
   BLOG SECTION
   نفس هوية ABOUT + PRODUCTS + STATS
   ========================================================= */

   /* ==========================================
   HOME BLOG — CENTER VIEW ALL BUTTON
========================================== */

#homeBlogsSection .blog-view-all {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 30px;
}

#homeBlogsSection .blog-view-all .blog-read-more {
    width: auto;
    flex: 0 0 auto;
}

.blog-section {
    width: 100%;

   padding-top: 5px;

    background-color: var(--body-bg);

    transition:
        background-color .4s ease,
        color .4s ease;
}


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

html[dir="rtl"] .blog-section {
    direction: rtl;
}

html[dir="ltr"] .blog-section {
    direction: ltr;
}


/* =========================================================
   CONTAINER
   نفس عرض About / Products
   ========================================================= */

.blog-container {
    width: min(100% - 32px, 1280px);
    max-width: 1280px;

    margin-inline: auto;
}


/* =========================================================
   WRAPPER CARD
   نفس About / Products
   ========================================================= */

.blog-wrapper-card {
    width: 100%;

    padding: 48px 36px;

    border-radius: 24px;

    background-color: var(--surface);

    border: 1px solid var(--border);

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

    transition:
        background-color .4s ease,
        border-color .4s ease,
        box-shadow .4s ease;
}


/* =========================================================
   DARK MODE
   ========================================================= */

.dark .blog-section {
    background-color: var(--night-body);
    color: var(--night-text);
}

.dark .blog-wrapper-card {
    background-color: #112217;

    border-color:
        rgba(255, 255, 255, .08);

    box-shadow:
        0 12px 32px rgba(0, 0, 0, .30);
}


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

.blog-header {
    width: 100%;

    text-align: center;

    margin-bottom: 40px;
}


/* =========================================================
   BADGE
   ========================================================= */

.blog-badge {
    display: inline-flex;

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

    gap: 8px;

    padding: 8px 20px;

    margin-bottom: 16px;

    border-radius: 50px;

    background-color:
        rgba(22, 163, 74, .12);

    color: #16a34a;

    font-size: .9rem;
    font-weight: 600;

    transition:
        background-color .3s ease,
        color .3s ease,
        transform .35s ease;
}

.blog-badge svg {
    width: 18px;
    height: 18px;

    fill: none;

    stroke: currentColor;

    stroke-width: 2;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.blog-badge:hover {
    transform: translateY(-2px);

    background-color:
        rgba(22, 163, 74, .18);
}

.dark .blog-badge {
    background-color:
        rgba(22, 163, 74, .15);

    color: #5bb36a;
}


/* =========================================================
   BLOG TITLE
   ========================================================= */

.blog-section-title {
    margin: 0 0 8px 0;

    color: var(--body-text);

    font-size: 2.2rem;

    font-weight: 800;

    line-height: 1.3;

    transition:
        color .3s ease;
}

.dark .blog-section-title {
    color: #ffffff;
}


/* =========================================================
   BLOG SUBTITLE
   ========================================================= */

.blog-section-subtitle {
    max-width: 700px;

    margin: 0 auto;

    color: #71717a;

    font-size: 1rem;

    font-weight: 500;

    line-height: 1.9;
}

.dark .blog-section-subtitle {
    color: #a1a1aa;
}


/* =========================================================
   BLOG GRID
   ========================================================= */

.blog-grid {
    display: grid;

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

    gap: 20px;
}


/* =========================================================
   BLOG CARD
   ========================================================= */

.blog-card {
    position: relative;

    display: flex;

    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    border-radius: 20px;

    background-color: var(--surface);

    border: 1px solid var(--border);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .05);

    opacity: 0;

    transform: translateY(45px);

    --blog-delay: 0s;

    transition:
        opacity .8s cubic-bezier(.22, 1, .36, 1) var(--blog-delay),
        transform .8s cubic-bezier(.22, 1, .36, 1) var(--blog-delay),
        box-shadow .45s ease,
        border-color .3s ease,
        background-color .3s ease;
}


/* =========================================================
   TOP BRAND LINE
   ========================================================= */

.blog-card::before {
    content: "";

    position: absolute;

    top: 0;
    inset-inline-start: 0;

    width: 0;

    height: 4px;

    z-index: 5;

    background:
        linear-gradient(
            90deg,
            var(--brand),
            var(--accent)
        );

    transition:
        width .5s ease;
}


/* =========================================================
   CARD HOVER
   نفس Stats / Products
   ========================================================= */

.blog-card:hover {
    transform: translateY(-8px);

    border-color:
        rgba(54, 151, 72, .35);

    box-shadow:
        0 25px 50px -18px
        rgba(54, 151, 72, .35);

    transition-delay: 0s;
}

.blog-card:hover::before {
    width: 100%;
}


/* =========================================================
   DARK CARD
   ========================================================= */

.dark .blog-card {
    background-color: var(--night-surface);

    border-color: var(--night-border);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, .22);
}

.dark .blog-card:hover {
    background-color:
        rgba(255, 255, 255, .06);

    border-color:
        rgba(22, 163, 74, .50);

    box-shadow:
        0 25px 50px -18px
        rgba(0, 0, 0, .45);
}


/* =========================================================
   IMAGE BOX
   نفس أسلوب Product Image
   ========================================================= */

.blog-img-wrapper {
    position: relative;

    width: calc(100% - 24px);

    height: 230px;

    margin: 12px 12px 0;

    overflow: hidden;

    border-radius: 16px;

    background-color: #ffffff;

    border: 1px solid rgba(0, 0, 0, .06);

    transition:
        border-color .4s ease,
        box-shadow .4s ease,
        background-color .4s ease;
}


.blog-img {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .8s cubic-bezier(.22, 1, .36, 1);
}


.blog-card:hover .blog-img {
    transform: scale(1.07);
}


.blog-card:hover .blog-img-wrapper {
    border-color:
        rgba(54, 151, 72, .35);

    box-shadow:
        inset 0 0 0 1px
        rgba(54, 151, 72, .06);
}


.dark .blog-img-wrapper {
    background-color: #0e2a18;

    border-color:
        rgba(255, 255, 255, .08);
}


.dark .blog-card:hover .blog-img-wrapper {
    border-color:
        rgba(91, 179, 106, .45);

    box-shadow:
        inset 0 0 0 1px
        rgba(91, 179, 106, .08);
}


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

.blog-content {
    display: flex;

    flex-direction: column;

    flex-grow: 1;

    min-height: 280px;

    padding: 20px;
}

/* =========================================================
   BLOG TITLE
   ========================================================= */

/* =========================================================
   BLOG TITLE
   سطران فقط + ...
   ========================================================= */

.blog-title {
    display: -webkit-box;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;

    height: calc(1.65em * 2);

    margin: 0 0 8px 0;

    color: var(--body-text);

    font-size: 1.1rem;

    font-weight: 800;

    line-height: 1.65;

    transition:
        color .3s ease;
}

.blog-card:hover .blog-title {
    color: var(--brand-dark);
}

.dark .blog-title {
    color: #f4f4f5;
}

.dark .blog-card:hover .blog-title {
    color: #5bb36a;
}

.blog-card:hover .blog-title {
    color: var(--brand-dark);
}

.dark .blog-title {
    color: #f4f4f5;
}

.dark .blog-card:hover .blog-title {
    color: #5bb36a;
}


.blog-read-more {
    display: inline-flex;

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

    align-self: flex-start;

    gap: 8px;

    width: fit-content;

    margin-top: 25px;
    margin-bottom: 10px;

    padding: 7px 14px;

    border: 1px solid var(--brand-dark);

    border-radius: 10px;

    color: var(--brand-dark);

    background-color: transparent;

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

    text-decoration: none;

    transition:
        transform .35s cubic-bezier(.34, 1.56, .64, 1),
        background-color .3s ease,
        color .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}


/* =========================================================
   EXCERPT
   ========================================================= */

.blog-excerpt {
    display: -webkit-box;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    overflow: hidden;

    height: calc(1.85em * 3);

    margin: 0 0 0 0;

    color: #71717a;

    font-size: .9rem;

    font-weight: 500;

    line-height: 1.85;
}

.dark .blog-excerpt {
    color: #a1a1aa;
}

/* =========================================================
   FOOTER
   ========================================================= */

.blog-footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-top: auto;

    padding-top: 14px;

    border-top:
        1px dashed var(--border);
}

.dark .blog-footer {
    border-top-color:
        rgba(255, 255, 255, .12);
}


/* =========================================================
   AUTHOR
   ========================================================= */

.author-info {
    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;
}


.author-avatar {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;

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

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #dcf1de,
            #bce3c0
        );

    color: #15803d;

    font-size: .85rem;

    font-weight: 800;

    transition:
        transform .5s cubic-bezier(.34, 1.56, .64, 1),
        background .4s ease,
        color .3s ease;
}


.blog-card:hover .author-avatar {
    transform:
        rotate(-8deg)
        scale(1.10);

    background:
        linear-gradient(
            135deg,
            var(--brand),
            #5bb36a
        );

    color: #ffffff;
}


.dark .author-avatar {
    background:
        linear-gradient(
            135deg,
            #1d4e28,
            #20612e
        );

    color: #5bb36a;
}


.dark .blog-card:hover .author-avatar {
    color: #ffffff;
}


/* =========================================================
   AUTHOR DETAILS
   ========================================================= */

.author-details {
    display: flex;

    flex-direction: column;

    min-width: 0;
}


.author-name {
    color: #334155;

    font-size: .82rem;

    font-weight: 700;
}


.author-role {
    margin-top: 2px;

    color: #94a3b8;

    font-size: .72rem;

    font-weight: 500;
}


.dark .author-name {
    color: #cbd5e1;
}


.dark .author-role {
    color: #94a3b8;
}


/* =========================================================
   DATE
   ========================================================= */

.blog-date {
    flex: 0 0 auto;

    color: #94a3b8;

    font-size: .75rem;

    font-weight: 600;

    transition:
        color .3s ease;
}


.blog-card:hover .blog-date {
    color: var(--brand-dark);
}


.dark .blog-card:hover .blog-date {
    color: #5bb36a;
}


/* =========================================================
   BLOG SCROLL REVEAL
   ========================================================= */

.blog-section.blog-visible .blog-card {
    opacity: 1;

    transform: translateY(0);
}


/* التتابع */
.blog-section.blog-visible .blog-card:nth-child(1) {
    --blog-delay: .20s;
}


.blog-section.blog-visible .blog-card:nth-child(2) {
    --blog-delay: .32s;
}


.blog-section.blog-visible .blog-card:nth-child(3) {
    --blog-delay: .44s;
}


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

.blog-reveal {
    opacity: 0;

    transform: translateY(45px);

    transition:
        opacity .8s cubic-bezier(.22, 1, .36, 1),
        transform .8s cubic-bezier(.22, 1, .36, 1);
}


.blog-section.blog-visible .blog-reveal {
    opacity: 1;

    transform: translateY(0);
}



/* =========================================================
   BLOG CENTER BUTTON
   ========================================================= */

.blog-actions-bottom {
    display: flex;

    align-items: center;

    justify-content: center;

    margin-top: 40px;

    width: 100%;
}

.blog-center-btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    min-width: 220px;

    padding: 13px 28px;

    border-radius: 12px;

    background-color: var(--brand-dark);

    border: 1px solid var(--brand-dark);

    color: #ffffff;

    font-size: 1rem;

    font-weight: 800;

    box-shadow:
        0 10px 25px -10px
        rgba(54, 151, 72, .40);

    transition:
        transform .4s cubic-bezier(.34, 1.56, .64, 1),
        background-color .3s ease,
        border-color .3s ease,
        box-shadow .4s ease;
}

.blog-center-btn svg {
    width: 18px;
    height: 18px;

    fill: none;

    stroke: currentColor;

    stroke-width: 2;

    stroke-linecap: round;

    stroke-linejoin: round;

    transition:
        transform .35s ease;
}

.blog-center-btn:hover {
    transform: translateY(-4px);

    background-color: #15803d;

    border-color: #15803d;

    box-shadow:
        0 18px 35px -12px
        rgba(54, 151, 72, .45);
}

.blog-center-btn:hover svg {
    transform: translateX(4px);
}


/* Dark Mode */

.dark .blog-center-btn {
    background-color: #16a34a;

    border-color: #16a34a;

    color: #ffffff;

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

.dark .blog-center-btn:hover {
    background-color: #15803d;

    border-color: #15803d;
}
.blog-actions-bottom.blog-reveal {
    transition-delay: .55s;
}

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

@media (max-width: 992px) {

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

}


@media (max-width: 640px) {

    .blog-section {
        padding: 40px 0;
    }


    .blog-container {
        width:
            min(100% - 24px, 1280px);
    }


    .blog-wrapper-card {
        padding: 28px 18px;
    }


    .blog-header {
        margin-bottom: 30px;
    }


    .blog-section-title {
        font-size: 1.8rem;
    }


    .blog-section-subtitle {
        font-size: .9rem;
    }


    .blog-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    .blog-card {
        border-radius: 16px;
    }


    .blog-img-wrapper {
        height: 230px;
    }


    .blog-content {
        padding: 18px;
    }

}


@media (max-width: 430px) {

    .blog-img-wrapper {
        height: 210px;
    }


    .blog-title {
        font-size: 1rem;
    }


    .blog-footer {
        align-items: flex-start;

        flex-direction: column;
    }


    .blog-date {
        align-self: flex-start;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .blog-reveal,
    .blog-card {
        opacity: 1;

        transform: none;

        transition: none !important;
    }
}
/*-المدونات -*/

/*-خلفية الصور-*/
/* =========================================================
   IMAGE BACKGROUND — DARK MODE
   ========================================================= */

/* صور المنتجات */
.dark .product-img {
    background-color: #0e2a18;

    border-color:
        rgba(255, 255, 255, .08);
}


/* صور المدونات */
.dark .blog-img-wrapper {
    background-color: #0e2a18;

    border-color:
        rgba(255, 255, 255, .08);
}
/*-خلفية الصور-*/

/* *, *::before, *::after {
    font-family: "Cairo", sans-serif !important;
} */

/* ============================================================
   EcoFarm — Topbar Social Icons
   ============================================================ */

#topbar .topbar-socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

#topbar .topbar-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 9px;
    background: rgba(255,255,255,.07);
    color: #f2fff4;
    text-decoration: none;
    transition: background .25s ease, transform .25s ease,
                border-color .25s ease;
}

#topbar .topbar-social svg {
    display: block;
    width: 15px;
    height: 15px;
    fill: currentColor;
    stroke: none;
}

#topbar .topbar-social[aria-label="Instagram"] svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

#topbar .topbar-social:hover {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.5);
    transform: translateY(-2px);
}

#topbar .topbar-contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

#topbar .topbar-info {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
}

#topbar .topbar-info svg {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
}

/* Compact mobile layout */
@media (max-width: 640px) {
    #topbar .topbar-socials {
        gap: 5px;
    }

    #topbar .topbar-social {
        flex-basis: 27px;
        width: 27px;
        height: 27px;
        border-radius: 8px;
    }

    #topbar .topbar-social svg {
        width: 14px;
        height: 14px;
    }

    #topbar .topbar-contact {
        gap: 8px;
    }
}

