/* ==============================
   1) Fonts (Google has display=swap)
================================*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Tajawal:wght@400;700;800&display=swap');

/* ==============================
   2) Design Tokens (Light/Dark)
================================*/
:root {
    /* Brand */
    --brand-green: #126600;
    --brand-blue: #1F3399;
    --brand-yellow: #FFCC20;
    --brand-green-2: #2AA250;
    --brand-cyan: #09AEDA;
    --brand-ltgreen: #91CC3E;

    /* Neutrals */
    --bg: #F7F9FB;
    --bg-elev: #FFF;
    --text: #15171A;
    --muted: #124170;
    --border: #E6E8EC;

    /* Effects */
    --radius-xs: 10px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 2px 10px rgba(16, 24, 40, .06), 0 12px 24px rgba(16, 24, 40, .04);
    --ease: cubic-bezier(.2, .8, .2, 1);
    --t: .25s var(--ease);

    /* Type */
    --fs-hero: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem);
    --fs-h2: clamp(1.25rem, 1rem + 1vw, 1.7rem);
    --fs-h3: 1.1rem;
}

.dark {
    --bg: #0F1115;
    --bg-elev: #12161C;
    --text: #EEF2F7;
    --muted: #9AA4B2;
    --border: #1F2A37;
    --shadow: 0 2px 10px rgba(0, 0, 0, .45), 0 12px 24px rgba(0, 0, 0, .35);
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
    /* يخفي أي تمدد عرضي */
    height: 100%;
    /* يخلي الصفحة بطول النافذة */
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* حتى لو المحتوى قصير */
}

main#content {
    flex: 1;
    /* يخلي المحتوى يتمدد ويدفع الفوتر للأسفل */
}

.site-footer {
    margin-top: auto;
    /* المفتاح الذي يلصق الفوتر بأسفل الصفحة */
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 14px;
    text-align: center;
    color: #555;
}

/* ==============================
   Topbar
================================*/
.topbar {
    background: var(--brand-green);
    color: #fff;
    font-size: .85rem;
    padding: 6px 0
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.topbar .social-links a {
    color: #fff;
    margin-inline: 6px;
    font-size: 1rem
}

.topbar .contact-mini a {
    color: #fff;
    margin-left: 12px;
    font-size: .85rem
}

.btn-lang {
    padding: 4px 22px;
    border: 1px solid #fff;
    border-radius: 40px;
    font-weight: 600;
    font-size: .85rem;
    color: #fff;
    text-transform: uppercase;
    transition: background .3s, color .3s
}

.btn-lang:hover {
    background: #fff;
    color: var(--brand-green)
}

@media (max-width:768px) {
    .topbar {
        font-size: .75rem;
        padding: 4px 0
    }

    .topbar .contact-mini {
        display: none
    }

    .topbar .social-links a {
        font-size: 1rem;
        margin-inline: 4px
    }

    .btn-lang {
        font-size: .75rem;
        padding: 2px 22px
    }
}

/* ==============================
   3) Base & Layout
================================*/
* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Tajawal', 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.6;
}

img {
    max-inline-size: 100%;
    block-size: auto;
    display: block
}

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

p {
    margin: 0 0 .7rem;
    color: var(--muted);
    font-size: 18px
}

h1,
h2,
h3 {
    margin: 0 0 .8rem;
    line-height: 1.25
}

h1 {
    font-size: var(--fs-hero);
    font-weight: 800
}

h2 {
    font-size: var(--fs-h2);
    font-weight: 800
}

h3 {
    font-size: var(--fs-h3);
    font-weight: 700
}

.container {
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: 16px
}

.section {
    padding-block: 10px
}

.row {
    display: flex;
    align-items: center;
    gap: .6rem
}

.space-between {
    justify-content: space-between
}

.grow {
    flex: 1 1 auto
}

.center {
    text-align: center
}

.muted {
    color: var(--muted)
}

/* ==============================
   4) Header / Navbar
================================*/
/* ==============================
/* ==============================
:root{
  --hdr-h: 64px;
  --glass: color-mix(in srgb, var(--bg-elev, #fff) 88%, transparent);
  --ring: 0 0 0 3px color-mix(in srgb, var(--brand-blue) 25%, transparent);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    /* أعلى من محتوى الصفحة */
    background: var(--glass);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--border, #e5e7eb);
}

.site-header .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
    padding-block: .45rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: .45rem;
    text-decoration: none;
    font-weight: 900;
    color: var(--brand-green)
}

.logo img {
    height: 48px;
    width: auto
}

@media (max-width:1200px) {
    .logo img {
        height: 44px
    }
}

/* Desktop menu (inline) */
.menu {
    display: flex;
    align-items: center;
    gap: .2rem
}

