﻿@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap');
/*@import url('/lib/bootstrap/dist/css/bootstrap.min.css');*/
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');


:root {
    --primary: #c39d63;
    --secondary: #1a1a1a;
    --accent: #b3894e;
    --light: #f8f9fa;
    --dark: #222;
    --text: #ffffff;
    --bg: #fff;
    --gray: #6c757d;
    --Gty: #222222;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Cairo", sans-serif;
}
html, body {
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: var(--secondary);
    color: white;
    padding: 1.2rem 0;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
    width: 100%;
    margin: 0;
}

    header.scrolled {
        padding: 0.8rem 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    display: flex;
    align-items: center;

}

    .logo i {
        margin-right: 10px;
        margin-left: 0;
        color: var(--primary);
    }

    .logo span {
        color: var(--primary);
    }
nav {
    margin-bottom: 10px;
}
nav ul {
    display: flex;
    list-style: none;
}

    nav ul li {
        margin-left: 1.5rem;
        margin-top: 0.8rem;
    }

        nav ul li a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            padding: 0.5rem 0;
            position: relative;
            transition: var(--transition);
        }

            nav ul li a:hover {
                color: var(--primary);
                
            }

            nav ul li a::after {
                content: '';
                position: absolute;
                bottom: 0;
                width: 0;
                height: 2px;
                background-color: var(--primary);
                transition: var(--transition);
            }
html[dir="rtl"] nav ul li a::after {
    right: 0;
}

html[dir="ltr"] nav ul li a::after {
    left: 0;
}
            nav ul li a:hover::after,
            nav ul li a.active::after {
                width: 100%;
            }


.nav-cta {
    background-color: var(--primary);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    transition: var(--transition);
    text-decoration:none;
}


    .nav-cta:hover {
        background-color: var(--accent);
    }


.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.8)), url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 5rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 30px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}


.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.0rem;
    opacity: 0.9;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

    .btn:hover {
        background-color: var(--accent);
        transform: translateY(-3px);
    }

.btn-outline {
    background: transparent;
    border: 2px solid white;
    margin-right: 1rem;
}

    .btn-outline:hover {
        background: white;
        color: var(--secondary);
    }

    .hero .btn {
        margin: 0.5rem;
    }

.video {
    height: 70%;
    width: 70%;
}

/* Section Styles */
section {
    padding: 6rem 0;
    width: 100%;
    overflow-x: hidden;
    background-color:var(--secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

    .section-header h2 {
        font-size: 2.5rem;
        color: var(--text);
        margin-bottom: 1rem;
        position: relative;
        display: inline-block;
    }

        .section-header h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            right: 50%;
            transform: translateX(50%);
            width: 80px;
            height: 3px;
            background-color: var(--primary);
        }

    .section-header p {
        max-width: 600px;
        margin: 1rem auto 0;
        color: var(--gray);
    }

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
 font-size:larger;
}

    .about-text h3 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        color: var(--text);
    }

    .about-text p {
        margin-bottom: 1.5rem;
        color: var(--text);
    }

.about-image {
    flex: 1;
    text-align: center;
}

.profile-img {
    width: 100%;
    max-width: 360px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    /*    background: linear-gradient(135deg, var(--secondary), var(--primary));*/
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
    border-radius: 30px;
}
.custom-profile-img {
    width: 350px;
    height: 350px;
    border-radius: 30px;
}
.signature {
    margin-top: 2rem;
    font-style: italic;
    color: var(--primary);
    font-weight: 500;
}

/* Services Section */
.services {
    background-color: var(--Gty);
    width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

.service-card {
    background-color: var(--secondary);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid var(--primary);
    text-decoration:none;
}

    .service-card:hover {
        transform: translateY(-10px);
    }

        .service-card:hover h3 {
            color: var(--primary);
        }


.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(195, 157, 99, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    font-size: 1.8rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

/* Stats Section */
.stats {
    background: linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.9)), url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    width: 100%;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stats.animated .stat-card {
    opacity: 1;
    transform: translateY(0);
}

.stats.animated .stat-card:nth-child(1) {
    transition-delay: 0.1s;
}

.stats.animated .stat-card:nth-child(2) {
    transition-delay: 0.2s;
}

.stats.animated .stat-card:nth-child(3) {
    transition-delay: 0.3s;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 1.2rem;
    color: white;
}

/* Cases Section */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

.case-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

    .case-card:hover {
        transform: translateY(-5px);
    }

.case-img {
    height: 200px;
    background-color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.case-content {
    padding: 1.5rem;
}

.case-tag {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.case-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text);
}



/* Contact Section */
.contact-content {
    display: flex;
    gap: 3rem;
}

.contact-info {
    flex: 1;
}

    .contact-info h3 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
        color: var(--text);
    }

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;

    flex-shrink: 0;
}

