/* POTENTIA patch (loaded after main.css)
   - Language flags positioned inside header (next to CTA)
   - Slightly larger header logo
   - Compact hero carousel (ce-mp.com style: overlay title + CTA)
   - Forces correct slide stacking even if main.css has conflicting rules
*/

/* --- Language flags (now in header, next to CTA) --- */
.lang{display:flex;gap:10px;align-items:center}
.header .cta{display:flex;align-items:center;gap:12px}
.header .cta .lang{margin-left:4px}

.lang .flag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:24px;
  border:1px solid rgba(15,23,42,.12);
  border-radius:8px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(2,6,23,.08);
}
.lang .flag img{width:100%;height:100%;display:block}
.lang .flag:focus{outline:2px solid rgba(234,88,12,.35);outline-offset:2px}

@media (max-width:640px){
  .lang .flag{width:32px;height:22px;border-radius:7px}
}

/* --- Header logo size --- */
.brand img{height:62px !important;width:auto !important}
@media (max-width:640px){
  .brand img{height:54px !important}
}

/* --- Carousel (CMP style) --- */
.carousel{position:relative}
.carousel__viewport{
  position:relative;
  width:100%;
  height:420px;
  overflow:hidden;
  border-radius:18px;
  background:rgba(0,0,0,.06);
}
@media (max-width:900px){
  .carousel__viewport{height:340px}
}
@media (max-width:640px){
  .carousel__viewport{height:280px;border-radius:16px}
}

/* force stacking */
.carousel__slide{
  position:absolute !important;
  inset:0 !important;
  opacity:0;
  pointer-events:none;
  transition:opacity .55s ease;
}
.carousel__slide.is-active{
  opacity:1;
  pointer-events:auto;
}
.carousel__slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* dark overlay so white text stays readable */
.carousel__slide::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(2,6,23,.70) 0%, rgba(2,6,23,.35) 48%, rgba(2,6,23,.10) 100%);
  pointer-events:none;
}

.carousel__overlay{
  position:absolute;
  left:22px;
  right:22px;
  bottom:22px;
  max-width:980px;
  z-index:2;
}
@media (max-width:640px){
  .carousel__overlay{left:14px;right:14px;bottom:14px}
}

.carousel__title{
  margin:0 0 12px 0;
  font-weight:900;
  letter-spacing:.01em;
  text-transform:none;
  line-height:1.05;
  color:#fff;
  font-size:46px;
  text-shadow:0 14px 40px rgba(0,0,0,.35);
}
@media (max-width:900px){.carousel__title{font-size:38px}}
@media (max-width:640px){.carousel__title{font-size:28px;margin-bottom:10px}}

.carousel__actions{display:flex;gap:10px;flex-wrap:wrap}
.carousel__actions .btn{box-shadow:0 14px 40px rgba(0,0,0,.25)}

.carousel__btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(11,18,32,.40);
  color:#fff;
  font-size:28px;
  line-height:1;
  display:grid;
  place-items:center;
  cursor:pointer;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  z-index:3;
}
.carousel__btn:hover{background:rgba(11,18,32,.62)}
.carousel__btn.prev{left:12px}
.carousel__btn.next{right:12px}
@media (max-width:640px){
  .carousel__btn{width:40px;height:40px;font-size:26px}
  .carousel__btn.prev{left:10px}
  .carousel__btn.next{right:10px}
}

.carousel__dots{
  position:absolute;
  left:50%;
  bottom:12px;
  transform:translateX(-50%);
  display:flex;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(11,18,32,.35);
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  z-index:3;
}
.carousel__dot{
  width:10px;
  height:10px;
  border-radius:999px;
  border:0;
  background:rgba(255,255,255,.35);
  cursor:pointer;
}
.carousel__dot.is-active{background:rgba(255,255,255,.95)}

/* Keep the index clean: remove any extra “section head” above carousel if present */
.section__head{display:none !important}
