/* ============================================= 
   Base Styles & Variables 
   ============================================= */

:root {
    --primary: #2980b9;
    --secondary: #27ae60;
    --accent: #e74c3c;
    --dark: #2c3e50;
    --light: #f5f7fa;
    --gray: #7f8c8d;
    --section-bg: #ffffff;
    --section-alt: #f1f5f9;
}

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

body {
    font-family: 'Tajawal', Arial, sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================= 
   Header & Navigation 
   ============================================= */

.header {
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-bottom: 2px solid var(--primary);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    position: relative;
    flex-wrap: wrap;
    overflow: hidden;
}

/* Logo Styles */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 220px;
    flex-shrink: 0;
}

.logo-icon {
    background-color: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    width: 180px;
}

.logo {
    color: var(--dark);
    font-weight: 800;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo.english-logo {
    font-size: 1.1 rem;
}

.logo.arabic-logo {
    font-size: 1.5rem;
}

.logo-tagline {
    color: #2980b9;
    font-size: 0.90rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html[dir="ltr"] .logo-tagline {
    text-align: left;
}
html[dir="rtl"] .logo-tagline {
    text-align: right;
}

/* Contact Bar */
.contact-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

html[dir="ltr"] .contact-bar {
    justify-content: flex-end;
}
html[dir="rtl"] .contact-bar {
    justify-content: flex-start;
}

.contact-items {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-item i.fa-clock,
.mobile-emergency-text i.fa-clock {
    font-size: 0.9rem;
    width: auto;
margin-bottom: 0;
}

.contact-icon {
    color: var(--primary);
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-link {
    color: var(--primary);
    background: rgba(41, 128, 185, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.phone-badge {
    background-color: var(--primary);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.phone-badge:hover {
    background-color: #2472a4;
    transform: translateY(-2px);
}

.desktop-phone-numbers {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobile Emergency Text */
.mobile-emergency-text {
    display: none;
    align-items: center;
    gap: 5px;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
    flex: 1;
}

html[dir="ltr"] .mobile-emergency-text {
    margin-left: 15px;
    justify-content: flex-end;
}
html[dir="rtl"] .mobile-emergency-text {
    margin-right: 15px;
    justify-content: flex-start;
}

/* Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--dark);
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 1001;
    padding: 10px 15px;
    margin: -10px -15px;
}

.main-nav {
    display: flex;
    list-style: none;
}

html[dir="ltr"] .main-nav {
    margin-right: 15px;
}
html[dir="rtl"] .main-nav {
    margin-left: 15px;
}

.main-nav li {
    margin-left: 15px;
    position: relative;
}

html[dir="rtl"] .main-nav li {
    margin-left: 0;
    margin-right: 15px;
}

.main-nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s;
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav a:after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s;
}

html[dir="ltr"] .main-nav a:after {
    right: 0;
}
html[dir="rtl"] .main-nav a:after {
    left: 0;
}

.main-nav a:hover:after {
    width: 100%;
}

/* Mobile Contact Bar */
.mobile-contact-bar {
    display: none;
    background: var(--primary);
    padding: 8px 0;
    text-align: center;
}

.mobile-contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mobile-phone-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.mobile-phone-link {
    color: white;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px;
    background-color: var(--accent);
    border-radius: 30px;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
    font-size: 0.85rem;
    text-align: center;
    white-space: nowrap;
}

.mobile-social-links {
    display: flex;
    gap: 8px;
}

.mobile-social-link {
    color: white;
    background: rgba(255,255,255,0.2);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* ============================================= 
   Hero Section 
   ============================================= */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #3498db 100%);
    padding: 50px 0 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    //max-height: 350px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    object-fit: contain;
}

.hero-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
    max-width: 500px;
}

.hero-phones {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hero-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background-color: rgba(255,255,255,0.2);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.hero-phone-btn:hover {
    background-color: var(--accent);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.feature-icon {
    color: var(--secondary);
}

.cta-buttons {
    display: block;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cta-primary {
    background-color: var(--secondary);
    color: white;
}

.cta-primary:hover {
    background-color: #219955;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
}

.cta-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cta-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

/* ============================================= 
   Section Styling 
   ============================================= */

.section {
    padding: 60px 0;
    position: relative;
}

.section-alt {
    background-color: var(--section-alt);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 40px;
    position: relative;
}

.section-title:after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary), var(--primary));
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    //max-width: 700px;
    //margin: 0 auto 30px;
    font-size: 1rem;
	color:#494F55;
	 margin-bottom:10px;
}

/* ============================================= 
   Services Section 
   ============================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--section-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border-radius:10px;
    //border: 5px solid var(--primary);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--secondary);
}

.service-img {
    height: 180px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--primary);
    position: relative;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 20px;
}

.service-title {
    color: var(--dark);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-desc {
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.service-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}
/* ============================================= 
   Services List Widget 
   ============================================= */

.services-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.services-list li {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s;
    background-color: var(--light);
}

.services-list li:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.2);
}

.services-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s;
}

.services-list li:hover a {
    color: white;
}

.services-list i {
    color: var(--primary);
    font-size: 1rem;
    width: 20px;
    text-align: center;
    transition: all 0.3s;
}

.services-list li:hover i {
    color: white;
    transform: scale(1.2);
}

/* Animation for hover effect */
.services-list li:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    opacity: 0;
    transition: all 0.3s;
    z-index: -1;
}

.services-list li:hover:after {
    opacity: 1;
}
/* ============================================= 
   Features Section 
   ============================================= */

.features-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.feature-box {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    background: var(--section-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s;
    text-align: center;
    border-bottom: 4px solid transparent;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom-color: var(--primary);
}

.feature-box-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature-box-title {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 12px;
}

.feature-box-text {
    color: var(--gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============================================= 
   Testimonials 
   ============================================= */

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background: var(--section-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin: 15px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.testimonial-text {
    font-style: italic;
    color: var(--dark);
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 1rem;
    position: relative;
}

.testimonial-text:before,
.testimonial-text:after {
    color: rgba(41, 128, 185, 0.1);
    font-size: 3rem;
    font-family: Georgia, serif;
    line-height: 1;
    position: absolute;
}

.testimonial-text:before {
    content: "\201C";
    top: -10px;
    right: 10px;
}

.testimonial-text:after {
    content: "\201D";
    bottom: -40px;
    left: 10px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 25px;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.1rem;
}

.author-position {
    color: var(--gray);
    font-size: 0.85rem;
}

.rating {
    color: #f1c40f;
    font-size: 0.9rem;
    margin-top: 8px;
}

       /* Slider Container */
.testimonials-slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Slider Wrapper (slides track) */
.testimonials-slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* Individual Testimonial Card */
.testimonial-card {
    flex: 0 0 100%;
    background: var(--section-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin: 0; /* Removed extra margin to avoid overflow */
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Testimonial Text */
.testimonial-text {
    font-style: italic;
    color: var(--dark);
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 1rem;
    position: relative;
}

.testimonial-text:before,
.testimonial-text:after {
    color: rgba(41, 128, 185, 0.1);
    font-size: 3rem;
    font-family: Georgia, serif;
    line-height: 1;
    position: absolute;
}

.testimonial-text:before {
    content: "\201C";
    top: -10px;
    right: 10px;
}

.testimonial-text:after {
    content: "\201D";
    bottom: -40px;
    left: 10px;
}

/* Author Info */
.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 25px;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.1rem;
}

.author-position {
    color: var(--gray);
    font-size: 0.85rem;
}

.rating {
    color: #f1c40f;
    font-size: 0.9rem;
    margin-top: 8px;
}

/* Slider Controls */
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 15px;
}

.slider-prev, .slider-next {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.slider-prev:hover, .slider-next:hover {
    background: var(--secondary);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-dot.active {
    background: var(--primary);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 20px;
    }
    .testimonial-text {
        font-size: 0.95rem;
    }
    .author-avatar {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        padding: 15px;
    }
    .testimonial-text {
        font-size: 0.9rem;
    }
}

/* ============================================= 
   Areas Section 
   ============================================= */

#areas .areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.area-card {
    background: var(--section-bg);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    text-align: center;
    font-weight: 500;
    border: 1px solid rgba(0,0,0,0.05);
    font-size: 0.95rem;
}

.area-card:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.3);
    border-color: transparent;
}

/* Responsive improvements */
#areas .areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* More cards per row */
    gap: 10px; /* Reduced gap */
    max-width: 100%; /* Full width */
    margin: 0 auto;
    padding: 0 10px; /* Side padding */
}

@media (max-width: 768px) {
    #areas .areas-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Even more compact */
        gap: 8px; /* Tighter spacing */
    }
    
    .area-card {
        padding: 8px 6px; /* Reduced padding */
        font-size: 0.85rem; /* Slightly smaller text */
    }
}

@media (max-width: 480px) {
    #areas .areas-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Very compact */
        gap: 6px; /* Minimal gap */
    }
    
    .area-card {
        padding: 6px 4px; /* Minimal padding */
        font-size: 0.8rem; /* Smaller text */
        border-radius: 6px; /* Slightly rounded */
    }
}

/* Optional: Add line clamping for multi-line text */
.area-card {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px; /* Ensure consistent height */
}
/* ============================================= 
   Team Section 
   ============================================= */

.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}
.team-container .social-link {
   float: right;
}
.team-member {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background: var(--section-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s;
    display: flex;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.team-photo {
    width: 150px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    flex: 1;
    padding: 20px;
}

.team-name {
    color: var(--dark);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.team-position {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.team-bio {
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 0.9rem;
}

.team-stats {
    display: flex;
    gap: 15px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 700;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray);
}
/* Sidebar Team List - Name and Position on Same Line */
.sidebar-team-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-team-item {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.sidebar-team-item:hover {
    background: #e9ecef;
}

.sidebar-team-link {
    text-decoration: none;
    color: #333;
    display: block;
}

.sidebar-team-name {
    display: block;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 5px;
    font-size: 16px;
}

.sidebar-team-position {
    display: block;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.sidebar-team-name {
    font-weight: 600;
    color: #007bff;
    flex: 1;
}

.sidebar-team-position {
    font-size: 13px;
    color: #666;
    text-align: right;
    margin-left: 10px;
    font-style: italic;
}

/* RTL support for Arabic */
.rtl .team-name-position {
    flex-direction: row-reverse;
}

.rtl .sidebar-team-position {
    text-align: left;
    margin-left: 0;
    margin-right: 10px;
}

/* Responsive Design for Sidebar */
@media (max-width: 992px) {
    .team-name-position {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sidebar-team-position {
        text-align: left;
        margin-left: 0;
        margin-top: 3px;
    }
    
    .rtl .team-name-position {
        flex-direction: column;
        align-items: flex-end;
    }
    
    .rtl .sidebar-team-position {
        text-align: right;
        margin-right: 0;
    }
}
/* ============================================= 
   Stats Section 
   ============================================= */

.stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.stat-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--section-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    border: 5px solid var(--light);
}

.stat-circle:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(41, 128, 185, 0.1) 0%, rgba(39, 174, 96, 0.1) 100%);
}

.circle-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.circle-text {
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* ============================================= 
   Call to Action 
   ============================================= */

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #3498db 100%);
    padding: 60px 0;
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* ============================================= 
   Footer 
   ============================================= */

.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 25px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo-icon {
    background-color: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.footer-logo-text {
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-about {
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
}

.footer-links {
    list-style: none;
    color:#fff;
}

.footer-links li {
   // margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    padding: 5px 0;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: white;
    transform: translateX(-5px);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-contact-icon {
    color: var(--secondary);
    font-size: 1rem;
    width: 25px;
    text-align: center;
}

.footer-contact-text {
    color: #fff;
    font-size: 0.95rem;
}
.footer-contact-item a {
    color: #fff;
}
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social-link {
    color: white;
    background: rgba(255,255,255,0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 1rem;
}

.footer-social-link:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

/* ============================================= 
   Floating Buttons 
   ============================================= */

.floating-buttons {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.floating-btn.whatsapp {
    background: #25D366;
}

.floating-btn.phone {
    background: var(--primary);
    animation: pulse 2s infinite;
}

.floating-btn.flag {
    background: #ffffff;
    color: #000;
    font-size: 2.2rem;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: relative;
}

.floating-btn.flag span {
    position: absolute;
    line-height: 1;
    display: block;
    width: 100%;
    text-align: center;
    margin-top: -2px;
    font-size: 1em;
}

.floating-btn.flag:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    //background: #f1f3f5;
}

html[lang="ar"] .floating-btn.flag {
    background: #006c35;
    color: white;
    border-color: #1a4728;
    font-size: 2.4rem;
}

html[lang="en"] .floating-btn.flag {
    background: #245C36;
    font-size: 2.2rem;
}

.floating-btn:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(41, 128, 185, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(41, 128, 185, 0); }
    100% { box-shadow: 0 0 0 0 rgba(41, 128, 185, 0); }
}

/* ============================================= 
   Blog Section 
   ============================================= */

.blog-section {
    padding: 60px 0;
    background-color: var(--section-bg);
}

.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.blog-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.blog-date {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-content {
    padding: 20px;
}

.blog-title {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.read-more,
.view-all-btn {
    display: inline-block;
    padding: 5px 12px; /* Adjusted padding for a smaller size */
    margin-top: 10px;
    font-size: 14px; /* Optional: Make font smaller */
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.read-more {
    background-color: var(--primary);
    color: var(--light);
    border: 2px solid var(--primary);
}

.read-more:hover {
    background-color: transparent;
    color: var(--primary);
}

.view-all-btn {
    background-color: var(--secondary);
    color: var(--light);
    border: 2px solid var(--secondary);
}

.view-all-btn:hover {
    background-color: transparent;
    color: var(--secondary);
}

.blog-section .section-title {
    margin-bottom: 40px;
}

/* Fix for English blog section alignment */
html[dir="ltr"] .blog-content,
html[dir="ltr"] .blog-title,
html[dir="ltr"] .blog-excerpt,
html[dir="ltr"] .read-more {
    text-align: left;
    direction: ltr;
}

/* Ensure blog cards in English version are properly aligned */
html[dir="ltr"] .blog-card {
    direction: ltr;
    text-align: left;
}

/* Fix for blog card content alignment in English */
html[dir="ltr"] .blog-content {
    padding: 20px;
    text-align: left;
}

/* Blog date alignment fix for English */
html[dir="ltr"] .blog-date {
    right: auto;
    left: 10px;
}

/* Read more button alignment */
html[dir="ltr"] .read-more {
    display: inline-block;
    margin-top: 15px;
    text-align: left;
}

/* Blog section title alignment for English */
html[dir="ltr"] .blog-section .section-title {
    text-align: center;
}

/* Blog container alignment */
html[dir="ltr"] .blog-container {
    direction: ltr;
    text-align: left;
}

/* Ensure all text elements in blog cards are left-aligned */
html[dir="ltr"] .blog-card * {
    text-align: left;
}

/* Fix for the "View All" button */
html[dir="ltr"] .view-all-btn {
    display: block;
    text-align: center;
    margin: 30px auto 0;
    max-width: 200px;
}

/* ============================================= 
   About Page Styles 
   ============================================= */

.about-content {
    line-height: 1.7;
}

.about-content h2 {
    color: var(--primary);
    margin: 30px 0 15px;
    font-size: 1.4rem;
}

.about-image img {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    width: 100%;
    border-radius: 10px;
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
    margin: 20px 0;
}

.feature-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list i {
    color: var(--secondary);
}

/* ============================================= 
   Contact Page Styles 
   ============================================= */

.contact-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

/* English version - address left, map right */
html[dir="ltr"] .contact-grid {
    grid-template-columns: 1fr 2fr; /* address first, map second */
    direction: ltr;
}

/* Arabic version - address right, map left (current RTL layout) */
html[dir="rtl"] .contact-grid {
    grid-template-columns: 2fr 1fr; /* map first, address second */
    direction: rtl;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: fit-content;
}

/* English text alignment */
html[dir="ltr"] .contact-card {
    text-align: left;
    order: 1; /* ensures address card comes first */
}

html[dir="ltr"] .map-container {
    order: 2; /* ensures map comes second */
}

/* Arabic text alignment (existing RTL) */
html[dir="rtl"] .contact-card {
    text-align: right;
    order: 2; /* address card comes second */
}

html[dir="rtl"] .map-container {
    order: 1; /* map comes first */
}

/* Common styles */
.contact-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.contact-card h2 {
    color: var(--dark);
    margin-bottom: 15px;
}

address {
    font-style: normal;
    line-height: 1.6;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
/* ============================================= 
   Service Detail Page Styles 
   ============================================= */
/* Fix for English service section alignment */
html[dir="ltr"] .services-grid .service-title,
html[dir="ltr"] .services-grid .blog-excerpt,
html[dir="ltr"] .services-grid .service-excerpt,
html[dir="ltr"] .services-grid .service-desc {
    text-align: left;
}

html[dir="ltr"] .services-grid .service-price {
    justify-content: flex-start;
}
.service-detail-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

.service-feature-img {
    height: 250px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 25px;
    overflow: hidden;
}

.service-feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content h2 {
    color: var(--primary);
    margin: 25px 0 15px;
    font-size: 1.5rem;
}

.service-sidebar {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.sidebar-widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-widget h3 {
    color: var(--dark);
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-widget h3 i {
    color: var(--primary);
}

/* Phone number inside sidebar */
.sidebar-widget .phone-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0073e6; /* Button color */
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 25px; /* Rounded pill shape */
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.sidebar-widget .phone-badge i {
    margin-right: 6px;
    font-size: 1rem;
}

/* Hover effect */
.sidebar-widget .phone-badge:hover {
    background-color: #005bb5;
    color: #fff;
}
/* Make phone number clickable on mobile */
.sidebar-widget .phone-badge a {
    color: #fff;
    text-decoration: none;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.contact-option:last-child {
    border-bottom: none;
}

.contact-option i {
    width: 30px;
    height: 30px;
    background: rgba(41, 128, 185, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
/* ============================================= 
   Search Form 
   ============================================= */

.search-form {
    position: relative;
    margin-top: 15px;
}

.search-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
}

.search-form .search-field {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 30px;
    font-size: 0.95rem;
    transition: all 0.3s;
    background-color: var(--light);
    color: var(--dark);
}

html[dir="rtl"] .search-form .search-field {
    padding: 12px 15px 12px 50px;
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.1);
}

.search-form .search-submit {
    position: absolute;
    top: 0;
    right: 0;
    width: 46px;
    height: 46px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: all 0.3s;
}

html[dir="rtl"] .search-form .search-submit {
    right: auto;
    left: 0;
    border-radius: 30px 0 0 30px;
}

.search-form .search-submit:hover {
    background: var(--secondary);
}

.search-form .search-submit i {
    font-size: 1rem;
}

/* ============================================= 
   Recent Posts Widget 
   ============================================= */

.recent-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-posts-list li {
    padding: 12px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.recent-posts-list li:last-child {
    border-bottom: none;
}

.recent-posts-list a {
    color: var(--dark);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    margin-bottom: 5px;
    line-height: 1.4;
}

.recent-posts-list a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

html[dir="rtl"] .recent-posts-list a:hover {
    transform: translateX(-3px);
}

.post-date {
    font-size: 0.8rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-date i {
    font-size: 0.7rem;
    color: var(--primary);
}

/* ============================================= 
   Categories Widget 
   ============================================= */

.categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.categories-list li {
    padding: 10px 15px;
    background-color: var(--light);
    border-radius: 8px;
    transition: all 0.3s;
}

.categories-list li:hover {
    background-color: var(--primary);
}

.categories-list li:hover a,
.categories-list li:hover span {
    color: white;
}

.categories-list a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.categories-list span {
    color: var(--gray);
    font-size: 0.8rem;
    background: rgba(0,0,0,0.05);
    padding: 3px 8px;
    border-radius: 10px;
    transition: all 0.3s;
}

/* ============================================= 
   Tag Cloud Widget 
   ============================================= */

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag-cloud a {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--light);
    color: var(--dark);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 20px;
    transition: all 0.3s;
}

.tag-cloud a:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(41, 128, 185, 0.2);
}
/* ============================================= 
   Breadcrumbs 
   ============================================= */

.breadcrumbs {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* ============================================= 
   Pagination 
   ============================================= */

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.page-numbers.current {
    background: var(--primary);
    color: white;
}

.page-numbers:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

.next-page {
    padding: 0 15px;
    border-radius: 20px;
    width: auto;
}

/* ============================================= 
   Responsive Styles 
   ============================================= */

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        gap: 25px;
    }
    
    .hero-image {
        order: -1;
        width:280px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-features {
        justify-content: center;
        gap: 12px;
    }
    
    .feature-item {
        flex: 1;
        min-width: 200px;
        justify-content: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .contact-bar {
        display: none;
    }
    
    .mobile-emergency-text {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        height: auto;
        background: white;
        flex-direction: column;
        padding: 20px;
        margin-top: 60px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    
    .main-nav.active {
        display: flex;
        transform: translateX(0);
    }
    
    .main-nav li {
        margin: 15px 0;
        margin-left: 0;
    }
    
    .mobile-contact-bar {
        display: block;
    }
    
    .hero-phones {
        justify-content: center;
    }
    
    .team-member {
        flex-direction: column;
        max-width: 350px;
    }
    
    .team-photo {
        width: 100%;
        height: 180px;
    }
    
    .language-switcher {
        margin-left: 0;
        margin-right: auto;
        order: -1;
    }
    
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
    
    .floating-buttons {
        right: 15px;
    }
    
    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .service-detail-container {
        grid-template-columns: 1fr;
    }
    
    .service-sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 20px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-image img {
        max-height: 150px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-text {
        font-size: 1rem;
    }
    
    .service-card, .feature-box {
        min-width: 100%;
    }
    
    .blog-container {
        grid-template-columns: 1fr;
    }
    
    .blog-image {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 8px 0;
        gap: 10px;
    }
    
    .logo-wrapper {
        width: 180px;
    }
    
    .logo-text {
        width: 120px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo.arabic-logo {
        font-size: 1.2rem;
    }
    
    .logo-tagline {
        font-size: 0.8rem;
    }
    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .mobile-emergency-text {
        font-size: 0.70rem;
        margin-right: 0 !important;
    }
    
    .mobile-contact-info {
        gap: 8px;
        font-size: 0.9rem;
    }
    
    .contact-item {
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .mobile-contact-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .mobile-phone-links {
        width: 100%;
        justify-content: center;
        padding: 0 10px;
    }
    
    .mobile-phone-link {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .mobile-social-links {
        width: 100%;
        justify-content: center;
    }
    
    .main-nav {
        width: 70%;
    }
    
    .floating-buttons {
        right: 10px;
    }
    
    .floating-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ============================================= 
   Additional Styles from HTML Files
   ============================================= */

/* About Page Styles */
.about-content h2 {
    color: var(--primary);
    margin: 30px 0 15px;
}

/* Blog Page Styles */
.blog-container {
    direction: rtl;
}

/* Contact Page Styles */
.contact-grid {
    direction: rtl;
    text-align: right;
}

/* Section Title Alignment */
.section-title[style*="text-align: right"],
.section-subtitle[style*="text-align: right"] {
    text-align: right !important;
}

/* List Styles */
ul[style*="list-style: none"] {
    list-style: none;
    padding-right: 0;
}

ul[style*="list-style: none"] li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: row-reverse;
}

ul[style*="list-style: none"] li i {
    color: var(--secondary);
}

/* CTA Button Container */
.cta-buttons[style*="margin-top:40px"] {
    margin-top: 40px;
    text-align: center;
}

/* Container Max Width */
.container[style*="max-width: 800px"] {
    max-width: 800px;
}

/* About Image */
.about-image img {
    width: 100%;
    border-radius: 10px;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 20px;
}

/* Blog Card Content */
.blog-content {
    text-align: right;
}

/* Blog Card Title */
.blog-title {
    text-align: right;
}

/* Blog Card Excerpt */
.blog-excerpt {
    text-align: right;
}

/* Read More Link */
.read-more {
    text-align: right;
    display: inline-block;
}

/* Pagination */
.pagination {
    justify-content: center;
    margin-top: 30px;
}

/* Contact Card */
.contact-card {
    text-align: right;
}

/* Map Container */
.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 8px;
}

/* Service Grid */
.services-grid {
    direction: rtl;
}

/* Service Card */
.service-card {
    text-align: right;
}

/* Service Features */
.service-features {
    margin: 15px 0;
    padding-right: 20px; /* Default LTR padding */
}

html[dir="rtl"] .service-features {
    padding-right: 0;
    padding-left: 20px; /* RTL padding adjustment */
}

.service-features p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

html[dir="rtl"] .service-features p {
    flex-direction: row-reverse; /* Reverse icon position for RTL */
    justify-content: flex-end;
}
/* Service Price */
.service-price {
    text-align: right;
}

/* Floating Buttons */
.floating-btn.flag[aria-label="Arabic Version"] span {
    font-size: 1.2em;
}

/* ============================================= 
   RTL Specific Styles 
   ============================================= */

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
    unicode-bidi: embed;
}

/* Service Detail RTL Fixes */
.service-detail-container.rtl {
    direction: rtl;
}

.service-sidebar.rtl {
    text-align: right;
}

.feature-list.rtl,
.service-areas-list.rtl {
    padding: 0;
    margin: 0 0 0 30px;
    list-style: none;
}

.feature-list.rtl li,
.service-areas-list.rtl li {
    position: relative;
    padding-right: 30px;
    margin-bottom: 15px;
    text-align: right;
}

.feature-list.rtl i,
.service-areas-list.rtl i {
    position: absolute;
    right: 0;
    top: 3px;
    margin-left: 10px;
    margin-right: 0;
}

.cta-buttons.rtl {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

.cta-button.rtl {
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.cta-button.rtl i {
    margin-left: 8px;
    margin-right: 0;
}

.cta-primary.rtl {
    background-color: #e74c3c;
    color: white !important;
}

.cta-secondary.rtl {
    background-color: white;
    color: #e74c3c !important;
    border: 1px solid #e74c3c;
}

/* Add this to your responsive section (around line 2500) in style.css */
@media (max-width: 768px) {
    .cta-buttons {
        display: flex !important; /* Force flex layout */
        flex-direction: row !important; /* Keep buttons in a row */
        gap: 10px; /* Space between buttons */
        justify-content: center; /* Center buttons */
        flex-wrap: nowrap; /* Prevent wrapping */
    }

    .cta-button {
        min-width: 140px; /* Minimum width for each button */
        padding: 10px 15px !important; /* Adequate padding */
        font-size: 0.95rem !important; /* Slightly larger text */
        white-space: nowrap; /* Prevent text wrapping */
        flex: 1; /* Allow equal growth */
        text-align: center; /* Center button text */
    }
}

/* For very small screens (below 400px) */
@media (max-width: 400px) {
    .cta-button {
        min-width: 120px; /* Slightly smaller minimum width */
        padding: 8px 10px !important; /* Tighter padding */
        font-size: 0.85rem !important; /* Smaller text */
    }
}

/* Add these styles to your existing responsive section */
@media (max-width: 992px) {
    .hero-container {
        gap: 15px; /* Reduced from 25px */
    }
    
    .hero-image img {
        max-height: 250px; /* Reduced from 350px */
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 30px 0 20px; /* Reduced padding */
    }
    
    .hero-image img {
        max-height: 200px; /* Reduced from 250px */
        box-shadow: 0 10px 20px rgba(0,0,0,0.15); /* Lighter shadow */
    }
    
    .hero-title {
        font-size: 1.6rem; /* Slightly smaller */
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .hero-image img {
        //max-height: 160px; /* Further reduced */
        border-radius: 8px; /* Slightly smaller radius */
    }
    
    .hero-title {
        font-size: 1.4rem;
    }
    
    .hero-features {
        gap: 8px; /* Tighter feature spacing */
        margin-bottom: 15px;
    }
    
    .feature-item {
        font-size: 0.85rem;
    }
}

/* Optional: Add smooth scaling for very small devices */
@media (max-width: 400px) {
    .hero-image img {
        max-height: 140px;
    }
    
    .hero-title {
        font-size: 1.3rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
    }
}