/* ==========================================================================
   SSGI Hero Section Stylesheet (hero.css)
   Full-Width 3-Slide Image Slider
   ========================================================================== */

.hero-slider-section {
  position: relative;
  width: 100%;
  background: #0B2545;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: clamp(380px, 46vw, 560px);
  overflow: hidden;
  background: #07172C;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.hero-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

/* Subtle Previous / Next Controls */
.hero-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(7, 23, 44, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  padding: 0;
}

.hero-slider-nav svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease;
}

.hero-slider-prev {
  left: 1.5rem;
}

.hero-slider-next {
  right: 1.5rem;
}

.hero-slider-nav:hover {
  background: var(--secondary, #D97706);
  border-color: var(--secondary, #D97706);
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

.hero-slider-prev:hover svg {
  transform: translateX(-2px);
}

.hero-slider-next:hover svg {
  transform: translateX(2px);
}

.hero-slider-nav:active {
  transform: translateY(-50%) scale(0.96);
}

/* Subtle Slide Indicator Dots */
.hero-slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: rgba(7, 23, 44, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-full, 9999px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full, 9999px);
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.9);
}

.hero-dot.active {
  width: 26px;
  background: #F59E0B;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-slider {
    height: clamp(260px, 45vw, 360px);
  }

  .hero-slider-nav {
    width: 38px;
    height: 38px;
  }

  .hero-slider-prev {
    left: 0.75rem;
  }

  .hero-slider-next {
    right: 0.75rem;
  }

  .hero-slider-dots {
    bottom: 1rem;
    padding: 0.3rem 0.6rem;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    height: 240px;
  }

  .hero-slider-nav {
    width: 34px;
    height: 34px;
  }

  .hero-slider-prev {
    left: 0.5rem;
  }

  .hero-slider-next {
    right: 0.5rem;
  }

  .hero-slider-dots {
    bottom: 0.75rem;
  }
}


/* Hero Stats Bar (Below Hero) */
.hero-stats {
  background: #FFFFFF;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  margin-top: -2.75rem;
  position: relative;
  z-index: 10;
  border: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid var(--border);
}

.stat-item {
  padding: 1.6rem 1.25rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-number span.plus {
  color: var(--secondary);
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   Homepage Spacing Optimization - Eliminating Excessive Vertical Gaps
   ========================================================================== */

/* Reduce excessive vertical gaps between sections on homepage */
main > .section {
  padding: 3.5rem 0;
}

/* Reduce excessive blank space right below the hero stats card */
main > .section:first-of-type {
  padding-top: 2.75rem;
}

/* Tighten excessive gap between section headers and their cards/content */
main > .section .section-header {
  margin-bottom: 2.25rem;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3.5rem 0 3rem 0;
  }
  .stat-item {
    padding: 1.25rem 1rem;
  }
  main > .section {
    padding: 2.75rem 0;
  }
  main > .section:first-of-type {
    padding-top: 2.25rem;
  }
  main > .section .section-header {
    margin-bottom: 1.75rem;
  }
}
