/* ==========================================================================
   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-section {
    padding: 0;
    margin: 0;
  }

  .hero-slider {
    height: clamp(220px, 48vw, 320px);
  }

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

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

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

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

@media (max-width: 480px) {
  .hero-slider {
    height: clamp(205px, 54vw, 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:not(.hero-slider-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;
  }
}

/* ==========================================================================
   Hero Slide Caption & Content (Integrated in each slide)
   ========================================================================== */
.hero-slide-caption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.hero-caption-container {
  width: 100%;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.hero-text-card {
  max-width: 520px;
  pointer-events: auto;
  position: relative;
  z-index: 6;
  padding: 1.5rem 0;
}

.hero-text-heading {
  font-family: var(--font-heading, inherit);
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 800;
  color: var(--primary, #000064);
  line-height: 1.15;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.hero-slide-title {
  display: inline-block;
  font-family: var(--font-heading, inherit);
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  font-weight: 800;
  color: var(--secondary, #0070D0);
  line-height: 1.2;
  border-left: 4px solid var(--secondary, #0070D0);
  padding-left: 0.75rem;
  margin: 0 0 0.65rem 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.hero-slide-desc {
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
  color: #334155;
  line-height: 1.5;
  font-weight: 500;
  margin: 0 0 1.25rem 0;
  max-width: 440px;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.85);
}

.hero-text-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-btn-courses {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.45rem;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 4px 14px rgba(0, 112, 208, 0.35);
}

.hero-btn-courses:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 112, 208, 0.45);
}

.hero-btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.hero-btn-courses:hover .hero-btn-arrow {
  transform: translateX(3px);
}

.hero-btn-enquire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.45rem;
  font-weight: 700;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--primary, #000064);
  color: var(--primary, #000064);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-btn-enquire:hover {
  background: var(--primary, #000064);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Tablet & Mobile Adjustments */
@media (max-width: 768px) {
  /* Hide the descriptive paragraph on mobile to keep layout clean and compact */
  .hero-slide-desc {
    display: none !important;
  }

  .hero-text-card {
    max-width: 54%;
    padding: 0.4rem 0;
  }

  .hero-text-heading {
    font-size: clamp(0.95rem, 3.6vw, 1.35rem);
    margin-bottom: 0.15rem;
  }

  .hero-slide-title {
    font-size: clamp(0.9rem, 3.4vw, 1.25rem);
    margin-bottom: 0.45rem;
    padding-left: 0.45rem;
    border-left-width: 3px;
  }

  .hero-text-actions {
    gap: 0.35rem;
  }

  .hero-btn-courses,
  .hero-btn-enquire {
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
    min-height: 28px;
  }

  .hero-btn-arrow {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 480px) {
  .hero-text-card {
    max-width: 52%;
    padding: 0.25rem 0;
  }

  .hero-text-heading {
    font-size: clamp(0.85rem, 3.4vw, 1.05rem);
    margin-bottom: 0.1rem;
    line-height: 1.15;
  }

  .hero-slide-title {
    font-size: clamp(0.8rem, 3.2vw, 0.98rem);
    margin-bottom: 0.35rem;
    padding-left: 0.35rem;
    border-left-width: 2.5px;
  }

  .hero-btn-courses,
  .hero-btn-enquire {
    padding: 0.28rem 0.5rem;
    font-size: 0.66rem;
    min-height: 25px;
  }
}


