:root {
  --ubb-white: #ffffff;
  --ubb-yellow: #FFCD00;
  --ubb-btn-bg: rgba(255,255,255,0.15);
  --ubb-btn-border: rgba(255,255,255,0.5);
  --ubb-glass-bg: rgba(255, 255, 255, 0.08);
  --ubb-glass-border: rgba(255, 255, 255, 0.2);
}

/* ── Full-width override (break out of Astra / theme containers) ── */

.ubb-container,
.ubb-container *,
.ubb-container *::before,
.ubb-container *::after {
  box-sizing: border-box;
}

.ubb-container {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  max-width: none;
  left: 0;
  right: 0;
  height: 100vh;
  min-height: 650px;
  background: #000;
  overflow: hidden;
  font-family: inherit;
  color: var(--ubb-white);
}

.ubb-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ── Slides ────────────────────────────────────────────────── */

.ubb-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: visibility 0s 0.6s, opacity 0.6s ease-in-out;
}

.ubb-slide-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  transition: opacity 0.6s ease-in-out;
}

.ubb-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.08) 50%, transparent 100%);
  z-index: 1;
}

.ubb-slide-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 90%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Text Column ───────────────────────────────────────────── */

.ubb-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  max-width: 100%;
}

.ubb-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--ubb-white);
}

.ubb-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--ubb-white);
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}

.ubb-highlight {
  display: inline-block;
  color: var(--ubb-white);
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}

/* ── Motto ────────────────────────────────────────────────── */

.ubb-motto {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  order: -1;
  margin: 0 0 16px;
  color: var(--ubb-yellow);
  font-style: italic;
  font-size: clamp(.8rem, 1.8vw, 1rem);
  font-weight: 500;
  letter-spacing: .05em;
  opacity: 0.85;
}

.ubb-motto::before,
.ubb-motto::after {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

/* ── Glass Buttons ─────────────────────────────────────────── */

.ubb-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.ubb-btn {
  display: inline-block;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ubb-white);
  text-decoration: none !important;
  background: transparent;
  border: 1px solid var(--ubb-yellow);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.ubb-btn:hover,
.ubb-btn:focus {
  background: rgba(255, 205, 0, 0.15);
  border-color: var(--ubb-yellow);
  transform: translateY(-1px);
}

/* ── Vertical Number Navigation ────────────────────────────── */

.ubb-vertical-nav {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 100;
}

.ubb-nav-num {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.ubb-nav-num span {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.3s;
}

.ubb-nav-num:hover,
.ubb-nav-num.ubb-dot-active {
  background: var(--ubb-glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--ubb-glass-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.ubb-nav-num:hover span,
.ubb-nav-num.ubb-dot-active span {
  color: var(--ubb-white);
}

.ubb-nav-num.ubb-dot-active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 2px;
  background: var(--ubb-white);
}

/* ── Footer Links Bar ──────────────────────────────────────── */

.ubb-footer-bar {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  z-index: 50;
}

.ubb-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.ubb-footer-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none !important;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.25s;
}

.ubb-footer-link:hover,
.ubb-footer-link:focus {
  color: #fff;
}

.ubb-pipe {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
  user-select: none;
}

/* ── Responsive: Tablet ────────────────────────────────────── */

@media (max-width: 991px) {
  .ubb-slide-content {
    padding: 80px 30px 100px;
  }

  .ubb-text-col {
    max-width: 100%;
    text-align: center;
    align-items: center;
  }

  .ubb-buttons {
    justify-content: center;
  }

  .ubb-footer-bar {
    position: relative;
    bottom: auto;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.3);
  }

  .ubb-footer-inner {
    justify-content: center;
  }
}

/* ── Responsive: Mobile ────────────────────────────────────── */

@media (max-width: 575px) {
  .ubb-slide-content {
    padding: 60px 20px 80px;
  }

  .ubb-headline {
    font-size: 1.8rem;
  }

  .ubb-btn {
    padding: 6px 16px;
    font-size: 0.78rem;
  }

  .ubb-vertical-nav {
    display: none;
  }

  .ubb-footer-inner {
    padding: 0 20px;
    gap: 8px;
  }

  .ubb-footer-link {
    font-size: 0.6rem;
    letter-spacing: 1px;
  }

  .ubb-pipe {
    font-size: 0.5rem;
  }
}

/* ── Short viewport fix ────────────────────────────────────── */

@media (max-height: 700px) and (min-width: 769px) {
  .ubb-container {
    min-height: 500px;
    height: 90vh;
  }

  .ubb-slide-content {
    padding-top: 40px;
  }

  .ubb-headline {
    font-size: clamp(1.75rem, 4vw, 2.8rem);
  }

  .ubb-footer-bar {
    bottom: 15px;
  }
}