/* =============== CAROUSEL PRINCIPAL =============== */
#indexCarousel {
  height: 550px;
  width: 100%;
  position: relative;
  min-height: 60vh;
  max-height: 100vh;
  overflow: hidden;
}

#indexCarousel .carousel-item {
  position: relative;
  height: 100%;
  min-height: 550px;
}


#indexCarousel .carousel-inner {
  height: 100%;
}

#indexCarousel.carousel-fade .carousel-item {
  transition: opacity 0.5s ease-in-out !important;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: block;
  z-index: 0;
}

#indexCarousel.carousel-fade .carousel-item.active {
  opacity: 1;
  position: relative;
  z-index: 1;
}

/* === IMAGINE STATICĂ === */
#indexCarousel .carousel-item img {
  height: 100%;
  width: 100%;
  min-height: 550px;
  object-fit: cover;
  opacity: 0.5;
  transition: none !important;
}

/* === CAPTION - stare inițială === */
#indexCarousel .carousel-caption {
  opacity: 0;
  transition: opacity 3s ease, transform 0.8s ease;
  will-change: opacity, transform;
  margin-bottom: 4rem;
}

/* === DISPARIȚIE CAPTION la schimbare === */
#indexCarousel .carousel-item.carousel-item-start .carousel-caption,
#indexCarousel .carousel-item.carousel-item-end .carousel-caption {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

/* === SLIDE 1: intrare din STÂNGA === */
#indexCarousel .carousel-item:nth-child(1) .carousel-caption {
  transform: translateX(-40px);
  transition-duration: 1.5s;
}
#indexCarousel .carousel-item.active:nth-child(1) .carousel-caption {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.1s;
  transition-duration: 1.5s;
}

/* === SLIDE 2: intrare de JOS === */
#indexCarousel .carousel-item:nth-child(2) .carousel-caption {
  transform: translateY(30px);
}
#indexCarousel .carousel-item.active:nth-child(2) .carousel-caption {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
  transition-duration: 1.5s;
}

/* === SLIDE 3: intrare din DREAPTA === */
#indexCarousel .carousel-item:nth-child(3) .carousel-caption {
  transform: translateX(40px);
}
#indexCarousel .carousel-item.active:nth-child(3) .carousel-caption {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.1s;
  transition-duration: 1.5s;
}

/* === CAPTION TEXT === */
#indexCarousel .carousel-caption h1 {
  font-size: 2rem;
  font-weight: bold;
  color: #013d5f;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* === CAPTION BUTTON === */
#indexCarousel .carousel-caption a.btn,
.ase-section a.btn {
  background-color: rgba(255, 255, 255, 0.95) !important;
  color: #013d5f !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  padding: 0.4rem 1.2rem !important;
  border: none !important;
  text-transform: uppercase;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  
  transition: 
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.3s ease;
}

#indexCarousel .carousel-caption a.btn:hover,
.ase-section a.btn:hover {
  background-color: #013d5f !important;
  color: #ffffff !important;
  transform: scale(1.05);
  border-color: #013d5f;
}





/* =============== CAROUSEL NOUTĂȚI =============== */
/* NEWS CAROUSEL BASE */
#newsCarousel {
  background-color: #195f78;
  color: #fff;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* === NEWS CAROUSEL CONTROALE – săgeți vizibile fără cercuri === */
/* Săgeți fără fundal, doar simboluri */
#newsCarousel .carousel-control-prev,
#newsCarousel .carousel-control-next {
  width: 3rem;
  height: 3rem;
  background: transparent;
  border: none;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 10;
}

/* Hover: efect de scalare + opacitate crescută */
#newsCarousel .carousel-control-prev:hover,
#newsCarousel .carousel-control-next:hover {
  transform: translateY(-50%) scale(1.15);
  opacity: 1;
}

/* Stil simbol săgeți */
#newsCarousel .carousel-control-prev-icon,
#newsCarousel .carousel-control-next-icon {
  background-image: none;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-block;
  position: relative;
}

#newsCarousel .carousel-control-prev-icon::after,
#newsCarousel .carousel-control-next-icon::after {
  content: '';
  display: inline-block;
  border: solid white;
  border-width: 0 3px 3px 0;
  padding: 8px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

#newsCarousel .carousel-control-prev-icon::after {
  transform: translate(-50%, -50%) rotate(135deg);
}

#newsCarousel .carousel-control-next-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}


/* Hover: doar transform și opacitate – fără fundal */
#newsCarousel .carousel-control-prev:hover,
#newsCarousel .carousel-control-next:hover {
  background-color: transparent !important;
  transform: translateY(-50%) scale(1.15);
  opacity: 1;
}


