:root {
    --white-orange: #fef6eb;
    --white-orange-light: #fff7ea;
}


/* Services section */
.spotlight-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    /* Sötét háttér az Apple dark mode stílushoz - azonos a szolgáltatások és látogasson el hozzánk szekcióval */
    background-color: #0d0d0d;
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    z-index: 1; /* z-index hozzáadva a szolgáltatások szekcióval egyezően */
}

/* Háttér gradiens effekt - azonos a szolgáltatások és látogasson el hozzánk szekcióval */
.spotlight-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(235, 170, 5, 0.02) 0%, rgba(235, 170, 5, 0.02) 30%, rgba(10, 10, 10, 0) 70%);
    z-index: -1;
    transition: background-position 0.5s ease-out;
}

/* Neon fényhatás a háttéren - azonos a szolgáltatások és látogasson el hozzánk szekcióval */
.spotlight-section .background-glow {
    content: '';
    position: absolute;
    top: 10%; /* Fenti résznél kezdődik */
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 10px;
    /*background: rgba(173, 255, 47, 0.5);*/
    background: rgba(235, 170, 5, 0.5);
    filter: blur(70px);
    opacity: 0.3;
    border-radius: 50%;
    z-index: -1;
    animation: spotlight-glow 4s infinite alternate;
    transition: transform 0.8s ease-out; /* Lassú, sima átmenet kurzor követéshez */
}

@keyframes spotlight-glow {
    0% {
        opacity: 0.3;
        width: 50%;
        filter: blur(70px);
    }
    100% {
        opacity: 0.4;
        width: 60%;
        filter: blur(90px);
    }
}

.spotlight-section h1 {
    position: relative;
    z-index: 1;
    color: var(--primary-light);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.04em; /* Növelt betűköz az Apple stílusához, szolgáltatásokkal egyezően */
    font-family: var(--regular-text);
    /* Eltávolítjuk a szöveg árnyékot, hogy a szolgáltatásokéval egyezzen */
    text-shadow: none;
    transition: all 0.3s ease;
    font-size: 2.8rem; /* Egységes méret a services-szel */
    text-align: center;
}

/* Hover effekt a címre - eltávolítva, hogy a szolgáltatásokéval egyezzen */
.spotlight-section h1:hover {
    text-shadow: none;
}

.spotlight-offers-container {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Egységes magasság érdekében */
    gap: 2.5rem;
    min-height: 70vh;
    width: 85%;
    max-width: 1400px;
    position: relative;
    z-index: 1;
}

.spotlight-card {
    display: flex;
    flex-direction: column;
    /* Világos háttér a kártyáknak */
    background-color: #ffffff;
    color: #333333;
    width: 30%;
    /* Rögzített magasság a uniform méretért */
    height: 600px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 
                0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: space-between; /* Biztosítja, hogy a gombok alul legyenek */
}

.spotlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3),
                0 2px 8px rgba(0, 0, 0, 0.15);
}

.offer-img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Csökkentett magasság a képeknek */
    height: 240px;
    width: 100%;
    overflow: hidden;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    flex-shrink: 0; /* Megakadályozza a zsugorodást */
}

.offer-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(244, 244, 244, 0) 70%, rgba(244, 244, 244, 0.3) 100%);
}

.offer-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.offer-img-wrapper img:hover {
    transform: scale(1.05);
}

.offer-text-content {
    display: flex;
    flex-direction: column;
    /* Rugalmas magasság a uniform kártyáért */
    flex: 1;
    width: 100%;
    /* Csökkentett padding a kép és cím között */
    padding: 1rem 1.5rem;
    background-color: #ffffff;
    position: relative; /* Pozicionálás a fix elemekhez */
    overflow: hidden; /* Megakadályozza, hogy a tartalom túlnyúljon */
}

.offer-title {
    display: flex;
    /* Csökkentett margó */
    margin-bottom: 0.3rem;
    min-height: 2.2rem; /* Minimális magasság a címnek */
    overflow: hidden; /* Túlcsordulás elrejtése */
    align-items: center; /* Függőleges középre igazítás */
}

.offer-title h2 {
    color: #333333;
    font-size: 1.5rem;
    font-family: var(--regular-text);
    font-weight: 500;
    letter-spacing: -0.5px;
    line-height: 1.2;
    white-space: nowrap; /* Cím egy sorban marad */
    overflow: hidden;
    text-overflow: ellipsis; /* Ha túl hosszú a cím, három pont jelenik meg */
}

.item-type {
    display: flex;
    /* Csökkentett margó az item type és flagek között */
    margin-bottom: 0.5rem;
    min-height: 1.5rem; /* Minimális magasság a típusnak */
    align-items: center; /* Függőleges középre igazítás */
}

.item-type h3 {
    color: #666666;
    font-family: var(--regular-text);
    font-weight: 300;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.offer-flags {
    display: flex;
    margin-bottom: 1rem;
    min-height: 2.2rem; /* Minimális magasság a flag-eknek */
    align-items: center; /* Függőleges középre igazítás */
}

.stocked-available {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background-color: rgba(173, 255, 47, 0.15);
    border: 1px solid rgba(173, 255, 47, 0.3);
}

.stocked-available p {
    color: rgb(100, 180, 0);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--regular-text);
}

.offer-description {
    display: flex;
    flex-direction: column;
    flex: 1; /* Rugalmas magasság */
    overflow-y: hidden; /* Alapértelmezetten elrejtjük a scrollbart */
    min-height: 0; /* Engedjük, hogy összehúzódjon, ha szükséges */
    /* Visszaállítjuk az eredeti magasságot */
    max-height: 200px;
    margin-bottom: 0.5rem;
    padding-right: 0.5rem;
    /* Szöveg törése, hogy ne lógjon ki */
    word-wrap: break-word;
    overflow-wrap: break-word;
    /* Elegáns scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
    position: relative;
}

/* Jelzés, hogy van több tartalom lefelé */
.offer-description::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    /*background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);*/
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1; /* Biztosítja, hogy a jelzés a szöveg felett legyen */
}

