
:root {
  /* Core Grey Luxe Theme */
  --black: #000000;
  --dark-1: #1D1D1D;
  --dark-2: #151515;
  --dark-3: #1B1B1B;
  --dark-4: #2A2A2A;

  --gray-1: #333333;
  --gray-2: #4C4C4C;
  --gray-3: #696969;
  --gray-4: #797979;
  --gray-5: #919191;
  --gray-6: #9C9C9C;
  --gray-7: #B1B1B1;

  --light-1: #D2D2D2;
  --light-2: #E8E8E8;
  --light-3: #F0F0F0;
  --light-4: #F5F5F5;
  --light-5: #FAFAFA;
  --light-6: #FDFDFD;
  --title-sheen: linear-gradient(120deg, #ffffff 0%, #dcdcdc 100%);
}

/* Base Slider Styles */
.section-slider.home-slider {
  position: relative;
  overflow: hidden;
  background: var(--dark-1);
  height: 100vh;
  min-height: 600px;
  z-index: 2; /* Lower than header */
  margin-top: -1px; /* Fix for potential 1px gap */
}

/* Create a new stacking context for the slider content */
.section-slider.home-slider .custom-slider {
  position: relative;
  z-index: 3; /* Higher than header's 995 */
  height: 100%;
}

.custom-slider {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1; /* Ensure it's above the section background */
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1; /* Ensure container is above the custom-slider */
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1; /* Lower than container */
  transform: translateZ(0); /* Force hardware acceleration */
}

.slide.active {
  opacity: 1;
  z-index: 2; /* Active slide above other slides */
}

/* Modern First Slide Styles */
.section-slider.home-slider .slide.active {
  background: linear-gradient(135deg,#0F0F0F 0%,
      #1A1A1A 40%,
      #2A2A2A 100%);
  overflow: hidden;
}

.section-slider.home-slider .slide.active::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  opacity: 0.15;
  z-index: 1;
}

.section-slider.home-slider .slide.active .slide-content {
  position: relative;
  z-index: 2;
  padding: 0 8%;
}

.section-slider.home-slider .slide.active .slide-image {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
  transform: perspective(1500px) rotateX(10deg) rotateY(-15deg);
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  backface-visibility: hidden;
}

.section-slider.home-slider .slide.active:hover .slide-image {
  transform: perspective(1500px) rotateX(0) rotateY(0);
}

.section-slider.home-slider .slide.active .slide-text {
  position: relative;
  z-index: 3;
  max-width: 550px;
  margin-left: 3rem;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  border: none;
}

.section-slider.home-slider .slide.active .slide-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 0.5em;
  color:var(--light-6);
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
  line-height: 1.1;
  letter-spacing: -1px;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--light-6);
  /* text-shadow: 0 2px 15px rgba(197,164,126,0.25); */
  background-clip: text;
  position: relative;
  display: inline-block;
}

.section-slider.home-slider .slide.active .slide-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gray-7);
  opacity: 0.8;
  border-radius: 2px;
}

.section-slider.home-slider .slide.active .slide-date {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-6);
  margin: 1.5rem 0 1.5rem 1.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 30px;
  backdrop-filter: blur(5px);
}

.section-slider.home-slider .slide.active .slide-details {
  font-size: 1.4rem;
  color: var(--light-2);
  opacity: 0.9;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 80%;
}

/* Modern Button */
.section-slider.home-slider .slide.active .slide-button {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--light-5)!important;
  border: 2px solid var(--light-3);
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  z-index: 1;
  text-decoration: none;
}

.section-slider.home-slider .slide.active .slide-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gray-4);
  z-index: -1;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.section-slider.home-slider .slide.active .slide-button:hover {
  transform: translateY(-3px) scale(1.02);
  /* box-shadow: 0 15px 30px rgba(255, 107, 107, 0.4); */
  padding-left: 2.8rem;
  padding-right: 2.2rem;
  background: var(--gold);
  color: var(--black)!important;
  box-shadow:0 0 35px rgba(255,255,255,0.25) ;
}

.section-slider.home-slider .slide.active .slide-button:hover::before {
  opacity: 1;
  color:currentColor;
}