/* CAROUSEL ITEM SLIDE */
#newsCarousel .carousel-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-in, transform 0.8s ease-in;
}

#newsCarousel .carousel-item.active {
  opacity: 1;
  transform: translateX(0);
}

/* CONTAINER ALIGN + SPACING */
#newsCarousel .carousel-item .row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

/* CARDS */
#newsCarousel .card {
  height: 100%;
  border: none;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  background-color: #fff;
  color: #333;
  opacity: 1;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#newsCarousel .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

#newsCarousel .card h6 {
  font-weight: 600;
  color: #013d5f;
  margin-bottom: 0.5rem;
}

#newsCarousel .card p {
  font-size: 0.9rem;
}

#newsCarousel .card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}

/* Buttons */
#newsCarousel .card .btn {
  margin-top: auto;
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  #newsCarousel .carousel-item .row {
    flex-wrap: wrap;
  }

  #newsCarousel .card {
    margin-bottom: 1rem;
  }
}

/* --- slide-ul class "banner-contained" --- */
#indexCarousel .carousel-item.banner-contained{
  position: relative;
  height: 550px;
  min-height: 550px;
  overflow: hidden;
}

#indexCarousel .carousel-item.banner-contained img{
  display: none !important;
}

/* DESKTOP full */
#indexCarousel .carousel-item.banner-contained.bg-influencer::before{
  content:"";
  position:absolute;
  inset:0;
  background-color:#eaf6d9;
  background-image:url("../images/Banner_influencer_desktop@1x.png");
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;   /* <— cheia: nu mai taie */
}

/* MID-DESKTOP (≤1440px) */
@media (max-width:1440px) and (min-width:1201px){
  #indexCarousel .carousel-item.banner-contained{ height:550px; }
  #indexCarousel .carousel-item.banner-contained.bg-influencer::before{
    background-image:url("../images/Banner_influencer_tableta@1x.png");
    background-position:center;   /* sau left center */
    background-size:contain;      /* <— nu cover */
  }
  @media (max-width:1440px) and (min-width:1201px) and (min-resolution:1.5dppx){
    #indexCarousel .carousel-item.banner-contained.bg-influencer::before{
      background-image:url("../images/Banner_influencer_tableta@2x.png");
      background-size:contain;
    }
  }
}

/* TABLETĂ (≤1200px) */
@media (max-width:1200px){
  #indexCarousel .carousel-item.banner-contained{ height:550px; }
  #indexCarousel .carousel-item.banner-contained.bg-influencer::before{
    background-image:url("../images/Banner_influencer_tableta@1x.png");
    background-position:center;   /* sau left center */
    background-size:contain;      /* <— nu cover */
  }
  @media (max-width:1200px) and (min-resolution:1.5dppx){
    #indexCarousel .carousel-item.banner-contained.bg-influencer::before{
      background-image:url("../images/Banner_influencer_tableta@2x.png");
      background-size:contain;
    }
  }
}

/* MOBIL (≤576px) */
@media (max-width:576px){
  #indexCarousel .carousel-item.banner-contained{ height:550px; }
  #indexCarousel .carousel-item.banner-contained.bg-influencer::before{
    background-image:url("../images/Banner_influencer_mobile@1x.png");
    background-position:center;   /* sau left center */
    background-size:contain;      /* <— nu cover */
  }
  @media (max-width:576px) and (min-resolution:1.5dppx){
    #indexCarousel .carousel-item.banner-contained.bg-influencer::before{
      background-image:url("../images/Banner_influencer_mobile@2x.png");
      background-size:contain;
    }
  }
  @media (max-width:576px) and (min-resolution:2.75dppx){
    #indexCarousel .carousel-item.banner-contained.bg-influencer::before{
      background-image:url("../images/Banner_influencer_mobile@3x.png");
      background-size:contain;
    }
  }
}

