/* ═══════════════════════════════════════════════════════
   كشخة - الهوية البصرية الرسمية
   Kashkhah Men's Elegance Brand CSS
═══════════════════════════════════════════════════════ */

:root {
    /* الألوان الأساسية - Red & Navy Theme */
    --red: #dc2626;
    --red-dark: #b91c1c;
    --red-light: #fee2e2;
    --red-lighter: #fef2f2;
    --navy: #1e293b;
    --navy-dark: #0f172a;
    --navy-light: #334155;
    --gold: #d4af37;

    /* رمادي */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --white: #ffffff;
    --black: #000000;

    --font-main: 'Noto Sans Arabic', 'Tajawal', -apple-system, sans-serif;

    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-main);
    line-height: 1.7;
    color: var(--gray-800);
    background: var(--white);
    direction: rtl;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.sr-only:focus {
    position: fixed; top: 1rem; right: 1rem; width: auto; height: auto;
    padding: .75rem 1rem; background: var(--red); color: white;
    border-radius: var(--radius-md); clip: auto; z-index: 10000;
}

/* ═══ BUTTONS ═══ */
.btn-primary, .btn-secondary, .btn-outline, .btn-white, .btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    font-size: .95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    font-family: inherit;
    border: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.45);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}
.btn-secondary:hover {
    background: white;
    color: var(--navy);
}

.btn-outline {
    background: transparent;
    color: var(--red);
    border-color: var(--red);
}
.btn-outline:hover {
    background: var(--red);
    color: white;
}

.btn-white {
    background: white;
    color: var(--red);
    box-shadow: var(--shadow-md);
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: #25D366;
    color: white;
}
.btn-success:hover { background: #1ebe5a; transform: translateY(-2px); }

.btn-large { padding: 1rem 2.25rem; font-size: 1rem; }

/* ═══ SECTIONS ═══ */
.section { padding: 5rem 0; }
.section-gray { background: var(--gray-50); }
.section-py { padding: 5rem 0; }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: .75rem;
}
.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--navy));
    margin: 0 auto 1rem;
    border-radius: 2px;
}
.section-header .subtitle {
    color: var(--gray-600);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
}

.text-center { text-align: center; }

/* ═══ NAVBAR ═══ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1000;
    transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: .75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-weight: 800;
}
.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    object-fit: cover;
    color: white;
    font-size: 1.3rem;
}
.logo-text {
    font-size: 1.4rem;
    color: var(--navy);
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: .3rem;
    align-items: center;
}
.nav-links a {
    padding: .55rem 1rem;
    color: var(--gray-700);
    font-weight: 600;
    font-size: .95rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
}
.nav-links a:hover { color: var(--red); background: var(--red-lighter); }
.nav-links a.active { color: var(--red); background: var(--red-lighter); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: .5rem;
    cursor: pointer;
}
.hb {
    width: 26px; height: 2.5px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 992px) {
    .nav-links { display: none; }
    .menu-toggle { display: flex; }
    .nav-inner > div { display: none !important; }
}

/* ═══ SIDEBAR MOBILE ═══ */
.sb-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1998;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}
.sb-overlay.open { opacity: 1; visibility: visible; }

.sidebar {
    position: fixed;
    top: 0; right: -320px;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: white;
    z-index: 1999;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
}
.sidebar.open { right: 0; }

.sb-close {
    position: absolute;
    top: 1rem; left: 1rem;
    width: 40px; height: 40px;
    background: var(--red-lighter);
    color: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sb-head {
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-100);
    background: linear-gradient(135deg, var(--red-lighter), white);
}
.sb-head img {
    width: 70px; height: 70px;
    border-radius: 14px;
    margin: 0 auto .75rem;
}
.sb-tagline { color: var(--gray-600); font-size: .9rem; }

.sb-nav {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}
.sb-link {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .85rem 1rem;
    color: var(--gray-700);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    margin-bottom: .25rem;
}
.sb-link:hover, .sb-link.active {
    background: var(--red-lighter);
    color: var(--red);
}
.sb-link svg { width: 22px; height: 22px; flex-shrink: 0; }

