/*
Theme Name: الاول ويب
Theme URI: https://example.com/alawal-web
Author: الاول ويب
Author URI: https://example.com
Description: قالب ووردبريس احترافي لشركة خدمات رقمية (تصميم مواقع، تطبيقات موبايل، إعلانات ممولة) يهدف إلى توليد العملاء المحتملين للشركات الناشئة والمنشآت الصغيرة والمتوسطة.
Version: 1.0.0
Text Domain: alawal
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* خط Cairo من Google Fonts (يُحمّل عبر functions.php) */

/* Reset بسيط وعام */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    color-scheme: light;

    --al-bg: #f4f5fb;
    --al-text: #020617;
    --al-text-muted: #64748b;
    --al-text-soft: #94a3b8;

    --al-link: #0ea5e9;
    --al-link-hover: #0284c7;

    --al-header-bg: linear-gradient(to bottom, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9));
    --al-header-border: rgba(15, 23, 42, 0.16);

    --al-hero-bg: radial-gradient(circle at top, rgba(56, 189, 248, 0.12), transparent 60%),
        radial-gradient(circle at bottom, rgba(129, 140, 248, 0.12), transparent 55%),
        #f9fafb;

    --al-hero-card-bg: radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 55%),
        radial-gradient(circle at bottom, rgba(241, 245, 249, 0.95), rgba(226, 232, 240, 1));
    --al-hero-card-border: rgba(15, 23, 42, 0.20);
    --al-hero-card-shadow: 0 22px 55px rgba(15, 23, 42, 0.18);

    --al-card-bg: radial-gradient(circle at top left, rgba(248, 250, 252, 1), rgba(255, 255, 255, 1));
    --al-card-border: rgba(15, 23, 42, 0.16);
    --al-card-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);

    --al-card-icon-bg: radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), rgba(241, 245, 249, 1));
    --al-card-icon-text: #0f172a;

    /* شارة عناوين الأقسام (الوضع النهاري) */
    --al-section-kicker-bg: #ffffff;
    --al-section-kicker-border: #0ea5e9;

    --al-why-text: #0f172a;

    --al-pricing-card-bg: radial-gradient(circle at top left, rgba(59, 130, 246, 0.06), rgba(255, 255, 255, 1));
    --al-pricing-card-border: rgba(15, 23, 42, 0.22);
    --al-pricing-highlight-border: rgba(56, 189, 248, 0.7);
    --al-pricing-highlight-shadow: 0 22px 45px rgba(56, 189, 248, 0.18);

    --al-testimonial-bg: #ffffff;
    --al-testimonial-border: rgba(15, 23, 42, 0.18);

    --al-cta-bg: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), rgba(255, 255, 255, 1));
    --al-cta-border: rgba(15, 23, 42, 0.22);
    --al-cta-text: #0f172a;
    --al-cta-muted: #64748b;

    --al-footer-bg: #f9fafb;
    --al-footer-text: #64748b;
    --al-footer-link: #64748b;
    --al-footer-link-hover: #0f172a;

    --al-hero-metric-bg: #ffffff;
    --al-hero-metric-border: rgba(15, 23, 42, 0.20);
    --al-hero-metric-label: #64748b;
    --al-hero-metric-value: #0f172a;

    --al-outline-border: rgba(15, 23, 42, 0.32);
    --al-outline-text: #0f172a;
    --al-outline-hover-bg: rgba(148, 163, 184, 0.08);
}