.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0
}

.menu li {
    position: relative
}

.menu a {
    display: block;
    position: relative;
    padding: .46rem .7rem;
    border-radius: 12px;
    font-weight: 700;
    color: var(--text);
    font-size: clamp(.78rem, .55rem + .45vw, .95rem);
    transition: color .2s, background .2s;
}

.menu a:hover {
    color: var(--brand-blue);
    background: #EEF2F7
}

.menu a.active {
    color: var(--brand-green)
}

.menu a::after {
    content: "";
    position: absolute;
    inset-inline: 10px;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
    transform: scaleX(0);
    transform-origin: inline-start;
    transition: transform .28s ease;
}

.menu a:hover::after,
.menu a.active::after {
    transform: scaleX(1)
}

/* Dropdown (على الديسكتوب فقط بالهوفر/الفوكس) */
.menu .sub {
    position: absolute;
    inset-block-start: 100%;
    inset-inline-end: 0;
    min-inline-size: 200px;
    background: var(--bg-elev, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(2, 6, 23, .12), 0 2px 10px rgba(2, 6, 23, .06);
    display: flex;
    flex-direction: column;
    padding: 6px 0;
    z-index: 1000;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity .18s, transform .18s;
}

.menu li.has-sub:hover>.sub,
.menu li.has-sub:focus-within>.sub {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.menu .sub li a {
    padding: .6rem .9rem;
    border-radius: 10px;
    font-weight: 600
}

.menu .sub li a:hover {
    background: #F2F4F7;
    color: var(--brand-blue)
}

.menu .caret {
    display: inline-block;
    margin-inline-start: .4rem;
    border: 4px solid transparent;
    border-top-color: currentColor;
    transform: translateY(-1px)
}

/* Hamburger */
.hamburger {
    --bar-h: 3px;
    --bar-w: 24px;
    --bar-gap: 5px;
    --bar-color: var(--brand-blue);
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: var(--bar-gap);
    width: var(--bar-w);
    height: calc(var(--bar-h)*3 + var(--bar-gap)*2);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 920;
}

.hamburger span {
    width: 100%;
    height: var(--bar-h);
    background: var(--bar-color);
    border-radius: 4px;
    transition: transform .3s, opacity .3s
}

body.open .hamburger span:nth-child(1) {
    transform: translateY(calc(var(--bar-h) + var(--bar-gap))) rotate(45deg)
}

body.open .hamburger span:nth-child(2) {
    opacity: 0
}

body.open .hamburger span:nth-child(3) {
    transform: translateY(calc(-1*(var(--bar-h) + var(--bar-gap)))) rotate(-45deg)
}

/* Overlay — تحت الدرج */
/* === HOTFIX: اجعل الدرج فوق الـoverlay وقابل للنقر عند الفتح === */
.nav-overlay {
    z-index: 900;
}

/* أقل من الدرج */
.site-header .menu {
    z-index: 1001;
}

/* أعلى من الـoverlay */

@media (max-width: 992px) {
    .site-header .menu {
        position: fixed;
        inset-block-start: var(--hdr-h, 64px);
        inset-inline-end: 0;
        inline-size: min(340px, 84vw);
        block-size: calc(100dvh - var(--hdr-h, 64px));
        background: var(--bg-elev, #fff);
        border-inline-start: 1px solid var(--border, #e5e7eb);
        box-shadow: 0 30px 80px rgba(2, 6, 23, .28);
        padding: 12px;

        /* مغلق */
        transform: translateX(110%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform .28s ease, opacity .2s ease, visibility .2s;
    }

    body.open .site-header .menu {
        /* مفتوح — مهم: قابل للنقر */
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}




/* ========================
   Breakpoints / Tweaks
======================== */

/* 1440px: تقليل بسيط */
@media (max-width:1440px) {
    .logo img {
        height: 54px
    }

    .menu a {
        padding: .55rem .75rem
    }

    .menu a::after {
        inset-inline: 10px;
        bottom: 7px
    }
}

/* 1366px (لابتوب 14"): تقليل أوضح */
@media (max-width:1366px) {
    .site-header .nav {
        gap: .35rem;
        padding-block: .5rem
    }

    .logo img {
        height: 48px
    }

    .menu a {
        padding: .5rem .65rem;
        font-size: .95rem
    }

    .menu a::after {
        inset-inline: 8px;
        bottom: 6px
    }

    /* إن بقي تزاحم طفيف، اسمح بسطرين دون كسر التصميم */
    .menu {
        flex-wrap: wrap
    }
}

/* 1200px: مزيد من التقليص قبل التحويل الكامل للهمبرغر */
@media (max-width:1200px) {
    .logo img {
        height: 44px
    }

    .menu a {
        padding: .45rem .6rem;
        font-size: .9rem
    }
}

/* التحويل إلى همبرغر أبكر (بدلاً من 880px) للراحة */
@media (max-width:1100px) {
    .menu {
        display: none
    }

    .hamburger {
        display: inline-flex
    }

    body.open .menu {
        display: flex;
        flex-direction: column;
        gap: .75rem;
        position: fixed;
        top: 64px;
        inset-inline: 10px;
        padding: 14px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--bg-elev);
        box-shadow: var(--shadow);
    }

    .menu ul {
        flex-direction: column;
        gap: .3rem
    }

    .menu .sub {
        position: static;
        border: none;
        box-shadow: none;
        display: none;
        margin-inline-start: 1rem
    }

    .menu li.open>.sub {
        display: flex
    }

    body.menu-locked {
        overflow: hidden
    }
}

/* الموبايل القديم احتياطًا */
@media (max-width:880px) {
    .logo img {
        height: 32px
    }

    .logo .brand-text {
        display: none
    }
}



/* ==============================
   5) About layout
================================*/
/* ========== ABOUT GRID & TITLES ========== */
.about-grid {
    display: grid;
    gap: clamp(12px, 2.2vw, 24px);
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: start;

}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.mission-title {
    font-weight: 900;
    color: var(--brand-blue);
    margin: 0 0 8px;
    text-align: center;
    font-size: clamp(18px, 2.2vw, 26px);
}

.mission-deco {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: .25rem 0 .6rem;
}

.mission-deco span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-blue)
}

.mission-deco i {
    display: block;
    height: 4px;
    width: clamp(90px, 14vw, 140px);
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
}

/* ========== MISSION CARDS ========== */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(160px, 40vw, 200px), 1fr));
    gap: clamp(10px, 2.2vw, 20px);
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.mission-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    text-align: center;
    padding: clamp(12px, 2.2vw, 20px);
    transition: transform .3s var(--ease);
}

