body {
    font-family: 'Montserrat', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[dir="rtl"] {
    direction: rtl;
}

.text-shadow-lg {
    text-shadow: 0px 3px 6px rgba(0, 0, 0, 0.4);
}
.text-shadow-sm {
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3);
}

.shadow-inner-top {
    box-shadow: inset 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.logo-animate {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.logo-animate:hover {
    transform: scale(1.1) rotate(-5deg);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

[dir="rtl"] [data-lucide="arrow-right"],
[dir="rtl"] [data-lucide="external-link"] {
    transform: scaleX(-1);
}
[dir="rtl"] [data-lucide="arrow-left"] {
    transform: scaleX(-1);
}

.course-card {
    display: flex;
    flex-direction: column;
    overflow: hidden; 
}

.course-card-img {
    aspect-ratio: 16 / 9; 
    object-fit: cover; 
    width: 100%;
    transition: transform 0.3s ease-out;
}
.course-card:hover .course-card-img {
    transform: scale(1.05);
}

[data-lucide] {
    vertical-align: middle;
}


body.dark-mode {
    background-color: #111827;
    color: #d1d5db;
}

body.dark-mode #preloader {
    background-color: #030712;
}
body.dark-mode #preloader img {
    filter: brightness(1.2) contrast(1.1);
}


body.dark-mode .bg-gray-100 {
    background-color: #1f2937;
}

body.dark-mode .bg-white {
    background-color: #374151;
}

body.dark-mode header.bg-white\/90 {
    background-color: rgba(23, 31, 42, 0.9) !important; 
    border-bottom: 1px solid #374151;
}

body.dark-mode header .text-sky-700 {
     color: #7dd3fc;
}
body.dark-mode header .hover\:text-sky-500:hover {
    color: #38bdf8;
}

body.dark-mode .text-gray-800 {
    color: #f3f4f6;
}
body.dark-mode .text-gray-600 {
    color: #9ca3af;
}
body.dark-mode .text-gray-500 {
    color: #6b7280;
}
body.dark-mode .text-gray-400 {
    color: #4b5563;
}

body.dark-mode .text-sky-800,
body.dark-mode .text-emerald-800,
body.dark-mode .text-amber-800 {
    color: #e0f2fe;
}
body.dark-mode .text-sky-700 {
    color: #38bdf8;
}
body.dark-mode .text-sky-600 {
    color: #7dd3fc;
}

body.dark-mode .hover\:text-sky-800:hover {
    color: #e0f2fe;
}

body.dark-mode .department-card,
body.dark-mode .course-card { 
    background-color: #1f2937;
    border: 1px solid #374151;
}

body.dark-mode .department-card .text-sky-700 { 
    color: #7dd3fc;
}

body.dark-mode .department-card .text-emerald-500{
    color: #34d399;
}
body.dark-mode .department-card .text-amber-500{
    color: #f59e0b;
}
body.dark-mode .department-card .text-indigo-500{
    color: #818cf8;
}
body.dark-mode .department-card .bg-emerald-100,
body.dark-mode .department-card .bg-amber-100,
body.dark-mode .department-card .bg-indigo-100 {
    background-color: #374151;
}


body.dark-mode .course-card .text-sky-700 {
    color: #7dd3fc;
}
body.dark-mode .course-card .bg-sky-100 {
    background-color: #0c4a6e;
    color: #e0f2fe;
}

body.dark-mode .course-card .bg-sky-600 {
    background-color: #0ea5e9;
    color: #ffffff; 
}
body.dark-mode .course-card .hover\:bg-sky-700:hover {
    background-color: #38bdf8;
}

body.dark-mode footer.bg-sky-800\/80 {
    background-color: rgba(15, 23, 42, 0.95) !important;
    color: #9ca3af;
}

body.dark-mode footer .text-white {
    color: #f9fafb;
}

body.dark-mode footer .text-sky-200 {
    color: #e0f2fe;
}

body.dark-mode footer .hover\:text-sky-400:hover {
    color: #ffffff;
}

body.dark-mode #darkModeToggle {
    color: #7dd3fc;
}
body.dark-mode #darkModeToggle:hover {
    background-color: #374151;
}

body #darkModeToggle:hover { 
    background-color: #e5e7eb;
}
body.dark-mode #language-toggle {
    color: #7dd3fc;
}
body.dark-mode #language-toggle:hover {
    background-color: #374151;
}
body #language-toggle:hover {
    background-color: #e5e7eb;
}


body.dark-mode .text-sky-100 {
    color: #e0f2fe;
}

body.dark-mode a.bg-white.text-sky-600 { 
    background-color: #38bdf8;
    color: #0c4a6e;
}
body.dark-mode a.bg-white.text-sky-600:hover  {
    background-color: #7dd3fc !important;
}

body.dark-mode #blackOverlay {
    opacity: 0.75;
}

body.dark-mode .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
}
body.dark-mode .shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

body.dark-mode .shadow-inner-top {
    box-shadow: inset 0 4px 6px -1px rgba(255, 255, 255, 0.05);
}

body.dark-mode img {
   filter: brightness(.9) contrast(1.05);
}
body.dark-mode .department-card img,
body.dark-mode header img,
body.dark-mode .bg-white img { 
    filter: none;
}
