/* Heaven 7.0 Custom Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
}

/* RTL Support for Arabic */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

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

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

::-webkit-scrollbar-track {
  background: #0A3D62;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #F9E79F;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Golden glow effect */
.glow-gold {
  text-shadow: 0 0 10px rgba(241, 196, 15, 0.5),
               0 0 20px rgba(241, 196, 15, 0.3),
               0 0 30px rgba(241, 196, 15, 0.2);
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(241, 196, 15, 0.3);
}

/* Language selector custom style */
#language-selector {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23F1C40F' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 35px;
  appearance: none;
}

/* Chapter selector dropdown style */
#chapter-selector {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23F1C40F' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 45px;
  appearance: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#chapter-selector:focus {
  outline: none;
  border-color: #F9E79F;
  box-shadow: 0 0 0 3px rgba(241, 196, 15, 0.3);
}

#chapter-selector option {
  background-color: #073763;
  color: white;
  padding: 10px;
}

#chapter-selector optgroup {
  background-color: #0A3D62;
  color: #F1C40F;
  font-weight: bold;
  font-style: normal;
}

/* Video container responsiveness */
.aspect-video {
  aspect-ratio: 16 / 9;
}

/* Responsive grid improvements */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
}