/* ===================================
   Jordan Gate Medical Tourism
   Premium RTL Arabic Design System
   =================================== */

/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&family=Tajawal:wght@300;400;500;700;800&family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ===== CSS Variables ===== */
:root {
    /* Primary Colors */
    --primary-blue: #0066CC;
    --primary-blue-dark: #1976D2;
    --primary-blue-light: #4A90D9;

    /* Secondary Colors */
    --trust-green: #00A86B;
    --premium-gold: #D4AF37;
    --premium-gold-light: #E5C158;

    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #F8FAFC;
    --soft-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #6B7280;
    --charcoal: #2C3E50;
    --dark: #1A1A2E;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    --gradient-gold: linear-gradient(135deg, var(--premium-gold) 0%, var(--premium-gold-light) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(0, 102, 204, 0.95) 0%, rgba(25, 118, 210, 0.9) 100%);
    --gradient-dark: linear-gradient(180deg, var(--charcoal) 0%, var(--dark) 100%);

    /* Typography */
    --font-arabic: 'Cairo', 'Tajawal', sans-serif;
    --font-english: 'Inter', 'Poppins', sans-serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(0, 102, 204, 0.3);
    --shadow-gold: 0 0 30px rgba(212, 175, 55, 0.3);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Layout */
    --max-width: 1400px;
    --header-height: 80px;
}

/* ===== Reset & Base Styles ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-arabic);
    background-color: var(--white);
    color: var(--charcoal);
    line-height: 1.7;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-arabic);
    font-weight: 700;
    line-height: 1.3;
    color: var(--charcoal);
}

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

p {
    font-size: var(--text-lg);
    color: rgba(0, 0, 0, 0.9);
    margin-bottom: var(--space-md);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

/* ===== Layout Utilities ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    margin-bottom: var(--space-md);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
}

.section-header p {
    font-size: var(--text-xl);
    max-width: 700px;
    margin: var(--space-lg) auto 0;
}

/* ===== Grid System ===== */
.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ===== Flexbox Utilities ===== */
.flex {
    display: flex;
}

.flex-center {
    justify-content: center;
    align-items: center;
}

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

.flex-wrap {
    flex-wrap: wrap;
}

.flex-col {
    flex-direction: column;
}

.gap-sm {
    gap: var(--space-sm);
}

.gap-md {
    gap: var(--space-md);
}

.gap-lg {
    gap: var(--space-lg);
}

.gap-xl {
    gap: var(--space-xl);
}

/* ===== Header / Navigation ===== */
.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition-base);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--medium-gray);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--text-2xl);
    font-weight: 800;
}

.logo-text {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-blue);
}

.logo-text span {
    color: var(--premium-gold);
}

.logo-img {
    height: 90px;
    width: auto;
    margin: var(--space-xs);
}

/* Footer logo white */
.footer .logo-img {
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: var(--white);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid var(--primary-blue);
}

.lang-btn {
    padding: var(--space-xs) var(--space-md);
    font-family: var(--font-arabic);
    font-size: var(--text-sm);
    font-weight: 600;
    background: transparent;
    color: var(--primary-blue);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
}

.lang-btn.active {
    background: var(--primary-blue);
    color: var(--white);
}

.lang-btn:hover:not(.active) {
    background: rgba(0, 102, 204, 0.1);
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
}

.nav-links a {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--charcoal);
    position: relative;
    padding: var(--space-sm) 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-blue);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: var(--space-sm);
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--charcoal);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-arabic);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--charcoal);
    box-shadow: var(--shadow-md);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--text-lg);
}

.btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
}

/* ===== Cards ===== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 1px solid var(--soft-gray);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    font-size: var(--text-3xl);
    color: var(--white);
}

.card-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--charcoal);
}

.card-text {
    color: var(--dark-gray);
    font-size: var(--text-base);
}

/* Glass Card Variant */
.card-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
    background: var(--gradient-hero);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;

}

