body {
    font-family: 'Tajawal', Arial, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.slider-container {
    position: relative;
    overflow: hidden;
    height: 500px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-control.active {
    background-color: #FFD700;
}

.gradient-bg {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Dark mode transitions */
.dark-transition {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* RTL/LTR Support */
[dir="rtl"] .space-x-4>*+* {
    margin-left: 0;
    margin-right: 1rem;
}

[dir="rtl"] .space-x-8>*+* {
    margin-left: 0;
    margin-right: 2rem;
}

[dir="rtl"] .space-x-reverse>*+* {
    margin-left: 1rem;
    margin-right: 0;
}

[dir="ltr"] .space-x-reverse>*+* {
    margin-left: 0;
    margin-right: 1rem;
}

/* Responsive spacing adjustments */
[dir="rtl"] .mr-3 {
    margin-right: 0;
    margin-left: 0.75rem;
}

[dir="rtl"] .ml-3 {
    margin-left: 0;
    margin-right: 0.75rem;
}

[dir="rtl"] .ml-4 {
    margin-left: 0;
    margin-right: 1rem;
}

/* Text alignment for different directions */
[dir="rtl"] .text-left {
    text-align: right;
}

[dir="ltr"] .text-right {
    text-align: left;
}

/* Language switcher */
.lang-switcher {
    position: relative;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 50;
    min-width: 150px;
}

.lang-dropdown.show {
    display: block;
}

.dark .lang-dropdown {
    background: #374151;
    border-color: #4b5563;
}

.lang-dropdown button {
    color: #374151;
}

.dark .lang-dropdown button {
    color: #f3f4f6;
}

/* Mobile menu */
.mobile-menu {
    display: none;
}

.mobile-menu.show {
    display: block;
}

/* Partners scroll animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* Responsive text sizes */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
    }

    .section-title {
        font-size: 2rem !important;
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #003366;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.back-to-top.show {
    display: flex;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dark .back-to-top {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #003366;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.logo_page {
    width: 150px;
    /* height: 150px; */
}

.bg-001 {
    background-image: url("../../images/bg001.jpg") !important;
    background-size: cover;
}

.bg-002 {
    background-image: url("../../images/bg002.jpg") !important;
    background-size: cover;
}

.bg-003 {
    background-image: url("../../images/bg003.jpg") !important;
    background-size: cover;
}

.marks_logo {
    width: 150px;
}

.marks_logo_zone {
    display: flex;
    justify-content: center;
    /* Centre horizontalement */
    align-items: center;
    /* Centre verticalement */
    height: 150px;
    width: 150px;
}

.placeholder {
    display: inline-block;
    height: 0.75rem;
    background-color: #e0e0e0;
    border-radius: 0.5rem;
}