/* ==========================================================================
   Hero Section Layout Fix - Features on Hero
   ========================================================================== */

/* Upravené štýly pre hero sekciu */
.hero-section {
    position: relative;
    height: 100vh;
    background-image: url("../images/city-skyline.jpg"); /* Skontrolujte cestu k obrázku */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--light-text-color);
    text-align: center;
    overflow: hidden; /* Zabráni prípadnému pretekaniu obsahu */
}

/* Overlay zostáva rovnaký */
.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Nové štýly pre kontajner hlavného obsahu */
.hero-section .hero-container { /* Alebo .hero-section > .container */
    position: relative; /* Nad overlayom */
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertikálne centrovanie */
    align-items: center; /* Horizontálne centrovanie */
    height: 100%; /* Využije celú výšku hero sekcie */
    padding-bottom: 250px; /* Vytvorí priestor pre sekciu výhod dole - upravte podľa potreby (skúste 220px - 300px) */
    box-sizing: border-box; /* Zahrnie padding do výšky */
    max-width: 1200px; /* Obmedzenie šírky kontajnera */
    margin: 0 auto; /* Centrovanie kontajnera */
    padding-left: 15px; /* Bočný padding */
    padding-right: 15px; /* Bočný padding */
}

/* Štýly pre .hero-content zostávajú podobné */
.hero-content {
    max-width: 800px;
    margin: 0 auto; /* Centrovanie obsahu v kontajneri */
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--light-text-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Štýly pre sekciu výhod na hero obrázku zostávajú rovnaké */
.features-section.features-on-hero {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 30px 0; /* Mierne zmenšený padding */
    z-index: 3;
    border-top: 1px solid #eee;
}

.features-section.features-on-hero h2,
.features-section.features-on-hero h3,
.features-section.features-on-hero p {
    color: #333; /* Tmavá farba */
}

/* Responzívne úpravy */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .button {
        width: 80%;
        margin-bottom: 10px;
    }

    .hero-section .hero-container {
        padding-bottom: 0; /* Na mobiloch odstránime padding */
        justify-content: center; /* Centrovanie obsahu */
    }

    .features-section.features-on-hero {
        position: relative; /* Na mobiloch vrátime pod hero */
        background-color: white;
        border-top: none;
        padding: 40px 0;
    }
}