html[dir="rtl"] .contact-info-icon {
    margin-left: 1rem;
}

html[dir="ltr"] .contact-info-icon {
    margin-right: 1rem;
}

.contact-info-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.contact-form {
    flex: 1;
    background-color: var(--Gty);
    padding: 2.5rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: white;
}
html[dir="rtl"] .form-control {
direction:rtl;
}

html[dir="ltr"] .form-control {
    direction: ltr;
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(195, 157, 99, 0.2);
    }

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--Gty);
    color: white;
    padding: 5rem 0 2rem;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    width: 100%;
    padding: 0 30px;
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

    .footer-column h3::after {
        content: '';
        position: absolute;
        bottom: 0;

        width: 50px;
        height: 2px;
        background-color: var(--primary);
    }

html[dir="rtl"] .footer-column h3::after {
    right: 0;
}
html[dir="ltr"] .footer-column h3::after {
    left: 0;
}
.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: 0.8rem;
    }

    .footer-links a {
        color: #e0e0e0;
        text-decoration: none;
        transition: var(--transition);
    }

        .footer-links a:hover {
            color: white;
            padding-right: 5px;
        }

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

    .social-link:hover {
        background-color: var(--primary);
        transform: translateY(-3px);
    }

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #e0e0e0;
}

.HeaderSide {
    display: flex;
    flex-direction:row;
}
/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        gap:1rem;
    }

    .contact-content {
        flex-direction: column;
    }

    .hero {
        min-height: 100vh;
    }

    .hero h1 {
        font-size: 2.0rem;
    }
    
    .services-grid,
    .cases-grid,
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    /* منع السكرول الأفقي */
    body {
        overflow-x: hidden;
    }

    /* زر القائمة */
    .mobile-menu {
        display: block;
    }

    /* إعدادات الـ nav */
    nav {
        position: fixed;
        top: 70px;
 
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background-color: var(--secondary);
        transition: var(--transition);
        padding: 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);

        text-align: right;
    }

    html[dir="rtl"] nav {
        right: -100%;
        left: auto;
    }

    html[dir="ltr"] nav {
        right: auto;
        left: -100%;
    }

    html[dir="rtl"] nav.active {
        right: 0;
    }

    html[dir="ltr"] nav.active {
        left: 0;
    }

        nav ul {
            flex-direction: column;
            align-items: flex-start;
        }

            nav ul li {
                margin: 1rem 0;
            }

    .logo {
        font-size: 1.3rem;
    }


    .header-content {
        flex-direction: row;
        padding: 0 10px;
    }

    .hero {
        min-height: 100vh;
        padding-top: 5rem;
        background-attachment: scroll;
    }

        .hero h1 {
            font-size: 2.2rem;
        }
        
        .hero p {
            font-size: 1rem;
        }

    .btn-outline {
        margin-right: 0;
        margin-bottom: 1rem;
        display: block;
        width: 100%;
    }

    .btn {
        display: block;
        width: 100%;
    }
    
    .services-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .container {
        width: 95%;
        padding: 0 20px;
    }

    .Text-Phone{
        display:none;
    }
    .nav-cta {
        padding: 0.4rem 0.8rem;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 5px;
    }
    
    .logo {
        font-size: 1.0rem;
    }
    
    .hero {
        min-height: 100vh;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .container {
        width: 100%;
        padding: 0 15px;
    }
}

.custom-p {
    direction: ltr;
}

@media (max-width: 378px) {
    .logo {
        font-size: 0.9rem !important;
    }
}
/* ==================== Scroll Animations ==================== */
/* Base animation classes - elements start hidden */
.animate-fade-up, .animate-fade-left, .animate-fade-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-fade-up {
    transform: translateY(50px);
}

