@font-face {
  font-family: 'DroidArabicKufi';
  src: url('/../assets/fonts/DroidArabicKufi.ttf') format('truetype');
}

.custom-font {
  font-family: 'DroidArabicKufi';
}

/* END IMPORT FILES & URLS */
/* ******************** */
/* START GLOBAL SETTINGS */
:root {
  --primary-color: #602afc;
  --secondary-color: #602afc50;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  padding-bottom: 70px;
}

::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background-color: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
}

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* END GLOBAL SETTINGS */
/* ******************** */
/* Custom Styles */
.gradient-bg {
  background: linear-gradient(135deg, #602afc 0%, #8b5cf6 50%, #a855f7 100%);
}

.logo-line {
  width: 12px;
  height: 60px;
  background: var(--primary-color);
}

@media(max-width: 767px) {
  .logo-line {
    width: 10px;
    height: 40px;
  }
}

/* Vertical Video Styling */
.vertical-video {
  aspect-ratio: 9 / 16;
  /* TikTok/Instagram Reels ratio */
  height: 600px;
  /* Fixed height for consistency */
  max-height: 70vh;
  /* Responsive max height */
}

/* Custom video controls for vertical video */
.vertical-video::-webkit-media-controls-panel {
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 8px;
}

.vertical-video::-webkit-media-controls-play-button {
  background-color: #602afc;
  border-radius: 50%;
}

.vertical-video::-webkit-media-controls-fullscreen-button {
  display: none !important;
  /* Hide fullscreen button */
}

.vertical-video::-webkit-media-controls-picture-in-picture-button {
  display: none !important;
  /* Hide PIP button */
}

/* Firefox controls */
.vertical-video::-moz-media-controls .moz-media-controls-fullscreen-button {
  display: none !important;
}

/* Animation delay utility */
.animation-delay-300 {
  animation-delay: 300ms;
}

/* Custom play button hover effects */
.play-button-container {
  transition: all 0.3s ease;
}

.play-button-container:hover {
  transform: scale(1.05);
}

/* Loading states */
.vertical-video {
  transition: opacity 0.3s ease;
}

.vertical-video.loading {
  opacity: 0.7;
}

/* Prevent video from expanding */
.vertical-video {
  max-width: 100%;
  width: 100%;
  object-fit: cover;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .vertical-video {
    height: 500px;
    max-height: 60vh;
  }

  .play-button-container .w-16.h-16 {
    width: 3rem;
    height: 3rem;
  }

  .play-button-container .w-20.h-20 {
    width: 4rem;
    height: 4rem;
  }
}

@media (max-width: 640px) {
  .vertical-video {
    height: 450px;
    max-height: 55vh;
  }
}

/* Disable video expansion gestures on mobile */
.vertical-video {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: auto;
}

/* TIMER SECTION */
/* Animation delays */
.animation-delay-200 {
  animation-delay: 200ms;
}

.animation-delay-300 {
  animation-delay: 300ms;
}

.animation-delay-500 {
  animation-delay: 500ms;
}

.animation-delay-700 {
  animation-delay: 700ms;
}

.animation-delay-800 {
  animation-delay: 800ms;
}

.animation-delay-1000 {
  animation-delay: 1000ms;
}

/* Copy notification */
.copy-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #602afc, #8b5cf6);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.copy-notification.show {
  transform: translateX(0);
}

/* Enhanced shadow */
.hover\:shadow-3xl:hover {
  box-shadow: 0 35px 80px rgba(96, 42, 252, 0.3);
}


/* Animation delays */
.animation-delay-200 {
  animation-delay: 200ms;
}

.animation-delay-300 {
  animation-delay: 300ms;
}

.animation-delay-500 {
  animation-delay: 500ms;
}

.animation-delay-600 {
  animation-delay: 600ms;
}

.animation-delay-1000 {
  animation-delay: 1000ms;
}

