/* ==========================================
   GYWAN - Hero Slideshow Component
   ========================================== */

/* Hero Slideshow Container */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

/* Slider Container */
.hero-slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Individual Slides */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(124, 58, 237, 0.2);
  z-index: 2;
}

.about-counter-box {
  background-color: var(--primary) !important;
}

.counter-number {
  color: var(--secondary) !important;
}

.counter-label {
  color: var(--text-white) !important;
}

/* Slide Content */
/* Slide Content Animations */
.hero-slide-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white !important;
  max-width: 800px;
  padding: 0 20px;
  margin: 0 auto;
}

/* Initial hidden state for elements */
.hero-slide-badge,
.hero-slide-title,
.hero-slide-description,
.hero-slide-btn {
  opacity: 0;
  color: var(--text-white) !important;
}

.hero-slide-title span {
  color: var(--secondary) !important;
}

/* Animations only trigger when slide is active to ensure they play when visible */
.hero-slide.active .hero-slide-badge {
  animation: slideUp 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
}

.hero-slide.active .hero-slide-title {
  animation: slideUp 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) 0.2s forwards;
}

.hero-slide.active .hero-slide-description {
  animation: slideUp 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) 0.4s forwards;
}

.hero-slide.active .hero-slide-btn {
  animation: slideUp 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) 0.6s forwards;
}

/* Badge Styles */
.hero-slide-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.5), rgba(167,139,250,0.5));
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* Title Styles */
.hero-slide-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-slide-title span {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Description Styles */
.hero-slide-description {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Button Styles */
.hero-slide-btn {
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: inline-block; /* Ensure transform works */
}

.hero-slide-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Keyframes for Sliding Animation */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navigation Arrows */
.hero-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 4;
  backdrop-filter: blur(10px);
}

.hero-slider-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.hero-slider-nav i {
  color: white;
  font-size: 1.5rem;
}

.hero-slider-prev {
  left: 30px;
}

.hero-slider-next {
  right: 30px;
}

/* Slide Indicators */
.hero-slider-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 4;
}

.hero-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-indicator.active,
.hero-indicator:hover {
  background: white;
  transform: scale(1.2);
}

.cta.donate-btn {
  background-color: var(--primary) !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-slide-title {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  .hero-slideshow {
    height: 80vh;
  }
  
  .hero-slide-title {
    font-size: 2.5rem;
  }
  
  .hero-slide-description {
    font-size: 1.1rem;
  }
  
  .hero-slider-nav {
    width: 50px;
    height: 50px;
  }
  
  .hero-slider-prev {
    left: 20px;
  }
  
  .hero-slider-next {
    right: 20px;
  }

  .video-side {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-slideshow {
    height: 70vh;
    min-height: 500px;
  }
  
  .hero-slide-title {
    font-size: 2rem;
  }
  
  .hero-slide-description {
    font-size: 1rem;
  }
  
  .hero-slide-btn {
    padding: 12px 30px;
    font-size: 1rem;
  }
  
  .hero-slider-nav {
    width: 40px;
    height: 40px;
  }
  
  .hero-slider-prev {
    left: 15px;
  }
  
  .hero-slider-next {
    right: 15px;
  }
  
  .hero-slider-indicators {
    bottom: 20px;
  }
}

@media (max-width: 576px) {
  .hero-slideshow {
    height: 60vh;
    min-height: 450px;
  }
  
  .hero-slide-title {
    font-size: 1.8rem;
  }
  
  .hero-slide-badge {
    padding: 6px 15px;
    font-size: 0.8rem;
  }
  
  .hero-slide-description {
    font-size: 0.9rem;
  }
  
  .hero-slide-btn {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
  
  .hero-slider-nav {
    display: none;
  }
}

/* ==========================================
   Split Video Section Styles
   ========================================== */
.split-video-section {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  min-height: 500px;
  background-color: #111;
  color: white;
  position: relative;
  overflow: hidden;
}

.text-side {
  flex: 1;
  min-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 60px;
  background-color: var(--primary-dark, #2a0a55);
  position: relative;
  z-index: 2;
}

.text-content {
  max-width: 600px;
  width: 100%;
}

.text-content h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.2;
  color: white;
}

.text-content p {
  font-size: 1.2rem;
  margin-bottom: 35px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.video-side {
  flex: 1;
  min-width: 300px;
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.video-side video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* Button Highlight Style */
.btn-highlight {
  background-color: var(--secondary);
  color: var(--primary-dark, #2a0a55) !important;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  display: inline-block;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-highlight:hover {
  background-color: transparent;
  color: white !important;
  border-color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .split-video-section {
    flex-direction: column;
  }
  
  .text-side {
    padding: 60px 30px;
    order: 2;
    text-align: center;
  }

  .video-side {
    height: 350px;
    flex: none;
    order: 1;
  }

  .text-content h2 {
    font-size: 2.2rem;
  }
}