/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

.section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ffc107;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #e6ac00;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #0c4da2;
    color: white;
}

.btn-primary:hover {
    background-color: #0a3d7a;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-top: 70px;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li + li::before {
    content: "/";
    margin: 0 8px;
    color: #6c757d;
}

.breadcrumb a {
    color: #0c4da2;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #ffc107;
    text-decoration: underline;
}

.breadcrumb li:last-child span {
    color: #6c757d;
    font-weight: 600;
}

/* Header */
header {
    background-color: #0c4da2;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.logo span {
    color: #ffc107;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ffc107;
}

/* Navigation Styles */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 2rem;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    font-size: 1.1rem;
}

nav ul li a:hover {
    color: #ffc107;
}

/* Menu Toggle (Hidden on Desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(12, 77, 162, 0.8), rgba(12, 77, 162, 0.8)), url('images/banner.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Content Sections */
.content-section {
    background: white;
    margin: 2rem 0;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.content-section h2 {
    color: #0c4da2;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.content-section p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.content-section h3 {
    color: #0c4da2;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.5rem;
}

.content-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0c4da2, #ffc107);
    color: white;
    text-align: center;
    padding: 4rem 0;
    margin: 3rem 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Service Areas */
.service-areas {
    background: #f8f9fa;
    padding: 3rem 0;
}

.service-areas h3 {
    color: #0c4da2;
    margin-bottom: 2rem;
    text-align: center;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.area-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.area-card:hover {
    transform: translateY(-5px);
}

.area-card a {
    color: #0c4da2;
    text-decoration: none;
    font-weight: 600;
}

.area-card a:hover {
    color: #ffc107;
}

.area-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.btn-primary {
    background-color: #0c4da2;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #0a3d8a;
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #ffc107;
    color: #333;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #e6ac00;
    color: #333;
    transform: translateY(-2px);
}

/* Dropdown Styles */
.services-dropdown-area {
    position: relative;
    display: inline-block;
}

.btn-dropdown {
    background-color: #0c4da2;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    width: 100%;
}

.btn-dropdown:hover {
    background-color: #0a3d8a;
    color: white;
    transform: translateY(-2px);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 5px;
    top: 100%;
    left: 0;
    right: 0;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
    color: #0c4da2;
}

.services-dropdown-area.active .dropdown-content {
    display: block;
}

/* Improved Button Styles */
.btn-primary {
    background-color: #0c4da2;
    color: white !important;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    width: 100%;
}

.btn-primary:hover {
    background-color: #0a3d8a;
    color: white !important;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #ffc107;
    color: #333 !important;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    width: 100%;
}

.btn-secondary:hover {
    background-color: #e6ac00;
    color: #333 !important;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    position: relative;
    z-index: 1002;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ffc107;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white !important;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 2px 0;
    font-weight: 400;
}

.footer-links a:hover {
    color: #ffc107 !important;
}

.copyright {
    border-top: 1px solid #555;
    padding-top: 1rem;
}

.credits a {
    color: #ffc107;
    text-decoration: none;
    position: relative;
    z-index: 100;
}

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

/* Mobile Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #0c4da2;
    background: none;
    border: none;
}

/* Services Menu Item */
.services-menu-item {
    position: relative;
}

.services-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.services-toggle i {
    margin-left: 5px;
    font-size: 0.8rem;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.language-switcher a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid white;
    transition: all 0.3s;
}

.language-switcher a:hover {
    background-color: white;
    color: #0c4da2;
}

.language-switcher i {
    margin-right: 5px;
    font-size: 0.9rem;
}

/* Dropdown Menu Styles */
.services-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 4px;
}

.services-dropdown a {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
    font-size: 0.95rem;
    font-weight: 400;
}

.services-dropdown a:hover {
    background-color: #f5f5f5;
    color: #0c4da2;
}

/* Floating Action Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 100;
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.floating-btn.call {
    background-color: #0c4da2;
    left: 30px;
}

.floating-btn.whatsapp {
    background-color: #25d366;
    right: 30px;
}

.floating-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.floating-btn i {
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 70px;
        right: -100%;
        background-color: #fff;
        width: 100%;
        height: calc(100vh - 70px);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: right 0.3s;
        z-index: 1000;
    }

    nav ul.active {
        right: 0;
    }

    nav ul li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        color: #333;
        font-size: 1.1rem;
    }

    /* Mobile Styles for Dropdown */
    .services-dropdown {
        position: static;
        box-shadow: none;
        width: 100%;
        background-color: #f8f9fa;
        margin-top: 10px;
        max-height: none;
        overflow-y: visible;
        transform: none;
        left: 0;
    }
    
    .services-toggle {
        width: 100%;
        justify-content: center;
    }

    .language-switcher {
        margin: 15px 0;
        justify-content: center;
    }

    .language-switcher a {
        color: #0c4da2;
        border-color: #0c4da2;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .content-section {
        padding: 2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .floating-buttons {
        padding: 0 15px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .content-section {
        padding: 1.5rem;
        margin: 1rem 0;
    }

    .cta-section {
        padding: 3rem 0;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 40px 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Modal Content Styles */
.modal-content i {
    color: #28a745;
    font-size: 3rem;
    display: block;
    margin: 0 auto 1rem;
}

.modal-content p {
    font-size: 1.2rem;
    color: #333;
    text-align: center;
}

/* Skip Navigation for Accessibility */
.skip-navigation {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #0c4da2;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 10000;
}

.skip-navigation:focus {
    top: 0;
}

/* Section Title Styles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: #0c4da2;
    font-size: 2.5rem;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #ffc107;
    margin: 15px auto;
}

/* Header Container */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* Hero Content */
.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.hero-language-switcher {
    margin-top: 20px;
}

.hero-language-switcher a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 5px;
    transition: all 0.3s;
}

.hero-language-switcher a:hover {
    background: white;
    color: #0c4da2;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text ul {
    margin-top: 20px;
    padding-left: 20px;
}

.about-text li {
    margin-bottom: 10px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 3rem;
    color: #0c4da2;
    margin-bottom: 20px;
}

.service-card h3 {
    color: #0c4da2;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* FAQ Section */
.faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    background: #f8f9fa;
    padding: 20px;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    transition: background-color 0.3s;
    position: relative;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question.active {
    background: #0c4da2;
    color: white;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-question.active::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.faq-answer.active {
    padding: 20px;
    max-height: 200px;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Responsive Design for New Elements */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* RTL Layout Styles for Arabic Pages */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .header-container {
    flex-direction: row-reverse; /* RTL layout */
}

[dir="rtl"] .header-content {
    flex-direction: row-reverse; /* RTL layout */
}

[dir="rtl"] .logo {
    order: 2; /* Logo on the right */
}

[dir="rtl"] nav {
    order: 1; /* Navigation on the left */
}

[dir="rtl"] .logo img {
    margin-right: 10px; /* RTL margin */
    margin-left: 0;
}

[dir="rtl"] nav {
    order: 1; /* Navigation on the left */
}

[dir="rtl"] nav ul li {
    margin-left: 30px; /* RTL margin */
    margin-right: 0;
}

[dir="rtl"] .services-toggle i {
    margin-left: 5px; /* RTL margin */
    margin-right: 0;
}

[dir="rtl"] .language-switcher {
    margin-left: 20px; /* RTL margin */
    margin-right: 0;
}

[dir="rtl"] .services-dropdown {
    left: 0; /* RTL positioning */
    right: auto;
}

[dir="rtl"] .faq-question::after {
    left: 20px; /* RTL positioning */
    right: auto;
}

/* RTL Mobile Menu */
@media (max-width: 768px) {
    [dir="rtl"] nav ul {
        right: -100%; /* RTL mobile menu - slide from right */
        left: auto;
        transition: right 0.3s; /* RTL transition */
    }

    [dir="rtl"] nav ul.active {
        right: 0; /* RTL active state */
        left: auto;
    }
}