/* Csak akkor jelenjen meg a jelzés, ha van scrollozható tartalom */
.offer-description.scrollable::after {
    opacity: 1;
}

.offer-description::-webkit-scrollbar {
    width: 5px;
}

.offer-description::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    margin: 5px 0; /* Kissé eltartjuk a scrollbart a szélektől */
}

.offer-description::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

.offer-description:hover::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
}

.offer-description strong {
    color: #666666;
    font-size: 0.9rem;
    font-weight: 400;
    font-family: var(--regular-text);
    line-height: 1.5;
}

.offer-button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    /* 15px térköz alul-felül */
    
    height: auto;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0; /* Megakadályozza a zsugorodást */
}

.offer-btn-link {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    height: 100%;
    width: 100%;
}

.offer-button button {
    color: var(--primary-light);
    font-size: 1rem;
    font-family: var(--regular-text);
    font-weight: 600;
    /* Sötét gomb világos szöveg, a felhasználó kérése szerint */
    background-color: rgb(51, 51, 51);
    border: none;
    border-radius: 30px;
    /* Szélesebb gomb */
    width: 85%;
    padding: 0.8rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.offer-button button:hover {
    background-color: rgb(40, 40, 40);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    /* Hover állapotban még szélesebb */
    width: 90%;
}

.offer-button button:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Elegáns animációk a kártyáknak */
.spotlight-card {
    opacity: 0;
    transform: translateY(30px);
    animation: card-appear 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.spotlight-card:nth-child(1) {
    animation-delay: 0.1s;
}

.spotlight-card:nth-child(2) {
    animation-delay: 0.2s;
}

.spotlight-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes card-appear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reszponzív beállítások finomítva az egységes méretért */
@media screen and (min-width: 1440px) {
    .spotlight-offers-container {
        width: 85%;
        max-width: 1600px;
    }
    
    .spotlight-card {
        width: 30%;
        /* Rögzített magasság */
        height: 650px;
    }
    
    .offer-title {
        min-height: 2.4rem; /* Nagyobb képernyőkön magasabb cím */
    }
    
    .offer-title h2 {
        font-size: 1.6rem;
    }
    
    .offer-img-wrapper {
        height: 260px; /* Nagyobb képernyőn kicsit nagyobb kép */
    }
    
    .offer-description {
        max-height: 200px; /* Visszaállítjuk az eredeti értéket */
    }
}

@media screen and (max-width: 1440px) {
    .spotlight-offers-container {
        width: 90%;
    }
    
    .spotlight-card {
        width: 30%;
        /* Rögzített magasság */
        height: 600px;
    }
    
    .offer-title h2 {
        font-size: 1.35rem;
    }
    
    .offer-description {
        max-height: 200px; /* Visszaállítjuk az eredeti értéket */
    }
}

@media screen and (max-width: 1100px) {
    .spotlight-offers-container {
        width: 95%;
        gap: 1.5rem;
    }
    
    .spotlight-card {
        width: 31%;
        /* Rögzített magasság */
        height: 580px;
    }
    
    .offer-title h2 {
        font-size: 1.25rem;
    }
    
    .offer-img-wrapper {
        height: 230px; /* Kisebb képernyőn kisebb kép */
    }
    
    .offer-description {
        max-height: 180px; /* Kisebb képernyőnél egy kicsit kisebb */
    }
    
    .offer-description strong {
        font-size: 0.85rem;
    }
    
    .offer-button button {
        padding: 0.7rem 1.5rem;
    }
}

@media screen and (max-width: 950px) {
    .spotlight-section {
        padding: 4rem 1rem;
        min-height: auto;
    }
    
    .spotlight-offers-container {
        flex-direction: column;
        min-height: auto;
        gap: 2rem;
        align-items: center; /* Középre igazítás vízszintesen */
    }
    
    .spotlight-card {
        width: 100%;
        max-width: 500px;
        /* Mobil nézetnél is rögzített magasság */
        height: 520px;
    }
    
    .offer-img-wrapper {
        height: 220px; /* Mobil nézetben még kisebb kép */
    }
    
    .offer-text-content {
        flex: 1;
    }
    
    .offer-description {
        max-height: 160px; /* Mobil nézetben kicsit kevesebb */
    }
    
    .offer-title {
        min-height: 2rem;
    }
    
    .item-type {
        min-height: 1.3rem;
    }
    
    .offer-flags {
        min-height: 2rem;
    }
}

@media screen and (max-width: 600px) {
    .spotlight-section {
        padding: 3rem 1rem;
    }
    
    .spotlight-card {
        height: 500px;
    }
    
    .offer-img-wrapper {
        height: 200px;
    }
    
    .offer-title h2 {
        font-size: 1.2rem;
    }
    
    .item-type h3 {
        font-size: 0.8rem;
    }
    
    .offer-button button {
        font-size: 0.9rem;
        padding: 0.6rem 1.3rem;
    }
}

@media screen and (max-width: 400px) {
    .spotlight-card {
        height: 480px;
    }
    
    .offer-img-wrapper {
        height: 180px;
    }
    
    .offer-text-content {
        padding: 1rem;
    }
    
    .offer-title h2 {
        font-size: 1.1rem;
    }
    
    .offer-description strong {
        font-size: 0.8rem;
    }
}

/* JavaScript-hez kapcsolódó osztály a scrollbar detektálásához */
.check-overflow {
    position: absolute;
    visibility: hidden;
    height: auto;
    width: 100%;
}