/* Custom Styles for Education Website */

/* Navigation fixes */
#navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  transition: all 0.3s ease;
  background: white !important;
}

.dark nav {
  background: #0f172a !important;
}

.navbar-scrolled {
  background: white !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.dark .navbar-scrolled {
  background: #0f172a !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Professional Color Palette */
:root {
  --primary-color: #f97316;
  /* Orange - Primary */
  --secondary-color: #0891b2;
  /* Teal - Secondary */
  --accent-color: #a855f7;
  /* Purple - Accent */
  --neutral-color: #6b7280;
  /* Gray - Neutral */

  /* Light theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --border-color: #e5e7eb;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Dark theme */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --border-color: #475569;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* RTL Support */
[dir="rtl"] .navbar-brand {
  margin-right: 0;
  margin-left: auto;
}

[dir="rtl"] .dropdown-menu {
  left: auto;
  right: 0;
}

/* Fix logo spacing in RTL */
[dir="rtl"] .flex.items-center.space-x-2> :not(:first-child) {
  margin-right: 0.5rem !important;
  margin-left: 0 !important;
}

[dir="rtl"] .flex.items-center.space-x-2> :first-child {
  margin-right: 0 !important;
}

[dir="rtl"] .flex.items-center.space-x-2 {
  --tw-space-x-reverse: 1;
}

[dir="rtl"] .space-x-2> :not([hidden])~ :not([hidden]) {
  margin-right: calc(0.5rem * var(--tw-space-x-reverse)) !important;
  margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse))) !important;
}

/* Fix logo spacing in RTL */
[dir="rtl"] .flex.items-center.space-x-2> :not(:first-child) {
  margin-right: 0.5rem !important;
  margin-left: 0 !important;
}

[dir="rtl"] .flex.items-center.space-x-2> :first-child {
  margin-right: 0 !important;
}

[dir="rtl"] .flex.items-center.space-x-2 {
  --tw-space-x-reverse: 1;
}

[dir="rtl"] .space-x-2> :not([hidden])~ :not([hidden]) {
  margin-right: calc(0.5rem * var(--tw-space-x-reverse)) !important;
  margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse))) !important;
}

/* Fix dropdown positioning in RTL mode */
[dir="rtl"] .dropdown .dropdown-content {
  transform-origin: top right;
  left: auto !important;
  right: 0 !important;
}

/* Fix dropdown positioning for all dropdowns in RTL */
[dir="rtl"] .dropdown-content {
  left: auto !important;
  right: 0 !important;
}

/* Fix specific dropdown positioning in RTL */
[dir="rtl"] .dropdown:nth-child(1) .dropdown-content,
[dir="rtl"] .dropdown:nth-child(6) .dropdown-content {
  left: auto !important;
  right: 0 !important;
  transform-origin: top right;
}

/* Ensure dropdowns remain visible in RTL mode */
[dir="rtl"] .dropdown-content {
  right: 0 !important;
  left: auto !important;
  z-index: 1000 !important;
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }

  70% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.6s ease-out;
}

