/* ===== المتغيرات العامة ===== */
:root {
    --green-dark: #1B4332;
    --green-olive: #2D6A4F;
    --green-med: #40916C;
    --green-light: #95D5B2;
    --green-pale: #D8F3DC;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --text-dark: #1B1B1B;
    --text-muted: #5C6B63;
    --shadow: 0 4px 20px rgba(27, 67, 50, 0.12);
    --shadow-lg: 0 10px 40px rgba(27, 67, 50, 0.2);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* ===== إعادة الضبط ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.7;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* ===== أزرار الهيدر ===== */
/* ===== أزرار الهيدر ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ===== زر تبديل اللغة — صغير ===== */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 10px;
    background: var(--green-pale);
    color: var(--green-dark);
    border: 1.5px solid var(--green-light);
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.78rem;
    line-height: 1;
    transition: var(--transition);
    height: 32px;
    min-width: 52px;
}

.lang-toggle:hover {
    background: var(--green-olive);
    color: var(--white);
    border-color: var(--green-olive);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
}

.lang-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.lang-text {
    font-weight: 800;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}
/* ===== دعم اللغة الإنجليزية (LTR) ===== */
body.lang-en {
    direction: ltr;
    text-align: left;
}

body.lang-en .nav-list {
    flex-direction: row;
}

body.lang-en .dropdown {
    right: auto;
    left: 0;
}

body.lang-en .slide {
    justify-content: flex-end;
    padding: 0 60px;
}

body.lang-en .slide-content {
    text-align: center;
    margin-right: 0;
    margin-left: auto;
}

body.lang-en .system-block.reverse {
    direction: rtl;
}

body.lang-en .system-block.reverse > * {
    direction: ltr;
}

body.lang-en .support-buttons {
    justify-content: flex-start;
}

/* ===== تجاوب زر اللغة على الجوال ===== */
@media (max-width: 768px) {
    .lang-toggle {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .lang-text {
        display: none; /* إخفاء النص وإظهار الأيقونة فقط */
    }

    .lang-icon {
        font-size: 1.2rem;
    }

    .header-actions {
        gap: 8px;
    }
}
/* ===== الهيدر ===== */
.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--green-dark);
}

.logo img {
    height: 70px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
}

.logo-text {
    color: var(--green-dark);
    letter-spacing: 1px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-list > li > a {
    display: block;
    padding: 10px 16px;
    font-weight: 600;
    color: var(--text-dark);
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
    color: var(--white);
    background: var(--green-olive);
}

.has-dropdown { position: relative; }

.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 260px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-top: 3px solid var(--green-olive);
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.dropdown li a:hover {
    background: var(--green-pale);
    color: var(--green-dark);
    padding-right: 20px;
}

.arrow { font-size: 0.7rem; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--green-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== Hero Slider ===== */

.hero {
    position: relative;
    margin-top: 75px;
    height: calc(100vh - 75px);
    min-height: 550px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}

/* تدرج من اليمين (غامق) إلى اليسار (شفاف) */
.hero-overlay {
    position: absolute;
    inset: 0;
    /* background: linear-gradient( */
        /* to left, */
        /* rgba(27, 67, 50, 0.75) 0%, */
        /* rgba(27, 67, 50, 0.45) 45%, */
        /* rgba(27, 67, 50, 0) 75% */
    /* ); */
    z-index: 1;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;        /* توسيط عمودي */
    justify-content: center;     /* توسيط أفقي */
    padding: 0 60px;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-content {
    text-align: center;
    color: var(--white);
    max-width: 550px;
    margin-left: auto;           
    margin-right: 0;
    padding: 30px 40px;
    animation: fadeUp 1s ease;
}

.slide-content h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.85),
        0 4px 20px rgba(0, 0, 0, 0.6);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--white);
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.85),
        0 0 20px rgba(0, 0, 0, 0.5);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* الأسهم */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.4);
    color: var(--white);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.slider-arrow:hover {
    background: var(--green-olive);
    border-color: var(--green-olive);
}

.slider-arrow.prev { right: 25px; }
.slider-arrow.next { left: 25px; }

/* النقاط */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 5;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.dot.active {
    background: var(--green-light);
    transform: scale(1.2);
    border-color: var(--white);
}

