html,
body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    margin: 0;
    padding: 0;
    font-family: "Public Sans", "Noto Sans", sans-serif;
    line-height: 1.6;
}

/* Arabic Typography Improvements */
[lang="ar"],
[dir="rtl"] {
    font-family: "Poppins", "Readex Pro", sans-serif !important;
    line-height: 1.8 !important;
}

[lang="ar"] h1,
[lang="ar"] h2,
[lang="ar"] h3,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3 {
    line-height: 1.4 !important;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #144bb8;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f3a8f;
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track {
    background: #1a2131;
}

.dark ::-webkit-scrollbar-thumb {
    background: #144bb8;
}

/* Animation utilities */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Marquee / Infinite Scroll Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-reverse {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
    }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

.animate-scroll-reverse {
    animation: scroll-reverse 30s linear infinite;
}

/* Pause animation on hover */
.group:hover .animate-scroll,
.group:hover .animate-scroll-reverse {
    animation-play-state: paused;
}

/* Focus states for accessibility */
a:focus,
button:focus {
    outline: 2px solid #144bb8;
    outline-offset: 2px;
}

/* Mobile menu styles (for future implementation) */
/* Mobile menu styles moved to critical CSS */

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}