/* Принудително разпъване на HTML обекта на WWB20 на 100% ширина */
#LayoutGrid2 .col-1 > div {
   display: block !important;
   width: 100% !important;
   height: auto !important;
}

#wb_welcome-carousel {
   width: 100%;
   height: 438px;
   margin: 0;
   box-sizing: border-box;
   overflow: hidden;
}

#welcome-carousel {
   position: relative;
   width: 100%;
   height: 100%;
   margin: 0;
   box-sizing: border-box;
}

#welcome-carousel .carousel-inner {
   position: relative;
   width: 100%;
   height: 100%;
   overflow: hidden;
}

#welcome-carousel .carousel-item {
   display: none;
   width: 100%;
   height: 100%;
   text-align: center;
   animation: sliderFadeIn 500ms ease both;
}

#welcome-carousel .carousel-item.active {
   display: block;
}

#welcome-carousel .carousel-item-inner {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   gap: 10px;
   height: 100%;
   padding: 0 15px;
   box-sizing: border-box;
}

#welcome-carousel .frame-1 {
   background: url('slide1.webp') no-repeat center center / cover;
}

#welcome-carousel .frame-2 {
   background: url('slide2.webp') no-repeat center center / cover;
}

#welcome-carousel .frame-3 {
   background: url('slide4.webp') no-repeat center center / cover;
}

#welcome-carousel .carousel-indicators {
   list-style: none;
   position: absolute;
   bottom: 12px;
   left: 50%;
   transform: translateX(-50%);
   display: flex;
   gap: 14px;
   padding: 0;
   margin: 0;
   z-index: 10;
}

#welcome-carousel .carousel-indicators li {
   width: 11px;
   height: 11px;
   border-radius: 50%;
   background-color: transparent;
   border: 1px solid #FFFFFF;
   cursor: pointer;
   transition: background-color 0.3s ease;
}

#welcome-carousel .carousel-indicators li.active {
   background-color: #FFFFFF;
}

/* Стилове за текстовете в слайдера */
#wb_welcome-text1,
#wb_welcome-text2,
#wb_welcome-text3,
#wb_welcome-text4,
#wb_welcome-text5,
#wb_welcome-text6 {
   width: 100%;
   text-align: center;
   color: #FFFFFF;
   font-family: "Times New Roman", serif;
   font-weight: bold;
   font-size: 27px;
   line-height: 1.3;
   margin: 0;
   padding: 0;
}

#wb_welcome-text1 p,
#wb_welcome-text2 p,
#wb_welcome-text3 p,
#wb_welcome-text4 p,
#wb_welcome-text5 p,
#wb_welcome-text6 p {
   margin: 0;
   padding: 0;
}

#welcome-carousel .CustomStyle {
   display: inline-block;
   font-family: "Times New Roman", serif;
   font-weight: bold;
   font-size: 27px;
   color: #FFFFFF;
   background-color: #4ECAFD;
   background-image: linear-gradient(to top, #002840 0%, #4ECAFD 50%, #4ECAFD 50%, #002840 100%);
   padding: 4px 10px;
   border-radius: 4px;
}

/* Анимации на слайдовете и текстовете */
#wb_welcome-text1 { animation: slide-left-in 1000ms linear 100ms 1 normal both; }
#wb_welcome-text2 { animation: slide-right-in 1000ms linear 1000ms 1 normal both; }
#wb_welcome-text3 { animation: scale-in-horizontal-center 1000ms linear 100ms 1 normal both; }
#wb_welcome-text4 { animation: scale-in-vertical-center 1000ms linear 1500ms 1 normal both; }
#wb_welcome-text5 { animation: transform-rotate-in 1000ms linear 100ms 1 normal both; }
#wb_welcome-text6 { animation: transform-roll-in 1000ms linear 1000ms 1 normal both; }

@keyframes sliderFadeIn {
   0% { opacity: 0; transform: translateX(30px); }
   100% { opacity: 1; transform: translateX(0); }
}
@keyframes slide-left-in {
   0% { transform: translate(-100%, 0); opacity: 0; }
   100% { transform: translate(0, 0); opacity: 1; }
}
@keyframes slide-right-in {
   0% { transform: translate(100%, 0); opacity: 0; }
   100% { transform: translate(0, 0); opacity: 1; }
}
@keyframes scale-in-horizontal-center {
   0% { transform: scale(0, 1); opacity: 0; }
   100% { transform: scale(1, 1); opacity: 1; }
}
@keyframes scale-in-vertical-center {
   0% { transform: scale(1, 0); opacity: 0; }
   100% { transform: scale(1, 1); opacity: 1; }
}
@keyframes transform-rotate-in {
   0% { transform: rotate(-200deg); opacity: 0; }
   100% { transform: rotate(0deg); opacity: 1; }
}
@keyframes transform-roll-in {
   0% { transform: translate(-100%, 0) rotate(-120deg); opacity: 0; }
   100% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
}

/* Мобилна версия (телефони и малки екрани) */
@media (max-width: 768px) {
   #wb_welcome-carousel {
      height: 320px;
   }
   #welcome-carousel .CustomStyle {
      font-size: 18px;
      padding: 4px 8px;
   }
}

@media (max-width: 480px) {
   #wb_welcome-carousel {
      height: 260px;
   }
   #welcome-carousel .CustomStyle {
      font-size: 16px;
      line-height: 1.35;
   }
}

@media (prefers-reduced-motion: reduce) {
   #welcome-carousel * {
      animation: none !important;
      transition: none !important;
   }
}