.sb-foot {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--gray-100);
}
.sb-cta {
    display: block;
    padding: .85rem;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: white;
    text-align: center;
    border-radius: var(--radius-md);
    font-weight: 700;
    margin-bottom: .75rem;
}
.sb-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    color: var(--navy);
    font-weight: 700;
}

/* ═══ HERO ═══ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 1.5rem 3rem;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}
.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.75) 50%, rgba(185, 28, 28, 0.6) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: white;
    text-align: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(220, 38, 38, 0.95);
    color: white;
    padding: .5rem 1.25rem;
    border-radius: 9999px;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}
.hero h1 {
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}
.highlight {
    background: linear-gradient(135deg, #fca5a5, var(--red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 1.75rem;
    color: rgba(255, 255, 255, 0.95);
}
.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}
.hero-feature {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: .95rem;
    background: rgba(255, 255, 255, 0.1);
    padding: .5rem 1rem;
    border-radius: 9999px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.hero-feature svg { color: #86efac; }

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 28px; height: 42px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    padding-top: .5rem;
}
.scroll-indicator-inner {
    width: 4px; height: 10px;
    background: white;
    border-radius: 2px;
    animation: scrollDot 2s infinite;
}
@keyframes scrollDot {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.3; }
}

/* ═══ REVEAL ANIMATIONS ═══ */
.rv {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.rv.in { opacity: 1; transform: translateY(0); }
.rv.d1.in { transition-delay: 0.15s; }
.rv.d2.in { transition-delay: 0.3s; }
.rv.d3.in { transition-delay: 0.45s; }

/* ═══ FEATURE STRIP ═══ */
.feature-strip {
    background: white;
    padding: 3rem 0;
    border-bottom: 1px solid var(--gray-100);
}
.feature-strip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}
.feature-strip-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.feature-strip-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    background: var(--red-lighter);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.feature-strip-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .25rem;
}
.feature-strip-item p {
    color: var(--gray-600);
    font-size: .88rem;
}

/* ═══ CATEGORIES GRID ═══ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 1;
    cursor: pointer;
    transition: var(--transition);
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
    border: 1px solid var(--gray-200);
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--red);
}
.category-card .emoji {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}
.category-card:hover .emoji { transform: scale(1.15); }
.category-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .25rem;
}
.category-card p {
    color: var(--gray-500);
    font-size: .85rem;
}

/* ═══ CARDS (SERVICES / PRODUCTS / POSTS) ═══ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    text-align: center;
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--red);
}
.service-icon {
    width: 72px; height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--red-lighter), var(--red-light));
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .75rem;
}
.service-card p {
    color: var(--gray-600);
    font-size: .95rem;
    margin-bottom: 1rem;
}
.card-link {
    color: var(--red);
    font-weight: 700;
    font-size: .95rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    transition: var(--transition);
}
.card-link:hover { gap: .6rem; }

/* ═══ PRODUCT/GALLERY CARDS ═══ */
.products-grid, .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}
.product-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--gray-100);
    position: relative;
}
.product-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-image img { transform: scale(1.08); }
.product-badge {
    position: absolute;
    top: 1rem; right: 1rem;
    background: var(--red);
    color: white;
    padding: .3rem .8rem;
    border-radius: 9999px;
    font-size: .78rem;
    font-weight: 700;
}
.product-content {
    padding: 1.25rem;
}
.product-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .5rem;
    line-height: 1.4;
}
.product-content p {
    color: var(--gray-600);
    font-size: .88rem;
    margin-bottom: .75rem;
}
.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .75rem;
}
.product-price {
    color: var(--red);
    font-weight: 800;
    font-size: 1.1rem;
}
.product-btn {
    display: block;
    text-align: center;
    padding: .7rem;
    background: var(--navy);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: .9rem;
    transition: var(--transition);
}
.product-card:hover .product-btn { background: var(--red); }

/* ═══ GALLERY ═══ */
.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.9), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-title {
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: .25rem;
}

/* ═══ BANNER CTA ═══ */
.banner-cta {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 50%, var(--navy) 100%);
    padding: 4rem 1.5rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.banner-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
}
.banner-cta > * { position: relative; z-index: 1; }
.banner-cta h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}
.banner-cta p {
    font-size: 1.1rem;
    margin-bottom: 1.75rem;
    opacity: 0.95;
}