/* ===== تجاوب ===== */
@media (max-width: 992px) {
    .slide-content {
        max-width: 480px;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    .slide {
        padding: 0 25px;
		justify-content: center;
    }

    .slide-content {
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
        padding: 20px;
    }

    .slide-content h1 {
        font-size: 1.7rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .slider-arrow {
        display: none;
    }
}

/* ===== الأقسام العامة ===== */
.section { padding: 90px 0; }

.section-title {
    text-align: center;
    font-size: 2.3rem;
    font-weight: 900;
    color: var(--green-dark);
    margin-bottom: 10px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--green-olive);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== لماذا العقاري ===== */
.features { background: var(--off-white); }

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 70px;
}

.why-card {
    background: linear-gradient(145deg, var(--white), var(--green-pale));
    border: 2px solid var(--green-light);
    border-radius: var(--radius);
    padding: 40px 25px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--green-olive), var(--green-light));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.why-card:hover::before { transform: scaleX(1); }

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-olive);
    background: linear-gradient(145deg, var(--white), #eaf7ee);
}

.why-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: var(--green-pale);
    border-radius: 50%;
    transition: var(--transition);
    border: 3px solid var(--green-light);
}

.why-card:hover .why-icon {
    background: var(--green-olive);
    border-color: var(--green-dark);
    transform: rotate(8deg) scale(1.1);
}

.why-card h3 {
    color: var(--green-dark);
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.why-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.features-extra-title {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

.features-extra-title h3 {
    display: inline-block;
    color: var(--green-dark);
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0 25px;
    position: relative;
}

.features-extra-title h3::before,
.features-extra-title h3::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background: var(--green-olive);
}

.features-extra-title h3::before { right: 100%; }
.features-extra-title h3::after  { left: 100%; }

/* ===== شبكة المميزات الإضافية — 5 بالسطر ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.feature-card {
    background: var(--white);
    padding: 25px 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--green-olive);
    background: linear-gradient(145deg, var(--white), #eaf7ee);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: inline-block;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(-5deg);
}

.feature-card h3 {
    color: var(--green-dark);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.6;
}

/* ===== تجاوب شبكة المميزات ===== */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .feature-card {
        padding: 20px 15px;
    }
    .feature-card h3 {
        font-size: 0.95rem;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== أنظمة العقاري ===== */
.systems { background: var(--white); }

.system-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
    padding: 40px;
    background: var(--off-white);
    border-radius: var(--radius);
    border-right: 5px solid var(--green-olive);
    transition: var(--transition);
}

.system-block:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.system-block.reverse {
    grid-template-columns: 1fr 1fr;
    direction: ltr;
    border-right: none;
    border-left: 5px solid var(--green-olive);
}

.system-block.reverse > * {
    direction: rtl;
}

.system-image {
    background: linear-gradient(135deg, var(--green-pale), var(--green-light));
    border-radius: var(--radius);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 2px dashed var(--green-olive);
}

.system-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    transition: var(--transition);
}

.system-image img:hover {
    transform: scale(1.05);
}

.system-image::after {
    /* content: 'ضع الصورة هنا'; */
    position: absolute;
    color: var(--green-olive);
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 0;
    pointer-events: none;
}

.system-image img:not([src=""]) + ::after,
.system-image img[src]:not([src=""]) ~ ::after {
    display: none;
}

.system-content { padding: 10px; }

.system-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.system-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--green-olive);
    color: var(--white);
    border-radius: 50%;
    font-weight: 900;
    font-size: 1rem;
}

.system-icon-lg {
    font-size: 2.2rem;
    background: var(--green-pale);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    border: 2px solid var(--green-light);
}

.system-header h3 {
    color: var(--green-dark);
    font-size: 1.5rem;
    font-weight: 900;
    flex: 1;
}

.system-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.9;
    text-align: justify;
}

/* ===== التحميل / الدعم ===== */
.download, .support { background: var(--off-white); }

.support {
    background: linear-gradient(135deg, var(--green-dark), var(--green-olive));
}

.support .section-title,
.support .section-subtitle {
    color: var(--white);
}

.support .section-title::after {
    background: var(--green-light);
}

.download-box {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===== الأزرار ===== */
.btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: inherit;
}

.btn-primary {
    background: var(--green-olive);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(45, 106, 79, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--green-dark);
    border-color: var(--green-olive);
}

.support .btn-outline {
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--green-olive);
    color: var(--white);
    transform: translateY(-3px);
}

/* ===== التعليم ===== */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.edu-card {
    background: var(--green-pale);
    padding: 40px 20px;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 700;
    color: var(--green-dark);
    font-size: 1.1rem;
    transition: var(--transition);
    cursor: pointer;
}

.edu-card:hover {
    background: var(--green-olive);
    color: var(--white);
    transform: translateY(-5px);
}

/* ===== اتصل بنا ===== */
.contact { background: var(--off-white); }

.contact-form {
    max-width: 650px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid var(--green-pale);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    background: var(--white);
    transition: var(--transition);
    color: var(--text-dark);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--green-olive);
    box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.1);
}

