/* Globální styly */
body {
    margin: 0;
    padding: 0;
}


/* Nadpisy a text */
.title-color {
    color: var(--text-color, #000);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.title-underline::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: var(--underline-color, #ff5733);
    margin: 5px auto 0;
    border-radius: 2px;
}

.optional-text {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Karta pro novinky */
.news-item.card {
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex; /* Používáme flexbox pro lepší uspořádání obsahu */
    flex-direction: column; /* Uspořádáme obsah karty do sloupce */
    height: 100%; /* Zajistíme, že všechny karty budou mít stejnou výšku */
}

/* Obrázky v kartě novinek (čtvercový formát) */
.news-image-wrapper {
    width: 100%;
    padding-top: 100%; /* Poměr pro čtverec */
    position: relative;
    background-color: #f8f9fa;
}

/* Tlačítka "Zjistit více" */
.card .btn {
    background-color: var(--button-bg-color, #007bff); /* Původní barva pozadí */
    color: var(--button-text-color, #fff); /* Původní barva textu */
    border-color: var(--button-border-color, #f33a35); /* Původní barva ohraničení */
    display: inline-flex;
    justify-content: center; /* Ujistíme se, že obsah je vycentrovaný */
    align-items: center; /* Ujistíme se, že obsah je vycentrovaný vertikálně */
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    font-size: 1rem;
    font-weight: bold; /* Tučný text */
    text-transform: uppercase; /* Volitelný styl pro zvýraznění textu */
    margin-top: auto; /* Umístíme tlačítko na spodní část karty */
    margin-bottom: 20px; /* Odsazení od spodního okraje karty */
    width: auto; /* Automatická šířka pro tlačítko */
    height: 50px; /* Původní výška */
}

.card .btn:hover {
    background-color: var(--button-bg-hover-color, #0056b3); /* Hover efekt */
    border-color: var(--button-border-hover-color, #f33a35); /* Hover efekt pro ohraničení */
}



.news-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Modal Styling */
.modal-content {
    border-radius: 8px;
  
}

.modal-header {
    border-bottom: 1px solid #e5e5e5;
    padding: 15px 20px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.modal-body {
    padding: 20px;
}

#modalImage {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
}

.text-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.text-content p,
.text-content div {
    margin-bottom: 10px;
}

#modalExcerpt {
    font-size: 1.1rem;
    color: #555;
    font-weight: 500;
    margin-bottom: 0.5rem; /* Upravte mezeru dle potřeby */
}



.modal-body #modalDescription p {
    margin-top: 0.2rem !important;
    margin-bottom: 0.2rem !important;
}

.modal-body #modalDescription ul {
    margin: 0 !important;
    padding-left: 1rem !important;
}

.modal-body #modalDescription ul li {
    margin-bottom: 0.2rem !important;
    line-height: 1.3 !important;
}


/* Odstranění zbytečné mezery pod datem */
#modalDate {
    margin-top: 0.5rem; /* Odsazení od obsahu výše */
    margin-bottom: 0; /* Žádná mezera dole */
    font-size: 0.9rem; /* Menší písmo pro datum */
    color: #777; /* Tlumená barva textu */
}


.modal-footer {
    border-top: 1px solid #e5e5e5;
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end;
}


.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Image responsiveness and positioning */
.news-image-wrapper {
    background-position: center;
    background-size: cover;
    height: 300px; /* Adjust height for square look */
}

.card-img-top {
    height: 300px; /* Ensure consistency in height */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

@media (max-width: 768px) {
    /* Modal body padding pro mobilní zařízení */
    .modal-body {
        padding: 10px; /* Snížené odsazení obsahu */
    }

    /* Upravení obrázku v modalu */
    #modalImage {
        max-height: 200px; /* Omezíme výšku obrázku */
        object-fit: cover; /* Zajistíme správné proporce */
        margin-bottom: 10px; /* Menší mezera pod obrázkem */
    }

    /* Upravení mezer mezi odstavci */
    #modalDescription p {
        margin-top: 0.1rem !important; /* Zmenšené odsazení nahoře */
        margin-bottom: 0.1rem !important; /* Zmenšené odsazení dole */
    }

    /* Upravení seznamů */
    #modalDescription ul {
        margin-top: 0.2rem !important;
        margin-bottom: 0.2rem !important;
        padding-left: 1rem; /* Zachováme odsazení */
    }

    #modalDescription ul li {
        margin-bottom: 0.2rem !important; /* Menší mezera mezi položkami */
        line-height: 1.3 !important; /* Řádkování položek */
    }

    /* Upravení datumu */
    #modalDate {
        margin-top: 0.2rem; /* Menší odsazení od obsahu výše */
        font-size: 0.8rem; /* Menší text pro datum */
    }

    /* Zajištění čitelnosti celého obsahu */
    #modalDescription {
        font-size: 0.9rem; /* Snížení velikosti textu */
    }
}


/* Tlačítko pro šipku dolů */
.load-more-news {
    background-color: var(--button-bg-color, #007bff); /* Původní barva pozadí */
    color: var(--button-text-color, #fff); /* Původní barva textu */
    border-color: var(--button-border-color, #f33a35); /* Původní barva ohraničení */
    display: flex;
    justify-content: center; /* Ujistíme se, že obsah (šípka) je vycentrovaný */
    align-items: center; /* Ujistíme se, že obsah je vycentrovaný vertikálně */
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    font-size: 1.2rem;
    margin: 0 auto; /* Centrované horizontálně */
	width: 100px; /* Můžete upravit podle potřeby */
    height: 50px; /* Můžete upravit podle potřeby */
}

.load-more-news:hover {
    background-color: var(--button-bg-hover-color, #0056b3); /* Hover efekt */
    border-color: var(--button-border-hover-color, #f33a35); /* Hover efekt pro ohraničení */
}

/* Ikona šipky */
.load-more-news i {
    font-size: 1.5rem; /* Velikost šipky */
}

/* Animace pro šipku */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.load-more-news i {
    animation: bounce 1s infinite;
}