:root[data-theme="dark"] {
    color-scheme: dark;

    --al-bg: #0b1020;
    --al-text: #f7f7ff;
    --al-text-muted: #94a3b8;
    --al-text-soft: #cbd5f5;

    --al-link: #00d1ff;
    --al-link-hover: #72f5ff;

    --al-header-bg: linear-gradient(to bottom, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.78));
    --al-header-border: rgba(148, 163, 184, 0.18);

    --al-hero-bg: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 60%),
        radial-gradient(circle at bottom, rgba(129, 140, 248, 0.18), transparent 55%),
        #020617;

    --al-hero-card-bg: radial-gradient(circle at top left, rgba(59, 130, 246, 0.25), transparent 55%),
        radial-gradient(circle at bottom, rgba(8, 47, 73, 0.85), rgba(15, 23, 42, 0.95));
    --al-hero-card-border: rgba(148, 163, 184, 0.4);
    --al-hero-card-shadow: 0 22px 55px rgba(15, 23, 42, 0.9);

    --al-card-bg: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
    --al-card-border: rgba(148, 163, 184, 0.28);
    --al-card-shadow: 0 20px 40px rgba(15, 23, 42, 0.85);

    --al-card-icon-bg: radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), rgba(15, 23, 42, 1));
    --al-card-icon-text: #e5e7eb;

    --al-section-kicker-bg: rgba(15, 23, 42, 0.9);
    --al-section-kicker-border: rgba(148, 163, 184, 0.35);

    --al-why-text: #cbd5f5;

    --al-pricing-card-bg: radial-gradient(circle at top left, rgba(59, 130, 246, 0.22), rgba(15, 23, 42, 1));
    --al-pricing-card-border: rgba(148, 163, 184, 0.4);
    --al-pricing-highlight-border: rgba(56, 189, 248, 0.85);
    --al-pricing-highlight-shadow: 0 22px 45px rgba(56, 189, 248, 0.3);

    --al-testimonial-bg: rgba(15, 23, 42, 0.98);
    --al-testimonial-border: rgba(148, 163, 184, 0.3);

    --al-cta-bg: radial-gradient(circle at top left, rgba(56, 189, 248, 0.28), rgba(15, 23, 42, 1));
    --al-cta-border: rgba(148, 163, 184, 0.4);
    --al-cta-text: #f9fafb;
    --al-cta-muted: #cbd5f5;

    --al-footer-bg: #020617;
    --al-footer-text: #94a3b8;
    --al-footer-link: #94a3b8;
    --al-footer-link-hover: #e5e7eb;

    --al-hero-metric-bg: rgba(15, 23, 42, 0.9);
    --al-hero-metric-border: rgba(148, 163, 184, 0.4);
    --al-hero-metric-label: #94a3b8;
    --al-hero-metric-value: #e5e7eb;

    --al-outline-border: rgba(148, 163, 184, 0.6);
    --al-outline-text: #e2e8f0;
    --al-outline-hover-bg: rgba(15, 23, 42, 0.8);
}

body {
    margin: 0;
    font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--al-bg);
    color: var(--al-text);
    line-height: 1.7;
}

a {
    color: var(--al-link);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--al-link-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: min(1100px, 92vw);
    margin-inline: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #00d1ff, #007bff);
    color: #020617;
    box-shadow: 0 14px 30px rgba(0, 209, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 209, 255, 0.5);
}

/* زر استشارة مجانية - واتساب (أخضر + أيقونة) */
.btn-cta-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.btn-cta-whatsapp:hover {
    background: #20bd5a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.btn-cta-whatsapp-icon {
    flex-shrink: 0;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--al-outline-border);
    color: var(--al-outline-text);
}

.btn-outline:hover {
    background: var(--al-outline-hover-bg);
}

header.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(14px);
    background: var(--al-header-bg);
    border-bottom: 1px solid var(--al-header-border);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.8rem;
    padding: 0.9rem 0;
}

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.site-branding .custom-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-height: 52px;
}

.site-branding .custom-logo {
    max-height: 52px;
    width: auto;
    height: auto;
}

.site-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.site-tagline {
    color: var(--al-text-muted);
    font-size: 0.75rem;
}

.primary-menu {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

html[dir="rtl"] .primary-menu {
    direction: rtl;
}

.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 999px;
}

.nav-toggle-icon {
    width: 1.2rem;
    height: 1.2rem;
    position: relative;
    display: inline-block;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after,
.nav-toggle-icon span {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--al-text);
    transform-origin: center;
    transition: transform 0.18s ease, opacity 0.18s ease, top 0.18s ease, bottom 0.18s ease;
}

