/* Global Styles */

:root {
    --primary-color: #fff;
    --text-color: #fff;
    --bg-color: #e12b2b;
    --secondary-bg: #d01f1f;
    --card-bg: #fff;
    --card-text: #333;
    --card-accent: #e12b2b;
}

body {
    font-family: 'DIN Condensed', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 1.1rem;
    /* menší, lépe čitelné na mobilu */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'DIN Condensed', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.date-range {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Header Section */
.header {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    background-color: #fff;
}

.logo {
    display: flex;
    justify-content: center;
    /* vodorovně na střed */
    align-items: center;
    height: 20vh;
}

.logo img {
    height: 100%;
    /* podobná velikost jako logo investigace.cz */
    width: auto;
}

/* Hero Section */
.hero {
    padding: 40px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive YouTube Wrapper */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    margin: 30px auto;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Syllabus Section */
.syllabus {
    background-color: var(--secondary-bg);
    padding: 60px 0;
}

.syllabus-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.syllabus-list li {
    background: var(--card-bg);
    color: var(--card-text);
    margin-bottom: 15px;
    border-left: 5px solid var(--card-accent);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.syllabus-list h3 {
    margin: 0;
    padding: 20px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.syllabus-list h3::after {
    content: '+';
    font-size: 1.5rem;
}

.syllabus-list li.active h3::after {
    content: '-';
}

.syllabus-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 20px;
    transition: max-height .3s ease, opacity .3s ease;
}

.syllabus-list li.active .syllabus-content {
    max-height: 500px;
    opacity: 1;
    padding-bottom: 20px;
}

/* Signup Section */
.signup {
    padding: 60px 0;
    text-align: center;
}

.form-container {
    max-width: 100%;
    background: #fff;
    padding: 10px;
}

/* Responsive Google Form */
.form-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 220%;
    height: 0;
}

.form-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Partners Section */
.partners {
    padding: 40px 0;
    background: #fff;
    color: #333;
}

.partner-logos {
    display: flex;
    justify-content: center;
    /* ZMĚNA: loga na střed */
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.partner-logos img {
    max-height: 60px;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: .3s;
}

.partner-logos img:hover {
    opacity: 1;
    filter: none;
}

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

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

.social-links a {
    display: inline-block;
    margin: 0 8px;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

footer p {
    opacity: 1;
    /* plná viditelnost */
    color: #fff;
    /* jasná bílá */
    font-size: 1.1rem;
    /* lépe čitelné */
    line-height: 1.5;
}

/* --------- MOBILE (max-width 768px) ---------- */
@media (max-width: 768px) {

    body {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .partner-logos img {
        max-height: 40px;
    }

    .syllabus-list h3 {
        font-size: 1rem;
        padding: 15px;
    }

    .form-wrapper {
        padding-bottom: 260%;
        /* víc prostoru pro mobil */
    }
}