.contact-form button {
    justify-self: center;
    min-width: 220px;
}

/* ===== الفوتر ===== */
.footer {
    background: var(--green-dark);
    color: var(--white);
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3 {
    color: var(--green-light);
    margin-bottom: 18px;
    font-size: 1.2rem;
}

.footer-col p,
.footer-col li {
    color: rgba(255,255,255,0.8);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-col a { transition: var(--transition); }

.footer-col a:hover {
    color: var(--green-light);
    padding-right: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* ===== الاستجابة للجوال ===== */
@media (max-width: 992px) {
    .slide-content h1 { font-size: 2.2rem; }
    .slide-content p { font-size: 1.1rem; }

    .system-block,
    .system-block.reverse {
        grid-template-columns: 1fr;
        direction: rtl;
        border-right: 5px solid var(--green-olive);
        border-left: none;
        padding: 25px;
        gap: 25px;
    }

    .system-header h3 { font-size: 1.3rem; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .nav {
        position: fixed;
        top: 75px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 75px);
        background: var(--white);
        box-shadow: var(--shadow-lg);
        transition: right 0.4s ease;
        overflow-y: auto;
        padding: 20px;
    }

    .nav.open { right: 0; }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }

    .nav-list > li > a { padding: 14px; }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        border-right: 3px solid var(--green-olive);
        padding: 5px 10px;
        display: none;
    }

    .has-dropdown.open .dropdown { display: block; }

    .slide-content h1 { font-size: 1.7rem; }
    .slide-content p { font-size: 1rem; }
    .section { padding: 60px 0; }
    .section-title { font-size: 1.7rem; }
    .slider-arrow { display: none; }

    .system-block { padding: 20px; margin-bottom: 40px; }
    .system-header h3 { font-size: 1.15rem; }
    .system-content p { font-size: 0.95rem; }
    .system-image { min-height: 220px; }
    .features-extra-title h3::before,
    .features-extra-title h3::after { display: none; }
}

/* ===== قسم الوكلاء والموزعون ===== */
.agents {
    background: var(--off-white);
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.agent-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 5px solid var(--green-olive);
    position: relative;
    overflow: hidden;
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--green-dark), var(--green-light));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.agent-card:hover::before {
    transform: scaleX(1);
}

.agent-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.agent-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--green-pale);
}

.agent-flag {
    font-size: 2.2rem;
    line-height: 1;
    background: var(--green-pale);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--green-light);
    flex-shrink: 0;
}

.agent-header h3 {
    color: var(--green-dark);
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.4;
}

.agent-company {
    color: var(--green-olive);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 18px;
    padding: 10px 14px;
    background: var(--green-pale);
    border-radius: 8px;
    border-right: 3px solid var(--green-olive);
    text-align: center;
}

.agent-info {
    margin-bottom: 15px;
}

.agent-info:last-child {
    margin-bottom: 0;
}

.agent-info h4 {
    color: var(--green-dark);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.agent-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}

.agent-info li {
    color: var(--text-dark);
    font-size: 0.9rem;
    padding: 6px 10px;
    background: var(--off-white);
    border-radius: 6px;
    transition: var(--transition);
}

.agent-info li:hover {
    background: var(--green-pale);
}

.agent-info li a {
    color: var(--green-olive);
    font-weight: 600;
    transition: var(--transition);
    word-break: break-all;
}

.agent-info li a:hover {
    color: var(--green-dark);
}

.agent-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    padding: 8px 12px;
    background: var(--off-white);
    border-radius: 6px;
    border-right: 3px solid var(--green-light);
}

/* ===== تجاوب قسم الوكلاء ===== */
@media (max-width: 992px) {
    .agents-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .agents-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .agent-card {
        padding: 22px;
    }

    .agent-flag {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }

    .agent-header h3 {
        font-size: 1.05rem;
    }

    .agent-company {
        font-size: 0.95rem;
    }
}

/* ===== قسم الدعم الفني ===== */
.support {
    background: linear-gradient(135deg, var(--green-dark), var(--green-olive));
}

.support .section-title {
    color: var(--white);
}

.support .section-title::after {
    background: var(--green-light);
}

.support .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.support-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 45px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* ===== الصورة داخل إطار ===== */
.support-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    padding: 12px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
    border: 3px solid var(--green-light);
    transition: var(--transition);
}

.support-image:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
    border-color: var(--green-olive);
}

.support-image img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: var(--transition);
    background: linear-gradient(135deg, var(--green-pale), var(--green-light));
}

.support-image:hover img {
    transform: scale(1.03);
}