.mission-card:hover {
    transform: translateY(-6px)
}

.mission-card figure {
    display: flex;
    justify-content: center;
    margin: 0 0 12px
}

.mission-card img {
    width: clamp(44px, 6vw, 60px);
    height: auto
}

.mission-card h3 {
    font-size: clamp(15px, 2.2vw, 18px);
    margin: 0
}

@media (max-width: 992px) {
    .mission-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .mission-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== RIGHT COLUMN & FIGURE ========== */
.about-right {
    position: relative;
    display: grid;
    gap: clamp(10px, 2vw, 14px)
}

.about-text p {
    margin: 0 0 .5rem;
    font-size: clamp(16px, 1.9vw, 19px);
    line-height: 1.4
}

.about-figure {
    margin: 0;
    overflow: hidden;
    border-radius: 18px
}

.about-figure img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* حد أقصى للارتفاع على الشاشات الصغيرة كي لا تكبر */
    max-height: clamp(180px, 42vw, 360px);
}

/* ========== CTA BUTTON ========== */
.btn.cta-yellow {
    align-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(.6rem, 1.8vw, .85rem) clamp(.9rem, 2.6vw, 1.35rem);
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid color-mix(in srgb, #000 8%, var(--brand-yellow));
    background: var(--brand-yellow);
    color: #111;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(255, 204, 32, .25);
    transition: transform .2s var(--ease), filter .2s var(--ease);
    font-size: clamp(14px, 2vw, 16px);
}

.btn.cta-yellow:hover {
    filter: brightness(.95);
    transform: translateY(-2px)
}

@media (max-width: 600px) {

    /* على الموبايل: الزر بعرض العمود ويصغر قليلاً */
    .btn.cta-yellow {
        width: 100%;
        justify-content: center;
    }
}


/* Slider (hero covers) */
.slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16/6;
    background: #000
}

.slider .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    animation: fade 36s linear infinite;
}

.slider .slide:nth-child(1) {
    animation-delay: 0s
}

.slider .slide:nth-child(2) {
    animation-delay: 12s
}

.slider .slide:nth-child(3) {
    animation-delay: 24s
}

@keyframes fade {
    0% {
        opacity: 0
    }

    3% {
        opacity: 1
    }

    33% {
        opacity: 1
    }

    36% {
        opacity: 0
    }

    100% {
        opacity: 0
    }
}

@media (max-width:768px) {
    .slider {
        aspect-ratio: 16/9
    }
}

/* ==============================
   6) Hero
================================*/
.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 800;
    color: var(--brand-blue);
    font-size: 1.9rem;
}