.nav-toggle-icon::before {
    top: 2px;
}

.nav-toggle-icon::after {
    bottom: 2px;
}

.nav-toggle-icon span {
    top: 50%;
    transform: translateY(-50%);
}

body.nav-open .nav-toggle-icon::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

body.nav-open .nav-toggle-icon::after {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

body.nav-open .nav-toggle-icon span {
    opacity: 0;
}

.primary-menu a {
    color: var(--al-text-soft);
    font-weight: 500;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
    color: var(--al-text);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(255, 255, 255, 0.7);
    color: #0f172a;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

:root[data-theme="dark"] .theme-toggle {
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
}

.theme-toggle:hover {
    transform: translateY(-1px);
}

.theme-toggle-icon {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #facc15, #f97316);
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.4);
}

:root[data-theme="dark"] .theme-toggle-icon {
    background: radial-gradient(circle at 30% 30%, #e5e7eb, #0f172a);
}

.header-search-toggle {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--al-text-soft);
    transition: background-color 0.18s ease, color 0.18s ease;
}

.header-search-toggle:hover {
    background-color: rgba(148, 163, 184, 0.1);
    color: var(--al-text);
}

.header-clock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--al-text-soft);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background-color: rgba(148, 163, 184, 0.06);
    min-width: 3.6rem;
    white-space: nowrap;
}

.header-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 60;
    padding: 1.5rem;
}

.header-search-overlay.is-open {
    display: flex;
}

.header-search-overlay-inner {
    width: min(640px, 100%);
    background: var(--al-bg);
    border-radius: 1.2rem;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.5);
}

.header-search-form {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.header-search-input {
    flex: 1;
    padding: 0.7rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.02);
    color: var(--al-text);
    font-size: 0.9rem;
}

.header-search-input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.35);
}

.header-search-submit {
    white-space: nowrap;
}

.header-search-close {
    border: none;
    background: transparent;
    color: var(--al-text-soft);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.3rem;
}

@media (max-width: 640px) {
    .header-search-overlay-inner {
        border-radius: 1rem;
        padding-inline: 1rem;
    }

    .header-search-form {
        gap: 0.4rem;
    }

    .header-search-submit {
        padding-inline: 1rem;
    }

    /* ضبط شكل الساعة على الجوال لتكون مدمجة واحترافية */
    .header-clock {
        padding: 0.15rem 0.6rem;
        font-size: 0.75rem;
        min-width: 3.2rem;
        background-color: rgba(148, 163, 184, 0.12);
    }
}

.hero {
    position: relative;
    padding: 4.5rem 0 3.5rem;
    background: var(--al-hero-bg);
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #e2e8f0;
    font-size: 0.75rem;
    margin-bottom: 1.2rem;
}

.hero-title {
    font-size: clamp(2.2rem, 3.3vw + 1rem, 3.4rem);
    line-height: 1.2;
    margin: 0 0 1rem;
}

.hero-title span.highlight {
    background: linear-gradient(to right, #38bdf8, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--al-text-soft);
    max-width: 460px;
    margin-bottom: 1.8rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 1.6rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.8rem;
    color: var(--al-text-soft);
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.hero-visual {
    position: relative;
    min-height: 260px;
}

.hero-card {
    position: relative;
    padding: 1.7rem;
    border-radius: 1.6rem;
    background: var(--al-hero-card-bg);
    border: 1px solid var(--al-hero-card-border);
    box-shadow: var(--al-hero-card-shadow);
}

.hero-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.3rem;
}

.hero-chip {
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: var(--al-section-kicker-bg);
    border: 1px solid var(--al-section-kicker-border);
    font-size: 0.7rem;
    color: var(--al-text-soft);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.4rem;
}

.hero-metric {
    padding: 0.7rem 0.8rem;
    border-radius: 0.9rem;
    background: var(--al-hero-metric-bg);
    border: 1px solid var(--al-hero-metric-border);
}

.hero-metric-label {
    font-size: 0.7rem;
    color: var(--al-hero-metric-label);
    margin-bottom: 0.25rem;
}

.hero-metric-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--al-hero-metric-value);
}

