/* Base Styles */
:root {
    --primary-color: #003366;
    --secondary-color: #FFD700;
    --accent-color: #00A0E9;
    --text-color: #333333;
    --light-text: #777777;
    --light-bg: #F9F9F9;
    --white: #FFFFFF;
    --dark-bg: #1A1A1A;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', 'Montserrat', 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
    direction: ltr;
    text-align: left;
}



[dir="rtl"] {
    text-align: right;
    font-family: 'Tajawal', sans-serif;
}

[dir="ltr"] {
    text-align: left;
    font-family: 'Montserrat', 'Open Sans', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #002244;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    text-align: center;
}

.loader-circle {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

.loader-text {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Language Switcher */
.lang-switcher-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.lang-btn {
    padding: 8px 15px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 999;
    transition: var(--transition);
    background-color: rgb(255, 255, 255);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[dir="rtl"] .navbar .container {
    flex-direction: row-reverse;
}

.logo img {
    height: 70px;
    transition: var(--transition);
}

.navbar.scrolled .logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

.nav-link {
    padding: 10px 15px;
    font-weight: 600;
    position: relative;
    color: var(--text-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background-color: rgb(30, 0, 149);
    /* خلفية شفافة */
    border: none;
    /* إزالة الحدود */
    opacity: 0.5;
    /* جعل الزر شفافًا قليلاً */
    border-radius: 7px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    position: relative;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #242424;
    /* اللون الرمادي */
    margin: 3px 0;
    transition: var(--transition);
    transform-origin: center;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.menu-toggle.active .bar {
    background-color: #555;
    /* الحفاظ على اللون الرمادي حتى عند التفعيل */
}

.menu-toggle:hover .bar {
    background-color: #333;
    /* لون أغمق عند التحويم */
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), #001a33);
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 800px;
    margin: 0 auto;
}

.animated-headline {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    margin-top: 30px;
}

[dir="rtl"] .btn-secondary {
    margin-left: 0;
    margin-right: 15px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-down span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--white);
    border-right: 2px solid var(--white);
    transform: rotate(45deg);
    margin: -10px;
    animation: scroll-down 2s infinite;
}

.scroll-down span:nth-child(2) {
    animation-delay: -0.2s;
}

.scroll-down span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes scroll-down {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: var(--white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--light-text);
}

.about-image {
    flex: 1;
    position: relative;
}

.image-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.image-container img {
    display: block;
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.iso-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[dir="rtl"] .iso-badge {
    right: auto;
    left: -20px;
}

.iso-badge img {
    width: 60px;
    height: 60px;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.services-tabs {
    margin-top: 40px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.tab-btn {
    padding: 10px 30px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light-text);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background-color: rgba(0, 163, 233, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .card-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--light-text);
    margin-bottom: 20px;
}

.learn-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
}

.learn-more i {
    margin-left: 5px;
    transition: var(--transition);
}

[dir="rtl"] .learn-more i {
    margin-left: 0;
    margin-right: 5px;
    transform: rotate(180deg);
}

.learn-more:hover i {
    transform: translateX(5px);
}

[dir="rtl"] .learn-more:hover i {
    transform: translateX(-5px) rotate(180deg);
}

/* Process Section */
.process-section {
    padding: 100px 0;
    background-color: var(--white);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background-color: var(--secondary-color);
}

[dir="rtl"] .process-timeline::before {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

.process-step {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    justify-content: flex-end;
    padding-right: 30px;
}

[dir="rtl"] .process-step {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 30px;
}

.process-step:nth-child(even) {
    justify-content: flex-start;
    padding-left: 30px;
    padding-right: 0;
}

[dir="rtl"] .process-step:nth-child(even) {
    justify-content: flex-end;
    padding-left: 0;
    padding-right: 30px;
}

.step-number {
    position: absolute;
    top: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.process-step:nth-child(odd) .step-number {
    right: -25px;
}

[dir="rtl"] .process-step:nth-child(odd) .step-number {
    right: auto;
    left: -25px;
}

.process-step:nth-child(even) .step-number {
    left: -25px;
}

[dir="rtl"] .process-step:nth-child(even) .step-number {
    left: auto;
    right: -25px;
}

.step-content {
    width: calc(50% - 50px);
    padding: 30px;
    background-color: var(--light-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.step-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
}

.process-step:nth-child(odd) .step-content::before {
    right: -15px;
    border-width: 15px 0 15px 15px;
    border-color: transparent transparent transparent var(--light-bg);
}

[dir="rtl"] .process-step:nth-child(odd) .step-content::before {
    right: auto;
    left: -15px;
    border-width: 15px 15px 15px 0;
    border-color: transparent var(--light-bg) transparent transparent;
}

.process-step:nth-child(even) .step-content::before {
    left: -15px;
    border-width: 15px 15px 15px 0;
    border-color: transparent var(--light-bg) transparent transparent;
}

[dir="rtl"] .process-step:nth-child(even) .step-content::before {
    left: auto;
    right: -15px;
    border-width: 15px 0 15px 15px;
    border-color: transparent transparent transparent var(--light-bg);
}

.step-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Accreditation Section */
.accreditation-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.accreditation-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.standards-info {
    flex: 1;
}

.standards-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.standards-info p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.standards-list {
    margin-bottom: 30px;
}

.standards-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.standards-list i {
    margin-right: 10px;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

[dir="rtl"] .standards-list i {
    margin-right: 0;
    margin-left: 10px;
}

.certificates-slider {
    flex: 1;
    position: relative;
    padding: 20px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.certificate-slide {
    padding: 20px;
}

.certificate-slide img {
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
}

/* Benefits Section */
.benefits-section {
    padding: 100px 0;
    background-color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
    background-color: var(--secondary-color);
    color: var(--white);
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--light-text);
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slide {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 0 20px;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    font-size: 3rem;
    color: var(--secondary-color);
    opacity: 0.3;
    position: absolute;
}

.testimonial-content p::before {
    top: -20px;
    left: -15px;
}

[dir="rtl"] .testimonial-content p::before {
    left: auto;
    right: -15px;
}

.testimonial-content p::after {
    bottom: -40px;
    right: -15px;
}

[dir="rtl"] .testimonial-content p::after {
    right: auto;
    left: -15px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

[dir="rtl"] .testimonial-author {
    flex-direction: row-reverse;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

[dir="rtl"] .testimonial-author img {
    margin-right: 0;
    margin-left: 15px;
}

.author-info h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--light-text);
}

/* Contact Section */
.contact-section {
    padding: 100px 0 0;
    position: relative;
}

.contact-content {
    display: flex;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    margin-bottom: 30px;
}

[dir="rtl"] .info-item {
    flex-direction: row-reverse;
}

.info-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 163, 233, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 20px;
    flex-shrink: 0;
}

[dir="rtl"] .info-icon {
    margin-right: 0;
    margin-left: 20px;
}

.info-text h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 163, 233, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}

.contact-form {
    flex: 1;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: transparent;
    z-index: 1;
    position: relative;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

[dir="rtl"] .form-group select {
    background-position: left 15px center;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--light-text);
    transition: var(--transition);
    background-color: var(--white);
    padding: 0 5px;
    z-index: 0;
}

[dir="rtl"] .form-group label {
    left: auto;
    right: 15px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input:focus+label,
.form-group textarea:focus+label,
.form-group select:focus+label,
.form-group input:valid+label,
.form-group textarea:valid+label,
.form-group select:valid+label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--primary-color);
    z-index: 2;
}

[dir="rtl"] .form-group input:focus+label,
[dir="rtl"] .form-group textarea:focus+label,
[dir="rtl"] .form-group select:focus+label,
[dir="rtl"] .form-group input:valid+label,
[dir="rtl"] .form-group textarea:valid+label,
[dir="rtl"] .form-group select:valid+label {
    left: auto;
    right: 10px;
}

.contact-map {
    height: 400px;
    width: 100%;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-logo p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-links h3,
.footer-services h3,
.footer-contact h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

[dir="rtl"] .footer-links h3::after,
[dir="rtl"] .footer-services h3::after,
[dir="rtl"] .footer-contact h3::after {
    left: auto;
    right: 0;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-services a:hover {
    opacity: 1;
    color: var(--secondary-color);
    padding-left: 5px;
}

[dir="rtl"] .footer-links a:hover,
[dir="rtl"] .footer-services a:hover {
    padding-left: 0;
    padding-right: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

[dir="rtl"] .footer-contact ul li {
    flex-direction: row-reverse;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
}

[dir="rtl"] .footer-contact i {
    margin-right: 0;
    margin-left: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

[dir="rtl"] .footer-legal {
    flex-direction: row-reverse;
}

.footer-legal a {
    opacity: 0.7;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

[dir="rtl"] .back-to-top {
    right: auto;
    left: 30px;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Testimonials Slider Styles */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    padding: 0px;
    transition: all 0.5s ease;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-content {
    background-color: var(--white);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 0 20px;
    position: relative;
}

.slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.slider-prev,
.slider-next {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Responsive Styles */
@media (max-width: 992px) {

    .about-content,
    .accreditation-content,
    .contact-content {
        flex-direction: column;
    }

    .about-image,
    .standards-info,
    .contact-info {
        margin-bottom: 50px;
    }

    .process-step,
    .process-step:nth-child(even) {
        justify-content: flex-start;
        padding-left: 30px;
        padding-right: 0;
    }

    [dir="rtl"] .process-step,
    [dir="rtl"] .process-step:nth-child(even) {
        justify-content: flex-end;
        padding-left: 0;
        padding-right: 30px;
    }

    .process-step:nth-child(odd) .step-number {
        left: -25px;
        right: auto;
    }

    [dir="rtl"] .process-step:nth-child(odd) .step-number {
        left: auto;
        right: -25px;
    }

    .process-step:nth-child(odd) .step-content::before {
        left: -15px;
        right: auto;
        border-width: 15px 15px 15px 0;
        border-color: transparent var(--light-bg) transparent transparent;
    }

    [dir="rtl"] .process-step:nth-child(odd) .step-content::before {
        left: auto;
        right: -15px;
        border-width: 15px 0 15px 15px;
        border-color: transparent transparent transparent var(--light-bg);
    }

    .process-timeline::before {
        left: 25px;
    }

    [dir="rtl"] .process-timeline::before {
        left: auto;
        right: 25px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .menu-toggle .bar {
        background-color: #555;
        /* اللون الرمادي للجوال */
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transition: all 0.5s ease;
        z-index: 1000;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    [dir="rtl"] .nav-menu {
        right: auto;
        left: -100%;
    }

    .nav-menu.active {
        left: 0;
    }

    [dir="rtl"] .nav-menu.active {
        right: auto;
        left: 0;
    }

    .nav-link {
        padding: 1rem;
        width: 100%;
        text-align: center;
    }

    .nav-link::after {
        display: none;
    }

    .lang-switcher {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #eee;
        width: 100%;
    }

    .hero-content {
        padding-top: 80px;
    }

    .animated-headline {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 15px;
    }

    [dir="rtl"] .btn-secondary {
        margin-right: 0;
    }

    .step-content {
        width: calc(100% - 50px);
    }

    .no-scroll {
        overflow: hidden;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
    }

    .nav-menu li a {
        width: 100%;
        display: block;
        padding: 10px 0;
    }
}

@media (max-width: 576px) {
    .animated-headline {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .footer-legal {
        gap: 10px;
    }
}

.lang-switcher {
    list-style: none;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.lang-switcher button {
    padding: 10px 20px;
    border: none;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.lang-switcher button:hover {
    background-color: #0056b3;
}