/* =====================================================
   RIGHT SCREEN — Carousel Slide Layouts
   Font: Roboto | Brand: #0075BF
   ===================================================== */

/* ─── Carousel Container ─── */
#carousel-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease;
}

#carousel-slide {
  z-index: 2;
  opacity: 1;
}

#carousel-slide-next {
  z-index: 3;
  opacity: 0;
}

.slide-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 80px 100px;
  /* Leave room for banner at bottom */
  padding-bottom: 140px;
}

/* ─── Bottom Branding Banner ─── */
#carousel-banner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: #FFFFFF;
  transition: opacity 0.4s ease, transform 0.4s ease;
  /* Prevent sub-pixel rendering gaps at fractional scale factors */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 -1px 0 0 #FFFFFF;
}

#carousel-banner.hidden {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}

/* Progress bar sits at the very top of the banner */
#carousel-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: rgba(0, 117, 191, 0.12);
}

#carousel-progress-bar {
  height: 100%;
  background: var(--zou-blue, #0075BF);
  width: 0%;
  transition: width 0.3s linear;
}

/* Banner content layout */
.banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  min-height: 100px;
}

.banner-logo-left,
.banner-logo-right {
  flex-shrink: 0;
}

/* Logos 50% bigger than original (48→72, 52→78) */
#carousel-zou-logo {
  height: 72px;
  width: auto;
}

#carousel-region-logo {
  height: 78px;
  width: auto;
}

/* Motto */
.banner-motto {
  flex: 1;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-size: 56px;
  font-weight: 500;
  font-style: italic;
  color: #0075BF;
  letter-spacing: 0.02em;
}

/* ═════════════════════════════════════════════════════
   SLIDE LAYOUTS — Dark / neutral backgrounds
   (no blue backgrounds to preserve logo contrast)
   ═════════════════════════════════════════════════════ */

/* ─── Alert Banner ─── */
.slide-alert-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.slide-alert-banner .slide-icon {
  font-size: 88px;
  margin-bottom: 32px;
}

.slide-alert-banner .slide-accent-bar {
  width: 120px;
  height: 8px;
  border-radius: 4px;
  margin-bottom: 40px;
}

.slide-alert-banner .slide-title {
  font-size: 88px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 28px;
}

.slide-alert-banner .slide-body {
  font-size: 60px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
  margin-bottom: 40px;
  max-width: 1700px;
}

.slide-alert-banner .slide-advice {
  font-size: 48px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  border-left: 5px solid;
  padding-left: 24px;
  max-width: 1600px;
}

/* ─── Trip Status ─── */
.slide-trip-status {
  background: linear-gradient(160deg, #0a1628 0%, #0d2137 60%, #0f2b46 100%);
}

.slide-trip-status .slide-icon {
  font-size: 96px;
  margin-bottom: 28px;
}

.slide-trip-status .slide-accent-bar {
  width: 100px;
  height: 8px;
  border-radius: 4px;
  margin-bottom: 40px;
}

.slide-trip-status .slide-title {
  font-size: 96px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 24px;
}

.slide-trip-status .slide-body {
  font-size: 60px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
  margin-bottom: 40px;
}

.slide-trip-status .slide-advice {
  font-size: 48px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
}

/* ─── Trip Overview ─── dark charcoal gradient, no blue */
.slide-trip-overview {
  background: linear-gradient(155deg, #1b1b2f 0%, #2d2d44 50%, #3a3a55 100%);
}

.slide-trip-overview .slide-icon {
  font-size: 96px;
  margin-bottom: 36px;
}

.slide-trip-overview .slide-title {
  font-size: 96px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 28px;
}

.slide-trip-overview .slide-body {
  font-size: 60px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.35;
  margin-bottom: 28px;
}

.slide-trip-overview .slide-advice {
  font-size: 48px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
}

/* ─── Stop Welcome ─── light background */
.slide-stop-welcome {
  background: linear-gradient(145deg, #f8f9fa 0%, #e8ecf1 60%, #dde4ec 100%);
}

.slide-stop-welcome .slide-icon {
  font-size: 88px;
  margin-bottom: 28px;
}

.slide-stop-welcome .slide-accent-bar {
  width: 100px;
  height: 8px;
  border-radius: 4px;
  margin-bottom: 40px;
  background: var(--zou-blue, #0075BF);
}

.slide-stop-welcome .slide-title {
  font-size: 88px;
  font-weight: 700;
  color: #1a2940;
  line-height: 1.15;
  margin-bottom: 24px;
}

.slide-stop-welcome .slide-body {
  font-size: 60px;
  font-weight: 400;
  color: #3a4a5c;
  line-height: 1.35;
  margin-bottom: 36px;
  max-width: 1700px;
}

.slide-stop-welcome .slide-advice {
  font-size: 48px;
  font-weight: 500;
  color: var(--zou-blue, #0075BF);
  border-left: 5px solid var(--zou-blue, #0075BF);
  padding-left: 24px;
}

/* ─── Ad Full-Bleed ─── no banner padding, fills entire screen */
.slide-ad-fullbleed {
  padding: 0 !important;
  padding-bottom: 0 !important;
}

.slide-ad-fullbleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-ad-fullbleed video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}