.hero-card-subtext {
    font-size: 0.75rem;
    color: var(--al-text-soft);
}

.hero-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--al-text-soft);
}

.section {
    padding: 3.5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.95rem;
    border-radius: 999px;
    background: var(--al-section-kicker-bg);
    border: 1px solid var(--al-section-kicker-border);
    font-size: 0.9rem;
    color: var(--al-text-soft);
    margin-bottom: 0.8rem;
}

.section-kicker-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.08);
    color: #0ea5e9;
}

.section-title {
    font-size: clamp(1.8rem, 2.4vw + 1.4rem, 2.4rem);
    margin: 0;
}

.section-description {
    margin-top: 0.7rem;
    font-size: 0.95rem;
    color: var(--al-text-soft);
}

.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.card {
    padding: 1.5rem 1.4rem;
    border-radius: 1.3rem;
    background: var(--al-card-bg);
    border: 1px solid var(--al-card-border);
    box-shadow: var(--al-card-shadow);
}

.card-icon {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--al-card-icon-bg);
    color: var(--al-card-icon-text);
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.3rem;
    margin: 0 0 0.5rem;
}

.card-text {
    font-size: 0.9rem;
    color: var(--al-text-soft);
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}

.why-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 1.8rem;
}

.why-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--al-why-text);
}

.why-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    background: linear-gradient(to bottom right, #38bdf8, #6366f1);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.pricing-card {
    position: relative;
    padding: 1.7rem 1.5rem 1.6rem;
    border-radius: 1.4rem;
    background: var(--al-pricing-card-bg);
    border: 1px solid var(--al-pricing-card-border);
}

.pricing-card.highlighted {
    border-color: var(--al-pricing-highlight-border);
    box-shadow: var(--al-pricing-highlight-shadow);
}

.pricing-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.pricing-pill {
    font-size: 0.7rem;
    color: #a5b4fc;
    margin-bottom: 0.9rem;
}

.pricing-price {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--al-text-soft);
}

.pricing-features li {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    margin-bottom: 0.4rem;
}

.pricing-features li::before {
    content: "✓";
    font-size: 0.8rem;
    color: #4ade80;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    padding: 1.4rem 1.2rem;
    border-radius: 1.3rem;
    background: var(--al-testimonial-bg);
    border: 1px solid var(--al-testimonial-border);
}

.testimonial-body {
    font-size: 0.9rem;
    color: var(--al-text);
    margin-bottom: 1rem;
}

.testimonial-company {
    color: var(--al-text-muted);
    font-size: 0.8rem;
}

.post-meta {
    font-size: 0.8rem;
    color: var(--al-text-soft);
    margin-bottom: 0.5rem;
}

/* Blog layout */

.blog-hero {
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
}

.blog-hero-strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    scroll-snap-type: x mandatory;
}

.blog-hero-strip::-webkit-scrollbar {
    height: 5px;
}

.blog-hero-strip::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.6);
    border-radius: 999px;
}

.blog-hero-card {
    min-width: 260px;
    max-width: 320px;
    scroll-snap-align: start;
    border-radius: 1.2rem;
    background: var(--al-card-bg);
    border: 1px solid var(--al-card-border);
    box-shadow: var(--al-card-shadow);
    padding: 0.9rem;
}

.blog-hero-image-wrapper {
    position: relative;
    display: block;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 0.7rem;
}

.blog-hero-image-wrapper img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.blog-hero-image-placeholder {
    width: 100%;
    height: 150px;
    background: radial-gradient(circle at top, rgba(148, 163, 184, 0.2), transparent 55%), rgba(148, 163, 184, 0.12);
}

.blog-hero-badge {
    position: absolute;
    inset-inline-start: 0.7rem;
    inset-block-start: 0.7rem;
    padding: 0.15rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    color: #e5e7eb;
    font-size: 0.7rem;
}