/* ═══ TESTIMONIALS ═══ */
.testimonials-section {
    padding: 5rem 0;
    background: var(--navy);
    color: white;
}
.testimonials-section .section-header h2 { color: white; }

.testimonial-slider {
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    min-height: 260px;
}
.testimonial-slide {
    background: white;
    color: var(--gray-800);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-xl);
    display: none;
    animation: fadeIn 0.6s;
}
.testimonial-slide.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.testimonial-stars {
    color: #facc15;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 1.25rem;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
}
.testimonial-avatar {
    width: 54px; height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--red-light);
}
.testimonial-name {
    font-weight: 700;
    color: var(--navy);
}
.testimonial-title {
    font-size: .85rem;
    color: var(--gray-500);
}
.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.75rem;
}
.testimonial-btn {
    width: 44px; height: 44px;
    background: white;
    color: var(--red);
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: 800;
    transition: var(--transition);
}
.testimonial-btn:hover { transform: scale(1.1); background: var(--red); color: white; }
.testimonial-dots {
    display: flex;
    gap: .5rem;
}
.testimonial-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: var(--transition);
}
.testimonial-dot.active { background: var(--red); transform: scale(1.3); }

/* ═══ BRANCHES (فروع) ═══ */
.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}
.branch-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}
.branch-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}
.branch-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--gray-100);
    position: relative;
}
.branch-image img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.branch-badge-main {
    position: absolute;
    top: 1rem; right: 1rem;
    background: var(--gold);
    color: var(--navy);
    padding: .35rem .9rem;
    border-radius: 9999px;
    font-size: .8rem;
    font-weight: 800;
}
.branch-body { padding: 1.5rem; }
.branch-body h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: .25rem;
}
.branch-city {
    color: var(--red);
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 1rem;
}
.branch-info {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-bottom: 1.25rem;
}
.branch-info-item {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    color: var(--gray-700);
    font-size: .92rem;
}
.branch-info-item svg {
    color: var(--red);
    flex-shrink: 0;
    margin-top: 2px;
}
.branch-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
.branch-actions a {
    flex: 1;
    min-width: 100px;
    font-size: .85rem;
    padding: .6rem .75rem;
}
.branch-map-embed {
    width: 100%;
    height: 260px;
    border: 0;
    margin-top: 1rem;
    border-radius: var(--radius-md);
}

/* ═══ BLOG ═══ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}
.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}
.blog-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
    background: var(--gray-100);
}
.blog-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-image img { transform: scale(1.08); }
.blog-category {
    position: absolute;
    top: 1rem; right: 1rem;
    background: var(--red);
    color: white;
    padding: .3rem .85rem;
    border-radius: 9999px;
    font-size: .78rem;
    font-weight: 700;
}
.blog-content { padding: 1.5rem; }
.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: .75rem;
    font-size: .82rem;
    color: var(--gray-500);
}
.blog-meta-item::before { content: '•'; margin-left: .5rem; color: var(--red); }
.blog-meta-item:first-child::before { content: ''; margin: 0; }

.blog-excerpt {
    color: var(--gray-600);
    font-size: .92rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.blog-link {
    color: var(--red);
    font-weight: 700;
    font-size: .92rem;
}

/* ═══ BLOG LAYOUT ═══ */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
}
.blog-sidebar .sidebar-widget {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    margin-bottom: 1.5rem;
}
.sidebar-widget h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--red);
}
.sidebar-post {
    display: flex;
    gap: .75rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--gray-100);
}
.sidebar-post:last-child { border-bottom: none; }
.sidebar-post img {
    width: 72px; height: 56px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.sidebar-post-info h4 {
    font-size: .88rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: .25rem;
    line-height: 1.4;
}
.sidebar-post-info span { font-size: .75rem; color: var(--gray-500); }

.post-tag {
    display: inline-block;
    background: var(--red-lighter);
    color: var(--red);
    padding: .3rem .8rem;
    border-radius: 9999px;
    font-size: .8rem;
    font-weight: 600;
    transition: var(--transition);
}
.post-tag:hover { background: var(--red); color: white; }

@media (max-width: 900px) {
    .blog-layout { grid-template-columns: 1fr; }
}

/* ═══ POST DETAIL ═══ */
.post-detail {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
}
.post-detail h1 {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 1rem;
    line-height: 1.3;
}
.post-meta-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-600);
    font-size: .9rem;
}
.post-featured-image {
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.post-body {
    color: var(--gray-700);
    line-height: 1.9;
    font-size: 1.05rem;
}
.post-body h2, .post-body h3 {
    color: var(--navy);
    font-weight: 800;
    margin: 1.5rem 0 1rem;
}
.post-body h2 { font-size: 1.6rem; }
.post-body h3 { font-size: 1.3rem; }
.post-body p { margin-bottom: 1.25rem; }
.post-body ul, .post-body ol {
    padding-right: 1.75rem;
    margin-bottom: 1.25rem;
}
.post-body li { margin-bottom: .5rem; }
.post-body img { border-radius: var(--radius-md); margin: 1rem 0; }

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: 1.5rem 0;
    margin: 1.5rem 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}