.hero h1 {
    color: var(--white);
    margin-bottom: var(--space-lg);
    font-size: var(--text-6xl);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: var(--text-2xl);
    opacity: 0.95;
    margin-bottom: var(--space-2xl);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-feature i {
    color: var(--premium-gold);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

/* Decorative Elements */
.hero-decor {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.hero-decor-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
}

.hero-decor-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: -50px;
}

/* ===== Stats Section ===== */
.stats {
    background: var(--off-white);
    padding: var(--space-3xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    text-align: center;
}

.stat-item {
    padding: var(--space-lg);
}

.stat-number {
    font-size: var(--text-5xl);
    font-weight: 800;
    color: var(--primary-blue);
    display: block;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-number span {
    color: var(--premium-gold);
}

.stat-label {
    font-size: var(--text-lg);
    color: var(--dark-gray);
    font-weight: 500;
}

/* ===== Services Preview ===== */
.services-preview {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.service-card {
    text-align: center;
    padding: var(--space-2xl);
}

.service-card .card-icon {
    margin: 0 auto var(--space-lg);
}

/* ===== Testimonials ===== */
.testimonials {
    background: var(--gradient-dark);
    color: var(--white);
}

.testimonials .section-header h2 {
    color: var(--white);
}

.testimonials .section-header h2::after {
    background: var(--premium-gold);
}

.testimonials .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
}

.testimonial-quote {
    font-size: var(--text-xl);
    font-style: italic;
    margin-bottom: var(--space-lg);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    color: var(--white);
}

.testimonial-info h4 {
    color: var(--white);
    font-size: var(--text-lg);
    margin-bottom: var(--space-xs);
}

.testimonial-info p {
    color: var(--premium-gold);
    font-size: var(--text-sm);
    margin: 0;
}

.testimonial-stars {
    color: var(--premium-gold);
    margin-bottom: var(--space-md);
    font-size: var(--text-lg);
}

/* ===== CTA Section ===== */
.cta-section {
    background: var(--gradient-primary);
    padding: var(--space-4xl) 0;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-xl);
    margin-bottom: var(--space-xl);
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand {
    max-width: 350px;
}

.footer-brand .logo {
    margin-bottom: var(--space-lg);
}

.footer-brand .logo-icon {
    background: var(--white);
    color: var(--primary-blue);
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-base);
}

.footer-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-base);
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--premium-gold);
    padding-right: var(--space-sm);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item i {
    color: var(--premium-gold);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
    margin: 0;
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-base);
}

.social-links a:hover {
    background: var(--premium-gold);
    color: var(--charcoal);
}

/* ===== WhatsApp Floating Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--text-2xl);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition-base);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: var(--space-sm);
}

.form-label .required {
    color: #E53935;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-arabic);
    font-size: var(--text-base);
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--charcoal);
    transition: var(--transition-base);
    direction: rtl;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-error {
    color: #E53935;
    font-size: var(--text-sm);
    margin-top: var(--space-xs);
}

/* ===== Page Hero (Internal Pages) ===== */
.page-hero {
    padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-4xl);
    background: var(--gradient-primary);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.page-hero h1 {
    color: var(--white);
    font-size: var(--text-5xl);
    margin-bottom: var(--space-md);
    position: relative;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-xl);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* ===== Timeline / Steps ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.timeline-item {
    position: relative;
    padding-right: 80px;
    margin-bottom: var(--space-2xl);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-number {
    position: absolute;
    right: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.timeline-content {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--soft-gray);
}

.timeline-content h4 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.timeline-content h4 i {
    color: var(--premium-gold);
}

/* ===== Accordion ===== */
.accordion-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--soft-gray);
}