.blog-hero-meta {
    font-size: 0.75rem;
    color: var(--al-text-soft);
    margin-bottom: 0.25rem;
}

.blog-hero-title {
    font-size: 0.95rem;
    margin: 0;
}

.blog-layout {
    padding-top: 1rem;
}

.blog-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr);
    gap: 1.8rem;
}

.blog-main {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.blog-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr);
    gap: 1rem;
}

.blog-list-media {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blog-list-thumb img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 0.9rem;
}

.blog-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.8rem;
}

.badge-category {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
    font-size: 0.75rem;
}

.blog-list-content {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.blog-list-title {
    font-size: 1.25rem;
    margin: 0;
    line-height: 1.4;
}

.blog-list-title a {
    color: var(--al-text);
}

.blog-list-title a:hover {
    color: var(--al-link-hover);
}

/* صف الإحصائيات: مشاهدات، تعليقات، تاريخ */
.blog-list-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin: 0;
    font-size: 0.8rem;
}

.blog-list-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-list-stat-icon {
    flex-shrink: 0;
    width: 1em;
    height: 1em;
    opacity: 0.9;
}

.blog-list-views {
    color: #dc2626;
}

.blog-list-views .blog-list-stat-icon {
    color: #dc2626;
}

.blog-list-comments {
    color: #0d9488;
}

.blog-list-comments .blog-list-stat-icon {
    color: #0d9488;
}

.blog-list-date {
    color: var(--al-text-soft);
}

.blog-list-date .blog-list-stat-icon {
    color: var(--al-text-soft);
}

.blog-list-thumb-placeholder {
    display: block;
    width: 100%;
    height: 160px;
    background: var(--al-card-bg);
    border-radius: 0.9rem;
    border: 1px solid var(--al-border);
}

.blog-list-excerpt {
    font-size: 0.9rem;
    color: var(--al-text-soft);
}

.blog-list-readmore {
    margin-top: 0.2rem;
    font-size: 0.8rem;
    color: var(--al-link);
}

.blog-list-readmore:hover {
    color: var(--al-link-hover);
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.blog-sidebar-widget {
    padding: 1.1rem 1rem;
}

.blog-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0.6rem 0 0;
    font-size: 0.85rem;
}

.blog-sidebar-list li + li {
    margin-top: 0.4rem;
}

.blog-sidebar-list a {
    color: var(--al-text-soft);
}

.blog-sidebar-list a:hover {
    color: var(--al-link-hover);
}

.single-post-inner {
    max-width: 820px;
    margin-inline: auto;
}

.single-post-article {
    padding: 1.9rem 1.7rem;
}

.single-post-header {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.4rem;
}

.single-post-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.single-post-title {
    margin: 0;
    font-size: 1.9rem;
    line-height: 1.5;
}

.single-post-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--al-text-soft);
}

.single-post-meta-sep {
    opacity: 0.7;
}

.single-post-thumb {
    margin-bottom: 1.4rem;
    border-radius: 1.2rem;
    overflow: hidden;
}

.single-post-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.single-post-content {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--al-text);
}

.single-post-content p,
.single-post-content li {
    color: var(--al-text);
}

.single-post-actions {
    margin-top: 1.4rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--al-border-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.single-post-action {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--al-border-soft);
    background: transparent;
    font-size: 0.8rem;
    color: var(--al-text);
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.single-post-action:hover {
    background: var(--al-outline-hover-bg);
    border-color: var(--al-outline-border);
}

.single-post-action-like.is-liked {
    border-color: rgba(22, 163, 74, 0.5);
    background: rgba(22, 163, 74, 0.08);
}

.single-post-action-icon {
    font-size: 0.9rem;
}

.single-post-share {
    margin-top: 1.6rem;
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
}

.single-post-share:not(.is-open) {
    display: none;
}

.single-post-share-label {
    font-size: 0.85rem;
    color: var(--al-text-muted);
}

.single-post-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    border: 1px solid var(--al-border-soft);
    background: transparent;
    color: var(--al-text);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.share-btn:hover {
    background: var(--al-outline-hover-bg);
    border-color: var(--al-outline-border);
}

.share-btn-facebook {
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.25);
}

