@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

:root {
    --primary-color: #204184; /* Deep Blue from inspiration */
    --secondary-color: rgb(255, 198, 39); /* Exact yellow requested */
    --text-color: #333333;
    --bg-color: #f9f9f9;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 960px;
    width: 95%;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: var(--secondary-color);
    border-bottom: 5px solid var(--primary-color);
    padding: 10px 0;
}

header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 0;
    padding-bottom: 0;
    width: 100%;
    max-width: 100%;
    padding-left: 5%;
    padding-right: 5%;
}

header .logo-container {
    display: flex;
    align-items: center;
}

header .logo-container img {
    height: 80px;
    object-fit: contain;
    border-radius: 4px;
}

header a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

nav ul li a {
    font-size: 1.1em;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #000;
}

main {
    flex: 1;
}

.hero {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 5px solid var(--secondary-color);
}

.hero h1 {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 10px;
}

.content {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.content h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

footer {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
    font-size: 0.9em;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-color);
}

.form-group input, .form-group textarea {
    display: block;
    width: 100%;
    padding: 20px;
    font-size: 1.2em;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
}

.btn {
    padding: 16px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-secondary {
    background: #ccc;
    color: #333;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: bold;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border-left: 5px solid #28a745;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
    z-index: 1000;
    border-top: 4px solid var(--secondary-color);
}

.cookie-buttons {
    margin-top: 15px;
}

.cookie-buttons .btn {
    margin: 0 10px;
}

/* Grid Layouts */
.gallery-grid, .video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 650px) {
    .candidates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 450px) {
    .candidates-grid {
        grid-template-columns: 1fr;
    }
}

.candidate-card, .video-card, .podcast-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.candidate-img {
    width: 100%;
    height: auto;
    display: block;
    background-color: transparent;
    border-radius: 4px;
    margin-bottom: 15px;
}

.candidate-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    font-family: 'Avenir Next Condensed', 'Arial Narrow', sans-serif;
    font-weight: 700;
}

.candidate-desc {
    font-family: 'Avenir Next Condensed', 'Arial Narrow', sans-serif;
    font-weight: 400;
    text-align: justify;
}

.program-content {
    text-align: justify;
}

.gallery-album {
    margin-bottom: 40px;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

.podcast-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.podcast-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

.podcast-card audio {
    width: 100%;
    margin-top: 10px;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.video-thumbnail:hover img {
    transform: scale(1.03);
    filter: brightness(0.9);
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
}

.video-thumbnail:hover .play-button-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.podcast-actions {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
}

.btn-youtube {
    display: inline-block;
    padding: 10px 18px;
    font-size: 0.95em;
    text-decoration: none;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 6px;
    transition: background 0.3s, color 0.3s;
}

.btn-youtube:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    header .logo-container img {
        height: 60px; /* Zmensenie loga na mobile */
        max-width: 100%;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    nav ul li a {
        font-size: 1em;
        padding: 5px;
    }

    .hero, .content {
        padding: 20px;
        margin-top: 15px;
    }

    .hero h1 {
        font-size: 1.8em;
    }

    .container {
        padding: 10px;
    }

    .podcast-actions {
        justify-content: center;
    }

    .btn-youtube {
        width: 100%;
        text-align: center;
    }
}

.mobile-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .candidates-grid {
        grid-template-columns: 1fr;
    }
}