.animate-fade-left {
    transform: translateX(50px);
}

.animate-fade-right {
    transform: translateX(-50px);
}

/* When element comes into view */
.animate-fade-up.animate-in,
.animate-fade-left.animate-in,
.animate-fade-right.animate-in {
    opacity: 1;
    transform: translate(0, 0);
}

/* Hero content animation */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-content.animate-in {
    opacity: 1;
    transform: translateY(2rem);
}

.hero-content h1,
.hero-content p,
.hero-content div {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-content h1 {
    animation-delay: 0.3s;
}

.hero-content p {
    animation-delay: 0.5s;
}

.hero-content div {
    animation-delay: 0.7s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service and Case cards hover enhancement */
.service-card,
.case-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.8s ease;
}

.service-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.case-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Contact form inputs animation */
.contact-form .form-group {
    opacity: 0;
    background-color:var(--Gty);
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.contact-form.animate-in .form-group {
    opacity: 1;
    transform: translateY(0);
}

.contact-form.animate-in .form-group:nth-child(1) {
    transition-delay: 0.1s;
}

.contact-form.animate-in .form-group:nth-child(2) {
    transition-delay: 0.2s;
}

.contact-form.animate-in .form-group:nth-child(3) {
    transition-delay: 0.3s;
}

.contact-form.animate-in .form-group:nth-child(4) {
    transition-delay: 0.4s;
}

.contact-form.animate-in .form-group:nth-child(5) {
    transition-delay: 0.5s;
}

.contact-form.animate-in .btn {
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.6s forwards;
}

/* Section headers animation enhancement */
.section-header h2::after {
    width: 0;
    transition: width 0.6s ease 0.3s;
}

.section-header.animate-in h2::after {
    width: 80px;
}

/* Testimonial card special animation */
.testimonial-card {
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.testimonial-card:hover {
    transform: scale(1.02);
}

/* About section text paragraphs stagger */
.about-text p {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-text.animate-in p {
    opacity: 1;
    transform: translateX(0);
}

.about-text.animate-in p:nth-child(1) {
    transition-delay: 0.1s;
}

.about-text.animate-in p:nth-child(2) {
    transition-delay: 0.2s;
}

.about-text.animate-in p:nth-child(3) {
    transition-delay: 0.3s;
}

.about-text.animate-in p:nth-child(4) {
    transition-delay: 0.4s;
}

.about-text.animate-in p:nth-child(5) {
    transition-delay: 0.5s;
}

.about-text.animate-in .signature {
    transition-delay: 0.6s;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.custom-img-content-case {
    width: 385px;
    height: 200px;
}


@media screen and (min-width: 991px) and (max-width: 1250px){

    .logo {
        font-size: 1.1rem;
    }
    nav ul {
        font-size: small;
    }
}


.SendMessageTitle {
    padding-bottom: 20px;
}
.SendMessageBtn {
    width: 100%;
}
/* WhatsApp Float Button - الستايل الأساسي */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;

    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    text-decoration: none;
    cursor: pointer; /* إضافة المؤشر */
}
html[dir="rtl"] .whatsapp-float {
    left: 25px;
}

html[dir="ltr"] .whatsapp-float {
    right: 25px;
}
    .whatsapp-float:hover {
        background-color: #128C7E;
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* زر واتساب مع نص */
.whatsapp-float.with-text {
    width: auto;
    padding: 0 17px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
}

    .whatsapp-float.with-text i {
        font-size: 33px;
    }

/* زر واتساب على اليمين */
.whatsapp-float.right {
    left: auto;
    right: 25px;
}

/* ============================================ */
/* WhatsApp Popup Form - إضافات جديدة */
/* ============================================ */

.whatsapp-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999; /* أعلى من زر الواتساب */
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

    .whatsapp-popup.active {
        display: flex;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* محتوى الـ Popup */
.whatsapp-popup-content {
    background-color: var(--secondary);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* زر الإغلاق */
.whatsapp-popup-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

    .whatsapp-popup-close:hover {
        color: var(--primary);
        background-color: rgba(195, 157, 99, 0.1);
    }

/* عنوان الـ Popup */
.whatsapp-popup-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .whatsapp-popup-header i {
        font-size: 3rem;
        color: #25d366;
        margin-bottom: 1rem;
    }

    .whatsapp-popup-header h3 {
        font-size: 1.8rem;
        color: var(--text);
        margin-bottom: 0.5rem;
    }

    .whatsapp-popup-header p {
        color: var(--gray);
        font-size: 1rem;
    }

/* فورم الـ Popup */
.whatsapp-popup-form .form-group {
    margin-bottom: 1.2rem;
}

.whatsapp-popup-form .form-control {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 1rem;
    background-color: var(--Gty);
    color: var(--text);
    transition: var(--transition);
}

    .whatsapp-popup-form .form-control:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(195, 157, 99, 0.2);
    }

.whatsapp-popup-form textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* زر الإرسال */
.whatsapp-popup-submit {
    width: 100%;
    background-color: #25d366;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .whatsapp-popup-submit:hover {
        background-color: #128C7E;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    }

    .whatsapp-popup-submit i {
        font-size: 1.3rem;
    }

/* ريسبونسف للموبايل */
@media (max-width: 768px) {
    .whatsapp-popup-content {
        padding: 2rem 1.5rem;
        max-width: 95%;
    }

    .whatsapp-popup-header h3 {
        font-size: 1.5rem;
    }

    .whatsapp-popup-header i {
        font-size: 2.5rem;
    }
}



/*cases*/
/* هيدر الصفحة الداخلية */
.page-header {
    background: linear-gradient(rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.8)), url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?q=80&w=2070');
    background-size: cover;
    background-position: center;
    padding: 8rem 0 4rem;
    margin-top: 70px;
    text-align: center;
}

    .page-header h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        color: white;
    }

    .page-header p {
        font-size: 1.2rem;
        color: rgba(255, 255, 255, 0.9);
        max-width: 700px;
        margin: 0 auto;
    }

/* تخطيط الصفحة - محتوى + سايدبار */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    padding: 4rem 0;
}

/* المحتوى الرئيسي */
.main-content {
    background-color: var(--Gty);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

    .main-content h2 {
        font-size: 2rem;
        color: var(--primary);
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid var(--primary);
    }

    .main-content h3 {
        font-size: 1.5rem;
        color: var(--text);
        margin: 2rem 0 1rem;
    }

    .main-content p {
        font-size: 1.1rem;
        line-height: 1.8;
        margin-bottom: 1.5rem;
        color: var(--text);
    }

    .main-content ul {
        margin: 1.5rem 0;
        padding-right: 2rem;
    }

        .main-content ul li {
            margin-bottom: 1rem;
            font-size: 1.1rem;
            line-height: 1.6;
            color: var(--text);
        }

/* صندوق المراجع القانونية */
.resources-box {
    background-color: rgba(195, 157, 99, 0.1);
    padding: 1rem 1rem;
    border-radius: 8px;
    border-right: 4px solid var(--primary);
    margin: 2rem 0;
}

    .resources-box h3 {
        color: var(--primary);
        margin: 0rem 0rem 1.5rem 0rem;
        font-size: 1.5rem;
    }

.resource-item {
    background-color: var(--secondary);
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

    .resource-item:hover {
        transform: translateX(-5px);
        background-color: var(--Gty);
    }

    .resource-item i {
        color: var(--primary);
        font-size: 1.5rem;
    }
html[dir="rtl"] .resource-item i {
    margin-left: 1rem;
}

html[dir="ltr"] .resource-item i {
    margin-right: 1rem;
}

    .resource-item span {
        flex: 1;
        font-size: 1.1rem;
    }

/* السايدبار */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background-color: var(--Gty);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

    .sidebar-card h3 {
        font-size: 1.5rem;
        color: var(--primary);
        margin-bottom: 1.5rem;
        padding-bottom: 0.8rem;
        border-bottom: 2px solid var(--primary);
    }

/* روابط الخدمات في السايدبار */
.service-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.8rem;
    background-color: var(--secondary);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    border-right: 3px solid transparent;
}

    .service-link:hover {
        transform: translateX(-5px);
        border-right-color: var(--primary);
        background-color: rgba(195, 157, 99, 0.1);
    }

    .service-link.active {
        background-color: rgba(195, 157, 99, 0.2);
        border-right-color: var(--primary);
    }

    .service-link i {
        font-size: 1.3rem;
        color: var(--primary);

        width: 30px;
        text-align: center;
    }
html[dir="rtl"] .service-link i {
    margin-left: 1rem;
}

html[dir="ltr"] .service-link i {
    margin-right: 1rem;
}

    .service-link span {
        font-size: 1.05rem;
        font-weight: 500;
    }



/* ريسبونسف للموبايل */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

    @media (max-width: 768px) {
        .page-header {
            padding: 6rem 0 3rem;
        }

            .page-header h1 {
                font-size: 1.8rem;
            }
    }
/* Testimonials Section */
.testimonials {
    background-color: var(--Gty);
}

/* Slider Container */
.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

/* Track */
.testimonial-track {
    display: flex;
    transition: transform 0.6s ease;
    width: 100%;
}

/* Single Card */
.testimonial-card {
    flex: 0 0 100%;
    max-width: 100%;
    background-color: var(--secondary);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    box-sizing: border-box;
}

/* Text */
.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text);
}

/* Author Area */
.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* Image */
.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Author info */
.author-info h4 {
    font-size: 1.2rem;
    color: var(--text);
    margin: 0;
}

.author-info p {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Navigation + Dots */
.slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Buttons */
.slider-btn {
    background-color: var(--primary);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .slider-btn:hover {
        background-color: var(--accent);
        transform: scale(1.1);
    }

    .slider-btn:disabled {
        background-color: var(--gray);
        cursor: not-allowed;
        opacity: 0.5;
    }

/* Dots */
.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gray);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

    .slider-dot.active {
        background-color: var(--primary);
        width: 30px;
        border-radius: 6px;
    }

/* Direction awareness (RTL / LTR) */
html[dir="rtl"] .testimonial-track {
    direction: rtl;
}

html[dir="ltr"] .testimonial-track {
    direction: ltr;
}

/* Ensure icons & author alignment follow direction */
html[dir="rtl"] .testimonial-author {
    flex-direction: row-reverse;
}

html[dir="rtl"] .author-info {
    text-align: right;
}

html[dir="ltr"] .author-info {
    text-align: left;
}

/* Margin correction for image */
html[dir="ltr"] .author-img {
    margin-right: 1rem;
}

html[dir="rtl"] .author-img {
    margin-left: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Text Decoration Reset */
.text-decoration {
    text-decoration: none;
}




/* الزر يروح لنهاية السطر حسب اتجاه الصفحة (RTL/LTR) */
.lang-slot {
    margin-inline-start: auto;
    position:absolute;
    cursor:pointer;
}
@media (min-width: 991px) {
    html[dir="rtl"] .lang-slot {
        left: 1rem;
    }

    html[dir="ltr"] .lang-slot {
        right: 1rem;
    }
}
.lang-slot {
    background: none !important;
}
/* = يمين في LTR، يسار في RTL */
.nav-cta {
    white-space: nowrap;
}
html[dir="rtl"] .contectBtnHead {
    margin-left: 5rem !important;
}

html[dir="ltr"] .contectBtnHead {
    margin-right: 5rem !important;
    direction: rtl;
}
/* موبايل */
@media (max-width: 991px) {
    html[dir="rtl"] .lang-slot {
        right: 1rem !important;
    }

    html[dir="ltr"] .lang-slot {
        left: 1rem !important;
    }
    /* الهيدر مضغوط */
    #header .header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    html[dir="rtl"] .contectBtnHead {
        margin-left: 1rem !important;
    }

    html[dir="ltr"] .contectBtnHead {
        margin-right: 1rem !important;
    }
    .HeaderSide {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .nav-cta {
        padding: .45rem .65rem;
        border-radius: 8px;
        font-size: .9rem;
    }

    /* نص زر الاستشارة يختفي على الموبايل */
    .Text-Phone {
        display: none;
    }

    /* هننقل زر اللغة للـnav بالـJS، فاخفِ النسخة الموجودة في الهيدر لو لسه هناك */
    .lang-in-nav {
        display: none;
    }
    /* كلاس هنشيله/نضيفه بالـJS */
}


.headspan{
    margin: 0 5px;
}