.animate-bounce-in {
  animation: bounceIn 0.8s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

/* Animation delays */
.animation-delay-500ms {
  animation-delay: 0.5s;
  animation-fill-mode: both;
}

.animation-delay-1s {
  animation-delay: 1s;
  animation-fill-mode: both;
}

.animation-delay-1-5s {
  animation-delay: 1.5s;
  animation-fill-mode: both;
}

.animation-delay-2s {
  animation-delay: 2s;
  animation-fill-mode: both;
}

.animation-delay-2-5s {
  animation-delay: 2.5s;
  animation-fill-mode: both;
}

.animation-delay-3s {
  animation-delay: 3s;
  animation-fill-mode: both;
}

.animation-delay-3-5s {
  animation-delay: 3.5s;
  animation-fill-mode: both;
}

.animation-delay-4s {
  animation-delay: 4s;
  animation-fill-mode: both;
}

/* Custom Utilities */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-white {
  background: linear-gradient(135deg, #ffffff, #e0e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-hover {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.card-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.card-hover:hover::before {
  left: 100%;
}

.btn-primary {
  @apply bg-orange-500 hover:bg-orange-600 text-white font-semibold py-3 px-6 rounded-lg transition-all duration-300 transform hover:scale-105 shadow-lg hover:shadow-xl;
}

.btn-secondary {
  @apply bg-orange-500 hover:bg-orange-600 text-white font-semibold py-3 px-6 rounded-lg transition-all duration-300 transform hover:scale-105 shadow-lg hover:shadow-xl;
}

.btn-accent {
  @apply bg-orange-500 hover:bg-orange-600 text-white font-semibold py-3 px-6 rounded-lg transition-all duration-300 transform hover:scale-105 shadow-lg hover:shadow-xl;
}

/* Enhanced scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border-radius: 10px;
  border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

/* Enhanced card hover effects */
.card-hover {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.card-hover:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Enhanced button styles */
.btn-primary {
  @apply bg-gradient-to-r from-orange-500 to-orange-600 text-white font-semibold py-3 px-6 rounded-lg transition-all duration-300 transform hover:scale-105 shadow-lg hover:shadow-xl relative overflow-hidden z-10;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
  z-index: -1;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  @apply bg-gradient-to-r from-teal-500 to-teal-600 text-white font-semibold py-3 px-6 rounded-lg transition-all duration-300 transform hover:scale-105 shadow-lg hover:shadow-xl relative overflow-hidden z-10;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
  z-index: -1;
}

.btn-secondary:hover::before {
  left: 100%;
}

.btn-accent {
  @apply bg-gradient-to-r from-purple-500 to-purple-600 text-white font-semibold py-3 px-6 rounded-lg transition-all duration-300 transform hover:scale-105 shadow-lg hover:shadow-xl relative overflow-hidden z-10;
}

.btn-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
  z-index: -1;
}

.btn-accent:hover::before {
  left: 100%;
}

/* Enhanced gradient effects */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 50%, var(--primary-color) 100%);
}

/* Glassmorphism effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Enhanced text gradient */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
}

/* Pulse animation */
@keyframes pulse-enhanced {
  0% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(249, 115, 22, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
  }
}

.pulse-effect {
  animation: pulse-enhanced 2s infinite;
}

/* Enhanced hover effects for links */
a {
  transition: all 0.3s ease !important;
}

a:hover {
  color: var(--primary-color) !important;
}

/* Enhanced input fields */
input,
textarea,
select {
  transition: all 0.3s ease !important;
  border: 2px solid var(--border-color) !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2) !important;
  outline: none !important;
}

/* Enhanced dropdowns */
.dropdown-content {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  z-index: 1000;
  min-width: 12rem;
  padding: 0.5rem 0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.dropdown-content.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Enhanced mobile menu */
.mobile-menu {
  transition: transform 0.3s ease !important;
  transform: translateX(-100%);
  background-color: white !important;
  max-height: 100vh;
  overflow-y: auto;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1) !important;
  z-index: 9999 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 16rem !important;
  /* 64 * 0.25rem = 16rem */
  height: 100vh !important;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu.active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

/* RTL support for mobile menu positioning */
[dir="rtl"] .mobile-menu {
  left: auto !important;
  right: 0 !important;
  transform: translateX(100%);
}

[dir="rtl"] .mobile-menu.active {
  transform: translateX(0);
}

/* Ensure mobile menu works on all screen sizes */
@media (max-width: 1023px) {
  .mobile-menu {
    display: block !important;
  }

  .lg\:hidden {
    display: block !important;
  }
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.fade-out {
  opacity: 0;
}

/* Enhanced image hover effects */
img {
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  border-radius: 8px !important;
}

img:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
  border-radius: 12px !important;
}

/* Enhanced typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  transition: all 0.3s ease !important;
}

/* Enhanced form elements */
.form-control {
  border: 2px solid var(--border-color) !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  transition: all 0.3s ease !important;
}

.form-control:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2) !important;
  outline: none !important;
}

/* Mobile menu transition */
.mobile-menu {
  transition: transform 0.3s ease-in-out;
  transform: translateX(-100%);
  background-color: white !important;
  max-height: 100vh;
  overflow-y: auto;
}

