/* =======================================
   GENERAL SPACING & LAYOUT
======================================= */
.minutes {
  top: 52%;
  left: 3%;
}

.live-dot::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 6px;
  margin-top: -3.5px;
  background-color: #EF3900;
  border-radius: 50%;
  vertical-align: middle;
}

.img-live-border {
  border: 5px solid #EF3900;
}

.img-live-border iframe {
  width: 100%;
  height: 250px;
}

.active-videoBtn {
  background-color: transparent;
  color: black;
  border: none;
}

.disabled-videoBtn {
  opacity: 0.5;
  pointer-events: none;
  background-color: transparent;
  color: grey;
  border: none;
}

.padding-top-32 {
  padding-top: 32px;
}

.padding-x-11 {
  padding-top: 11px;
  padding-bottom: 11px;
}

.homepage-border {
  border-bottom: 0.8px #EBEBEB solid;
}

.homepage-nav_icon--space {
  margin-top: -2px;
  margin-left: -2px;
}

.hidden {
  display: none !important;
}

.border-radius-slider {
  border-radius: 5px;
}

.minutes img {
  width: 8px;
  height: 8px;
}

/* =======================================
   IMAGES
======================================= */
.episode-card img {
  max-height: 190px;
  object-fit: cover;
}

.programe-card {
  max-width: 220px;
}

.side-image-news {
  max-width: 110px;
  width: 100%;
  height: 75px;
}

.rezultate-icon {
  width: 15px;
  margin-top: -1px;
}

.main-local-news_image {
  width: 120px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
}

.main-local-news_image-cover {
  width: 295px;
  height: 160px;
  object-fit: cover;
}

.ads-homepage img {
  max-width: 656px;
  height: 221px;
  margin: 0 auto;
}

.main-local-section--image {
  width: 180px;
  flex-shrink: 0;
}

/* =======================================
   TIMELINE
======================================= */
.timeline {
  list-style: none;
  padding-left: 0;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
}

.timeline-time {
  flex: 0 0 60px;
  font-weight: bold;
}

.timeline-content {
  flex: 1;
  padding-left: 15px;
}

/* =======================================
   LIVEPAGE
======================================= */
.description-live {
  top: -40px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 25px;
}

.update-img {
  width: 100%;
  min-height: auto;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .update-img {
    min-height: 550px;
  }
}

.update-list {
  margin-top: 15px;
  position: relative;
}

.update-list li {
  position: relative;
  display: flex;
  gap: 1rem;
  padding-bottom: 2rem;
}

.update-list li .update-time {
  position: relative;
  flex-shrink: 0;
}

/* The connecting line */
.update-list li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 34px;
  width: 2px;
  height: calc(90% + 0px);
  background-color: #EBEBEB;
}

/* =======================================
   CAROUSEL BASE STYLING
======================================= */
#featuredCarousel {
  max-width: 100%;
  position: relative;
  z-index: 0;
}

#featuredCarousel .slide-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

#featuredCarousel .slide-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

#featuredCarousel .slide-caption {
  margin-top: -10% !important;
  background-color: white;
  width: 90%;
  margin: 0 auto;
  border-radius: 10px;
  height: 170px;
  padding: 0.5rem;
}

#featuredCarousel .carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.carousel-indicators [data-bs-target] {
  background-color: #D9D9D9;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.6;
}

.carousel-indicators .active {
  opacity: 1;
  background-color: #005586;
}

.pointview-conatiner:last-of-type {
  border-bottom: 0px !important;
}

/* =======================================
   SLIDER
======================================= */

#slider {
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.news-card-emisione {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 85%;
  /* 85% of screen for single-card focus */
}

@media (min-width: 768px) {
  .news-card-emisione {
    width: auto;
    /* Show multiple cards on desktop */
  }
}

#carouselWrapper>div {
  display: flex;
}

.news-slider {
  overflow: hidden;
  position: relative;
}

.news-slider.fade-end::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 10px;
  background: linear-gradient(to left, white 100%, transparent);
  pointer-events: none;
  z-index: 2;
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
  scroll-behavior: smooth;
}