/* Custom audio player styling */
.volume-slider {
  background: linear-gradient(to right, #602afc 0%, #602afc 70%, #d1d5db 70%, #d1d5db 100%);
}

.volume-slider::-webkit-slider-thumb {
  appearance: none;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: #602afc;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(96, 42, 252, 0.3);
}

.volume-slider::-moz-range-thumb {
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: #602afc;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(96, 42, 252, 0.3);
}

/* Enhanced shadow */
.hover\:shadow-3xl:hover {
  box-shadow: 0 35px 80px rgba(96, 42, 252, 0.3);
}

/* Loading animation for audio */
.loading .play-btn {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* Animation delays */
.animation-delay-200 {
  animation-delay: 200ms;
}

.animation-delay-500 {
  animation-delay: 500ms;
}

.animation-delay-700 {
  animation-delay: 700ms;
}

.animation-delay-1200 {
  animation-delay: 1200ms;
}

/* Custom slow spin animation */
.animate-spin-slow {
  animation: spin 8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Enhanced shadow */
.hover\:shadow-3xl:hover {
  box-shadow: 0 35px 80px rgba(34, 197, 94, 0.3);
}

/* Copy notification for curriculum section */
.copy-notification-curriculum {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #602afc, #8b5cf6);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.copy-notification-curriculum.show {
  transform: translateX(0);
}

/* Animation delays */
.animation-delay-300 {
  animation-delay: 300ms;
}

.animation-delay-600 {
  animation-delay: 600ms;
}

.animation-delay-700 {
  animation-delay: 700ms;
}

.animation-delay-1000 {
  animation-delay: 1000ms;
}

/* Custom Swiper styles */
.swiper-pagination-bullet {
  background: #602afc !important;
  opacity: 0.3 !important;
}

.swiper-pagination-bullet-active {
  opacity: 1 !important;
  transform: scale(1.2) !important;
}

/* Popup animations */
#imagePopup {
  animation: fadeIn 0.3s ease-out;
}

#imagePopup.closing {
  animation: fadeOut 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

/* Custom scrollbar for popup if needed */
.popup-content::-webkit-scrollbar {
  width: 4px;
}

.popup-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.popup-content::-webkit-scrollbar-thumb {
  background: #602afc;
  border-radius: 2px;
}


/* Animation delays */
.animation-delay-400 {
  animation-delay: 400ms;
}

.animation-delay-500 {
  animation-delay: 500ms;
}

.animation-delay-800 {
  animation-delay: 800ms;
}

.animation-delay-1200 {
  animation-delay: 1200ms;
}

/* Custom slow spin animation */
.animate-spin-slow {
  animation: spin 10s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Verification badge custom styling */
.fas.fa-badge-check {
  filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

/* Profile image hover effects */
.group:hover .w-24.h-24 img {
  box-shadow: 0 8px 32px rgba(96, 42, 252, 0.3);
}

/* Card hover animations */
.group:hover {
  transform: translateY(-12px) !important;
}

/* Custom gradient borders */
.bg-gradient-to-r.from-blue-500.to-primary,
.bg-gradient-to-r.from-primary.to-purple-600,
.bg-gradient-to-r.from-green-500.to-blue-500,
.bg-gradient-to-r.from-purple-600.to-pink-500 {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Animation delays */
.animation-delay-200 {
  animation-delay: 200ms;
}

.animation-delay-400 {
  animation-delay: 400ms;
}

.animation-delay-500 {
  animation-delay: 500ms;
}

.animation-delay-700 {
  animation-delay: 700ms;
}

.animation-delay-1000 {
  animation-delay: 1000ms;
}

/* Custom slow spin animation */
.animate-spin-slow {
  animation: spin 8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Enhanced shadow */
.hover\:shadow-3xl:hover {
  box-shadow: 0 35px 80px rgba(16, 185, 129, 0.3);
}

/* Quote animation */
.fas.fa-quote-right {
  transition: all 0.3s ease;
}

.group:hover .fas.fa-quote-right {
  transform: scale(1.1);
  opacity: 0.3 !important;
}

/* Stars animation */
.fas.fa-star {
  transition: all 0.2s ease;
}

.group:hover .fas.fa-star {
  transform: scale(1.1);
}

/* Card lift effect */
.group:hover {
  transform: translateY(-8px) !important;
}

/* Avatar border animation */
.w-12.h-12.bg-gradient-to-r {
  transition: all 0.3s ease;
}

.group:hover .w-12.h-12.bg-gradient-to-r {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Animation delays */
.animation-delay-400 {
  animation-delay: 400ms;
}

.animation-delay-500 {
  animation-delay: 500ms;
}

.animation-delay-800 {
  animation-delay: 800ms;
}

/* Custom slow spin animation */
.animate-spin-slow {
  animation: spin 10s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* FAQ Accordion Animations */
.faq-content {
  transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out;
  opacity: 0;
}

.faq-content.active {
  opacity: 1;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-toggle.active .faq-icon {
  transform: rotate(180deg);
}

/* Smooth hover effects */
.group:hover .w-12.h-12 {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Focus states for accessibility */
.faq-toggle:focus {
  outline: 2px solid #602afc;
  outline-offset: 2px;
  border-radius: 1rem;
}

/* Enhanced gradient backgrounds for answers */
.faq-content>div>div {
  position: relative;
  overflow: hidden;
}

.faq-content>div>div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(96, 42, 252, 0.3), transparent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .faq-toggle {
    padding: 1rem;
  }

  .faq-toggle h3 {
    font-size: 1rem;
    line-height: 1.4;
  }

  .w-12.h-12 {
    width: 2.5rem;
    height: 2.5rem;
  }

  .w-12.h-12 i {
    font-size: 0.875rem;
  }
}

/* =====================================================
   DISCOUNT PROMO POPUP STYLES
   ===================================================== */

/* Popup entry animation */
.animate-popup-in {
  animation: popupSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Popup closing animation */
#discountPopup.popup-closing {
  animation: popupFadeOut 0.3s ease-in forwards;
}

#discountPopup.popup-closing .animate-popup-in {
  animation: popupSlideOut 0.3s ease-in forwards;
}

@keyframes popupFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes popupSlideOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
}

/* Popup shadow enhancement */
#discountPopup > div > div {
  box-shadow: 0 25px 80px rgba(96, 42, 252, 0.35);
}