.hero {
    background: radial-gradient(80% 70% at 50% 0%, #fff 0%, var(--bg) 100%), linear-gradient(90deg, #fff 0%, #fff 100%);
    padding-block: clamp(18px, 3vw, 22px)
}

.hero-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: clamp(16px, 3vw, 32px);
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 1400px;
    margin-inline: auto
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .72rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-weight: 800;
    background: var(--bg-elev);
    color: var(--text);
    transition: transform var(--t), background var(--t), color var(--t), border-color var(--t)
}

.btn:hover {
    transform: translateY(-2px)
}

.btn:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--brand-yellow) 50%, transparent);
    outline-offset: 1px
}

.btn.sm {
    padding: .46rem .85rem;
    font-weight: 700
}

.btn.primary {
    background: linear-gradient(180deg, var(--brand-green), color-mix(in srgb, var(--brand-green) 85%, #000));
    color: #fff;
    border-color: transparent
}

.btn.primary:hover {
    filter: brightness(1.06)
}

.btn.secondary {
    background: linear-gradient(180deg, var(--brand-blue), color-mix(in srgb, var(--brand-blue) 85%, #000));
    color: #fff;
    border-color: transparent
}

.btn.secondary:hover {
    filter: brightness(1.06)
}

.btn.accent {
    background: var(--brand-yellow);
    color: #121212;
    border-color: color-mix(in srgb, #000 8%, var(--brand-yellow))
}

.btn.accent:hover {
    background: color-mix(in srgb, var(--brand-yellow) 86%, #000)
}

.btn.ghost {
    background: transparent
}

.btn.ghost:hover {
    background: #EEF2F7
}

.btn-group {
    display: flex;
    gap: .6rem;
    justify-content: center;
    margin-top: 14px
}

/* Cards (generic) */
.cards {
    display: grid;
    gap: clamp(14px, 2.5vw, 24px);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-block: clamp(18px, 4vw, 32px)
}

.card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: clip;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t)
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    border-color: color-mix(in srgb, var(--brand-blue) 22%, var(--border))
}

.card h3 {
    margin: 1rem 1rem .35rem;
    color: var(--brand-blue)
}

.card p {
    margin: 0 1rem 1rem
}

.card img {
    inline-size: 100%;
    block-size: 200px;
    object-fit: cover
}

/* Article card images */
.article-img,
.about-image img {
    block-size: auto;
    aspect-ratio: 16/9;
    object-fit: cover
}

/* ==============================
   7) About Section (rows)
================================*/
.about-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start
}

.about-text {
    flex: 1 1 300px;
    max-width: 620px
}

.about-image {
    flex: 1 1 300px;
    max-width: 860px;
    margin: 0
}

/* ==============================
   8) Forms
================================*/
input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--bg-elev);
    color: var(--text);
    border-radius: 12px;
    padding: .7rem .9rem;
    transition: border-color var(--t), box-shadow var(--t)
}

input:focus,
textarea:focus,
select:focus {
    border-color: color-mix(in srgb, var(--brand-blue) 45%, var(--border));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-blue) 15%, transparent);
    outline: none;
}

/* ==============================
   9) Footer
================================*/
footer {
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
    padding: clamp(14px, 3.2vw, 24px);
    text-align: center;
    color: var(--text)
}

/* ==============================
   10) Responsive
================================*/
@media (max-width:768px) {
    .about-row {
        flex-direction: column;
        align-items: center;
        text-align: center
    }

    .about-text,
    .about-image {
        max-width: 100%
    }

    .about-text .row {
        justify-content: center
    }

    .cards {
        grid-template-columns: 1fr
    }

    .hero-card {
        padding: 18px
    }

    .btn {
        padding: .62rem .9rem;
        font-size: .95rem
    }

    .site-header .nav {
        padding-inline: 8px
    }
}

/* ==============================
   11) Reduced Motion
================================*/
@media (prefers-reduced-motion:reduce) {
    html:focus-within {
        scroll-behavior: auto
    }

    * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important
    }
}

/* ==============================
   12) Projects Section (home)
================================*/
.projects-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--brand-blue);
    margin: 0 0 .5rem;
    letter-spacing: .3px
}

.projects-deco {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 14px
}

.projects-deco span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-blue)
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 8px
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 24px 18px 20px;
    border-radius: 14px;
    background: var(--card-bg, #7E39D8);
    color: #fff;
    text-align: center;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .18)
}

.project-card .badge-icon {
    position: relative;
    margin-bottom: 14px;
    width: 70px;
    height: auto;
    object-fit: contain;
    opacity: .95
}

.project-card img.icon {
    display: block;
    margin: 0 auto 12px;
    max-width: 150px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #fff;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid #e6e8ec;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .08);
}

