/* Video container styling */
.video-container {
  margin-top: 65px;
  height: 700px;
  overflow: hidden;
  position: relative;
}

/* Text overlay on video */
.video-inside-div {
  position: absolute;
  top: 30%;
  left: 5%;
  width: 90%;
  /* Increased for better coverage */
  color: #21252A;
  z-index: 2;
}

.video-inside-div p {
  line-height: 1.1;
  /* Tighter line height for titles */
}

/* Specific text wrapping for description */
.video-inside-div .w-50 {
  width: 70% !important;
  /* Allow description more space on smaller screens */
}

@media (max-width: 768px) {
  .video-container {
    height: 500px;
    /* Shorter for mobile */
  }

  .video-inside-div {
    top: 55%;
    width: 90%;
    left: 5%;
  }

  .video-inside-div p.fs-1 {
    font-size: 1.25rem !important;
    letter-spacing: 1px;
  }

  .video-inside-div p[style*="60px"] {
    font-size: 32px !important;
    margin-bottom: 5px !important;
  }

  .video-inside-div p.fs-4 {
    font-size: 0.9rem !important;
    letter-spacing: 0.5px;
  }

  .video-inside-div .w-50 {
    width: 90% !important;
    font-size: 13px !important;
  }

  .video-text-special {
    border-width: 2px !important;
    padding: 0px 15px !important;
    margin-bottom: 10px !important;
  }
}

/* NEW badge inside video */
.video-text-special {
  border: 4px solid #21252A;
  padding: 0px 25px;
  width: fit-content;
  text-transform: uppercase;
}

/* Slideshow container */
.slideshow {
  height: 100%;
  width: 100%;
  position: relative;
  background: #000;
}

/* Slide images with Ken Burns zoom effect */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
  transform: scale(1.05);
  /* Base scale for transition */
}

/* Show the active slide and trigger zoom */
.slide.active {
  opacity: 1;
  z-index: 1;
  animation: kenBurns 8s ease-out forwards;
}

@keyframes kenBurns {
  0% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1.15);
  }
}

/* STAGGERED HERO TEXT ANIMATIONS */
.hero-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-animate.active {
  opacity: 1;
  transform: translateY(0);
}

/* Overlay for better readability if needed */
.video-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 1;
}


/* Progress Bar for Slideshow */
.progress-bar-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.2);
  z-index: 10;
}

.progress-bar-fill {
  height: 100%;
  background-color: #176734;
  /* Theme green */
  width: 0%;
}

/* Home Magazine Section */
.home-magazine-section {
  padding: 80px 0;
  background-color: #FAFAFA;
}

.magazine-img-wrapper {
  overflow: hidden;
  border-radius: 0px;
  position: relative;
}

.magazine-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.magazine-img-wrapper:hover img {
  transform: scale(1.05);
}

/* Glass Card Styling */
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 30px;
  margin-top: -50px;
  /* Overlap effect */
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.glass-card.bg-dark {
  background: rgba(33, 37, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Typography */
.magazine-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: #176734;
  margin-bottom: 10px;
}

.magazine-label.text-white {
  color: rgba(255, 255, 255, 0.8) !important;
}

.magazine-title {
  font-weight: 800;
  line-height: 1;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
  color: #21252A;
}

.magazine-title.text-white {
  color: white !important;
}