/* ==========================================================================
   Gisela English Medium High School - Banner Carousel & Quick Stats Strip
   ========================================================================== */

/* Outer Section Wrappers */
.banner-section-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  padding: 1rem 1rem 0;
  background: #f7f9f7;
}

@media (min-width: 640px) {
  .banner-section-wrapper {
    padding: 1.25rem 1.5rem 0;
  }
}

@media (min-width: 1024px) {
  .banner-section-wrapper {
    padding: 1.5rem 2rem 0;
  }
}

/* Banner Carousel Main Container */
.banner-carousel-container {
  position: relative;
  max-width: 1536px;
  margin: 0 auto;
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(16, 47, 36, 0.12), 0 4px 16px rgba(16, 47, 36, 0.06);
  border: 1px solid rgba(16, 47, 36, 0.08);
  background: #0d251d;
  user-select: none;
  -webkit-user-select: none;
}

@media (max-width: 640px) {
  .banner-carousel-container {
    border-radius: 1.25rem;
  }
}

/* Track Viewport */
.banner-track-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Aspect Ratio: ~3.5:1 on desktop, ~16:9 on mobile */
  aspect-ratio: 3.5 / 1;
  min-height: 320px;
  max-height: 450px;
}

@media (max-width: 1024px) {
  .banner-track-viewport {
    aspect-ratio: 2.6 / 1;
    min-height: 290px;
  }
}

@media (max-width: 640px) {
  .banner-track-viewport {
    aspect-ratio: 16 / 9;
    min-height: 230px;
  }
}

/* Horizontal Sliding Track */
.banner-slides-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 500ms cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Individual Slide */
.banner-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #102f24;
}

.banner-slide-full-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

/* Picture & Image Element */
.banner-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Gradient Scrim for Style B (Overlay Text Legibility) */
.banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 28, 21, 0.94) 0%,
    rgba(8, 28, 21, 0.82) 42%,
    rgba(8, 28, 21, 0.45) 68%,
    rgba(8, 28, 21, 0.05) 100%
  );
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 768px) {
  .banner-scrim {
    background: linear-gradient(
      0deg,
      rgba(8, 28, 21, 0.96) 0%,
      rgba(8, 28, 21, 0.84) 55%,
      rgba(8, 28, 21, 0.4) 85%,
      rgba(8, 28, 21, 0.15) 100%
    );
  }
}

/* Slide Content Wrap (Style B) */
.banner-content-wrap {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  padding: 2rem 5.5rem;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .banner-content-wrap {
    padding: 1.5rem 4.5rem;
  }
}

@media (max-width: 640px) {
  .banner-content-wrap {
    padding: 1.25rem 1.25rem 2.85rem;
    align-items: flex-end;
  }
}

.banner-content-inner {
  max-width: 680px;
  pointer-events: auto;
  color: #ffffff;
}

/* Badges & Subtitle Row */
.banner-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.banner-badge-school {
  background: rgba(255, 255, 255, 0.12);
  color: #fceda4;
  border: 1px solid rgba(217, 170, 69, 0.45);
}

.banner-badge-sponsored {
  background: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.65);
}

.banner-subtitle {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(237, 247, 240, 0.8);
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .banner-badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.65rem;
  }
  .banner-subtitle {
    font-size: 0.72rem;
  }
}

/* Title & Heading */
.banner-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.4rem, 2.8vw, 2.45rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0 0 0.65rem 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 640px) {
  .banner-title {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
  }
}

/* Description */
.banner-description {
  font-size: clamp(0.85rem, 1.15vw, 1.02rem);
  line-height: 1.55;
  color: rgba(237, 247, 240, 0.85);
  margin: 0 0 1.25rem 0;
  max-width: 580px;
}

@media (max-width: 768px) {
  .banner-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.85rem;
    font-size: 0.8rem;
    line-height: 1.45;
  }
}

@media (max-width: 480px) {
  .banner-description {
    display: none; /* Hide description on very small screens to keep image prominent */
  }
}

/* Call To Action Buttons */
.banner-cta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.banner-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: 0.85rem;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.banner-cta-school {
  background: #d9aa45;
  color: #102f24;
}

.banner-cta-school:hover {
  background: #f5d77f;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(217, 170, 69, 0.35);
}

.banner-cta-sponsored {
  background: #f59e0b;
  color: #0f241d;
}