.badge-dot {
    position: absolute;
    top: 10px;
    inset-inline-end: 12px;
    font-weight: 700;
    opacity: .7
}

.project-title {
    margin: 0 0 .55rem;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.25
}

.project-text {
    margin: 0 0 .6rem;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .95);
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-year {
    font-weight: 800;
    font-size: 16px;
    opacity: .95
}

@media (max-width:600px) {
    .project-title {
        font-size: 22px
    }

    .project-text {
        font-size: 15px
    }

    .project-card {
        min-height: 200px
    }
}

/* ==============================
   13) Projects Archive (listing)
================================*/
.projects-archive .cards {
    display: grid;
    gap: clamp(14px, 2vw, 22px);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr))
}

.projects-archive .project-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: clip;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}

.projects-archive .project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    border-color: color-mix(in srgb, var(--brand-blue) 22%, var(--border))
}

.projects-archive .project-card .cover {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    background: #f4f6f8
}

.projects-archive .project-card .content {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    padding: 12px 14px 14px;
    min-height: 160px
}

.projects-archive .project-card .meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap
}

.projects-archive .project-card .chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .28rem .6rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text)
}

.projects-archive .project-card .chip.blue {
    background: #eef2ff;
    border-color: #dbe2ff;
    color: var(--brand-blue)
}

.projects-archive .project-card .chip.green {
    background: #eaf7ef;
    border-color: #d1f0dc;
    color: var(--brand-green)
}

.projects-archive .project-card h3 {
    margin: .1rem 0 .2rem;
    font-size: 1.05rem;
    color: var(--brand-blue);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.projects-archive .project-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.projects-archive .project-card .spacer {
    height: 4px
}

[dir="rtl"] .projects-archive .project-card h3 {
    text-align: right
}

/* ==============================
   14) Article Cards & Page
================================*/
.cards {
    margin-top: 20px
}

/* (kept – same layout) */
.card:hover {
    transform: translateY(-6px)
}

.article-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    background: #f4f6f8;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px
}

.card h3 {
    margin: .4rem 0;
    font-size: 1.05rem;
    color: var(--brand-blue)
}

.card p {
    margin: 0 0 .6rem;
    color: var(--muted);
    line-height: 1.6
}

.card .btn.sm {
    font-size: .85rem;
    padding: .45rem .9rem
}

.article-page {
    background: var(--bg-elev);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-top: 20px
}

.article-page .cover-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 18px
}

.article-page h1 {
    font-size: 1.8rem;
    color: var(--brand-blue);
    margin-bottom: .4rem
}

.article-page small {
    display: block;
    margin-bottom: 12px;
    font-size: .9rem;
    color: var(--muted)
}

.article-page .excerpt {
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text)
}

.article-page .content {
    line-height: 1.8;
    color: var(--text);
    font-size: 1rem
}

/* ==============================
   15) Admin form
================================*/
.form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px
}

.form label {
    font-weight: 700;
    color: var(--brand-blue)
}

.form input,
.form textarea {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .6rem .8rem;
    font-size: 1rem
}

.form button {
    align-self: flex-start;
    padding: .7rem 1.2rem;
    border: none;
    border-radius: 8px;
    background: var(--brand-green);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background .25s
}

.form button:hover {
    background: #0f5200
}

/* Images hover (subtle) */
.article-img,
.gallery img {
    transition: transform .3s ease, box-shadow .3s ease
}

.article-img:hover,
.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15)
}

/* ==============================
   16) About Page blocks
================================*/
.about-page .section {
    padding-block: clamp(16px, 3vw, 36px)
}

.about-hero-card {
    display: grid;
    gap: 18px;
    align-items: center;
    grid-template-columns: 1fr;
    /* بدّل هذه السطر */
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: clamp(16px, 3vw, 28px)
}

.about-hero-media {
    order: 2;
}

/* يجعل الصورة بعد النص */

@media (max-width:900px) {
    .about-hero-card {
        grid-template-columns: 1fr;
        text-align: center
    }
}

.about-hero-title {
    font-size: clamp(1.6rem, 1.1rem + 2vw, 2.2rem);
    margin: .2rem 0 .4rem;
    color: var(--brand-blue);
    font-weight: 900
}

.about-hero-sub {
    font-size: 1.2rem
}

.about-badges {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin: .7rem 0
}

.about-badges .chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .7rem;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 999px;
    font-weight: 700;
    font-size: .92rem
}

.about-hero-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    object-fit: cover
}

/* Duo tiles */
.about-duo {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr 1fr
}

@media (max-width:700px) {
    .about-duo {
        grid-template-columns: 1fr
    }
}

.about-tile {
    border-radius: 16px;
    color: #fff;
    padding: 16px 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border)
}

