/* ============================================
   MOBTAKER - Carousels Component
   ============================================ */

/* Hero Carousel */
.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;

}
.hero-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.hero-slide {
  flex: 0 0 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  padding: var(--space-8) 0;
}

@media (min-width: 768px) {
  .hero-slide {
    min-height: 700px;
    padding: var(--space-16) 0;
  }
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0d2630 100%);
  z-index: -1;
}

@media (max-width: 767px) {
  .hero-slide-bg {
    height: 250px;
    min-height: 0;
  }
}

.hero-slide-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-slide-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-slide-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: rgba(242, 142, 31, 0.15);
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.hero-slide-title {
  font-size: var(--text-3xl);
  color: white;
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hero-slide-title {
    font-size: var(--text-5xl);
  }
}

.hero-slide-subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
}

@media (max-width: 500px) {
  .hero-slide-subtitle {
    display: none;
  }
}

.hero-slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Hero Navigation */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: none;
}

@media (min-width: 768px) {
  .hero-nav {
    display: flex;
  }
}

.hero-nav-prev { left: var(--space-4); }
.hero-nav-next { right: var(--space-4); }

[dir="rtl"] .hero-nav-prev { left: auto; right: var(--space-4); }
[dir="rtl"] .hero-nav-next { right: auto; left: var(--space-4); }

.hero-nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  transition: all var(--transition-fast);
}

.hero-nav button:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.hero-nav button svg {
  width: 20px;
  height: 20px;
}

/* Hero Dots */
.hero-dots {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: all var(--transition-fast);
  cursor: pointer;
  padding: 0;
  border: none;
}

.hero-dot:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.hero-dot.active {
  width: 32px;
  background-color: var(--color-accent);
  border-radius: var(--radius-full);
}

/* Logos Carousel */
.logos-carousel {
  position: relative;
  overflow: hidden;
  padding: var(--space-12) 0;
  width: 100%;
}

.logos-track {
  display: flex;
  animation: scroll 40s linear infinite;
  width: fit-content;
  padding: 0 var(--space-12);
}

.logos-carousel:hover .logos-track {
  animation-play-state: paused;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - var(--space-12))); }
}

@keyframes scroll-rtl {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(50% + var(--space-12))); }
}

[dir="rtl"] .logos-track {
  animation: scroll-rtl 40s linear infinite;
}

.logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 80px;
  margin: 0 var(--space-6);
  padding: var(--space-4);
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.logo-item:hover {
  border-color: var(--color-accent);
}

.logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition-fast);
}

.logo-item img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Partner images - 1:1 aspect ratio with spacing */
.partner-image {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  margin: 0 var(--space-6);
  object-fit: contain;
  opacity: 0.8;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.partner-image:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Certificate images - no boxes */
.cert-image {
  flex-shrink: 0;
  width: 280px;
  height: 200px;
  margin: 0 var(--space-8);
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.cert-image:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.logo-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Placeholder Logo */
.logo-placeholder {
  width: 80px;
  height: 40px;
  background: linear-gradient(135deg, var(--border), var(--surface));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
}

/* Carousel Fade Edges */
.logos-carousel::before,
.logos-carousel::after {
  content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background-size: contain;
   background-position: center;
   background-repeat: no-repeat;
   background: linear-gradient(135deg, var(--color-primary) 0%, #0d2630 100%);
   z-index: -1;
   width: 100%;
   height: 100%;
  background: linear-gradient(to right, var(--bg), transparent);
}

/* --- HERO CAROUSEL MOBILE TWEAKS --- */
@media (max-width: 500px) {
  .hero-slide {
    min-height: 350px;
    padding-top: 0;
    padding-bottom: 0;
    align-items: flex-start;
  }
  .hero-slide .container {
     padding-top: 5vw;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: auto;
  }
  .hero-slide-content {
     margin-top: 6vw;
    margin-bottom: 0;
    padding: 0 8px;
    max-width: 100%;
      
  }
  .hero-dots {
    position: static;
    margin: 24px auto 0 auto;
    justify-content: center;
    transform: none;
    left: unset;
    bottom: unset;
	width: 100%;
  }
}
