/* ===========================
   NEWS PAGE V1 - Grid Layout
   Варіант 1: Класичний Grid
   =========================== */

/* ===========================
   NEWS HERO
   =========================== */

.news-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 0;
}

.news-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.news-hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.news-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(44, 62, 80, 0.85) 100%);
}

.news-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 60px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(145, 208, 114, 0.2);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-badge svg {
    stroke: var(--primary-color);
}

.news-hero-title {
    color: var(--white);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.news-hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    line-height: 1.6;
}

/* ===========================
   FILTERS
   =========================== */

.news-filters {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 80px;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filters-wrapper {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* ===========================
   FEATURED NEWS
   =========================== */

.featured-news {
    padding: 60px 0;
    background: var(--white);
}

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.featured-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.featured-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-article:hover .featured-image img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(44, 62, 80, 0.9);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-events {
    background: rgba(41, 128, 185, 0.9);
}

.badge-education {
    background: rgba(142, 68, 173, 0.9);
}

.badge-achievements {
    background: rgba(39, 174, 96, 0.9);
}

.badge-patients {
    background: rgba(230, 126, 34, 0.9);
}

.featured-content {
    padding: 20px 0;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.article-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-date::before {
    content: '📅';
    font-size: 16px;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.reading-time::before {
    content: '⏱';
    font-size: 16px;
}

.featured-content h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-excerpt {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 30px;
}

/* ===========================
   NEWS GRID
   =========================== */

.news-grid-section {
    padding: 60px 0 80px;
    background: var(--light-gray);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.news-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.news-card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

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

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

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

.news-card-content h3 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 700;
}

.news-card-content p {
    color: var(--text-light);
    font-size: 0.938rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 12px;
}

.read-more svg {
    stroke: var(--primary-color);
}

/* ===========================
   PAGINATION
   =========================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.pagination-btn {
    width: 45px;
    height: 45px;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ===========================
   CTA SECTION
   =========================== */

.news-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7bc05a 100%);
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-actions .btn {
    min-width: 220px;
}

.cta-actions .btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cta-actions .btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-article {
        gap: 40px;
    }

    .featured-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .news-hero {
        min-height: 350px;
    }

    .news-hero-content {
        padding: 50px 0;
    }

    .news-hero-title {
        font-size: 2rem;
    }

    .news-hero-subtitle {
        font-size: 1rem;
    }

    .news-filters {
        top: 0;
    }

    .featured-article {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .featured-image img {
        height: 350px;
    }

    .featured-content h2 {
        font-size: 1.75rem;
    }

    .article-excerpt {
        font-size: 1rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .news-hero-title {
        font-size: 1.75rem;
    }

    .filters-wrapper {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .featured-image img {
        height: 250px;
    }

    .featured-content h2 {
        font-size: 1.5rem;
    }

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

    .news-card-content {
        padding: 25px 20px;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }
}
