/* --- NOVINKY STRÁNKA --- */

/* Hero a základy se dědí ze styleGlobal.css */

.section-news {
    padding: 60px 0;
    background-color: #f9f9f9;
}

/* Mřížka novinek */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    /* Responsivní sloupce */
    gap: 40px;
    margin-bottom: 50px;
}

/* Karta novinky */
.news-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Obrázek a Datum */
.news-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Aby obrázek vyplnil plochu a nedeformoval se */
    transition: transform 0.5s;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
    /* Jemný zoom při najetí */
}

/* Zelený odznak data (Dle obrázku) */
.date-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #8ec63f;
    /* Zelená z vašeho obrázku */
    color: #fff;
    padding: 10px 15px;
    text-align: center;
    min-width: 60px;
}

.date-badge .day {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}

.date-badge .month {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
}

/* Textový obsah */
.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-content h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.news-content h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.news-content h2 a:hover {
    color: var(--tkc-blue);
}

.news-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    /* Zarovná tlačítka dolů */
}

/* Tlačítko Číst více */
.read-more-btn {
    display: inline-block;
    color: var(--tkc-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    text-decoration: none;
    align-self: flex-start;
    /* Zarovnat vlevo */
    position: relative;
}

.read-more-btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--tkc-blue);
    transition: width 0.3s;
}

.read-more-btn:hover::after {
    width: 100%;
}

/* Stránkování */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    color: #555;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background-color: var(--tkc-blue);
    color: #fff;
    border-color: var(--tkc-blue);
}

/* Responsivita */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-image {
        height: 200px;
    }
}

@media (max-width: 768px) {

    /* Pro Firmy */
    .b2b-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .b2b-img {
        order: -1;
        /* Obrázek první */
        margin-bottom: 20px;
        justify-content: center;
        display: flex;
    }

    .cta-box-gray {
        flex-direction: column;
        text-align: center;
    }

    /* Servis */
    .servis-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .servis-tabs-wrapper {
        flex-direction: column;
    }

    .survey-box {
        flex-direction: column;
        text-align: center;
    }

    /* Novinky */
    .news-grid {
        grid-template-columns: 1fr;
        /* Jedna novinka na řádek */
    }

    /* Kontakt */
    .contact-grid-wrapper {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}