.accordion-header {
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.accordion-header:hover {
    background: var(--off-white);
}

.accordion-header h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.accordion-header h4 i {
    color: var(--primary-blue);
    font-size: var(--text-2xl);
}

.accordion-icon {
    color: var(--primary-blue);
    transition: var(--transition-base);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content-inner {
    padding: 0 var(--space-xl) var(--space-xl);
    color: var(--dark-gray);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

/* ===== Price Table ===== */
.price-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.price-table th,
.price-table td {
    padding: var(--space-lg);
    text-align: center;
    border-bottom: 1px solid var(--soft-gray);
}

.price-table th {
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 600;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table tr:hover td {
    background: var(--off-white);
}

.price-highlight {
    color: var(--trust-green);
    font-weight: 700;
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);

}

.slide-right {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --text-6xl: 2.5rem;
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
        --header-height: 70px;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    /* === Header Mobile Fix === */
    .header .container {
        gap: var(--space-sm);
    }

    .nav {
        gap: var(--space-sm);
    }

    /* === Logo Mobile Fix - منع ضغط اللوجو === */
    .logo-img {
        height: 45px;
        width: auto;
        min-width: 45px;
        object-fit: contain;
        flex-shrink: 0;
    }

    /* === Language Switcher Mobile Fix - تحسين زر تبديل اللغة === */
    .lang-switcher {
        border-radius: var(--radius-md);
        border-width: 1.5px;
        flex-shrink: 0;
    }

    .lang-btn {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--text-base);
        font-weight: 700;
        min-width: 45px;
        min-height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* === Book Consultation Button Mobile Fix - تحسين زر احجز استشارة === */
    .nav .btn-primary.btn-sm {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--text-sm);
        font-weight: 700;
        border-radius: var(--radius-md);
        white-space: nowrap;
        min-height: 38px;
        box-shadow: var(--shadow-md);
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: var(--space-2xl);
        gap: var(--space-lg);
        transition: var(--transition-base);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-toggle {
        display: flex;
        padding: var(--space-sm);
        flex-shrink: 0;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero h1 {
        font-size: var(--text-4xl);
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .timeline::before {
        right: 15px;
    }

    .timeline-item {
        padding-right: 50px;
    }

    .timeline-number {
        width: 40px;
        height: 40px;
        font-size: var(--text-lg);
    }

    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 65px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: var(--text-4xl);
    }

    .hero-feature {
        width: 100%;
        justify-content: center;
    }

    .btn-lg {
        padding: var(--space-md) var(--space-lg);
        font-size: var(--text-base);
    }

    /* === Extra Small Screen Header Improvements === */
    .logo-img {
        height: 60px;
        min-width: 60px;
    }

    /* زر تبديل اللغة - حجم أكبر للشاشات الصغيرة */
    .lang-switcher {
        border-radius: var(--radius-sm);
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: var(--text-sm);
        min-width: 38px;
        min-height: 34px;
    }

    /* زر احجز استشارة - تحسين للشاشات الصغيرة */
    .nav .btn-primary.btn-sm {
        padding: 6px 12px;
        font-size: 0.75rem;
        min-height: 34px;
    }

    .mobile-toggle span {
        width: 22px;
        height: 2.5px;
    }
}

/* ===== Searchable Select Component ===== */
.searchable-select {
    position: relative;
    width: 100%;
}

.searchable-select-input {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--medium-gray);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-family: var(--font-arabic);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition-base);
}

.searchable-select-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.searchable-select-input::placeholder {
    color: var(--dark-gray);
}

.searchable-select-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: var(--shadow-lg);
}

.searchable-select-dropdown.active {
    display: block;
}

.searchable-select-option {
    padding: var(--space-md);
    cursor: pointer;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--soft-gray);
}

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

.searchable-select-option:hover,
.searchable-select-option.highlighted {
    background: var(--off-white);
    color: var(--primary-blue);
}

.searchable-select-option.selected {
    background: var(--primary-blue);
    color: var(--white);
}

.searchable-select-no-results {
    padding: var(--space-md);
    color: var(--dark-gray);
    text-align: center;
    font-style: italic;
}

/* RTL adjustments for LTR English pages */
[dir="ltr"] .searchable-select-dropdown {
    left: 0;
    right: auto;
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-blue);
}

.text-gold {
    color: var(--premium-gold);
}

.text-white {
    color: var(--white);
}

.bg-primary {
    background: var(--gradient-primary);
}

.bg-light {
    background: var(--off-white);
}

.bg-dark {
    background: var(--charcoal);
}

.mt-sm {
    margin-top: var(--space-sm);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mt-xl {
    margin-top: var(--space-xl);
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}