.about-tile h2 {
    margin: 0 0 .4rem
}

.about-tile p {
    color: #fff;
    opacity: .95
}

.badge-blue {
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan))
}

.badge-green {
    background: linear-gradient(90deg, var(--brand-green), var(--brand-green-2))
}

/* Objectives Grid */
.section-head .deco {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: .35rem 0 10px
}

.section-head .deco span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-blue)
}

.about-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr))
}

.about-grid li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: var(--shadow)
}

.about-grid i {
    color: var(--brand-blue);
    font-size: 1.15rem;
    margin-top: .5rem
}

/* Means list */
.about-list {
    counter-reset: li;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px
}

.about-list li {
    list-style: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 10px 40px;
    position: relative;
    font-weight: 600;
}

.about-list li::before {
    counter-increment: li;
    content: counter(li);
    position: absolute;
    inset-inline-start: 10px;
    top: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brand-yellow);
    color: #111;
    font-weight: 900;
    font-size: .9rem;
}

/* Stats band */
.stats-cards {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, 1fr)
}

@media (max-width:700px) {
    .stats-cards {
        grid-template-columns: repeat(2, 1fr)
    }
}

.stat {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    padding: 14px
}

.stat .value {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--brand-blue)
}

.stat .label {
    color: var(--muted);
    font-weight: 700
}

/* Certifications */
.about-certs {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr))
}

.about-certs li {
    list-style: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: .6rem;
    box-shadow: var(--shadow)
}

.about-certs i {
    color: var(--brand-green);
    font-size: 1.2rem
}


/* ====== ABOUT: شبكة العمودين ====== */
.about-grid {
    display: grid;
    gap: 28px;
    align-items: start;
}

@media (min-width:577px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:576px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.about-left {
    position: relative;
    z-index: 1;
}

.about-right {
    position: relative;
    z-index: 1;
    overflow: hidden;
}



/* ===== Slider (نظيف ومتجاوب) ===== */
figure.slider2 {
    margin: 0;
    width: 100%;
    display: block;
}

.about-right .slider2 {
    position: relative;
    width: 100%;
    height: clamp(130px, 35vw, 200px);
    /* ارتفاع مرن: لا يقل عن 160px ولا يزيد عن 300px */
    border-radius: 16px;
    overflow: hidden;
    background: #f4f6f8;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    isolation: isolate;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    clip-path: inset(0 round 16px);
}

/* طبقات الصور */
.about-right .slider2 .layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* تملأ المستطيل بدون تشويه */
    object-position: center;
    /* مركز الصورة */
    opacity: 0;
    transition: opacity .8s ease;
    border-radius: inherit;
    backface-visibility: hidden;
    will-change: opacity;
}

.about-right .slider2 .layer.active {
    opacity: 1;
    z-index: 2
}

/* أزرار */
.slider2 .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(34px, 4vw, 42px);
    height: clamp(34px, 4vw, 42px);
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: rgba(17, 24, 39, .6);
    color: #fff;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

.slider2 .carousel-btn.prev {
    left: 10px;
}

.slider2 .carousel-btn.next {
    right: 10px;
}

html[dir="rtl"] .slider2 .carousel-btn.prev {
    right: 10px;
    left: auto;
}

html[dir="rtl"] .slider2 .carousel-btn.next {
    left: 10px;
    right: auto;
}

/* نقاط */
.slider2 .carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.slider2 .dot {
    width: clamp(8px, 1.4vw, 12px);
    height: clamp(8px, 1.4vw, 12px);
    border-radius: 50%;
    border: 2px solid #0f172a;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .6);
    cursor: pointer;
}

.slider2 .dot.active {
    background: #ffd21e;
    border-color: #7c5e00;
    box-shadow: 0 0 0 3px rgba(255, 210, 30, .45);
}

/* احترام تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    .about-right .slider2 .layer {
        transition: none;
    }
}



/* الموبايل: اعرضها كاملة مثل الدسك‌توب بدون قص */
@media (max-width: 600px) {
    .about-right .slider2 {
        /* ارتفاع مرن بحيث تبقى النسبة معقولة ويظهر كامل الرسم */
        height: clamp(150px, 52vw, 100px);
        background: #f4f6f8;
        /* لون خلفية خلف الفراغات */
    }

    .about-right .slider2 .layer {

        object-position: center;
        background: #f4f6f8;
        /* لو الصورة فيها شفافية */
    }

    /* تصغير عناصر التحكم قليلًا على الموبايل */
    .slider2 .carousel-btn {
        width: 34px;
        height: 34px;
    }

    .slider2 .dot {
        width: 10px;
        height: 10px;
    }
}




