/* RESET */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #ffffff;
    color: #222;
    line-height: 1.6;
}

/* HERO */
.hero {
    position: relative;
    min-height: 260px;
    padding: 60px 20px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background-image: url("/img/grafika.png");
    background-size: cover;
    background-position: center bottom;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(0,0,0,0.35));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.hero-logo {
    width: 200px;
    margin: 0 auto 24px;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.8));
}

.hero h1 {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    margin-bottom: 16px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

/* CTA */
.cta-btn {
    background: #ff4bb1;
    color: #fff;
    padding: 12px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    transition: 0.15s ease;
}

.cta-btn:hover {
    background: #ff2e9f;
    transform: translateY(-1px);
}

.cta-btn-secondary {
    background: #5f2b8c;
}

/* CONTENT */
.page-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.content h2 {
    font-size: 1.7rem;
    margin-bottom: 16px;
}

.content h3 {
    font-size: 1.3rem;
    margin-top: 28px;
    margin-bottom: 10px;
}

.content h4 {
    font-size: 1.15rem;
    margin-top: 20px;
    margin-bottom: 8px;
}

.content ul {
    margin: 8px 0 16px 22px;
}

.content li {
    margin-bottom: 6px;
}

/* BOTTOM CTA */
.bottom-cta {
    background: #f4ecff;
    padding: 24px;
    margin-top: 40px;
    border-radius: 18px;
    text-align: center;
}

/* RELATED GUIDES */
.related-guides {
    margin-top: 40px;
    padding: 20px;
    background: #f4ecff;
    border-radius: 18px;
}

.related-guides ul {
    list-style: none;
    padding: 0;
}

.related-guides li + li {
    margin-top: 6px;
}

.related-guides a {
    text-decoration: none;
    color: #5f2b8c;
}

.related-guides a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .hero {
        padding: 55px 16px 70px;
    }
    .hero-logo {
        width: 170px;
    }
}
.bottom-cta {
    margin-top: 40px;
    padding: 24px;
    border-radius: 18px;
    background: #f4ecff;
    text-align: center;
    
    /* NEW: makes button stay centered correctly */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Fix button position inside CTA */
.bottom-cta .cta-btn,
.bottom-cta .cta-btn-secondary {
    margin-top: 16px; /* space under text */
    transform: none !important; /* prevent hover offset shifting layout */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* slightly reduced to avoid visual lift */
}

/* OPTIONAL: reduce border radius on related-guides box */
.related-guides {
    margin-top: 40px;
    padding: 20px 20px 18px;
    border-radius: 16px;
}
/* HERO CTA FIX */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;              /* rozestupy mezi logo / h1 / textem / buttonem */
}

/* konkrétně tlačítko v hero */
.hero-content .cta-btn {
    margin-top: 8px;
    transform: none !important;      /* ať neskáče nahoru při hoveru */
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
