/* Vlastní styly pro Web šablona 8: Výuka */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800&family=Patrick+Hand&display=swap');

:root {
    --font-body: 'Nunito', sans-serif;
    --font-display: 'Patrick Hand', cursive;
    --color-primary: #7c3aed; /* Fialová */
    --color-secondary: #06b6d4; /* Tyrkysová */
    --color-accent: #f59e0b; /* Žlutá */
    --color-text: #1f2937;
    --color-bg-light: #f9fafb;
}

body {
    font-family: var(--font-body);
    background-color: white;
    position: relative;
    overflow-x: hidden;
}
.font-patrick-hand { font-family: var(--font-display); }

/* Pozadí s barevnými fleky */
.blob-1, .blob-2 { position: absolute; border-radius: 50%; filter: blur(100px); z-index: -1; pointer-events: none; }
.blob-1 { width: 400px; height: 400px; background: rgba(168, 85, 247, 0.15); top: -100px; left: -100px; }
.blob-2 { width: 500px; height: 500px; background: rgba(6, 182, 212, 0.1); bottom: 20%; right: -150px; }
body::before { content: ''; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-image: radial-gradient(#d1d5db 1px, transparent 1px); background-size: 20px 20px; opacity: 0.2; z-index: -2; }

/* === Navigace === */
.nav-link { font-weight: 700; padding: 0.5rem 1rem; border-radius: 0.5rem; transition: background-color 0.2s, color 0.2s; color: var(--color-text); }
.nav-link:hover { color: var(--color-primary); }
.cta-button { background-color: var(--color-primary); color: white; padding: 0.75rem 2rem; border-radius: 9999px; font-weight: 800; box-shadow: 0 4px 14px 0 rgba(124, 58, 237, 0.39); transition: all 0.3s ease; }
.cta-button:hover { background-color: #6d28d9; transform: translateY(-2px); box-shadow: 0 6px 20px 0 rgba(124, 58, 237, 0.5); }

/* Mobilní menu */
.mobile-nav-link { display: block; text-align: center; padding: 1rem; font-size: 1.25rem; color: var(--color-text); font-weight: 700; }
.mobile-nav-cta { display: block; text-align: center; margin: 1rem auto; padding: 1rem; background-color: var(--color-primary); color: white; border-radius: 9999px; font-weight: 700; width: calc(100% - 2rem); }

/* === Obecné styly === */
.section-title { font-size: 2.5rem; font-weight: 800; text-align: center; color: var(--color-text); }
.section-paragraph { font-size: 1.125rem; line-height: 1.75; color: #4b5563; }

/* Styly pro ZAROVNANÉ karty kurzů */
.course-card {
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    position: static;
    transform: none !important;
    margin: 0;
    width: 100%;
}
.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.card-title { font-family: var(--font-display); font-size: 2rem; color: var(--color-text); }

/* Rozvrh */
.schedule-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    background-color: white;
    padding: 1rem;
    border-radius: 1rem;
    border: 2px solid #e5e7eb;
}
.schedule-header { font-weight: 700; text-align: center; padding: 0.5rem; }
.schedule-item {
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    text-align: center;
    font-weight: 600;
}

/* Styly pro ZAROVNANÉ reference */
.testimonial-card {
    background-color: white;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    text-align: center;
    transform: none !important;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.testimonial-card p { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.4; }
.testimonial-card cite { font-family: var(--font-body); font-style: normal; font-weight: 700; color: var(--color-primary); margin-top: 1rem; display: block; }

/* Styly pro sekci "O nás" */
.timeline-container { position: relative; max-width: 600px; margin: auto; }
.timeline-container::after { content: ''; position: absolute; width: 4px; background-color: #e5e7eb; top: 0; bottom: 0; left: 50%; margin-left: -2px; }
.timeline-item { padding: 10px 40px; position: relative; background-color: inherit; width: 50%; }
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }
.timeline-dot { content: ''; position: absolute; width: 20px; height: 20px; background-color: white; border: 4px solid var(--color-primary); top: 15px; border-radius: 50%; z-index: 1; }
.timeline-item:nth-child(odd) .timeline-dot { right: -10px; }
.timeline-item:nth-child(even) .timeline-dot { left: -10px; }
.timeline-content { padding: 1rem; background-color: var(--color-bg-light); border-radius: 0.5rem; }
.timeline-content h4 { font-weight: 800; color: var(--color-primary); }

.benefit-card-about { text-align: center; }
.benefit-icon-about { display: inline-block; background-color: #ede9fe; color: var(--color-primary); padding: 0.75rem; border-radius: 0.5rem; margin-bottom: 1rem; }
.benefit-icon-about svg { width: 1.75rem; height: 1.75rem; }
.benefit-card-about h4 { font-weight: 700; margin-bottom: 0.25rem; }
.benefit-card-about p { font-size: 0.875rem; color: #6b7280; }

/* Patička */
.cta-button-footer { background-color: white; color: var(--color-primary); padding: 0.75rem 2rem; border-radius: 9999px; font-weight: 800; transition: all 0.3s ease; }
.cta-button-footer:hover { background-color: #f3f4f6; transform: scale(1.05); }

/* Kontaktní Modal */
.modal-overlay { position: fixed; inset: 0; background-color: rgba(17, 24, 39, 0.6); backdrop-filter: blur(5px); display: none; align-items: center; justify-content: center; z-index: 100; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.is-open { display: flex; opacity: 1; }
.modal-content { background-color: white; padding: 2rem; border-radius: 1rem; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); max-width: 500px; width: 90%; position: relative; transform: scale(0.95); transition: transform 0.3s ease; }
.modal-overlay.is-open .modal-content { transform: scale(1); }
.modal-close { position: absolute; top: 1rem; right: 1rem; font-size: 1.5rem; color: #9ca3af; border: none; background: none; cursor: pointer; }
.form-input { width: 100%; padding: 0.75rem; border: 1px solid #d1d5db; border-radius: 0.375rem; transition: border-color 0.3s, box-shadow 0.3s; }
.form-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2); }

/* Plovoucí navigační tlačítka */
.floating-nav-button { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; background-color: var(--color-primary); color: white; border-radius: 50%; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); transition: all 0.3s ease; z-index: 60; }
.floating-nav-button:hover { background-color: var(--color-secondary); transform: scale(1.1); }

/* === RESPONZIVNÍ DESIGN (MOBILNÍ ZAŘÍZENÍ) === */
@media (max-width: 767px) {
    .section-title { font-size: 2rem; }
    
    .mobile-hero-image { display: none; }
    #home { padding-top: 2rem; padding-bottom: 2rem; }
    #home .grid { flex-direction: column; }
    .mobile-hero-text { order: 1; margin-top: 2rem; text-align: center; }
    .mobile-hero-text h1 { font-size: 2.5rem; }
    
    .schedule-container {
        display: block; /* Přepne na vertikální seznam */
        overflow-x: hidden; /* Zabrání horizontálnímu scrollování */
        max-width: 100%; /* Zajistí, že obsah nezpůsobí přetečení */
    }
    .schedule-header { display: none; } /* Skryje hlavičky dní na mobilu */
    .schedule-item {
        margin-bottom: 0.5rem;
        width: 100%; /* Zajistí plnou šířku karty */
    }

    .timeline-container::after { left: 10px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 0; text-align: left !important; }
    .timeline-item:nth-child(even) { left: 0%; }
    .timeline-dot { left: 0; }
    .timeline-item:nth-child(odd) .timeline-dot { right: auto; left: 0; }
    
    .floating-nav-button { width: 45px; height: 45px; }
    body { overflow-x: hidden; } /* Globální zabránění horizontálnímu scrollování na mobilu */
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.schedule-item {
  grid-column: span 1;
}