.dark .mobile-menu {
  background-color: #0f172a !important;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* RTL support for mobile menu */
[dir="rtl"] .mobile-menu {
  transform: translateX(100%);
}

[dir="rtl"] .mobile-menu.active {
  transform: translateX(0);
}

/* Ensure close button works properly in RTL */
[dir="rtl"] .mobile-menu button[id="mobile-menu-close"] {
  margin-left: auto;
  margin-right: 0;
}

[dir="rtl"] .mobile-menu .flex.items-center.justify-between {
  flex-direction: row-reverse;
}

/* RTL support for mobile menu button */
[dir="rtl"] .flex.items-center.justify-between {
  flex-direction: row-reverse;
}

[dir="rtl"] #mobile-menu-btn {
  margin-left: 0;
  margin-right: auto;
  order: -1;
}

/* Ensure mobile menu button is on the left in RTL mode */
[dir="rtl"] .flex.items-center.justify-between>#mobile-menu-btn {
  order: -1;
  margin-right: auto;
  margin-left: 0;
}

/* RTL support for mobile menu items */
[dir="rtl"] .mobile-menu nav a {
  text-align: right;
}

[dir="rtl"] #mobile-direction-toggle {
  flex-direction: row-reverse;
}

[dir="rtl"] #mobile-direction-icon {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* RTL support for admin dashboard header */
[dir="rtl"] header .flex.items-center.justify-between {
  flex-direction: row-reverse;
}

[dir="rtl"] header .flex.items-center.space-x-4:first-child {
  order: 2;
}

[dir="rtl"] header .flex.items-center.space-x-4:last-child {
  order: 1;
}

[dir="rtl"] header .flex.items-center.space-x-4> :not([hidden])~ :not([hidden]) {
  margin-right: calc(1rem * var(--tw-space-x-reverse)) !important;
  margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse))) !important;
}

/* Additional RTL support for header elements */
[dir="rtl"] header .flex.items-center.space-x-4 {
  --tw-space-x-reverse: 1;
}

/* Dropdown animations - improved for stability */
.dropdown-content {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  min-width: 12rem;
  /* Add padding to create a larger hover area */
  padding: 0.5rem 0;
}

.dropdown-content.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Add a small triangle/arrow to dropdowns for better UX */
.dropdown-content:before {
  content: '';
  position: absolute;
  top: -8px;
  left: 20px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid white;
  z-index: 1001;
}

.dark .dropdown-content:before {
  border-bottom-color: #1e293b;
}

/* RTL specific dropdown animations */
[dir="rtl"] .dropdown-content {
  transform: translateY(-10px) translateX(0);
}

[dir="rtl"] .dropdown-content.visible {
  transform: translateY(0) translateX(0);
}

/* Fix spacing between navbar items in RTL */
[dir="rtl"] .md\:flex.items-center.space-x-8> :not(:first-child) {
  margin-right: 2rem !important;
  margin-left: 0 !important;
}

[dir="rtl"] .md\:flex.items-center.space-x-8> :first-child {
  margin-right: 0 !important;
}

/* Ensure proper spacing in RTL mode */
[dir="rtl"] .md\:flex.items-center.space-x-8 {
  --tw-space-x-reverse: 1;
}

[dir="rtl"] .space-x-8> :not([hidden])~ :not([hidden]) {
  margin-right: calc(2rem * var(--tw-space-x-reverse)) !important;
  margin-left: calc(2rem * calc(1 - var(--tw-space-x-reverse))) !important;
}

/* Fix spacing between login button and RTL toggle in RTL mode */
[dir="rtl"] .md\:flex.items-center.space-x-4> :not(:first-child) {
  margin-right: 1rem !important;
  margin-left: 0 !important;
}

[dir="rtl"] .md\:flex.items-center.space-x-4> :first-child {
  margin-right: 0 !important;
}

[dir="rtl"] .md\:flex.items-center.space-x-4 {
  --tw-space-x-reverse: 1;
}

[dir="rtl"] .space-x-4> :not([hidden])~ :not([hidden]) {
  margin-right: calc(1rem * var(--tw-space-x-reverse)) !important;
  margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse))) !important;
}

