/* CSS Reset */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fcfcfc;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 1000px;
}

.text-center {
    text-align: center;
}

.section-gray {
    background-color: #f4f5f7;
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('hero.avif') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 31, 63, 0.85); /* Dark blue overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero h2 {
    font-size: 2rem;
    color: #E4005B; /* Strong red */
    margin-bottom: 20px;
}

.hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 600;
}

.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: #E4005B;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 5px;
    transition: background 0.3s ease;
    text-transform: uppercase;
}

.cta-button:hover {
    background-color: #B80049;
}

/* VISION SECTION */
.vision {
    background-color: #fff;
    padding: 80px 0;
    text-align: center;
}

.vision h3 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #001f3f;
}

.vision p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

/* PROGRAM POINTS (COMMON) */
.program-points {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #001f3f;
}

/* GRID (ROZCESTNÍK) - Flexbox pro centrování posledního prvku */
.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.grid-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex: 1 1 300px;
    max-width: 350px;
}

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-grid {
    padding: 40px 30px 30px 30px;
    border-top: 5px solid #001f3f;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.grid-link:hover .card-grid {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-top: 5px solid #E4005B;
}

.card-number {
    position: absolute;
    top: -25px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: #E4005B;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    border-radius: 50%;
    font-family: 'Montserrat', sans-serif;
}

.grid-link:hover .card-number {
    background: #001f3f;
}

.card-grid h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #001f3f;
    margin-top: 10px;
}

.card-grid p {
    font-weight: 400;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    display: inline-block;
    color: #E4005B;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: auto;
}

/* FULL TEXT (PLNÉ ZNĚNÍ) */
.grid-full {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.card-full {
    padding: 50px 40px 40px 60px;
    border-left: 5px solid #E4005B;
    scroll-margin-top: 40px; /* Offset for smooth scrolling */
}

.card-number-full {
    position: absolute;
    top: 20px;
    left: -35px;
    width: 65px;
    height: 65px;
    background: #001f3f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    border-radius: 50%;
    font-family: 'Montserrat', sans-serif;
    border: 5px solid #fcfcfc;
}

.card-full h4 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #001f3f;
}

.card-full .highlight-text {
    font-weight: 700;
    color: #E4005B;
    margin-top: 25px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.card-full p {
    margin-bottom: 15px;
    color: #444;
    text-align: justify;
}

.card-full ul {
    list-style-position: outside;
    margin-left: 20px;
    color: #444;
    margin-bottom: 25px;
}

.card-full ul li {
    margin-bottom: 10px;
    text-align: justify;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 15px;
    background-color: #f4f5f7;
    color: #001f3f;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
}

.back-link:hover {
    background-color: #E4005B;
    color: #fff;
}

/* FOOTER */
footer {
    background-color: #001f3f;
    color: #fff;
    padding: 60px 0 30px;
}

footer h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

footer p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 20px;
    color: #ccc;
}

footer .highlight {
    font-size: 1.3rem;
    color: #fff;
    margin-top: 30px;
}

footer .highlight strong {
    color: #E4005B;
    display: block;
    margin-top: 10px;
    font-size: 1.8rem;
}

footer .copyright {
    margin-top: 50px;
    font-size: 0.9rem;
    color: #666;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero { background-position: 70% center; }
    .hero h1 { font-size: 2.5rem; }
    .hero h2 { font-size: 1.5rem; }
    .card-full { padding: 40px 20px 20px 20px; border-left: none; border-top: 5px solid #E4005B; }
    .card-number-full { top: -35px; left: 20px; border-color: #fff; }
    .card-full p, .card-full ul li { text-align: left; }
}