.share-btn-facebook:hover {
    background: rgba(37, 99, 235, 0.08);
}

.share-btn-x {
    color: #0f172a;
}

.share-btn-whatsapp {
    color: #15803d;
    border-color: rgba(22, 163, 74, 0.25);
}

.share-btn-whatsapp:hover {
    background: rgba(22, 163, 74, 0.08);
}

.share-btn-copy {
    color: var(--al-text);
}

.share-btn-copy.is-copied {
    border-color: rgba(22, 163, 74, 0.4);
    background: rgba(22, 163, 74, 0.08);
}

.single-post-comments {
    margin-top: 2.4rem;
}

.single-post-comments .comment-respond {
    display: none;
}

.single-post-comments.is-open .comment-respond {
    display: block;
}

.single-post-subtitle {
    font-size: 1.1rem;
    margin: 0 0 1rem;
}

.single-post-comments #comments {
    margin-top: 0;
}

.single-post-comments .comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.single-post-comments .comment {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--al-border-soft);
}

.single-post-comments .comment-meta {
    font-size: 0.8rem;
    color: var(--al-text-soft);
}

.single-post-comments .comment-author {
    font-weight: 600;
}

.single-post-comments .comment-content {
    margin-top: 0.4rem;
    font-size: 0.9rem;
}

.single-post-related {
    margin-top: 2.7rem;
}

.single-post-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.single-post-related-item {
    padding: 0.9rem;
}

.single-post-related-thumb {
    display: block;
    border-radius: 0.9rem;
    overflow: hidden;
    margin-bottom: 0.7rem;
}

.single-post-related-thumb img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.single-post-related-thumb-placeholder {
    display: block;
    width: 100%;
    height: 150px;
    border-radius: 0.9rem;
    background: var(--al-card-bg);
    border: 1px solid var(--al-border);
}

.single-post-related-title {
    margin: 0;
    font-size: 0.95rem;
}

.single-post-related-title a {
    color: var(--al-text);
}

.single-post-related-title a:hover {
    color: var(--al-link-hover);
}

.single-post-related-date {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: var(--al-text-soft);
}

