/* Custom styles cleared for vanilla Bootstrap reset */
body {
  padding-bottom: 20px;
}

:root {
  --focus-ring-color: #0d6efd;
  --focus-ring-shadow: rgba(13, 110, 253, 0.35);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--focus-ring-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 0.2rem var(--focus-ring-shadow);
}

.backoffice-quick-menu.sticky-top {
  top: 56px;
  z-index: 1020;
}

.backoffice-quick-menu .btn {
  white-space: nowrap;
}

.top-nav-item {
  position: relative;
}

.top-nav-item .nav-link {
  white-space: nowrap;
}

.top-nav-search-form {
  align-items: center;
}

.top-nav-search-input {
  height: 30px;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

.top-nav-search-button {
  min-width: 72px;
}

.home-category-nav {
  border-top: 1px solid #d1d5db;
  border-bottom: 1px solid #d1d5db;
  padding: 0.45rem 0;
}

.home-category-nav-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.3rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.home-category-nav-list::-webkit-scrollbar {
  height: 6px;
}

.home-category-nav-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.home-category-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  color: #1f2937;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.home-category-nav-item {
  flex: 0 0 auto;
}

.home-category-nav-link:hover,
.home-category-nav-link:focus-visible {
  border-color: #0d6efd;
  color: #0d6efd;
  background: #eef4ff;
}

.home-hero {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  isolation: isolate;
  background: #0c1e33;
  box-shadow: 0 0.75rem 1.5rem rgba(12, 30, 51, 0.22);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  will-change: opacity, transform;
  background: linear-gradient(
    120deg,
    rgba(26, 57, 99, 0.12) 0%,
    rgba(33, 99, 160, 0.22) 38%,
    rgba(255, 179, 71, 0.2) 70%,
    rgba(18, 24, 38, 0.34) 100%
  );
  mix-blend-mode: screen;
  animation: homeHeroGradientShift 14s ease-in-out infinite alternate;
}

.home-hero-image {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  will-change: transform;
  transform-origin: center center;
  transform: scale(1.02);
  filter: saturate(1.04);
  animation: homeHeroZoom 18s ease-in-out infinite alternate;
}

.home-hero-glow {
  position: absolute;
  inset: -25% -15% auto;
  height: 85%;
  z-index: 1;
  pointer-events: none;
  will-change: opacity, transform;
  background: radial-gradient(circle at 70% 25%, rgba(255, 210, 120, 0.26) 0%, rgba(255, 210, 120, 0) 62%);
  animation: homeHeroGlowPulse 8s ease-in-out infinite;
}

.home-hero-overlay {
  position: absolute;
  left: 1.75rem;
  bottom: 1.5rem;
  z-index: 2;
  max-width: min(65%, 760px);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.home-hero-title {
  font-size: clamp(1.5rem, 2.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
}

.home-hero-subtitle {
  font-size: clamp(0.95rem, 1.35vw, 1.25rem);
  font-weight: 500;
}

.home-hero-weather {
  font-size: 0.9rem;
  opacity: 0.95;
}

.home-hero-line {
  opacity: 0;
  transform: translateY(18px);
  animation: homeHeroTextIn 900ms cubic-bezier(0.2, 0.74, 0.27, 1) forwards;
}

.home-hero-line-1 {
  animation-delay: 120ms;
}

.home-hero-line-2 {
  animation-delay: 280ms;
}

.home-hero-line-3 {
  animation-delay: 440ms;
}

@keyframes homeHeroTextIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes homeHeroZoom {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.08);
  }
}

@keyframes homeHeroGlowPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    opacity: 0.85;
    transform: translate3d(-2%, 1.5%, 0) scale(1.04);
  }
}

@keyframes homeHeroGradientShift {
  from {
    opacity: 0.55;
    transform: translateX(-2%);
  }

  to {
    opacity: 0.82;
    transform: translateX(2%);
  }
}

@media (max-width: 767.98px) {
  .home-hero-overlay {
    left: 1rem;
    right: 1rem;
    bottom: 0.75rem;
    max-width: none;
  }

  .home-hero-image {
    animation-duration: 24s;
  }

  .home-hero-glow {
    animation-duration: 12s;
  }
}

@media (max-width: 575.98px) {
  .home-hero::before {
    animation: none;
    opacity: 0.62;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero::before,
  .home-hero-image,
  .home-hero-glow,
  .home-hero-line {
    animation: none !important;
    transform: none !important;
  }

  .home-hero-line {
    opacity: 1;
  }
}

.banner-slot {
  width: 100%;
}

.banner-slot__card {
  width: 100%;
}

.banner-slot__image {
  width: 100%;
  object-fit: cover;
}

.banner-slot__adsense-unit-wrapper,
.banner-slot__adsense-anchor {
  width: 100%;
  border-radius: 0.375rem;
  background-color: #f8f9fa;
}

.banner-slot__adsense-unit-wrapper {
  border: 1px solid #e9ecef;
  padding: 0.25rem;
}

.banner-slot__adsense-unit {
  width: 100%;
}

.banner-slot__adsense-anchor {
  border: 1px dashed #ced4da;
}

.banner-slot__placeholder {
  width: 100%;
  border: 1px dashed #ced4da;
  border-radius: 0.375rem;
  background-color: #f8f9fa;
  color: #6c757d;
  text-align: center;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.banner-slot--hero .banner-slot__placeholder {
  min-height: 300px;
}

.banner-slot--hero .banner-slot__adsense-unit-wrapper,
.banner-slot--hero .banner-slot__adsense-anchor {
  min-height: 300px;
}

.banner-slot--hero .banner-slot__image {
  max-height: 320px;
}

.banner-slot--side .banner-slot__placeholder {
  min-height: 260px;
}

.banner-slot--side .banner-slot__adsense-unit-wrapper,
.banner-slot--side .banner-slot__adsense-anchor {
  min-height: 260px;
}

.banner-slot--side .banner-slot__image {
  max-height: 280px;
}

.banner-slot--mid .banner-slot__placeholder {
  min-height: 180px;
}

.banner-slot--mid .banner-slot__adsense-unit-wrapper,
.banner-slot--mid .banner-slot__adsense-anchor {
  min-height: 180px;
}

.banner-slot--mid .banner-slot__image {
  max-height: 220px;
}

.banner-slot--standard .banner-slot__placeholder {
  min-height: 140px;
}

.banner-slot--standard .banner-slot__adsense-unit-wrapper,
.banner-slot--standard .banner-slot__adsense-anchor {
  min-height: 140px;
}

.banner-slot--standard .banner-slot__image {
  max-height: 180px;
}