/* ===== المحتوى ===== */
.support-content h3 {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.support-content > p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* ===== بطاقات الاتصال ===== */
.support-contact {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    transition: var(--transition);
    border-right: 4px solid var(--green-light);
}

.support-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(-5px);
    border-right-color: var(--white);
}

.support-item-icon {
    font-size: 1.8rem;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.support-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.support-label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 600;
}

.support-item-info a {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-decoration: none;
}

.support-item-info a:hover {
    color: var(--green-light);
}

/* ===== بطاقة واتساب المميزة ===== */
.support-item-whatsapp {
    border-right-color: #25D366;
}

.support-item-whatsapp .support-item-icon {
    background: #25D366;
    color: var(--white);
}

.support-item-whatsapp:hover {
    background: rgba(37, 211, 102, 0.15);
    border-right-color: #25D366;
}

.support-item-whatsapp .support-item-info a:hover {
    color: #25D366;
}

/* ===== أزرار الدعم ===== */
.support-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    border-color: #25D366;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    background: #1EBE5A;
    border-color: #1EBE5A;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.support .btn-outline {
    color: var(--white);
    border-color: var(--white);
}

.support .btn-outline:hover {
    background: var(--white);
    color: var(--green-dark);
}

/* ===== تجاوب قسم الدعم ===== */
@media (max-width: 992px) {
    .support-wrapper {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 30px;
    }

    .support-image img {
        min-height: 260px;
    }

    .support-content h3 {
        font-size: 1.5rem;
    }

    .support-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .support-wrapper {
        padding: 22px;
    }

    .support-content h3 {
        font-size: 1.3rem;
    }

    .support-item {
        padding: 12px 15px;
        gap: 12px;
    }

    .support-item-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .support-item-info a {
        font-size: 1rem;
    }

    .support-buttons {
        flex-direction: column;
    }

    .support-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== قسم العقاري بالأرقام ===== */
.stats {
    background: linear-gradient(135deg, var(--green-dark), var(--green-olive));
    position: relative;
    overflow: hidden;
    padding: 45px 0; /* بدلاً من 90px الافتراضية */
}

.stats::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(149, 213, 178, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.stats::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(149, 213, 178, 0.1), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.stats .section-title {
    color: var(--white);
    position: relative;
    z-index: 2;
    font-size: 1.8rem; /* تصغير العنوان من 2.3rem */
    margin-bottom: 5px;
}

.stats .section-title::after {
    background: var(--green-light);
    width: 60px; /* تصغير الخط السفلي */
    height: 3px;
    margin-top: 10px;
}

.stats .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
    font-size: 0.95rem; /* تصغير الوصف */
    margin-bottom: 30px; /* تقليل المسافة قبل الشبكة */
}

/* ===== الشبكة: 3 مربعات في السطر ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; /* تقليل الفراغ بين المربعات */
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 25px 20px; /* تقليل الحشو الداخلي */
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--green-light), var(--white));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-6px); /* تقليل حركة الرفع */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border-color: var(--green-light);
}

.stat-icon {
    font-size: 2.2rem; /* تصغير الأيقونة من 3.5rem */
    margin-bottom: 10px; /* تقليل المسافة تحت الأيقونة */
    display: inline-block;
    transition: var(--transition);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.stat-card:hover .stat-icon {
    transform: scale(1.15) rotate(-8deg);
}

.stat-number {
    font-size: 2.4rem; /* تصغير الرقم من 3.5rem */
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    direction: ltr;
    min-height: 50px; /* تقليل الارتفاع الأدنى */
}

.stat-prefix {
    color: var(--green-light);
    font-size: 1.9rem; /* تصغير علامة + */
    font-weight: 900;
}

.stat-label {
    color: var(--green-light);
    font-size: 0.95rem; /* تصغير العنوان الفرعي */
    font-weight: 700;
    margin-bottom: 6px;
}

.stat-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem; /* تصغير الوصف */
    line-height: 1.5;
    margin: 0;
}

/* ===== تجاوب قسم الأرقام ===== */
@media (max-width: 992px) {
    .stats {
        padding: 35px 0;
    }

    .stats-grid {
        gap: 15px;
    }

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

    .stat-number {
        font-size: 2rem;
        min-height: 45px;
    }

    .stat-prefix {
        font-size: 1.6rem;
    }

    .stat-icon {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .stats {
        padding: 30px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 400px;
    }

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

    .stat-number {
        font-size: 2.2rem;
        min-height: 40px;
    }

    .stat-icon {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 0.95rem;
    }

    .stats .section-title {
        font-size: 1.5rem;
    }

    .stats .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
}