/* =====================================================
   HERO SIMPLE CAROUSEL - MENAMPILKAN GAMBAR UTUH
   Fokus: Gambar tampil 100% tanpa cropping
   ===================================================== */

/* Hero Section Base */
.hero-simple {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e4e5d 0%, #2a6b7d 100%);
}

/* High-specificity overrides to avoid earlier global styles interfering
   (some files define .hero or .hero-container as flex; force block layout
    for this simple hero variant and ensure centering) */
.hero.hero-simple {
  display: block !important;
}

.hero.hero-simple .hero-container {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hero Container - FULL WIDTH untuk background image */
.hero-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90%; /* Turunkan tinggi agar posisi turun */
  margin: 0;
  padding: 0;
  /* Overlay gelap di atas gambar */
}
.hero-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(30,78,93,0.5) 0%, rgba(30,78,93,0.7) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Hero Slides Container */
.hero-slides {
  position: relative;
  height: 100%;
  display: flex;
  transition: transform 0.5s ease-in-out;
}

/* Individual Hero Slide - FULL BACKGROUND dengan content overlay */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  display: flex;
  align-items: center; /* center vertically */
  justify-content: center; /* center horizontally */
  padding: 0 5%;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Hero text content - overlay at bottom with dark background */
.hero-text-content {
  background: rgba(0, 0, 0, 0.6); /* Dark background for better text contrast */
  backdrop-filter: blur(4px);
  padding: 30px;
  border-radius: 8px;
  margin-top: auto; /* Push to bottom */
}

/* Eyebrow text styling */
.hero-content .eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero Content - NOW CONTAINS THE IMAGE as background */
.hero-content {
  position: relative;
  z-index: 3;
  width: 90%; /* Lebar content 90% dari full background */
  height: 95%; /* Tinggi 95% dari full background */
  max-width: 1400px;
  color: white;
  text-align: left;
  padding: 40px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Text at bottom */
  margin: 0 auto;
  overflow: hidden;
}



.hero-title {
  font-size: 2.2rem; /* Slightly smaller to fit with image */
  font-weight: 700;
  margin: 0 0 15px 0;
  line-height: 1.2;
  text-align: left;
  color: #ffffff; /* Pure white for maximum contrast */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Shadow for better readability */
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 20px;
  opacity: 1; /* Full opacity instead of 0.9 */
  text-align: left;
  color: #f8f9fa; /* Light gray-white for good contrast */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Subtle shadow */
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start; /* Left align untuk balance */
}

/* Navigation */
.hero-nav {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 4;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 15px 25px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-nav-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.hero-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.hero-indicators {
  display: flex;
  gap: 10px;
}

.hero-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-indicator.active {
  background: white;
  border-color: white;
}

.hero-indicator:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.7);
}

/* =====================================================
   RESPONSIVE DESIGN - OPTIMAL DI SEMUA DEVICE
   ===================================================== */

@media screen and (max-width: 1024px) {
  .hero-slide {
    padding: 0 4%;
    justify-content: center;
  }

  .hero-content {
    width: 90%; /* keep overlay large on tablet */
    height: 95%; /* keep high to match user's request */
    text-align: center;
    padding: 30px;
  }

  .hero-title {
    font-size: 2rem;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }
}

@media screen and (max-width: 768px) {
  .hero-slide {
    padding: 0 5%;
    justify-content: center;
  }

  .hero-content {
    width: 95%; /* Slightly larger on narrow screens to feel full-width */
    height: 90%; /* Keep high but allow some breathing room on mobile */
    text-align: center;
    background: rgba(30, 78, 93, 0.9);
    padding: 25px 20px;
  }

  .hero-title {
    font-size: 1.6rem;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
    gap: 8px;
  }
}

@media screen and (max-width: 480px) {
  .hero-content {
    margin: 10px;
    padding: 20px 15px;
  }

  .hero-title {
    font-size: 1.4rem;
  }

  .hero-nav {
    bottom: 15px;
    gap: 15px;
    padding: 10px 15px;
  }
}

/* =====================================================
   ANIMATIONS & EFFECTS
   ===================================================== */

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-slide.active .hero-content {
  animation: fadeInSlide 0.6s ease-out;
}

/* Loading state */
.hero-image:not([src]) {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}