:root {
    --primary-color: #294351;
    --secondary-color: #0ea5e9;
    --accent-color: #0d9488;
    --light-bg: #f8fafc;
}

* {
    font-family: 'Inter', 'Noto Sans Arabic', sans-serif;
}

.heading-font {
    font-family: 'Source Serif Pro', serif;
}

.arabic-font {
    font-family: 'Noto Sans Arabic', sans-serif;
}

body[dir="ltr"] .heading-font {
    font-family: 'Source Serif Pro', serif;
    font-weight: 600;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(41, 67, 81, 0.08);
}

/* Gradients */
.gradient-bg {
    background: linear-gradient(135deg, #f0f9ff 0%, #e6fffa 50%, #f5f3ff 100%);
}

.primary-gradient {
    background: linear-gradient(135deg, #294351 0%, #1a2d38 100%);
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 20px rgba(41, 67, 81, 0.05);
}

/* Stat Cards */
.stat-card {
    background: linear-gradient(135deg, rgba(41, 67, 81, 0.03) 0%, rgba(41, 67, 81, 0.08) 100%);
    border-right: 4px solid var(--primary-color);
}

body[dir="ltr"] .stat-card {
    border-right: none;
    border-left: 4px solid var(--primary-color);
}

/* Language Switch */
.language-switch {
    transition: all 0.3s ease;
    border: 1px solid rgba(41, 67, 81, 0.2);
}

.language-switch:hover {
    border-color: var(--primary-color);
    background-color: rgba(41, 67, 81, 0.05);
}

/* Service Cards */
.service-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-top: 4px solid var(--accent-color);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1a2d38;
    color: white;
}

.text-primary {
    color: var(--primary-color);
}

.border-primary {
    border-color: var(--primary-color);
}

.bg-primary {
    background-color: var(--primary-color);
}

/* Animations */
.section-hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Flip Cards */
.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
    position: relative;
    width: 100%;
    height: 100%;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    backface-visibility: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 1rem;
}

.flip-card-back {
    transform: rotateY(180deg);
    background: white;
}

body[dir="ltr"] .flip-card:hover .flip-card-inner {
    transform: rotateY(-180deg);
}

body[dir="ltr"] .flip-card-back {
    transform: rotateY(-180deg);
}

/* Timeline */
.timeline-item {
    position: relative;
    padding-right: 30px;
}

body[dir="ltr"] .timeline-item {
    padding-right: 0;
    padding-left: 30px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    right: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

body[dir="ltr"] .timeline-item:before {
    right: auto;
    left: 0;
}

/* Feature Icons */
.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(41, 67, 81, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 24px;
}

/* Progress Bars */
.progress-bar {
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 3px;
    /* overflow: hidden; */
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    width: 0;
    transition: width 1.5s ease;
}

/* Therapy Icons */
.therapy-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
}

/* Hero Pattern */
.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23294351' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    ring: 2px;
    ring-color: var(--primary-color);
    border-color: transparent;
}

/* Line Clamp Utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    /* overflow: hidden; */
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    /* overflow: hidden; */
}

/* Prose Styles */
.prose {
    color: #374151;
}

.prose h1, .prose h2, .prose h3 {
    color: #111827;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.prose h1 {
    font-size: 2.25em;
}

.prose h2 {
    font-size: 1.875em;
}

.prose h3 {
    font-size: 1.5em;
}

.prose ul, .prose ol {
    padding-right: 1.5em;
    margin-bottom: 1em;
}

.prose li {
    margin-bottom: 0.5em;
}

.prose p {
    margin-bottom: 1em;
    line-height: 1.75;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .text-6xl {
        font-size: 3rem;
    }
    
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .text-3xl {
        font-size: 1.75rem;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        color: #000 !important;
        text-decoration: none !important;
    }
    
    .card-hover:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

body,
html {
    overflow-x: visible !important;
}
/* إصلاح القوائم الفرعية في navigation */
.relative.group {
    overflow: visible !important;
}

.group:hover .absolute {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}

#navbar {
    overflow: visible !important;
}

.container.mx-auto {
    overflow: visible !important;
}