/* Ensure dropdowns work properly in RTL - Enhanced positioning */
[dir="rtl"] .dropdown-content {
  left: auto !important;
  right: 0 !important;
  transform: translateX(0) !important;
}

/* Fix dropdown positioning in RTL for home and dashboard dropdowns */
[dir="rtl"] .dropdown:nth-child(1) .dropdown-content,
[dir="rtl"] .dropdown:nth-child(6) .dropdown-content {
  right: 0 !important;
  left: auto !important;
  transform: translateX(0) !important;
}

/* Ensure dropdowns are visible and clickable in RTL */
[dir="rtl"] .dropdown-content {
  z-index: 1000 !important;
  min-width: 12rem !important;
  right: 0 !important;
  left: auto !important;
}

/* Fix spacing for dropdown trigger elements in RTL */
[dir="rtl"] .dropdown-trigger.flex.items-center.space-x-1> :not(:first-child) {
  margin-right: 0.25rem !important;
  margin-left: 0 !important;
}

[dir="rtl"] .dropdown-trigger.flex.items-center.space-x-1> :first-child {
  margin-right: 0 !important;
}

[dir="rtl"] .dropdown-trigger.flex.items-center.space-x-1 {
  --tw-space-x-reverse: 1;
}

[dir="rtl"] .space-x-1> :not([hidden])~ :not([hidden]) {
  margin-right: calc(0.25rem * var(--tw-space-x-reverse)) !important;
  margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse))) !important;
}

/* Mobile optimizations */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
}

/* Image styling */
img {
  transition: all 0.3s ease;
}

img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Additional responsive adjustments */
@media (max-width: 768px) {

  .animate-fade-in-up,
  .animate-fade-in-left,
  .animate-fade-in-right,
  .animate-scale-in {
    animation: none;
  }

  .animation-delay-500ms,
  .animation-delay-1s,
  .animation-delay-1-5s,
  .animation-delay-2s,
  .animation-delay-2-5s,
  .animation-delay-3s,
  .animation-delay-3-5s,
  .animation-delay-4s {
    animation-delay: 0s;
  }
}

/* Direction toggle button styling */
#direction-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background-color: #f1f5f9 !important;
  transition: all 0.3s ease;
  cursor: pointer;
}

.dark #direction-toggle {
  background-color: #1e293b !important;
}

#direction-toggle:hover {
  background-color: #e2e8f0 !important;
}

.dark #direction-toggle:hover {
  background-color: #334155 !important;
}

#direction-icon {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile direction toggle button */
#mobile-direction-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background-color: #f1f5f9;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
  cursor: pointer;
}

.dark #mobile-direction-toggle {
  background-color: #1e293b;
}

#mobile-direction-toggle:hover {
  background-color: #e2e8f0;
}

.dark #mobile-direction-toggle:hover {
  background-color: #334155;
}

#mobile-direction-icon {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

/* Additional enhanced styles */

/* Floating animation */
.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Enhanced course card styles */
.course-card {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  border-radius: 16px !important;
  overflow: hidden;
}

.course-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

/* Enhanced testimonial cards */
.testimonial-card {
  transition: all 0.3s ease !important;
  border-radius: 16px !important;
  padding: 2rem !important;
}

.testimonial-card:hover {
  transform: scale(1.03) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Enhanced statistics counters */
.counter {
  font-weight: bold;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease !important;
}

#navbar {
  backdrop-filter: blur(10px) !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

.dark nav {
  background: rgba(15, 23, 42, 0.9) !important;
}

/* Enhanced social icons */
.social-icon {
  transition: all 0.3s ease !important;
  border-radius: 50% !important;
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.1) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2) !important;
}

/* Enhanced form inputs */
.form-input {
  transition: all 0.3s ease !important;
  border-radius: 10px !important;
  padding: 14px !important;
}

.form-input:focus {
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2) !important;
}

/* Enhanced badges */
.badge {
  transition: all 0.3s ease !important;
  border-radius: 50px !important;
}

/* Enhanced hover effects for all elements */
* {
  box-sizing: border-box;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Enhanced focus states */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary-color) !important;
  outline-offset: 2px !important;
}