:root {
    --primary: #003366;
    --secondary: #00a8cc;
    --accent: #f39c12;
    --light: #f4f7f6;
    --text: #333;
}

* { box-sizing: border-box; }

/* 1. GLOBÁLNÍ OPRAVA (Barev a Fontu) */
html, body {
    font-family: 'Inter', sans-serif !important; 
    background-color: #ffffff !important; 
    color: var(--text) !important;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* 2. NAVBAR (Návrat k původnímu funkčnímu vzhledu) */
.navbar {
    background-color: white !important; /* Vynucení bílé lišty */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logos-top {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-logo {
    height: 65px; /* Upraveno pro lepší stabilitu */
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text) !important; /* Aby odkazy nebyly bílé na bílé */
    font-weight: 600;
    white-space: nowrap;
}

/* 3. SEKCE (Vynucení pozadí pro zbytek webu) */
.section {
    padding: 80px 20px;
    background-color: #ffffff !important;
}

.bg-light {
    background-color: var(--light) !important;
}

/* 4. HERO (Tady musí text zůstat bílý) */
.hero {
    background: linear-gradient(rgba(0,51,102,0.85), rgba(0,51,102,0.85)), url('background.jpg');
    background-size: cover; 
    background-position: center;
    color: #ffffff !important;
    padding: 100px 20px;
    text-align: center;
}

.hero h1, .hero .tagline, .hero .info-item, .hero .badge {
    color: #ffffff !important;
}
/* Hero */
.hero {
    background: linear-gradient(rgba(0,51,102,0.85), rgba(0,51,102,0.85)), url('background.jpg');
    background-size: cover; background-position: center;
    color: white; padding: 100px 20px; text-align: center;
}
.hero h1 { font-size: 3.5rem; margin: 10px 0; }
.tagline { font-size: 1.5rem; opacity: 0.9; margin-bottom: 30px; }
.hero-info { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.info-item { background: rgba(255,255,255,0.1); padding: 10px 20px; border-radius: 5px; }

.cta-btn {
    background: var(--secondary); color: white; padding: 15px 35px;
    text-decoration: none; border-radius: 50px; font-weight: bold; font-size: 1.1rem;
    display: inline-block; transition: 0.3s;
}
.cta-btn:hover { background: #008eb0; transform: translateY(-2px); }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 20px; }
.section { padding: 80px 20px; }
.bg-light { background: var(--light); border-radius: 15px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* Zmenšení výšky konkrétně pro sekci "Who Is It For" */
#target.section {
    padding-top: 40px;    /* Původně bylo 80px */
    padding-bottom: 40px; /* Původně bylo 80px */
}

/* Organizers */
.organizer-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; margin-top: 40px;
}
.org-card { 
    text-align: center; padding: 20px; background: white; 
    border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.profile-img { 
    width: 150px; height: 150px; border-radius: 50%; 
    object-fit: cover; margin-bottom: 15px; border: 3px solid var(--secondary);
}
.affil { color: var(--secondary); font-weight: bold; margin-bottom: 10px; }
.bio { font-size: 0.95rem; color: #555; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.f-card { background: var(--primary); color: white; padding: 20px; border-radius: 10px; }

/* Footer */
.footer { background: #222; color: white; text-align: center; padding: 50px 20px; }
.footer-logo { height: 120px; margin: -30px; filter: grayscale(1) brightness(2); }

/* Responsive */
@media (max-width: 768px) {
    /* 1. OPRAVA NAVBARU A LOG */
    .navbar {
        height: auto; /* Přizpůsobí se obsahu (logům a menu pod sebou) */
        padding: 15px 0;
    }

    .nav-container {
        flex-direction: column; /* Loga nahoru, menu pod ně */
        gap: 15px;
    }

    .logos-top {
        background: white; /* Ochrana pro průhledná loga */
        padding: 5px 10px;
        border-radius: 5px;
        justify-content: center;
        width: 100%;
    }

    .nav-logo {
        height: 50px; /* Sjednocená výška log na mobilu */
        width: auto;
    }

    /* 2. ZOBRAZENÍ MENU (Místo display: none) */
    .nav-links {
        display: flex !important; 
        flex-direction: row; /* Odkazy vedle sebe */
        flex-wrap: wrap;    /* Pokud se nevejdou, skočí pod sebe */
        justify-content: center;
        gap: 15px;
        padding: 0;
    }

    .nav-links li a {
        font-size: 0.9rem;
        padding: 5px;
    }

    /* 3. OPRAVA SEKCE ABOUT (Záruka řazení pod sebou) */
    .two-col {
        display: flex !important;
        flex-direction: column !important; /* Vynutí text nahoře, obrázek dole */
        gap: 20px;
    }

    .text-block {
        text-align: justify;
        hyphens: auto;
        width: 100%;
    }

    .image-placeholder img {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    /* 4. OSTATNÍ ÚPRAVY */
    .hero h1 { font-size: 2rem; }
    .hero-info { gap: 10px; }
}

/* --- SECTION: PROGRAMME --- */

/* Poznámka k formátu akce pod nadpisem */
.format-note {
    background: rgba(0, 51, 102, 0.05); 
    border-left: 4px solid var(--primary); 
    padding: 15px 20px; 
    margin-bottom: 30px; 
    border-radius: 4px;
    text-align: left;
}

/* Container pro horizontální skroling na mobilech */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
}

.programme-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.programme-table th, .programme-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.programme-table th {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.programme-table td strong {
    color: var(--primary);
    display: block;
}

/* Zvýraznění přestávek */
.break-row {
    background-color: #f8f9fa;
    font-style: italic;
    color: #666;
}

/* Zvýraznění diskuse */
.discussion-row {
    background-color: rgba(0, 168, 204, 0.08); /* Používá vaši --secondary */
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

/* --- Responsive (upraveno o tabulku) --- */
@media (max-width: 768px) {
    .two-col { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
    .nav-links { display: none; }
    
    /* Úprava tabulky pro malé displeje */
    .programme-table th, 
    .programme-table td {
        padding: 10px;
        font-size: 0.85rem;
    }
}