/* =======================================
   NEWS CARDS
======================================= */
.news-card {
  flex: 0 0 auto;
  margin-right: 1rem;
}

.news-card img {
  width: 210px;
  height: 346px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto;
}

.news-card p {
  /*font-size: 0.85rem;*/
  margin-top: 0.5rem;
  /*line-height: 1.2;*/
}

/* =======================================
   CAROUSEL CONTROLS
======================================= */
.carousel-control-prev,
.carousel-control-next {
  width: 2rem;
  height: 2rem;
  top: 42%;
  transform: translateY(-50%);
  background-color: white;
  border-radius: 50%;
  z-index: 3;
  opacity: 1;
  border: none;
}

.carousel-control-next {
  right: 27px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1) brightness(0);
  width: 1.2rem;
  height: 1.2rem;
}

/* =======================================
   HOMEPAGE NAVIGATION
======================================= */
.homepage-nav {
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}


.homepage-nav a {
  white-space: nowrap;
}

.shadow-desktop {
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, 0.075) !important;
}

.mirror,
.mirror-arrow {
  transform: scaleX(-1);
}

.homepage-nav-wrapper {
  display: flex;
  align-items: center;
}




.flex-shrink-0 {
  flex-shrink: 0;
}

.mirror:hover {
  background-color: white !important;
}

.mirror:active {
  background-color: white !important;
}

.mirror:focus {
  background-color: white !important;
}

.homepage-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}





#carouselInner {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#carouselInner::-webkit-scrollbar {
  display: none;
}

.news-card {
  flex: 0 0 auto;
  margin-right: 16px;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}



.news-slider {
  scroll-snap-type: x mandatory;
  overflow: hidden;
}

.button-play {
  width: 50px !important;
  height: 50px !important;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#carouselInner {
  scroll-snap-type: x mandatory;
}

/* Fade effect on edges */
.emisione-section {
  background: #00334d
}

.news-slider-emisione {
  width: 100%;
}

.news-card-emisione,
.programe-card {
  min-width: 315px;
}

.news-slider-emisione::-webkit-scrollbar {
  display: none;
}


#slider::-webkit-scrollbar,
#slider-emisione::-webkit-scrollbar,
#slider-emisione-inside::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for Firefox */
#slider,
#slider-emisione,
#slider-emisione-inside {
  scrollbar-width: none;
}

/* General fallback */
#slider,
#slider-emisione,
#slider-emisione-inside {
  -ms-overflow-style: none;
  /* IE & Edge */
}




.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-100%);
  width: 40px;
  height: 40px;
  background: #3389ff;
  border: none;
  color: white;
  font-size: 22px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-btn:hover {
  background-color: #3389ff;
}

.left-arrow {
  left: -45px;
}

.right-arrow {
  right: -45px;
}

.emisione-right-arrow,
.programe-right-arrow {
  width: 20px;
  height: 20px;
}

#nextBtnPrograme,
#prevBtnPrograme,
#prevBtnEmisione,
#nextBtnEmisione,
#nextBtn,
#prevBtn {
  background-color: transparent;
  border: none;
}

/* Hide scrollbar but keep functionality */
#slider::-webkit-scrollbar {
  height: 8px;
}

#slider::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

#slider::-webkit-scrollbar-track {
  background: transparent;
}


.vote-btn {
  background-color: #3389ff !important;
  width: 50%;
  padding: 11px 0;
  font-size: 18px;
  color: white;
  border-radius: 6px;
}

.results-btn {
  background-color: #E7F1FF !important;
  width: 50%;
  padding: 11px 0;
  font-size: 18px;
  color: #002E44;
  border-radius: 6px;
}

.sondazh-form {
  border: 1px solid rgba(242, 242, 242, 1);
  border-radius: 6px;
  padding: 14px 8px;
}

.sondazh-form:has(input[type="radio"]:checked) {
  background-color: rgba(51, 137, 255, 0.12);
  border-radius: 6px;
}

