/* ==========================================================================
   HERO SLIDER STYLES
   Cinematic full-screen hero with 3 slides, progress timer & typography choreography
   ========================================================================== */

.dash-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--dash-navy-950);
  color: var(--dash-white);
  overflow: hidden;
  padding-top: clamp(4.5rem, 7vh, 5.75rem);
  padding-bottom: clamp(1rem, 2.5vh, 1.75rem);
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .dash-hero {
    height: 100vh;
    height: 100svh;
    max-height: 100vh;
  }
}

/* Background Slides */
.hero-slider-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 500ms var(--ease-in-out-smooth),
              transform 3800ms linear;
  transform: scale(1.03);
}

.hero-slide-bg.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1.0);
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

/* Cinematic Dark Gradient Overlays for High Legibility */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 14, 26, 0.93) 0%,
    rgba(7, 14, 26, 0.84) 45%,
    rgba(7, 14, 26, 0.48) 85%,
    rgba(7, 14, 26, 0.65) 100%
  );
  z-index: 1;
}

[dir="rtl"] .hero-overlay {
  background: linear-gradient(
    270deg,
    rgba(7, 14, 26, 0.93) 0%,
    rgba(7, 14, 26, 0.84) 45%,
    rgba(7, 14, 26, 0.48) 85%,
    rgba(7, 14, 26, 0.65) 100%
  );
}

/* Technical Subtle Grid Texture */
.hero-gridlines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}

/* Hero Content Wrapper */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.hero-slide-inner {
  max-width: 780px;
  width: 100%;
  min-height: clamp(300px, 42vh, 380px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 5;
}

@keyframes heroContentFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-slide-inner.dash-hidden {
  display: none !important;
}

.hero-slide-inner.is-current-content,
.hero-slide-inner.hero-active-content {
  display: flex !important;
  animation: heroContentFadeIn 350ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Slide Choreography Animations */
.hero-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: clamp(0.5rem, 1.2vh, 0.85rem);
  opacity: 1;
  transform: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  background-color: rgba(0, 168, 107, 0.2);
  border: 1px solid rgba(0, 168, 107, 0.45);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--dash-green-300);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--dash-green-400);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--dash-green-400);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: var(--ls-tight);
  color: var(--dash-white);
  margin-bottom: clamp(0.5rem, 1.4vh, 1rem);
  opacity: 1;
  transform: none;
}

[dir="rtl"] .hero-headline {
  font-family: var(--font-arabic);
  letter-spacing: 0;
  line-height: 1.2;
}

.hero-headline .highlight {
  display: block;
  background: linear-gradient(135deg, var(--dash-green-300), var(--dash-green-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(0.9375rem, 0.85rem + 0.35vw, 1.125rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: clamp(0.85rem, 2vh, 1.5rem);
  max-width: 620px;
  opacity: 1;
  transform: none;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: clamp(0.6rem, 1.5vh, 1.25rem);
  opacity: 1;
  transform: none;
}

/* Slide Stat Box */
.hero-stat-box {
  margin-top: 0;
  padding: 0.6rem 1.1rem;
  background: rgba(15, 27, 46, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid var(--dash-green-400);
  border-radius: var(--radius-sm);
  display: inline-flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-self: flex-start;
}

[dir="rtl"] .hero-stat-box {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 3px solid var(--dash-green-400);
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dash-green-300);
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dash-slate-400);
  margin-top: 0.15rem;
}

/* ==========================================================================
   HERO CONTROLS & NAVIGATION BAR
   Slide indicators, progress timer bar, arrow buttons, pause switch
   ========================================================================== */

.hero-bottom-bar {
  position: relative;
  z-index: 10;
  width: 100%;
  margin-top: auto;
}

.hero-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: rgba(11, 25, 44, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.6rem 1.25rem;
}

/* Slide Number Counter (e.g., 01 / 03) */
.hero-counter {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  min-width: 65px;
}

.hero-counter-current {
  font-size: 1.35rem;
  color: var(--dash-green-400);
}

.hero-counter-divider {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.35);
}

.hero-counter-total {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Slide Progress Indicators */
.hero-indicators {
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hero-indicator-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: transparent;
  border: none;
  padding: 0.25rem 0.2rem;
  cursor: pointer;
  text-align: left;
  transition: all var(--duration-fast) var(--ease-out-cubic);
}

[dir="rtl"] .hero-indicator-btn {
  text-align: right;
}

.indicator-progress-track {
  position: relative;
  width: 100%;
  height: 3.5px;
  background-color: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  overflow: hidden;
}

.indicator-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: var(--dash-green-400);
  border-radius: 2px;
}

.hero-indicator-btn.is-active .indicator-progress-fill {
  animation: heroFillProgress 3800ms linear forwards;
}

.hero-indicator-btn.is-done .indicator-progress-fill {
  width: 100%;
}

@keyframes heroFillProgress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

.indicator-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--duration-fast) ease;
}

