/* Advanced Slideshow/Banner module.
   Shared, theme-agnostic CSS (loaded once via addStyle, not duplicated per theme) - both the
   default and aircooled twig templates use these same component class names, just different
   wrapper/grid markup around them. Every color uses a var(..., fallback) so this renders on-brand
   on aircooled (real --color-primary/--color-tertiary picked up) and still sensibly on default
   theme, which never defines those custom properties. */

.adv-banner-container {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}
.adv-banner-slideshow {
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  box-shadow: none;
  margin: 0;
}
.adv-banner-slideshow .swiper-slide img {
  width: 100%;
  display: block;
}
.adv-banner-slideshow .swiper-pager {
  left: 0;
  right: 0;
  width: auto;
}
.adv-banner-slideshow .swiper-button-prev,
.adv-banner-slideshow .swiper-button-next {
  width: 40px;
  height: 40px;
  background-color: var(--color-primary, #16243d);
  background-image: none;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.adv-banner-slideshow .swiper-button-prev:hover,
.adv-banner-slideshow .swiper-button-next:hover {
  background-color: var(--color-tertiary, #3c74c9);
}
.adv-banner-slideshow .swiper-button-prev:before,
.adv-banner-slideshow .swiper-button-next:before {
  font-family: FontAwesome;
  color: #fff;
  font-size: 16px;
  line-height: 1;
}
.adv-banner-slideshow .swiper-button-prev:before {
  content: "\f053";
}
.adv-banner-slideshow .swiper-button-next:before {
  content: "\f054";
}
.adv-banner-slideshow .swiper-pagination {
  bottom: 10px;
}
.adv-banner-slideshow .swiper-pagination-bullet-active {
  background: var(--color-primary, #16243d);
}

.adv-banner-sidebar {
  flex: 0 0 25%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.adv-banner-sidebar-item {
  flex: 1 1 0;
  display: block;
  overflow: hidden;
  border-radius: 4px;
}
.adv-banner-sidebar-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 767px) {
  .adv-banner-container {
    flex-direction: column;
  }
  .adv-banner-sidebar {
    flex-direction: row;
  }
}

.adv-banner-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}
.adv-banner-box {
  flex: 1 1 220px;
  min-width: 0;
  display: block;
  text-decoration: none;
  color: inherit;
}
.adv-banner-box-image {
  border-radius: 4px;
  overflow: hidden;
}
.adv-banner-box-image img {
  width: 100%;
  display: block;
}
.adv-banner-box-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 4px 0 rgba(0,0,0,.08);
}
.adv-banner-box-icon-glyph {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--color-primary, #16243d);
  color: #fff;
  font-size: 18px;
}
.adv-banner-box-info {
  min-width: 0;
}
.adv-banner-box-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
}
.adv-banner-box-desc {
  margin: 0;
  font-size: 12px;
  color: #777;
}
a.adv-banner-box-icon:hover .adv-banner-box-icon-glyph {
  background-color: var(--color-tertiary, #3c74c9);
}
