/* ================================
   Tiva Slideshow - Profi Modern Stílus
   ================================ */

.tiva-slideshow-wrapper {
    position: relative;
    overflow: hidden;
    z-index: 9;
    border-radius: 12px;
}

/* Slider fő kép */
.tiva-slideshow-wrapper .nivoSlider img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.tiva-slideshow-wrapper:hover .nivoSlider img {
    transform: scale(1.05); /* enyhe zoom hover-re */
}

/* ================================
   Overlay háttér a feliratoknak
   ================================ */
.tiva-slideshow-wrapper .tiva-caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    z-index: 9999;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
    color: #fff;
    pointer-events: none;
    opacity: 0;
    animation: fadeInOverlay 1s forwards;
}

/* Overlay animáció */
@keyframes fadeInOverlay {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Feliratok stílusai */
.tiva-slideshow-wrapper .tiva-caption h1,
.tiva-slideshow-wrapper .tiva-caption h2,
.tiva-slideshow-wrapper .tiva-caption h3,
.tiva-slideshow-wrapper .tiva-caption p {
    margin: 10px 0;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.7);
}

/* Különböző méretek */
.tiva-caption .headline-72 { font-size: 72px; line-height: 72px; }
.tiva-caption .headline-48 { font-size: 48px; line-height: 48px; }
.tiva-caption .headline-36 { font-size: 36px; line-height: 36px; }
.tiva-caption .subheadline-24 { font-size: 24px; line-height: 28px; }
.tiva-caption .subheadline-18 { font-size: 18px; line-height: 22px; }

/* Gomb stílus overlay-on */
.tiva-caption .caption-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(45deg, #cfa15e, #e6c302);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tiva-caption .caption-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* ================================
   Control Nav (dots)
   ================================ */
.tiva-slideshow-wrapper .nivo-controlNav {
    position: absolute;
    bottom: 25px;
    width: 100%;
    text-align: center;
    z-index: 9999;
}

.tiva-slideshow-wrapper .nivo-controlNav .nivo-control {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tiva-slideshow-wrapper .nivo-controlNav .nivo-control.active {
    background-color: #cfa15e;
}

/* ================================
   Direction Nav (arrows)
   ================================ */
.tiva-slideshow-wrapper .nivo-directionNav a {
    display: block;
    width: 50px;
    height: 50px;
    text-indent: -9999px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.tiva-slideshow-wrapper:hover .nivo-directionNav a {
    opacity: 1;
}

.tiva-slideshow-wrapper a.nivo-prevNav { left: 20px; }
.tiva-slideshow-wrapper a.nivo-nextNav { right: 20px; }

/* Nyilak (használhatsz svg vagy png) */
.tiva-slideshow-wrapper a.nivo-prevNav::after,
.tiva-slideshow-wrapper a.nivo-nextNav::after {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
}

.tiva-slideshow-wrapper a.nivo-prevNav::after {
    background-image: url('arrow-left.svg');
}

.tiva-slideshow-wrapper a.nivo-nextNav::after {
    background-image: url('arrow-right.svg');
}

/* ================================
   Reszponzív Média Lekérdezések
   ================================ */
@media (max-width: 1200px) {
    .headline-72 { font-size: 60px; line-height: 60px; }
    .headline-48 { font-size: 42px; line-height: 42px; }
}

@media (max-width: 992px) {
    .headline-72 { font-size: 48px; line-height: 48px; }
    .headline-48 { font-size: 36px; line-height: 36px; }
    .headline-36 { font-size: 28px; line-height: 28px; }
}

@media (max-width: 768px) {
    .headline-72 { font-size: 36px; line-height: 36px; }
    .headline-48 { font-size: 28px; line-height: 28px; }
    .headline-36 { font-size: 24px; line-height: 24px; }
    .subheadline-24 { font-size: 18px; line-height: 22px; }
}

@media (max-width: 480px) {
    .headline-72 { font-size: 28px; line-height: 28px; }
    .headline-48 { font-size: 24px; line-height: 24px; }
    .headline-36 { font-size: 20px; line-height: 20px; }
    .subheadline-24 { font-size: 16px; line-height: 18px; }
    .subheadline-18 { font-size: 14px; line-height: 16px; }
    .caption-button { padding: 10px 20px; font-size: 14px; }
}
