/* ===========================
   NEWS SECTION - news.css
   =========================== */

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

/* ===========================
   МАКЕТ НОВИН
   =========================== */

.news-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* ===========================
   ГОЛОВНА НОВИНА
   =========================== */

.news-featured {
    position: relative;
    height: 600px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.news-featured:hover img {
    transform: scale(1.08);
}

/* ===========================
   ОВЕРЛЕЙ НОВИНИ
   =========================== */

.news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top,
            rgba(44, 62, 80, 0.95) 0%,
            rgba(44, 62, 80, 0.7) 50%,
            transparent 100%);
    padding: 50px 40px;
    color: white;
}

.news-overlay .news-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.news-overlay h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: white;
    line-height: 1.3;
    font-weight: 700;
}

.news-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ===========================
   ПОСИЛАННЯ НОВИНИ
   =========================== */

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #91d072;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.news-item:hover .news-link,
.news-featured:hover .news-link {
    gap: 12px;
}

/* ===========================
   СПИСОК НОВИН
   =========================== */

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===========================
   ЕЛЕМЕНТ НОВИНИ
   =========================== */

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
}

.news-item:hover {
    border-color: #91d072;
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.news-item img {
    width: 140px;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

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

/* ===========================
   КОНТЕНТ НОВИНИ
   =========================== */

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-content h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 700;
}

.news-content .news-date {
    color: #919191;
    font-size: 12px;
    font-weight: 500;
}

/* ===========================
   АДАПТИВНІСТЬ
   =========================== */

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

    .news-featured {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .news-featured {
        height: 400px;
    }

    .news-overlay {
        padding: 30px 25px;
    }

    .news-overlay h3 {
        font-size: 1.5rem;
    }

    .news-overlay p {
        font-size: 14px;
    }

    .news-item {
        flex-direction: column;
    }

    .news-item img {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .news-overlay h3 {
        font-size: 1.3rem;
    }

    .news-content h4 {
        font-size: 1rem;
    }
}