.share-buttons > span { font-weight: 700; color: var(--navy); }
.share-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: var(--transition);
}
.share-btn:hover { transform: translateY(-3px); }
.share-btn.twitter { background: #000; }
.share-btn.facebook { background: #1877f2; }
.share-btn.whatsapp { background: #25D366; }
.share-btn.copy { background: var(--gray-700); }

.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-100);
}
.related-posts h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.25rem;
}

/* ═══ PAGE HEADER (للصفحات الداخلية) ═══ */
.page-header {
    position: relative;
    padding: 160px 0 70px;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--red-dark) 100%);
    color: white;
    text-align: center;
    overflow: hidden;
}
.page-header-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
}
.page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.85), rgba(185,28,28,0.7));
}
.page-header > * { position: relative; z-index: 2; }
.page-header h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: .5rem;
}
.page-header > p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 1rem;
}
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: .5rem 1.25rem;
    border-radius: 9999px;
    font-size: .9rem;
}
.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: white; }
.breadcrumb span { color: rgba(255,255,255,0.5); }

/* ═══ FAQ ═══ */
.faq-container {
    max-width: 780px;
    margin: 0 auto;
}
.faq-item {
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    margin-bottom: .75rem;
    overflow: hidden;
    transition: var(--transition);
}
.faq-item:hover { border-color: var(--red); }
.faq-question {
    width: 100%;
    padding: 1.1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
    font-weight: 700;
    color: var(--navy);
    font-size: 1rem;
    background: white;
}
.faq-question:hover { background: var(--gray-50); }
.faq-icon {
    width: 28px; height: 28px;
    background: var(--red-lighter);
    color: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: var(--transition);
    font-size: 1.1rem;
}
.faq-question.open .faq-icon {
    background: var(--red);
    color: white;
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 1.5rem;
    color: var(--gray-700);
    line-height: 1.9;
    font-size: .95rem;
}
.faq-answer.open {
    max-height: 500px;
    padding: 0 1.5rem 1.25rem;
}

/* ═══ CONTACT FORM ═══ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
}
@media (max-width: 900px) {
    .contact-layout { grid-template-columns: 1fr; }
}
.contact-info-card {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    height: fit-content;
}
.contact-info-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
    width: 44px; height: 44px;
    background: var(--red);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info-item h4 {
    font-size: .9rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    margin-bottom: .25rem;
}
.contact-info-item p, .contact-info-item a {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .5rem;
    font-size: .92rem;
}
.form-control {
    width: 100%;
    padding: .85rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: .95rem;
    transition: var(--transition);
    background: white;
    color: var(--gray-800);
    direction: rtl;
}
.form-control:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-lighter);
}
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.quick-form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.quick-form .form-group-full { grid-column: 1 / -1; }
@media (max-width: 600px) {
    .quick-form { grid-template-columns: 1fr; padding: 1.75rem; }
}

/* ═══ CTA SECTION ═══ */
.cta-section {
    padding: 4.5rem 1.5rem;
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, var(--navy) 100%);
    color: white;
    text-align: center;
}
.cta-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
}
.cta-section p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══ STATS ═══ */
.stats-section {
    padding: 3.5rem 0;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: white;
    border-radius: var(--radius-lg);
    margin-top: 3rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}
.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: .25rem;
}
.stat-label {
    font-size: .95rem;
    opacity: 0.9;
    font-weight: 600;
}