[dir="rtl"] .indicator-label {
  font-family: var(--font-arabic);
}

.hero-indicator-btn.is-active .indicator-label {
  color: var(--dash-green-300);
  font-weight: 700;
}

.hero-indicator-btn:hover .indicator-label {
  color: var(--dash-white);
}

/* Controls: Prev, Next & Pause Autoplay */
.hero-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-control-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--dash-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out-cubic);
}

.hero-control-btn:hover {
  background-color: var(--dash-green-500);
  border-color: var(--dash-green-400);
  color: var(--dash-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 168, 107, 0.3);
}

.hero-control-btn svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .hero-bottom-inner {
    flex-wrap: wrap;
    padding: 0.6rem 0.85rem;
    gap: 0.75rem;
  }
  .hero-indicators {
    order: 3;
    max-width: 100%;
    width: 100%;
    gap: 0.5rem;
  }
  .hero-controls {
    margin-left: auto;
  }
  [dir="rtl"] .hero-controls {
    margin-left: 0;
    margin-right: auto;
  }
  .hero-slide-inner {
    min-height: auto;
  }
}

.hero-slide-inner.dash-hidden {
  display: none !important;
}

.hero-slide-inner.is-current-content {
  display: flex !important;
}


/* Phones: compact slider (smaller text and buttons, indicators fit the width) */
@media (max-width: 640px) {
  .hero-badge { font-size: 0.6875rem; padding: 0.25rem 0.65rem; letter-spacing: 0.02em; max-width: 100%; }
  .hero-headline { font-size: 1.75rem; line-height: 1.12; }
  .hero-description { font-size: 0.875rem; line-height: 1.5; }
  .hero-ctas { gap: 0.5rem; }
  .hero-ctas .dash-btn { flex: 1 1 calc(50% - 0.25rem); min-width: 0; padding: 0.6rem 0.7rem !important; font-size: 0.8125rem !important; gap: 0.35rem; border-radius: 10px; }
  .hero-ctas .dash-btn .btn-icon, .hero-ctas .dash-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
  .hero-stat-box { padding: 0.45rem 0.8rem; }
  .hero-stat-value { font-size: 0.95rem; }
  .hero-stat-label { font-size: 0.625rem; }
  .hero-bottom-inner { padding: 0.5rem 0.7rem; gap: 0.5rem; }
  .hero-counter { min-width: 0; }
  .hero-counter-current { font-size: 1.1rem; }
  .hero-control-btn { width: 32px; height: 32px; }
  .hero-control-btn svg { width: 16px; height: 16px; }
  .hero-indicators { gap: 0.35rem; }
  .hero-indicator-btn { padding: 0.2rem 0; min-width: 0; }
  .hero-indicator-btn:not(.is-active) .indicator-label { display: none; }
  .hero-indicator-btn.is-active { flex: 3 1 0; }
  .hero-indicator-btn:not(.is-active) { flex: 1 1 0; }
  .indicator-label { font-size: 0.6875rem; }
}