/* =============================================
   مركز الكارما — Main CSS
   الألوان الأساسية: أزرق #1a56db، أبيض، رمادي فاتح
   ============================================= */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary:       #1a56db;
    --primary-dark:  #1241a8;
    --primary-light: #e8f0fd;
    --accent:        #e53e3e;
    --text-dark:     #1a202c;
    --text-mid:      #4a5568;
    --text-light:    #718096;
    --bg:            #ffffff;
    --bg-soft:       #f7f9fc;
    --bg-card:       #ffffff;
    --border:        #e2e8f0;
    --shadow-sm:     0 1px 4px rgba(0,0,0,.08);
    --shadow-md:     0 4px 16px rgba(0,0,0,.10);
    --shadow-lg:     0 8px 32px rgba(0,0,0,.13);
    --radius:        12px;
    --radius-sm:     8px;
    --header-h:      72px;
    --transition:    .25s ease;
    --font:          'Cairo', sans-serif;
}

/* Dark Mode */
body.dark-mode {
    --text-dark:  #e2e8f0;
    --text-mid:   #a0aec0;
    --text-light: #718096;
    --bg:         #0f1117;
    --bg-soft:    #1a1d27;
    --bg-card:    #1e2130;
    --border:     #2d3748;
    --shadow-sm:  0 1px 4px rgba(0,0,0,.3);
    --shadow-md:  0 4px 16px rgba(0,0,0,.4);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--bg);
    line-height: 1.7;
    direction: rtl;
    transition: background var(--transition), color var(--transition);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: min(1200px, 94%);
    margin-inline: auto;
}

/* ---- Utilities ---- */
.mt-1 { margin-top: .75rem; }
.mt-2 { margin-top: 1.5rem; }
.text-center { text-align: center; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-primary  { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline  { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white    { background: #fff; color: var(--primary); font-weight: 700; }
.btn-white:hover { background: var(--primary-light); }
.btn-whatsapp { background: #25d366; color: #fff; border-color: #25d366; }
.btn-whatsapp:hover { background: #1da851; }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }
.btn-icon { background: none; border: none; cursor: pointer; color: var(--text-dark); font-size: 1.1rem; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background var(--transition); }
.btn-icon:hover { background: var(--bg-soft); }

/* ---- Section ---- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-soft); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: .5rem;
}
.section-header p { color: var(--text-mid); font-size: 1.05rem; max-width: 600px; margin-inline: auto; }
.section-header .eyebrow {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: .8rem;
    font-weight: 700;
    padding: .3rem .9rem;
    border-radius: 20px;
    margin-bottom: .75rem;
    letter-spacing: .05em;
}
.divider {
    width: 60px; height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin: .75rem auto 0;
}

/* ---- HEADER ---- */
.site-header {
    position: fixed;
    top: 0; inset-inline: 0;
    height: var(--header-h);
    background: var(--bg);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 1rem;
}

.logo { display: flex; align-items: center; gap: .75rem; }
.logo img { border-radius: 50%; }
.logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}
.logo-text small { display: block; font-size: .68rem; font-weight: 500; color: var(--text-mid); }

.main-nav ul { display: flex; gap: .25rem; }
.nav-link {
    display: block;
    padding: .45rem .85rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .9rem;
    color: var(--text-dark);
    transition: all var(--transition);
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.header-actions { display: flex; align-items: center; gap: .5rem; }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text-dark); border-radius: 2px; transition: all var(--transition); }

/* Mobile Nav */
@media (max-width: 900px) {
    .burger { display: flex; }
    .main-nav {
        position: fixed;
        top: var(--header-h); right: 0;
        width: 280px; height: calc(100vh - var(--header-h));
        background: var(--bg-card);
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        transition: transform var(--transition);
        overflow-y: auto;
        padding: 1.5rem;
    }
    .main-nav.open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; gap: .25rem; }
    .nav-link { font-size: 1rem; padding: .7rem 1rem; }
    .logo-text { display: none; }
}

/* ---- HERO / SLIDER ---- */
.hero-slider { margin-top: var(--header-h); position: relative; }
.hero-slide {
    position: relative;
    height: calc(100vh - var(--header-h));
    min-height: 500px;
    max-height: 700px;
    overflow: hidden;
}
.hero-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to left, rgba(10,30,80,.75) 0%, rgba(10,30,80,.4) 60%, transparent 100%);
    display: flex; align-items: center;
}
.hero-content {
    max-width: 600px;
    padding: 2rem;
    animation: heroIn .8s ease both;
}
@keyframes heroIn { from { opacity:0; transform: translateY(30px); } to { opacity:1; transform: translateY(0); } }
.hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero-content p { color: rgba(255,255,255,.9); font-size: 1.1rem; margin-bottom: 1.5rem; }

/* Swiper overrides */
.swiper-pagination-bullet { background: #fff; opacity: .6; }
.swiper-pagination-bullet-active { background: #fff; opacity: 1; width: 24px; border-radius: 4px; }

/* ---- ABOUT STRIP ---- */
.about-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img img { width: 100%; height: 380px; object-fit: cover; }
.about-text h2 { font-size: 1.9rem; font-weight: 800; color: var(--primary); margin-bottom: 1rem; }
.about-text p { color: var(--text-mid); margin-bottom: 1.25rem; line-height: 1.9; }

/* ---- SERVICES GRID ---- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all var(--transition);
    cursor: default;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.service-icon {
    width: 72px; height: 72px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.8rem;
    color: var(--primary);
    transition: all var(--transition);
}
.service-card:hover .service-icon { background: var(--primary); color: #fff; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.service-card p { color: var(--text-mid); font-size: .92rem; line-height: 1.7; }

/* ---- ACHIEVEMENTS ---- */
.achievements-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.achievement-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.achievement-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.achievement-img {
    position: relative;
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.achievement-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.achievement-card:hover .achievement-img img { transform: scale(1.06); }
.achievement-label {
    position: absolute;
    bottom: 0; right: 0; left: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.75));
    color: #fff;
    padding: 2rem 1rem .85rem;
    font-size: 1.1rem;
    font-weight: 700;
    z-index: 2;
}
.achievement-body { padding: 1.25rem; position: relative; z-index: 1; }
.achievement-stats { display: flex; justify-content: space-between; margin-bottom: .75rem; }
.stat-item { text-align: center; }
.stat-num { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.stat-lbl { font-size: .78rem; color: var(--text-light); }

/* ---- TEAM SLIDER ---- */
.team-swiper { padding-bottom: 40px !important; }
.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
}
.team-avatar {
    width: 100px; height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary);
}
.team-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary); }
.team-card .role { font-size: .85rem; color: var(--text-mid); margin-bottom: .75rem; }
.team-card p { font-size: .88rem; color: var(--text-mid); line-height: 1.7; }