/* Suggested posts feed under single post */
.single-post-feed {
    margin-top: 2.4rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.single-post-feed-item {
    padding: 1rem 0.9rem;
}

.single-post-feed-item + .single-post-feed-item {
    border-top: 1px solid var(--al-border-soft);
}

.single-post-feed-inner {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.single-post-feed-thumb {
    display: block;
    flex: 0 0 140px;
    border-radius: 0.9rem;
    overflow: hidden;
}

.single-post-feed-thumb img {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.single-post-feed-thumb-placeholder {
    display: block;
    width: 100%;
    height: 120px;
    border-radius: 0.9rem;
    background: var(--al-card-bg);
    border: 1px solid var(--al-border);
}

.single-post-feed-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.single-post-feed-title {
    margin: 0;
    font-size: 1.18rem;
}

.single-post-feed-title a {
    color: var(--al-text);
}

.single-post-feed-title a:hover {
    color: var(--al-link-hover);
}

.single-post-feed-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    font-size: 0.8rem;
    color: var(--al-text-soft);
}

.single-post-feed-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.single-post-feed-views {
    color: #dc2626;
}

.single-post-feed-comments {
    color: #0d9488;
}

.single-post-feed-actions {
    margin-top: 0.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.85rem;
}

.testimonial-avatar {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    background: linear-gradient(to bottom right, #38bdf8, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.cta-block {
    padding: 2.2rem 1.8rem;
    border-radius: 1.6rem;
    background: var(--al-cta-bg);
    border: 1px solid var(--al-cta-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
}

.cta-block-text h2 {
    margin: 0 0 0.4rem;
    font-size: 1.5rem;
}

.cta-block-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--al-cta-muted);
}

/* ========== Footer ========== */
footer.site-footer {
    border-top: 1px solid var(--al-border-soft);
    color: var(--al-footer-text);
    background: var(--al-footer-bg);
    font-size: 0.875rem;
}

.footer-top {
    padding: 2.5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-brand .footer-logo a {
    display: inline-block;
}

.footer-brand .footer-logo img {
    max-height: 48px;
    width: auto;
}

.footer-site-name {
    margin: 0;
    font-size: 1.15rem;
}

.footer-site-name a {
    color: var(--al-footer-link-hover);
    text-decoration: none;
}

.footer-site-name a:hover {
    color: var(--al-footer-link);
}

.footer-tagline {
    margin: 0;
    font-size: 0.85rem;
    color: var(--al-footer-text);
    line-height: 1.5;
    max-width: 260px;
}

.footer-title {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--al-footer-link-hover);
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li {
    margin-bottom: 0.4rem;
}

.footer-nav-list a {
    color: var(--al-footer-link);
    text-decoration: none;
}

.footer-nav-list a:hover {
    color: var(--al-footer-link-hover);
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    margin-bottom: 0.5rem;
}

.footer-contact-list a {
    color: var(--al-footer-link);
    text-decoration: none;
}

.footer-contact-list a:hover {
    color: var(--al-footer-link-hover);
}

.footer-address {
    color: var(--al-footer-text);
    line-height: 1.5;
}

.footer-empty,
.footer-social-empty {
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.15);
    color: var(--al-footer-link);
    transition: background 0.2s ease, color 0.2s ease;
}

.footer-social-link:hover {
    background: rgba(148, 163, 184, 0.3);
    color: var(--al-footer-link-hover);
}

.footer-bottom {
    padding: 1rem 0;
    border-top: 1px solid var(--al-border-soft);
    font-size: 0.8rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-copyright {
    margin: 0;
    color: var(--al-footer-text);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.footer-nav a {
    color: var(--al-footer-link);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--al-footer-link-hover);
}

@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.6rem;
    }

    .hero {
        padding-top: 3.2rem;
    }

    .site-header-inner {
        gap: 1rem;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .primary-navigation {
        display: none;
    }

    body.nav-open .primary-navigation {
        display: block;
        position: absolute;
        top: 100%;
        inset-inline: 0;
        background: var(--al-bg);
        border-bottom: 1px solid rgba(148, 163, 184, 0.15);
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
    }

    body.nav-open .primary-menu {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 1.2rem 1.1rem;
        gap: 0.7rem;
    }

    .cards-3,
    .why-list,
    .pricing-grid,
    .testimonials-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cta-block {
        align-items: flex-start;
    }

    .blog-layout-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-list-item {
        grid-template-columns: minmax(0, 1fr);
    }

    .single-post-article {
        padding: 1.6rem 1.3rem;
    }

    .single-post-feed-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .single-post-feed-thumb {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .single-post-feed-thumb img,
    .single-post-feed-thumb-placeholder {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .footer-top {
        padding: 1.8rem 0 1.5rem;
    }
}

@media (max-width: 640px) {
    .site-header-inner {
        padding-inline: 0.4rem;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .single-post-inner {
        padding-inline: 0.2rem;
    }

    /* تكبير عناوين الأقسام على الجوال لتملأ عرض البلوك */
    .section-header {
        text-align: center;
        margin-bottom: 2.2rem;
    }

    .section-header .section-kicker {
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 0.45rem 1.2rem;
        font-size: 1rem;
        border-radius: 999px;
    }

    .section-title {
        font-size: 2.4rem;
        line-height: 1.35;
    }

    .section-description {
        font-size: 1rem;
    }

    /* عناوين الكروت (الخدمات، الباقات، البطاقات) على الجوال */
    .card-title,
    .pricing-name,
    .blog-list-title,
    .single-post-feed-title {
        font-size: 1.4rem;
        line-height: 1.4;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .footer-tagline {
        max-width: 100%;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: start;
    }
}

