/* RTL-specific styles */
[dir="rtl"] {
    direction: rtl;
}

/* Header RTL adjustments */
[dir="rtl"] .header-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .logo {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-list a::after {
    right: 0;
    left: auto;
}

[dir="rtl"] .language-toggle {
    margin-right: var(--spacing-sm);
    margin-left: 0;
}

/* Form RTL adjustments */
[dir="rtl"] .form-group input,
[dir="rtl"] .form-group textarea {
    text-align: right;
}

/* Program content RTL adjustments */
[dir="rtl"] .program-content li {
    padding-left: 20px;
    padding-right: 0;
}

[dir="rtl"] .program-content li::before {
    left: 0;
    right: auto;
}

/* Event card RTL adjustments */
[dir="rtl"] .event-card {
    flex-direction: row-reverse;
}

/* Social links RTL adjustments */
[dir="rtl"] .social-links {
    flex-direction: row-reverse;
}

/* Contact grid RTL adjustments */
[dir="rtl"] .contact-grid {
    direction: rtl;
}

/* Arabic font improvements */
[dir="rtl"] body {
    font-family: var(--font-arabic);
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
    font-family: var(--font-arabic);
    font-weight: 700;
}

/* Mobile RTL adjustments */
@media (max-width: 768px) {
    [dir="rtl"] .event-card {
        flex-direction: column;
    }
}

/* LTR version for English content */
[dir="ltr"] {
    direction: ltr;
}

[dir="ltr"] body {
    font-family: var(--font-english);
}

[dir="ltr"] h1,
[dir="ltr"] h2,
[dir="ltr"] h3,
[dir="ltr"] h4,
[dir="ltr"] h5,
[dir="ltr"] h6 {
    font-family: var(--font-english);
}

[dir="ltr"] .header-content {
    flex-direction: row;
}

[dir="ltr"] .logo {
    flex-direction: row;
}

[dir="ltr"] .nav-list a::after {
    left: 0;
    right: auto;
}

[dir="ltr"] .language-toggle {
    margin-left: var(--spacing-sm);
    margin-right: 0;
}

[dir="ltr"] .form-group input,
[dir="ltr"] .form-group textarea {
    text-align: left;
}

[dir="ltr"] .program-content li {
    padding-left: 20px;
    padding-right: 0;
}

[dir="ltr"] .program-content li::before {
    left: 0;
    right: auto;
}

[dir="ltr"] .event-card {
    flex-direction: row;
}

[dir="ltr"] .social-links {
    flex-direction: row;
}
.ltr-text {
    direction: ltr;
    unicode-bidi: bidi-override;
    display: inline-block;
}
.top-bar-item {
    margin-inline-start: 15px; /* adds spacing in RTL & LTR automatically */
}

.top-bar-item:first-child {
    margin-inline-start: 15px; /* no extra space before the first one */
}
/* Ensure row items stay on one line */
.top-bar .row {
    display: flex;
    justify-content: space-between; /* info right, menu left */
    align-items: center;
    flex-wrap: nowrap; /* 🚀 prevent wrapping to second row */
}

/* Both columns flex */
.top-bar .col-md-6 {
    flex: 1;
    min-width: 0; /* allow shrink */
}

/* Right side (phone/email) aligned right */
.top-bar-info {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap; /* allow phone/email to wrap if needed */
    gap: 15px;
}

/* Left side menu wrapper */
.top-bar-menu-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap; /* 🚀 keep menu in one line */
    overflow-x: auto;  /* optional: scroll if too many items */
}
/* Force menu to align from left side */
.top-bar-menu-wrapper {
    direction: ltr; /* ensures it starts from left */
    flex: 1;
}

.top-bar-menu {
    display: flex;
    justify-content: flex-start; /* align from left */
    gap: 10px; /* spacing between buttons */
    margin: 0;
    padding: 0;
}

.top-bar-menu li {
    list-style: none;
}

/* Button style with customizable colors */
.top-bar-menu li a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 5px;
    background-color: var(--top-bar-button-bg, #ffffff); /* fallback */
    color: var(--top-bar-button-color, #1e3a8a) !important;
    font-weight: 500;
    text-decoration: none;
    border: 0px solid currentColor;
    transition: all 0.3s ease;
}

.top-bar-menu li a:hover {
    background-color: var(--top-bar-button-hover);
    color: var(--top-bar-button-hover-color) !important;
}
/* Statistics Section */
.stats-section {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.stats-section::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.stat-item {
    text-align: center;
    padding: var(--space-xl);
    position: relative;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}
/* RTL adjustments for slider */
.rtl .carousel-control-prev {
    right: 0;
    left: auto;
}

.rtl .carousel-control-next {
    left: 0;
    right: auto;
}

.rtl .carousel-indicators {
    padding-right: 0;
}