/* ===== KPI Glass Pills ===== */
.kpi-pills {
    --pill-radius: 22px;
    --ring: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 16px 0 6px;
    list-style: none;
    padding: 0;
}

@media (max-width:1100px) {
    .kpi-pills {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:560px) {
    .kpi-pills {
        grid-template-columns: 1fr
    }
}

.kpi {
    position: relative;
    border-radius: var(--pill-radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, .6));
    backdrop-filter: saturate(160%) blur(8px);
    border: 1px solid rgba(31, 51, 153, .10);
    box-shadow: 0 8px 24px rgba(16, 24, 40, .08);
    padding: 18px;
    overflow: hidden;
    isolation: isolate;
}

.kpi::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 8px;
    background: var(--tone, linear-gradient(90deg, #1F3399, #09AEDA));
    border-top-left-radius: var(--pill-radius);
    border-top-right-radius: var(--pill-radius);
    opacity: .95;
    z-index: 0;
}

/* رأس صغير: أيقونة + عنوان */
.kpi-head {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding-top: 6px;
    position: relative;
    z-index: 1
}

.kpi-head i {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(16, 24, 40, .06);
    font-size: 1.05rem;
    color: #1b2a57;
}

.kpi-title {
    font-weight: 800;
    color: #0f2545;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

/* الرقم */
.kpi-value {
    margin-top: 8px;
    font-weight: 900;
    font-size: clamp(1.5rem, 1.1rem + 2.6vw, 2.1rem);
    line-height: 1.05;
    letter-spacing: .3px;
    color: #1F3399;
    position: relative;
    z-index: 1;
}

/* ألوان النغمة */
.kpi.tone-blue {
    --tone: linear-gradient(90deg, #1F3399, #09AEDA)
}

.kpi.tone-green {
    --tone: linear-gradient(90deg, #126600, #2AA250)
}

.kpi.tone-indigo {
    --tone: linear-gradient(90deg, #5b5bd6, #8aa4ff)
}

.kpi.tone-cyan {
    --tone: linear-gradient(90deg, #0ea5e9, #67e8f9)
}

/* اتجاهات RTL/LTR */
[dir="rtl"] .kpi-head {
    flex-direction: row-reverse
}

[dir="rtl"] .kpi-head i {
    margin-left: 0
}

/* قياسات مرنة للسلايدر */
.slider2 {
    --h-desktop: 460px;
    /* ارتفاع على الديسكتوب */
    --h-mobile: 260px;
    /* ارتفاع على الموبايل */
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    height: var(--h-desktop);
    background: #000;
    /* لون خلفية عند contain */
}

@media (max-width: 768px) {
    .slider2 {
        height: var(--h-mobile);
    }
}





/* ===== صفحة المطبوعات ===== */
.prints-head .title {
    margin-bottom: .25rem;
}

.prints-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 1rem 0 1.25rem;
}

.prints-filters .input {
    flex: 1 1 280px;
    padding: .8rem 1rem;
    border-radius: 12px;
    border: 1px solid #e6eaef;
    background: #fff;
}

.prints-filters .selects {
    display: flex;
    gap: 10px;
}

.select {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid #e6eaef;
    padding: .4rem .6rem;
    border-radius: 12px;
}

.select>span {
    font-size: .9rem;
    color: #64748b;
    white-space: nowrap;
}

.select select {
    border: none;
    background: transparent;
    padding: .4rem .2rem;
    outline: none;
}

.prints-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(12, 1fr);
}

@media (max-width: 640px) {
    .prints-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .prints-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (min-width: 1025px) {
    .prints-grid {
        grid-template-columns: repeat(12, 1fr);
    }
}

/* البطاقة تحتل 3 أعمدة (4 بطاقات بالصف على الديسكتوب) */
.print-card {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eef1f5;
    box-shadow: 0 10px 18px rgba(20, 23, 30, .04);
    overflow: hidden;
}

@media (max-width: 1024px) {
    .print-card {
        grid-column: span 4;
    }
}

/* 2 بالصف للتابلت */
@media (max-width: 640px) {
    .print-card {
        grid-column: span 1;
    }
}

/* 2 بالصف للموبايل */

.print-card .thumb {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f7f8fb;
}

.print-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .35s ease;
}

.print-card:hover img {
    transform: scale(1.03);
}

.print-card .meta {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.print-card .name {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    font-size: .75rem;
    color: #334155;
    background: #eef2ff;
    border: 1px solid #e2e8f0;
    padding: .15rem .5rem;
    border-radius: 999px;
}

.actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.btn.sm {
    padding: .45rem .7rem;
    border-radius: 10px;
    font-size: .85rem;
}

.btn.sm.outline {
    background: #fff;
    border: 1px solid #e2e8f0;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.empty {
    padding: 1.2rem;
    background: #f7fafc;
    border: 1px dashed #d1d9e6;
    border-radius: 12px;
    text-align: center;
}



/* ===== Ads page ===== */
.ads-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 1rem 0 1.25rem;
}

.ads-filters .input {
    flex: 1 1 280px;
    padding: .8rem 1rem;
    border-radius: 12px;
    border: 1px solid #e6eaef;
    background: #fff;
}

.selects {
    display: flex;
    gap: 10px;
}

.select {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 1px solid #e6eaef;
    padding: .4rem .6rem;
    border-radius: 12px;
}

.select>span {
    font-size: .9rem;
    color: #64748b;
    white-space: nowrap;
}

.select select {
    border: none;
    background: transparent;
    padding: .35rem .2rem;
    outline: none;
}

.ads-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(12, 1fr);
}

@media (max-width: 640px) {
    .ads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .ads-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (min-width: 1025px) {
    .ads-grid {
        grid-template-columns: repeat(12, 1fr);
    }
}

.ad-card {
    grid-column: span 4;
    /* 3 بطاقات في الصف على الديسكتوب */
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eef1f5;
    box-shadow: 0 10px 18px rgba(20, 23, 30, .04);
    overflow: hidden;
}

@media (max-width: 1024px) {
    .ad-card {
        grid-column: span 4;
    }
}

/* تابلت: 2-3 حسب العرض */
@media (max-width: 640px) {
    .ad-card {
        grid-column: span 2;
    }
}

/* موبايل: 2 بالصف */

.ad-card .cover {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f7f8fb;
}

.ad-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
    display: block;
}

.ad-card:hover img {
    transform: scale(1.03);
}

.badge {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    padding: .28rem .5rem;
    border-radius: 999px;
    font-size: .75rem;
    color: #0f172a;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.badge.new {
    background: #ecfeff;
    border-color: #cffafe;
}

.badge.soon {
    background: #fefce8;
    border-color: #fde68a;
}

.badge.ended {
    background: #fee2e2;
    border-color: #fecaca;
}

.ad-card .meta {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ad-card .name {
    font-size: 1.05rem;
    line-height: 1.4;
    margin: 0;
}

.ad-card .sum {
    color: #475569;
    margin: 0;
}

.ad-card .row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ad-card .cat {
    font-size: .78rem;
    background: #eef2ff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: .12rem .5rem;
    color: #334155;
}

.ad-card .loc {
    font-size: .78rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: .12rem .5rem;
    color: #334155;
}

.actions {
    margin-top: 6px;
    display: flex;
    gap: 8px;
}

.btn.sm {
    padding: .45rem .7rem;
    border-radius: 10px;
    font-size: .85rem;
}

.btn.sm.outline {
    background: #fff;
    border: 1px solid #e2e8f0;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.empty {
    padding: 1.2rem;
    background: #f7fafc;
    border: 1px dashed #d1d9e6;
    border-radius: 12px;
    text-align: center;
}




/* ===== Ads Ticker ===== */
.ads-ticker {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 14px;
    background: linear-gradient(90deg, #e8f3ff 0%, #f1fff4 100%);
    box-shadow: 0 8px 20px rgba(2, 6, 23, .06);
}

.ads-track {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: .6rem 1rem;
    white-space: nowrap;
    will-change: transform;
    animation: ticker-scroll 28s linear infinite;
}

.ads-ticker:hover .ads-track {
    animation-play-state: paused;
}

.ad-chip {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .45rem .8rem;
    text-decoration: none;
    cursor: pointer;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    border: 1px solid #e5e7eb;
    font-weight: 800;
    font-size: .95rem;
    box-shadow: 0 6px 16px rgba(2, 6, 23, .08);
    transition: transform .15s ease, box-shadow .2s ease;
}

.ad-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(2, 6, 23, .18);
}

.ad-chip .tag {
    font-weight: 700;
    font-size: .8rem;
    padding: .15rem .5rem;
    border-radius: 999px;
    background: #e2f6ea;
    color: #065f46;
    border: 1px solid #ccead9;
}

.ad-chip .new {
    font-size: .72rem;
    padding: .15rem .4rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

    /* المحتوى مكرر ⇒ مسار لا نهائي */
}

/* داكن (اختياري) */
@media (prefers-color-scheme: dark) {
    .ads-ticker {
        background: linear-gradient(90deg, #0b1730 0%, #062012 100%);
    }

    .ad-chip {
        background: #0b1220;
        color: #e5e7eb;
        border-color: #1f2937;
    }

    .ad-chip .tag {
        background: #0f2a20;
        color: #99f6e4;
        border-color: #134e4a;
    }
}