/* ═══ FOOTER ═══ */
.footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.85);
}
.footer-content { padding: 4rem 0 2rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
}
.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.25rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--red);
    display: inline-block;
}
.footer-logo { display: block; margin-bottom: 1rem; }
.footer-logo img {
    width: 70px; height: 70px;
    border-radius: 12px;
}
.footer-section p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    font-size: .92rem;
    margin-bottom: 1rem;
}
.social-links {
    display: flex;
    gap: .6rem;
}
.social-link {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}
.social-link:hover {
    background: var(--red);
    transform: translateY(-3px);
}
.footer-links li a {
    color: rgba(255,255,255,0.7);
    font-size: .92rem;
    display: block;
    padding: .35rem 0;
    transition: var(--transition);
}
.footer-links li a:hover { color: var(--red); padding-right: .5rem; }
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .88rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: .75rem;
}
.contact-item svg {
    color: var(--red);
    flex-shrink: 0;
    margin-top: 2px;
}
.contact-item a:hover { color: white; }

.newsletter {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.25);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}
.newsletter h4 {
    font-size: 1.05rem;
    color: white;
    margin-bottom: .5rem;
    border: none;
    padding: 0;
}
.newsletter p {
    font-size: .85rem;
    margin-bottom: 1rem;
}
.newsletter-form {
    display: flex;
    gap: .5rem;
}
.newsletter-input {
    flex: 1;
    padding: .7rem 1rem;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: white;
    border-radius: var(--radius-md);
    font-family: inherit;
    direction: rtl;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-input:focus {
    outline: none;
    border-color: var(--red);
}
.newsletter-btn {
    padding: .7rem 1.25rem;
    background: var(--red);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: var(--transition);
}
.newsletter-btn:hover { background: var(--red-dark); }

.footer-bottom {
    padding: 1.5rem 0;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .82rem;
    color: rgba(255,255,255,0.6);
}
.footer-bottom-links {
    display: flex;
    gap: 1.25rem;
}
.footer-bottom-links a:hover { color: var(--red); }

/* ═══ FLOATING BUTTONS ═══ */
.floating-btns {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    z-index: 50;
}
.float-btn {
    width: 55px; height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}
.float-btn:hover { transform: scale(1.1); }
.float-btn.whatsapp { background: #25D366; }
.float-btn.phone-call { background: var(--red); }
.float-btn.scroll-top { background: var(--navy); }

/* ═══ TOAST ═══ */
.toast-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 1rem;
}
.toast-overlay.show { opacity: 1; visibility: visible; }
.toast-box {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    max-width: 400px;
    width: 100%;
    text-align: center;
    transform: scale(0.9);
    transition: var(--transition);
}
.toast-overlay.show .toast-box { transform: scale(1); }
.toast-icon {
    width: 64px; height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.toast-icon.success { background: #10b981; }
.toast-icon.error { background: #ef4444; }
.toast-box h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: .5rem;
}
.toast-box p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}
.toast-close {
    padding: .65rem 2rem;
    background: var(--red);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 700;
}

/* ═══ PAGINATION ═══ */
.pagination {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-top: 3rem;
}
.pagination a, .pagination span {
    padding: .6rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    color: var(--gray-700);
    font-weight: 600;
    transition: var(--transition);
}
.pagination a:hover { background: var(--red-lighter); color: var(--red); border-color: var(--red); }
.pagination .active, .pagination [aria-current="page"] span {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

/* ═══ EMPTY STATE ═══ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}
.empty-state h3 {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: .5rem;
}
.empty-state p { color: var(--gray-600); }

/* ═══ CATEGORY TABS (للفلترة) ═══ */
.category-tab {
    padding: .55rem 1.25rem;
    background: white;
    border: 1.5px solid var(--gray-200);
    border-radius: 9999px;
    color: var(--gray-700);
    font-weight: 600;
    font-size: .9rem;
    transition: var(--transition);
}
.category-tab:hover { border-color: var(--red); color: var(--red); }
.category-tab.active {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
    .section, .section-py { padding: 3.5rem 0; }
    .hero { min-height: auto; padding: 120px 1.5rem 4rem; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn-primary, .hero-buttons .btn-secondary { width: 100%; justify-content: center; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-number { font-size: 2rem; }
}
