/* ============================================================
   HERO SLIDER — FIXED VERSION
   Apne style.css mein existing hero CSS ko DELETE karke
   yeh sara CSS paste kar dein
   ============================================================ */

/* ---------- wrapper + Bootstrap height fix ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

/* Bootstrap carousel aur inner ko bhi force karo */
.hero #heroCarousel,
.hero .carousel,
.hero .carousel-inner {
  height: 100% !important;
}

.hero .carousel-item {
  height: 100vh !important;
  min-height: 600px;
  position: relative !important;
  overflow: hidden;
}

/* ---------- slide background ---------- */
.hero-slide__bg {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.06);
  transition: transform 7s ease;
  z-index: 0;
}

.carousel-item.active .hero-slide__bg {
  transform: scale(1);
}

/* Slide backgrounds — fallback gradient colors (images ke baghair bhi kaam karega) */
.hero-slide--1 .hero-slide__bg {
  background-image: url('images/ibp-slider-1.jpg');
}

.hero-slide--2 .hero-slide__bg {
  background-image: url('images/ibp-slider-2.jpg');
  /*background: linear-gradient(135deg, #0d3b2e 0%, #134e4a 50%, #1a6b5a 100%);*/
}

.hero-slide--3 .hero-slide__bg {
  background-image: url('images/ibp-slider-3.jpg');
  /*background: linear-gradient(135deg, #2e1065 0%, #3b1f5e 50%, #5b2d8e 100%);*/
}

.hero-slide--4 .hero-slide__bg {
  background-image: url('images/ibp-slider-4.jpg');
  /*background: linear-gradient(135deg, #1a1a2e 0%, #1a2744 50%, #243460 100%);*/
}

/* dark overlay */
.hero-slide__overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.40) 55%,
    rgba(0, 0, 0, 0.15) 100%
  );
  z-index: 1;
}

/* ---------- slide content ---------- */
.hero-slide__content {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero-slide__inner {
  padding: 0 8%;
  max-width: 720px;
}

/* ---------- tag ---------- */
.hero-slide__tag {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px 16px;
  margin-bottom: 20px;

  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease 0.2s, transform 0.55s ease 0.2s;
}

/* ---------- line ---------- */
.hero-slide__line {
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.50);
  margin-bottom: 22px;
  transition: width 0.9s ease 0.4s;
}

/* ---------- title ---------- */
.hero-slide__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.12;
  color: #ffffff;
  margin-bottom: 20px;

  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.65s ease 0.55s, transform 0.65s ease 0.55s;
}

.hero-slide__title em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.68);
}

/* ---------- description ---------- */
.hero-slide__desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
  margin-bottom: 36px;

  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease 0.8s, transform 0.6s ease 0.8s;
}

/* ---------- buttons ---------- */
.hero-slide__btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;

  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 1s, transform 0.6s ease 1s;
}

.hero-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border: 1.5px solid transparent;
  display: inline-block;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.hero-btn--primary {
  background: #7b1c2e;        /* IBP maroon colour */
  color: #fff;
  border-color: #7b1c2e;
}

.hero-btn--primary:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.hero-btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.60);
}

.hero-btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* ---------- ACTIVE slide animations ---------- */
.carousel-item.active .hero-slide__tag,
.carousel-item.active .hero-slide__title,
.carousel-item.active .hero-slide__desc,
.carousel-item.active .hero-slide__btns {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.carousel-item.active .hero-slide__line {
  width: 56px;
}

/* ---------- arrows ---------- */
.hero-arrow {
  position: absolute !important;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.10);
  border: 1.5px solid rgba(255, 255, 255, 0.30);
  border-radius: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 30;
  opacity: 1 !important;
  transition: background 0.3s, border-color 0.3s;
}

.hero-arrow--prev { left: 20px; }
.hero-arrow--next { right: 20px; }

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
}

.hero-arrow svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  flex-shrink: 0;
}

/* Bootstrap default icons override */
.hero-arrow .carousel-control-prev-icon,
.hero-arrow .carousel-control-next-icon {
  display: none;
}

/* ---------- dots ---------- */
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 8%;
  display: flex;
  gap: 10px;
  z-index: 30;
}

.hero-dot {
  width: 28px;
  height: 3px;
  background: rgba(255, 255, 255, 0.30);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s, width 0.35s;
}

.hero-dot.active {
  width: 50px;
  background: #fff;
}

/* ---------- progress bar ---------- */
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 30;
}

.hero-progress-fill {
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.70);
}

/* ---------- scroll hint ---------- */
.hero-scroll-hint {
  position: absolute;
  bottom: 24px;
  right: 8%;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.hero-scroll-line {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.75);
  animation: scrollDrop 2s ease infinite;
}

@keyframes scrollDrop {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ---------- responsive ---------- */
@media (max-width: 768px) {
  .hero,
  .hero .carousel-item {
    height: 85vh !important;
    min-height: 500px;
  }

  .hero-slide__inner {
    padding: 0 5%;
  }

  .hero-slide__desc {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .hero-btn {
    padding: 12px 24px;
    font-size: 12px;
  }

  .hero-arrow--prev { left: 8px; }
  .hero-arrow--next { right: 8px; }

  .hero-scroll-hint { display: none; }

  .hero-dots {
    left: 50%;
    transform: translateX(-50%);
  }
}