/* DESKTOP (>=1200px) */
@media (min-width: 1200px) {

  #indexCarousel.carousel.slide.carousel-fade
  .carousel-item.banner-contained .carousel-caption {
    position: absolute !important;
    top: 44% !important;              /* 41–46% */
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: min(92vw, 1100px) !important;
    margin: 0 auto !important;
    text-align: center !important;
    padding: 0 16px !important;
    z-index: 3 !important;
  }

  #indexCarousel.carousel.slide.carousel-fade
  .carousel-item.banner-contained.carousel-item-start .carousel-caption,
  #indexCarousel.carousel.slide.carousel-fade
  .carousel-item.banner-contained.carousel-item-end .carousel-caption,
  #indexCarousel.carousel.slide.carousel-fade
  .carousel-item.banner-contained.active .carousel-caption {
    top: 43% !important;
  }

  #indexCarousel.carousel.slide.carousel-fade
  .carousel-item.banner-contained .carousel-caption > h1 {
    font-size: clamp(1.5rem, 1.5rem, 1.5rem) !important; /* 2.10–2.40 */
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
    letter-spacing: .2px !important;
  }

  #indexCarousel.carousel.slide.carousel-fade
  .carousel-item.banner-contained .carousel-caption .btn {
    font-size: 1rem !important;
    padding: .6rem 1.4rem !important;
  }
}

  /* fine-tuning caption pe mobil */
  #indexCarousel .carousel-item.banner-contained .carousel-caption h1{
    font-size: 1.1rem;
  }
  #indexCarousel .carousel-item.banner-contained .btn{
    font-size: .85rem;
    padding: .4rem .9rem;
  }
}

/* scroll orizontal */
html, body { overflow-x: hidden; }

/* MID-DESKTOP 1440–1599px */
@media (min-width: 1440px) and (max-width: 1599px){
  #indexCarousel.carousel.slide.carousel-fade
  .carousel-item.banner-contained .carousel-caption {
    top: 48% !important;    /* puțin mai jos decât desktop mare */
  }
}

/* MID-DESKTOP 1280–1439px */
@media (min-width: 1280px) and (max-width: 1439px){
  #indexCarousel .carousel-item.banner-contained .carousel-caption,
  #indexCarousel .carousel-item.banner-contained.active .carousel-caption,
  #indexCarousel .carousel-item.banner-contained.carousel-item-start .carousel-caption,
  #indexCarousel .carousel-item.banner-contained.carousel-item-end .carousel-caption{
    top: 46% !important;          /* coboară în golul de sub text (ajustează 54–58%) */
    bottom: auto !important;
    transform: translateX(0) translateY(0) !important; /* fara anim vertical */
  }

  #indexCarousel .carousel-item.banner-contained .carousel-caption > h1{
    font-size: 1.6rem !important;
    line-height: 1.2 !important;
  }
}

/* MID-DESKTOP 1200–1279px */
@media (min-width: 1200px) and (max-width: 1279px){
  #indexCarousel .carousel-item.banner-contained .carousel-caption,
  #indexCarousel .carousel-item.banner-contained.active .carousel-caption,
  #indexCarousel .carousel-item.banner-contained.carousel-item-start .carousel-caption,
  #indexCarousel .carousel-item.banner-contained.carousel-item-end .carousel-caption{
    top: 48% !important;      
    bottom: auto !important;
    transform: translateX(0) translateY(0) !important;
  }

  #indexCarousel .carousel-item.banner-contained .carousel-caption > h1{
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
  }
}

/* TELEFON  (<= 576px) */
@media (max-width: 576px){
  #indexCarousel .carousel-item.banner-contained .carousel-caption,
  #indexCarousel .carousel-item.active.banner-contained .carousel-caption,
  #indexCarousel .carousel-item.carousel-item-start.banner-contained .carousel-caption,
  #indexCarousel .carousel-item.carousel-item-end.banner-contained .carousel-caption{
    top: 75% !important;                        /*  62–66% */
    bottom: auto !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    width: min(92vw, 460px) !important;
    padding: 0 10px !important;
    text-align: center !important;
  }

  #indexCarousel .carousel-item.banner-contained .carousel-caption > h1{
    font-size: 1.02rem !important;
    line-height: 1.25 !important;
    margin-bottom: .6rem !important;
  }

  #indexCarousel .carousel-item.banner-contained .carousel-caption .btn{
    font-size: .78rem !important;
    padding: .42rem .8rem !important;
    white-space: normal;
    line-height: 1.2 !important;
  }
}

/* TELEFON (577–768px) */
@media (min-width: 577px) and (max-width: 768px){
  #indexCarousel .carousel-item.banner-contained .carousel-caption,
  #indexCarousel .carousel-item.active.banner-contained .carousel-caption,
  #indexCarousel .carousel-item.carousel-item-start.banner-contained .carousel-caption,
  #indexCarousel .carousel-item.carousel-item-end.banner-contained .carousel-caption{
    top: 60% !important;                    
    bottom: auto !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    width: min(92vw, 520px) !important;
    padding: 0 12px !important;
    text-align: center !important;
  }

  #indexCarousel .carousel-item.banner-contained .carousel-caption > h1{
    font-size: 1.15rem !important;
    line-height: 1.25 !important;
    margin-bottom: .7rem !important;
  }

  #indexCarousel .carousel-item.banner-contained .carousel-caption .btn{
    font-size: .85rem !important;
    padding: .48rem .95rem !important;
  }
}