.banner-cta-sponsored:hover {
  background: #fbbf24;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35);
}

@media (max-width: 640px) {
  .banner-cta-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    border-radius: 0.65rem;
  }
}

/* Style A (Artwork Only) Sponsored Tag */
.banner-sponsored-tag {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  z-index: 10;
}

/* Navigation Arrows (Left & Right) */
.banner-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #102f24;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.78;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.banner-nav-btn:hover,
.banner-nav-btn:focus-visible {
  opacity: 1;
  background: #ffffff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.banner-nav-prev {
  left: 1.25rem;
}

.banner-nav-next {
  right: 1.25rem;
}

@media (max-width: 640px) {
  .banner-nav-btn {
    width: 2.35rem;
    height: 2.35rem;
    opacity: 0.88;
  }
  .banner-nav-prev {
    left: 0.65rem;
  }
  .banner-nav-next {
    right: 0.65rem;
  }
}

/* Pause / Play Button (Upper Right) */
.banner-play-pause-btn {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  z-index: 20;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgba(10, 32, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.22s ease;
  opacity: 0.85;
}

.banner-play-pause-btn:hover,
.banner-play-pause-btn:focus-visible {
  opacity: 1;
  background: rgba(10, 32, 24, 0.9);
  transform: scale(1.06);
  border-color: rgba(217, 170, 69, 0.6);
}

@media (max-width: 640px) {
  .banner-play-pause-btn {
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
  }
}

/* Slide Indicators (Bottom Center) */
.banner-indicators {
  position: absolute;
  bottom: 0.95rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  background: rgba(10, 32, 24, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.banner-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 0;
}

.banner-dot:hover {
  background: rgba(255, 255, 255, 0.85);
}

.banner-dot.active {
  width: 1.85rem;
  border-radius: 9999px;
  background: #d9aa45;
  box-shadow: 0 0 10px rgba(217, 170, 69, 0.65);
}

@media (max-width: 640px) {
  .banner-indicators {
    bottom: 0.55rem;
    padding: 0.25rem 0.5rem;
    gap: 0.35rem;
  }
  .banner-dot {
    width: 0.45rem;
    height: 0.45rem;
  }
  .banner-dot.active {
    width: 1.35rem;
  }
}

/* ==========================================================================
   Quick School Facts / Statistics Strip
   ========================================================================== */
.quick-stats-strip {
  max-width: 1536px;
  margin: 1.25rem auto 0;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 47, 36, 0.08);
  border-radius: 1.5rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 12px 35px rgba(16, 47, 36, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 440px) {
  .quick-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .quick-stats-strip {
    padding: 1rem 1.15rem;
    border-radius: 1.15rem;
  }
}

@media (min-width: 768px) {
  .quick-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .quick-stats-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.stat-icon-box {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.95rem;
  display: grid;
  place-items: center;
  transition: transform 0.25s ease;
}

.stat-item:hover .stat-icon-box {
  transform: scale(1.08) translateY(-2px);
}

.stat-icon-forest {
  background: #edf7f0;
  color: #1f6b4b;
}

.stat-icon-gold {
  background: #fdf6e6;
  color: #b88426;
}

.stat-icon-blue {
  background: #f0f7ff;
  color: #0284c7;
}

.stat-icon-amber {
  background: #fffbeb;
  color: #d97706;
}

.stat-icon-emerald {
  background: #ecfdf5;
  color: #059669;
}

.stat-info {
  min-width: 0;
}

.stat-number {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  color: #102f24;
}

.stat-label {
  font-size: 0.75rem;
  color: #64746d;
  font-weight: 500;
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .quick-stats-strip {
    padding: 1rem;
    border-radius: 1.15rem;
    margin-top: 0.9rem;
  }
  .stat-item {
    gap: 0.75rem;
  }
  .stat-icon-box {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.75rem;
  }
  .stat-number {
    font-size: 0.95rem;
  }
  .stat-label {
    font-size: 0.7rem;
  }
}

/* Reduced Motion Safety */
@media (prefers-reduced-motion: reduce) {
  .banner-slides-track {
    transition: none !important;
  }
  .banner-nav-btn,
  .banner-play-pause-btn,
  .banner-dot,
  .stat-icon-box,
  .banner-cta-btn {
    transition: none !important;
  }
}
