/*
 *  File: hero-banner.css
 *  Styling for the hero banner component.
 *  Depends on color variables defined in header.css
 */

.hero-slider {
  position: relative;
  width: 100%;
  background-color: var(--color-light-gray);
  overflow: hidden;
  box-sizing: border-box;
}

.slides-container {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  min-height: 85vh;
  max-height: 700px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

/* Split-Screen Layout */
.slide-content,
.slide-image {
  flex: 1;
  width: 500px;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
 
}

.slide-image{
     margin: 4rem;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 10px 14px gainsboro;
}
.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  background-color: var(--color-light-gray);
  padding: 2rem 4rem;
  box-sizing: border-box;
}

.slide-text {
  max-width: 500px;
}

.slide-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--color-dark);
  font-weight: 700;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.slide-description {
  font-size: 1.1rem;
  color: var(--color-medium-gray);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Slider Navigation (Arrows & Dots) --- */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 10;
}

.slider-nav:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.slider-nav.prev {
  left: 2rem;
}
.slider-nav.next {
  right: 2rem;
}

.slider-pagination {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.pagination-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.pagination-dot.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.2);
}

/* --- Responsive Design for Mobile --- */
@media (max-width: 768px) {
  .slide {
    flex-direction: column-reverse;
    min-height: 90vh;
    max-height: none;
  }

  .slide-content,
  .slide-image {
    width: 100%;
  }

  .slide-content {
    flex: 0;
    padding: 2rem;
    text-align: center;
  }

  .slide-image {
    height: 50vh;
  }

  .slide-title {
    font-size: 2rem;
  }

  .slide-description {
    font-size: 1rem;
  }

  .slider-nav {
    width: 40px;
    height: 40px;
  }
  .slider-nav.prev {
    left: 1rem;
  }
  .slider-nav.next {
    right: 1rem;
  }

  .slider-pagination {
    bottom: 1.5rem;
  }
}
