/**
 * Novinky Page Styles
 */

/* Hero Section */
.news-hero {
    padding: 6rem 0 4rem;
    background-color: var(--cream-bg);
    text-align: center;
}

.news-hero-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.news-hero-subtitle {
    font-size: var(--text-lg);
    color: #666;
    margin: 0;
    font-weight: var(--font-normal);
}

/* News Section */
.news-section {
    padding: 0 0 4rem 0;
    background-color: var(--cream-bg);
}

.news-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: stretch;
}

/* News Card */
.news-card {
    background: var(--cream-bg);
    border: 1px solid var(--dark-gray);
    padding: 16px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 550px;
    flex: 1 1 calc((100% - 4rem) / 3);
    max-width: calc((100% - 4rem) / 3);
}

.news-card-inner {
    background-color: var(--light-gray);
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.news-card-meta {
    position: absolute;
    background: var(--primary-green);
    color: var(--cream-bg);
    padding: 3px 8px;
    z-index: 1;
}

.news-card-date {
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.news-card-description {
    color: #666;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    font-size: var(--text-sm);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.read-more-link {
    color: var(--black);
    text-decoration: none;
    font-weight: var(--font-medium);
    margin-top: 1rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.read-more-link:hover {
    color: #666;
}

.read-more-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more-text {
    display: flex;
    align-items: center;
}

.read-more-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.read-more-arrow img {
    width: 16px;
    height: 16px;
}

.read-more-link:hover .read-more-arrow {
    transform: translateX(3px);
}

/* News carousel progress bar */
.news-carousel-progress {
    display: none;
    width: 100%;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}

.news-carousel-progress-bar {
    height: 100%;
    background-color: var(--primary-green);
    border-radius: 2px;
    transition: width 0.1s ease;
    width: 0%;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .news-cards {
        gap: 1.5rem;
    }

    .news-card {
        flex: 1 1 calc((100% - 1.5rem) / 2);
        max-width: calc((100% - 1.5rem) / 2);
    }
}

@media (max-width: 768px) {
    .news-hero {
        padding: 4rem 0 3rem;
    }
    
    .news-section {
        padding: 3rem 0;
    }
    
    /* Změnit news-cards na carousel */
    .news-cards {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px !important;
        padding-left: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex-wrap: nowrap;
    }

    .news-cards::-webkit-scrollbar {
        display: none;
    }

    .news-card {
        flex: 0 0 calc(83.33% - 10px) !important;
        max-width: calc(83.33% - 10px) !important;
        scroll-snap-align: start;
        padding: 12px;
        min-height: auto !important;
    }

    .news-card-inner {
        padding: 16px;
    }

    .news-card-image {
        height: 200px;
    }

    .news-carousel-progress {
        display: block;
    }
}

@media (max-width: 480px) {
    .news-hero {
        padding: 3rem 0 2rem;
    }

    
    .news-hero-subtitle {
        font-size: var(--text-base);
    }
    
    .news-section {
        padding: 2rem 0;
    }
    
    .news-card {
        padding: 8px;
    }

    .news-card-inner {
        padding: 12px;
    }
    
    .news-card-title {
        font-size: var(--text-lg);
    }
}