/* =======================================
   MEDIA QUERIES
======================================= */
/* Mobile up to 767px */
@media (max-width: 767px) {
  .homepage-nav {
    overflow: hidden;
    height: 40px;
    position: relative;
  }

  .news-items {
    display: flex;
    flex-direction: column;
    transition: transform 0.6s ease-in-out;
  }

  .news-items>div {
    height: 50px;
  }

  .news-slider.fade-end::after {
    width: 15px;
  }

  .update-time img {
    width: 15px;
    height: 25px;
    object-fit: scale-down;
  }

  .update-time {
    display: flex;
  }

  .border-radius-slider {
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .shadow-desktop {
    box-shadow: none !important;
  }

  .ads-homepage img {
    max-width: 320px;
    height: 108px;
  }

  .homepage-news-section--title {
    font-size: 16px !important;
    line-height: 21px !important;
  }

  .homepage-news-section--desc {
    font-size: 12px !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none !important;
  }

  .news-slider {
    position: static;
  }

  .shadow-sm-mobile {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
  }

  .latest-news--red-pulse {
    background-color: red;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
    margin-top: 2.5%;
    margin-left: 2%;
  }

  #mobileMenu {
    top: 14%;
  }

  .right-arrow {
    right: 27px;
  }

  .left-arrow {
    left: 23px;
  }

  .news-slider-emisione #slider {
    scroll-snap-type: x mandatory;
  }

  .news-slider-emisione #slider>.news-card-emisione {
    min-width: 100%;
    /* one card fully visible */
    scroll-snap-align: start;
  }

  .news-card-emisione {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  .news-card-emisione img,
  .programe-card img {
    max-width: 320px;
  }
}

/* PULSE ANIMATION */
@keyframes pulse {
  0% {
    transform: scale(0.5);
    opacity: 0.5;
  }

  50% {
    transform: scale(1);
    opacity: 0.7;
  }

  100% {
    transform: scale(0);
    opacity: 0.5;
  }
}

/* =======================================
   RESPONSIVE NEWS CARD WIDTHS
======================================= */
@media (min-width: 1400px) {
  .news-card {
    width: calc((100% / 6) - 0.5rem);
  }
}

@media (min-width: 900px) {
  .homepage-nav-wrapper {
    justify-content: flex-start;
    padding-left: 10px;
    /* optional spacing */
  }

  .homepage-nav-wrapper {
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 1399px) {
  .news-card {
    width: calc((100% / 5) - 1rem);
  }
}

@media (max-width: 1200px) {
  .news-card {
    width: calc((100% / 4) - 1rem);
  }
}

@media (max-width: 992px) {
  .news-card {
    width: calc((100% / 3) - 1rem);
  }
}

@media (max-width: 768px) {
  .news-card {
    width: calc((100% / 2) - 1rem);
  }
}

@media (max-width: 576px) {
  .news-card {
    width: calc((100% / 1.5) - 1rem);
  }
}

@media (max-width: 380px) {
  .news-card {
    width: calc((100% / 1.4) - 1rem);
  }
}

/* =======================================
   RESPONSIVE NEWS CARD IMAGES
======================================= */
@media (max-width: 1200px) {
  .news-card img {
    width: 190px;
    height: 320px;
  }
}

@media (max-width: 992px) {
  .news-card img {
    width: 180px;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .news-card img {
    width: 200px;
    height: 340px;
  }
}

@media (max-width: 576px) {
  .news-card img {
    width: 235px;
    height: 360px;
  }
}

/* =======================================
   RESPONSIVE ADS
======================================= */
@media (min-width: 768px) and (max-width: 1024px) {
  .ads-homepage img {
    max-width: 480px;
    height: 162px;
  }


}

/* Slider title sizing */
.slider-title {
  font-size: 32px;
  line-height: 1.2;
}

@media (max-width: 767.98px) {
  .slider-title {
    font-size: 24px;
    line-height: 1.25;
  }
}

.programe-card h3 {
  font-weight: 700;
}

/* Live update title sizing */
.live-update-title {
  font-size: 32px;
  line-height: 1.25;
}

@media (max-width: 767.98px) {
  .live-update-title {
    font-size: 24px;
  }
}