/* ==========================================================================
   Moldtek Slider — front CSS. 100% responsive.
   Mod inaltime: .mt-height-auto (raportul imaginii, fara crop) | .mt-height-cover
   (inaltime fixa desktop/mobil cu object-fit:cover).
   ========================================================================== */
.mt-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--mt-radius, 0px);
    background: #f2f2f2;
    -webkit-tap-highlight-color: transparent;
}
.mt-slider-viewport {
    width: 100%;
    overflow: hidden;
}
.mt-slider-track {
    display: flex;
    width: 100%;
    will-change: transform;
    /* durata seteaza JS-ul din data-speed */
}
.mt-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
}
.mt-slide-link {
    display: block;
    position: relative;
    color: inherit;
    text-decoration: none;
}
.mt-slide-img {
    display: block;
    position: relative;
    z-index: 0;
    width: 100%;
    border: 0;
}
/* Overlay de culoare peste imagine (sub text). Culoarea+transparenta vin din setari
   prin variabila --mt-overlay. Elementul se randeaza doar cand opacitatea > 0. */
.mt-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--mt-overlay, transparent);
    pointer-events: none;
}

/* --- Mod AUTO: imaginea isi pastreaza raportul (fara crop). Inaltimea containerului
   e gestionata de JS (urmeaza slide-ul activ), cu tranzitie lina. --- */
.mt-height-auto .mt-slide-img { height: auto; }

/* --- Mod COVER: inaltime fixa, imaginea umple (crop). --- */
.mt-height-cover .mt-slider-viewport { height: var(--mt-h-desk, 440px); }
/* track-ul trebuie sa aiba si el height:100%, altfel lantul de procente se rupe
   (track e flex cu height auto = inaltimea imaginii) si imaginea nu se intinde
   pe toata inaltimea viewport-ului. */
.mt-height-cover .mt-slider-track,
.mt-height-cover .mt-slide,
.mt-height-cover .mt-slide-link { height: 100%; }
.mt-height-cover .mt-slide-img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* --- Caption (optional: titlu / subtitlu / buton) --- */
.mt-slide-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 4%;
    /* textul e impins ~20px mai la dreapta */
    padding-left: calc(4% + 20px);
    pointer-events: none;
}
.mt-slide-caption-inner {
    max-width: 46%;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.mt-slide-title {
    font-size: clamp(20px, 3.2vw, 42px);
    font-weight: 700;
    line-height: 1.12;
    margin: 0 0 10px;
    color: #fff;
}
.mt-slide-subtitle {
    font-size: clamp(13px, 1.5vw, 19px);
    line-height: 1.4;
    margin: 0 0 18px;
    color: #fff;
}
.mt-slide-btn {
    pointer-events: auto;
    display: inline-block;
    background: #800000;
    color: #fff;
    font-weight: 600;
    font-size: clamp(13px, 1.4vw, 16px);
    padding: 11px 26px;
    border-radius: 6px;
    transition: background-color .18s ease;
}
.mt-slide-link:hover .mt-slide-btn { background: #6b0000; }

/* --- Sageti --- */
.mt-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #800000;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: background-color .18s ease, color .18s ease, opacity .18s ease;
}
.mt-slider-arrow:hover { background: #800000; color: #fff; }
.mt-slider-prev { left: 16px; }
.mt-slider-next { right: 16px; }

/* --- Buline --- */
.mt-slider-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 9px;
    pointer-events: none;
}
.mt-slider-dot {
    pointer-events: auto;
    width: 11px;
    height: 11px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: background-color .18s ease, transform .18s ease;
}
.mt-slider-dot.is-active {
    background: #fff;
    transform: scale(1.15);
}

/* --- Stare de incarcare / drag --- */
.mt-slider.is-dragging .mt-slider-track { transition: none !important; }
.mt-slider.is-dragging { cursor: grabbing; }

/* --- Responsive --- */
@media (max-width: 991px) {
    .mt-slide-caption-inner { max-width: 62%; }
}
@media (max-width: 767px) {
    .mt-height-cover .mt-slider-viewport { height: var(--mt-h-mob, 220px); }
    .mt-slider-arrow { width: 38px; height: 38px; }
    .mt-slider-prev { left: 8px; }
    .mt-slider-next { right: 8px; }
    .mt-slide-caption { padding: 5% 6%; padding-left: calc(6% + 32px); }
    .mt-slide-caption-inner { max-width: 78%; }
    /* scrisuri + buton cu 20% mai mici pe mobil */
    .mt-slide-title { font-size: 19px; margin-bottom: 6px; }
    .mt-slide-subtitle { font-size: 13px; margin-bottom: 12px; }
    .mt-slide-btn { font-size: 13px; padding: 10px 25px; }
}
@media (max-width: 480px) {
    .mt-slider-dots { bottom: 8px; gap: 7px; }
    .mt-slider-dot { width: 9px; height: 9px; }
}