/* ---- ARTICLES ---- */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.article-img { height: 200px; overflow: hidden; }
.article-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article-card:hover .article-img img { transform: scale(1.05); }
.article-body { padding: 1.25rem; }
.article-meta { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--text-light); margin-bottom: .5rem; }
.article-cat {
    background: var(--primary-light); color: var(--primary);
    padding: .2rem .6rem; border-radius: 20px; font-size: .75rem; font-weight: 600;
}
.article-body h3 { font-size: 1rem; font-weight: 700; line-height: 1.5; margin-bottom: .5rem; }
.article-body h3 a:hover { color: var(--primary); }
.article-body p { font-size: .88rem; color: var(--text-mid); line-height: 1.7; }
.article-body .read-more {
    display: inline-flex; align-items: center; gap: .3rem;
    color: var(--primary); font-weight: 600; font-size: .88rem;
    margin-top: .75rem;
}
.article-body .read-more:hover { gap: .6rem; }

/* ---- STATS SECTION ---- */
.stats-section { background: var(--primary); color: #fff; padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; text-align: center; }
.stat-box .num { font-size: 2.5rem; font-weight: 800; }
.stat-box .label { font-size: .9rem; opacity: .85; margin-top: .25rem; }

/* ---- VISITS CHART ---- */
.chart-wrapper { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.chart-wrapper canvas { max-height: 300px; }

/* ---- FOOTER ---- */
.footer-cta { background: var(--primary); }
.footer-cta-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; padding: 2.5rem 0;
    flex-wrap: wrap;
}
.footer-cta-text h3 { color: #fff; font-size: 1.4rem; font-weight: 700; }
.footer-cta-text p { color: rgba(255,255,255,.85); font-size: .95rem; }

.footer-main { background: #0f1b3d; color: #c9d3e8; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 36px; }
.footer-logo { border-radius: 50%; margin-bottom: .75rem; }
.footer-col h4 { color: #fff; font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid rgba(255,255,255,.1); }
.footer-col p { font-size: .88rem; line-height: 1.8; color: #a0b0cc; }

.social-links { display: flex; gap: .75rem; margin-top: 1rem; }
.social-links a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: .9rem;
    transition: background var(--transition);
}
.social-links a:hover { background: var(--primary); }

.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #a0b0cc; font-size: .88rem; transition: color var(--transition); display: flex; align-items: center; gap: .4rem; }
.footer-links a:hover { color: #fff; }
.footer-links a i { font-size: .7rem; }

.footer-contact li { display: flex; gap: .75rem; margin-bottom: .9rem; font-size: .88rem; color: #a0b0cc; }
.footer-contact i { color: var(--primary); margin-top: .25rem; flex-shrink: 0; }
.footer-contact a { color: #a0b0cc; transition: color var(--transition); }
.footer-contact a:hover { color: #fff; }

.working-hours { border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); overflow: hidden; }
.wh-row { display: flex; justify-content: space-between; align-items: center; padding: .6rem .9rem; font-size: .85rem; }
.wh-row:nth-child(even) { background: rgba(255,255,255,.05); }
.badge-open { background: #22c55e; color: #fff; font-size: .72rem; font-weight: 700; padding: .2rem .5rem; border-radius: 20px; }

.footer-bottom { background: #0a1225; padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,.06); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: .82rem; color: #7080a0; }
.footer-bottom-inner a { color: var(--primary); }

/* ---- FLOATING ELEMENTS ---- */
.whatsapp-float {
    position: fixed;
    bottom: 24px; left: 24px;
    width: 54px; height: 54px;
    background: #25d366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.6rem;
    box-shadow: 0 4px 16px rgba(37,211,102,.4);
    z-index: 999;
    transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }

.back-to-top {
    position: fixed;
    bottom: 90px; left: 24px;
    width: 42px; height: 42px;
    background: var(--primary);
    border: none; border-radius: 50%;
    color: #fff; font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: all var(--transition);
    z-index: 998;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ---- Placeholder image ---- */
.img-placeholder {
    background: linear-gradient(135deg, var(--primary-light) 0%, #d4e4fb 100%);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 3rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .about-strip { grid-template-columns: 1fr; }
    .about-img { order: -1; }
    .footer-cta-inner { flex-direction: column; text-align: center; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .section { padding: 55px 0; }
    .hero-slide { max-height: 500px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .hero-content h1 { font-size: 1.6rem; }
}

/* ---- Scroll reveal animation ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- Hero background image ---- */
.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}
.hero-overlay { z-index: 2; }
.hero-content { position: relative; z-index: 3; }
.swiper-slide { height: auto; }
.hero-swiper, .hero-swiper .swiper-wrapper { height: 100%; }

/* ===============================================
   PAGE BANNER — للصفحات الداخلية (about/services/articles/contact...)
   =============================================== */
.page-banner {
    margin-top: var(--header-h);
    background: linear-gradient(135deg, #0f1b3d 0%, #1a56db 100%);
    padding: 3rem 0 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute; top: -60px; left: -60px;
    width: 220px; height: 220px;
    background: rgba(255,255,255,.06); border-radius: 50%;
}
.page-banner::after {
    content: '';
    position: absolute; bottom: -80px; right: -40px;
    width: 280px; height: 280px;
    background: rgba(255,255,255,.04); border-radius: 50%;
}
.page-banner h1 {
    color: #fff; font-size: 2rem; font-weight: 800;
    margin-bottom: .65rem; position: relative; z-index: 2;
}
.page-banner .breadcrumb {
    color: rgba(255,255,255,.75); font-size: .9rem;
    position: relative; z-index: 2;
}
.page-banner .breadcrumb a { color: rgba(255,255,255,.9); text-decoration: none; }
.page-banner .breadcrumb a:hover { text-decoration: underline; }
.page-banner .breadcrumb i { font-size: .7rem; margin: 0 .4rem; opacity: .6; }

/* ===== SECTION GENERIC ===== */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt, #f8fafc); }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title .eyebrow {
    display: inline-block; color: var(--primary); font-weight: 700;
    font-size: .85rem; margin-bottom: .5rem;
    background: var(--primary-light, #eaf1fd); padding: .3rem 1rem; border-radius: 20px;
}
.section-title h2 { font-size: 1.8rem; font-weight: 800; color: #1a202c; margin-bottom: .6rem; }
.section-title p { color: #64748b; font-size: 1rem; max-width: 600px; margin: 0 auto; }

/* ===== ABOUT PAGE ===== */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 3rem; align-items: center;
}
.about-img-wrap { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.12); }
.about-img-wrap img { width: 100%; display: block; }
.about-text h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 1rem; color: #1a202c; }
.about-text p { color: #4a5568; line-height: 1.9; margin-bottom: 1rem; font-size: .98rem; }
.about-values { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-top: 2rem; }
.value-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 1.25rem; text-align: center; transition: all .25s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.value-card .vi { width: 52px; height: 52px; background: var(--primary-light,#eaf1fd); color: var(--primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin: 0 auto .75rem; }
.value-card h4 { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.value-card p { font-size: .82rem; color: #64748b; }

.stats-strip {
    background: linear-gradient(135deg, #0f1b3d, #1a56db);
    border-radius: 16px; padding: 2rem;
    display: grid; grid-template-columns: repeat(4,1fr);
    gap: 1rem; margin-top: 3rem; text-align: center;
}
.stats-strip .stat-num { color: #fff; font-size: 2rem; font-weight: 800; }
.stats-strip .stat-lbl { color: rgba(255,255,255,.75); font-size: .85rem; margin-top: .3rem; }

/* ===== SERVICES PAGE ===== */
.services-full-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.service-full-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
    padding: 1.75rem; transition: all .25s;
}
.service-full-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.1); border-color: transparent; }
.service-full-card .si {
    width: 60px; height: 60px; border-radius: 14px;
    background: var(--primary-light,#eaf1fd); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 1.1rem;
}
.service-full-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .65rem; color: #1a202c; }
.service-full-card p { color: #64748b; font-size: .9rem; line-height: 1.75; margin-bottom: 1rem; }
.service-full-card ul { list-style: none; padding: 0; margin-bottom: 1rem; }
.service-full-card ul li { font-size: .85rem; color: #4a5568; padding: .35rem 0; display: flex; align-items: center; gap: .5rem; }
.service-full-card ul li i { color: #16a34a; font-size: .8rem; }

/* ===== ARTICLES LIST ===== */
.articles-filter {
    display: flex; gap: .6rem; justify-content: center; margin-bottom: 2.5rem; flex-wrap: wrap;
}
.articles-filter a {
    padding: .5rem 1.25rem; border-radius: 20px; font-size: .85rem; font-weight: 600;
    border: 1.5px solid #e2e8f0; color: #4a5568; text-decoration: none; transition: all .2s;
}
.articles-filter a:hover, .articles-filter a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.article-card {
    background: #fff; border-radius: 14px; overflow: hidden;
    border: 1px solid #e2e8f0; transition: all .25s;
}
.article-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,.1); }
.article-card-img { height: 190px; overflow: hidden; position: relative; }
.article-card-img img { width: 100%; height: 100%; object-fit: cover; }
.article-card-cat {
    position: absolute; top: .85rem; right: .85rem;
    background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700;
    padding: .25rem .75rem; border-radius: 20px;
}
.article-card-body { padding: 1.25rem; }
.article-card-date { font-size: .76rem; color: #94a3b8; margin-bottom: .5rem; display:flex; align-items:center; gap:.35rem; }
.article-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .55rem; line-height: 1.5; }
.article-card h3 a { color: #1a202c; text-decoration: none; }
.article-card h3 a:hover { color: var(--primary); }
.article-card p { font-size: .87rem; color: #64748b; line-height: 1.7; margin-bottom: 1rem; }
.article-card .read-more { font-size: .85rem; font-weight: 700; color: var(--primary); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }

.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 3rem; }
.pagination a, .pagination span {
    width: 38px; height: 38px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: .88rem; font-weight: 600; text-decoration: none;
    border: 1px solid #e2e8f0; color: #4a5568;
}
.pagination a:hover { background: var(--primary-light,#eaf1fd); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== SINGLE ARTICLE ===== */
.article-single-hero {
    margin-top: var(--header-h);
    position: relative; height: 380px; overflow: hidden;
}
.article-single-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-single-hero .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,27,61,.92), rgba(15,27,61,.3));
    display: flex; align-items: flex-end;
}
.article-single-hero .ash-inner { padding: 2.5rem 0; width: 100%; }
.article-single-hero .cat-badge {
    background: var(--primary); color: #fff; font-size: .78rem; font-weight: 700;
    padding: .3rem .9rem; border-radius: 20px; margin-bottom: 1rem; display: inline-block;
}
.article-single-hero h1 { color: #fff; font-size: 1.9rem; font-weight: 800; max-width: 800px; line-height: 1.4; }
.article-single-meta { display: flex; gap: 1.5rem; margin-top: 1rem; color: rgba(255,255,255,.75); font-size: .85rem; flex-wrap: wrap; }
.article-single-meta span { display: flex; align-items: center; gap: .4rem; }

.article-body-wrap { max-width: 760px; margin: 0 auto; }
.article-summary {
    background: var(--primary-light,#eaf1fd); border-right: 4px solid var(--primary);
    padding: 1.1rem 1.4rem; border-radius: 10px; margin-bottom: 2rem;
    font-size: .98rem; color: #1a3a6b; line-height: 1.8; font-weight: 500;
}
.article-content { font-size: 1.02rem; line-height: 2.1; color: #2d3748; }
.article-content p { margin-bottom: 1.3rem; }
.article-share { display: flex; align-items: center; gap: .75rem; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid #e2e8f0; }
.article-share span { font-size: .85rem; font-weight: 700; color: #4a5568; }
.article-share a {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #f1f5f9; color: #4a5568; transition: all .2s;
}
.article-share a:hover { background: var(--primary); color: #fff; }

.related-articles { margin-top: 3.5rem; }
.related-articles h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 1.5rem; text-align: center; }

/* ===== GALLERY ===== */
.gallery-filter { display: flex; gap: .6rem; justify-content: center; margin-bottom: 2rem; flex-wrap: wrap; }
.gallery-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.gallery-item {
    position: relative; border-radius: 12px; overflow: hidden;
    aspect-ratio: 1/1; cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .overlay {
    position: absolute; inset: 0; background: rgba(15,27,61,.0);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.4rem; opacity: 0; transition: all .3s;
}
.gallery-item:hover .overlay { opacity: 1; background: rgba(15,27,61,.45); }

.lightbox-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.92);
    display: none; align-items: center; justify-content: center;
    z-index: 9999; padding: 2rem;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img { max-width: 90%; max-height: 85vh; border-radius: 8px; }
.lightbox-close {
    position: absolute; top: 1.5rem; left: 1.5rem;
    color: #fff; font-size: 1.8rem; cursor: pointer;
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.15); }
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    color: #fff; font-size: 2rem; cursor: pointer;
    width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: background .2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,.15); }
.lightbox-prev { right: 1.5rem; }
.lightbox-next { left: 1.5rem; }

/* ===== CONTACT PAGE ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; }
.contact-info-card {
    background: linear-gradient(135deg, #0f1b3d, #1a56db);
    border-radius: 16px; padding: 2rem; color: #fff;
}
.contact-info-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 1.5rem; }
.cinfo-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.cinfo-item i { width: 42px; height: 42px; background: rgba(255,255,255,.12); border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
.cinfo-item h5 { font-size: .85rem; font-weight: 700; margin-bottom: .3rem; }
.cinfo-item p, .cinfo-item a { font-size: .85rem; color: rgba(255,255,255,.8); text-decoration: none; line-height: 1.6; }
.cinfo-item a:hover { color: #fff; }

.contact-form-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 2rem;
}
.contact-form-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 1.5rem; }
.cform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cform-group { margin-bottom: 1.1rem; }
.cform-group.full { grid-column: 1/-1; }
.cform-group label { display: block; font-size: .85rem; font-weight: 600; color: #4a5568; margin-bottom: .4rem; }
.cform-group input, .cform-group select, .cform-group textarea {
    width: 100%; padding: .7rem .9rem; border: 1.5px solid #e2e8f0; border-radius: 8px;
    font-family: inherit; font-size: .92rem; transition: border-color .2s;
}
.cform-group input:focus, .cform-group select:focus, .cform-group textarea:focus { outline: none; border-color: var(--primary); }
.cform-group textarea { min-height: 130px; resize: vertical; }
.map-embed { border-radius: 16px; overflow: hidden; margin-top: 2rem; height: 320px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.success-alert {
    background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a;
    padding: 1rem 1.25rem; border-radius: 10px; margin-bottom: 1.5rem;
    display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .92rem;
}
.error-alert {
    background: #fef2f2; border: 1px solid #fecaca; color: #dc2626;
    padding: 1rem 1.25rem; border-radius: 10px; margin-bottom: 1.5rem;
    display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .92rem;
}

@media (max-width: 900px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .services-full-grid, .articles-grid { grid-template-columns: repeat(2,1fr); }
    .gallery-grid { grid-template-columns: repeat(3,1fr); }
    .stats-strip { grid-template-columns: repeat(2,1fr); }
    .about-values { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .services-full-grid, .articles-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2,1fr); }
    .cform-grid { grid-template-columns: 1fr; }
    .page-banner h1 { font-size: 1.5rem; }
}

/* ===============================================
   DEVELOPER FOOTER CARD — مشترك بين كل الفوترات
   =============================================== */
.dev-footer-bar {
    background: #0c1530;
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1.1rem 0;
}
.dev-footer-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 0 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; flex-wrap: wrap;
}

/* بطاقة المطور */
.dev-card {
    display: flex; align-items: center; gap: .85rem;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: .6rem 1.1rem .6rem .6rem;
    text-decoration: none;
    position: relative;
    transition: all .25s;
}
.dev-card:hover {
    background: rgba(255,255,255,.06);
    border-color: rgba(212,175,55,.35);
    transform: translateY(-2px);
}
.dev-card-star {
    position: absolute; top: -8px; right: -6px;
    width: 22px; height: 22px;
    background: #d4af37;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #0c1530; font-size: .65rem;
    box-shadow: 0 2px 8px rgba(212,175,55,.4);
}
.dev-card-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 2px solid #d4af37;
    padding: 2px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.05);
    overflow: hidden;
}
.dev-card-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.dev-card-avatar i { color: rgba(255,255,255,.4); font-size: 1.2rem; }
.dev-card-text { display: flex; flex-direction: column; gap: .15rem; }
.dev-card-label {
    font-size: .62rem; font-weight: 700; letter-spacing: .1em;
    color: rgba(212,175,55,.85); text-transform: uppercase;
}
.dev-card-name { font-size: .92rem; font-weight: 700; color: #fff; }
.dev-card-email {
    font-size: .72rem; color: rgba(255,255,255,.5);
    display: flex; align-items: center; gap: .35rem;
}
.dev-card-email i { font-size: .65rem; }

/* حقوق النشر — الوسط */
.dev-footer-copy { text-align: center; color: rgba(255,255,255,.55); }
.dev-footer-copy p { font-size: .82rem; margin: 0; line-height: 1.6; }
.dev-footer-copy p:first-child { color: rgba(255,255,255,.7); font-weight: 600; }

/* شعار المركز — يمين */
.dev-footer-brand {
    display: flex; align-items: center; gap: .75rem;
    text-decoration: none;
}
.dev-footer-brand img {
    width: 46px; height: 46px;
    border-radius: 10px;
    object-fit: cover;
    border: 1.5px solid rgba(255,255,255,.15);
}
.dev-footer-brand-text { display: flex; flex-direction: column; gap: .15rem; text-align: left; }
.dev-footer-brand-text strong { font-size: .9rem; color: #fff; font-weight: 700; }
.dev-footer-brand-text span { font-size: .72rem; color: rgba(255,255,255,.5); }

@media (max-width: 768px) {
    .dev-footer-inner { flex-direction: column; text-align: center; gap: 1rem; }
    .dev-footer-brand { flex-direction: column; }
    .dev-footer-brand-text { text-align: center; }
    .dev-card-text { text-align: right; }
}