.section-slider.home-slider .slide.active .slide-button i {
  margin-left: 10px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.section-slider.home-slider .slide.active .slide-button:hover i {
  transform: translateX(5px) scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .section-slider.home-slider .slide.active .slide-title {
    font-size: 3.5rem;
  }
}

@media (max-width: 992px) {
  .section-slider.home-slider .slide.active .slide-content {
    flex-direction: column;
    padding: 40px 20px;
  }
  
  .section-slider.home-slider .slide.active .slide-image {
    margin: 0 auto 40px;
    max-width: 80%;
    transform: none !important;
  }
  
  .section-slider.home-slider .slide.active .slide-text {
    text-align: center;
    padding: 0;
  }
  
  .section-slider.home-slider .slide.active .slide-title {
    font-size: 2.8rem;
  }
  
  .section-slider.home-slider .slide.active .slide-details {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 576px) {
  .section-slider.home-slider .slide.active .slide-title {
    font-size: 2.2rem;
  }
  
  .section-slider.home-slider .slide.active .slide-date {
    font-size: 1rem;
  }
  
  .section-slider.home-slider .slide.active .slide-details {
    font-size: 1.1rem;
  }
  
  .section-slider.home-slider .slide.active .slide-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}

/* Slide Content */
.slide-content {
  display: flex;
  height: 100%;
  align-items: center;
  position: relative;
  padding: 0 5%;
  z-index: 3; /* Content above slide background */
  transform: translateZ(0); /* Force hardware acceleration */
}

.slide-image {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.slide-image.full-width {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  overflow: hidden;
}

.slide-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.5s ease;
}

.slide-text {
  flex: 1;
  color: #fff;
  padding: 2rem;
  position: relative;
  z-index: 2;
  max-width: 50%;
}

.slide-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease 0.3s;
}

.slide-date {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease 0.4s;
}

.slide-details {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease 0.5s;
}

.slide.active .slide-title,
.slide.active .slide-date,
.slide.active .slide-details {
  opacity: 1;
  transform: translateY(0);
}

/* Navigation Arrows */
.slider-nav {
  position: absolute; /* Changed from absolute to fixed */
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: var(--dark-3);
  border:1px solid var(--gray-4);
  border-radius: 50%;
  color:var(--light-4);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001; /* Higher than header and slider content */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0.7;
  -webkit-backface-visibility: hidden; /* Fix for flickering in some browsers */
  backface-visibility: hidden;
}

.slider-nav:hover {
  background: var(--light-3);
  color: var(--dark-2)!important;
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
  left: 2rem;
}

.slider-nav.next {
  right: 2rem;
}

.slider-nav i {
  transition: transform 0.3s ease;
}

.slider-nav:hover i {
  transform: scale(1.2);
}

/* Make sure buttons are clickable */
.slider-nav {
  pointer-events: auto !important;
}

/* Ensure slider container has proper stacking context */
.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Make sure slides are properly positioned */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 10;
}

/* Pagination Dots */
.slider-pagination {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 10;
}

.pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-5);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-dot.active {
  background: var(--light-4);
  transform: scale(1.2);
}

/* Button Styles */
.slide-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border: none;
  color: #fff !important;
  border-radius: 4px;
  padding: 10px 20px;
  background: #272727;
  z-index: 20; /* Button above slide content */
  transform: translateZ(0); /* Force hardware acceleration */
}

.slide-button:hover {
    padding-left: 5px;
    background-color: #333;
    border-radius: 4px;
}

.slide-button i {
  margin-left:-5px;
  transition: all 0.3s ease;
  margin-right:0;
  
  opacity:0;
  
}



.slide-button:hover i {
   margin-left: 0;
    margin-right: 10px;
    opacity:1;
}

.slide-button::after {
  display: none;
}

.slide-button:hover::after {
  width: 100%;
}


/* Responsive Styles */
@media (max-width: 768px) {
  .slide-content {
    flex-direction: column;
    padding: 80px 20px;
    text-align: center;
  }

  .slide-text {
    max-width: 100%;
    padding: 2rem 1rem;
  }

  .slide-title {
    font-size: 2.5rem;
  }

  .slide-image {
    margin-bottom: 2rem;
  }

  .slider-nav {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .slider-nav.prev {
    left: 1rem;
  }

  .slider-nav.next {
    right: 1rem;
  }
}

@media (max-width: 576px) {
  .slide-title {
    font-size: 2rem;
  }

  .slide-date {
    font-size: 1.2rem;
  }

  .slide-details {
    font-size: 1rem;
  }

  .slide-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}