/* News Page Styles - Farmostr */

/* Page Title */
.news-page-title {
    font-size: 1.75rem;
    color: #000000CC;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 2rem;
}

/* Empty News Alert */
.empty-news-alert {
    margin-top: 2rem;
    padding: 3rem;
    color: #344863;
    background: linear-gradient(135deg, rgba(48, 115, 76, 0.08) 0%, rgba(48, 115, 76, 0.04) 100%);
    border: 2px solid #30734C;
    border-radius: 16px;
    text-align: center;
}

.empty-news-icon {
    font-size: 4rem;
    color: #30734C;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.empty-news-alert .alert-heading {
    color: #344863;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin: 0 0 1rem 0;
}

.empty-news-alert p {
    color: #7D879C;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* News Card */
.news-card {
    background: #fff;
    border: 2px solid #F3F5FA;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.news-card:hover {
    border-color: #30734C;
    box-shadow: 0 12px 32px rgba(48, 115, 76, 0.15);
    transform: translateY(-6px);
}

/* News Card Image */
.news-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #efefef 100%);
}

.news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-image {
    transform: scale(1.08);
}

.news-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(48, 115, 76, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.news-card:hover .news-card-overlay {
    opacity: 1;
}

/* News Card Content */
.news-card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-title-link {
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-card-title {
    color: #344863;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-title-link:hover .news-card-title {
    color: #30734C;
}

.news-card-description {
    color: #7D879C;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* News Card Footer */
.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #F3F5FA;
    margin-top: auto;
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #30734C;
    font-size: 0.9rem;
    font-weight: 600;
}

.news-card-date i {
    font-size: 1rem;
}

.news-card-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(48, 115, 76, 0.1) 0%, rgba(48, 115, 76, 0.08) 100%);
    border-radius: 50%;
    color: #30734C;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.news-card-link:hover {
    background: #30734C;
    color: #fff;
    transform: translateX(2px);
}

/* Pagination */
.news-pagination-nav {
    padding: 2rem 0;
}

.pagination {
    gap: 0.5rem;
}

.page-item {
    margin: 0 0.25rem;
}

.news-page-link {
    color: #344863;
    background-color: #fff;
    border: 2px solid #E0E9FF;
    border-radius: 10px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-page-link:hover {
    color: #fff;
    background-color: #30734C;
    border-color: #30734C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(48, 115, 76, 0.2);
}

.news-page-link-prev,
.news-page-link-next {
    text-decoration: none;
}

.news-page-current .page-link {
    color: #344863;
    background-color: #F3F5FA;
    border: 2px solid #E0E9FF;
    border-radius: 10px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    cursor: default;
}

.news-page-current strong {
    color: #30734C;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .news-page-title {
        font-size: 1.5rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-card-image-wrapper {
        height: 200px;
    }

    .news-card-content {
        padding: 1.25rem;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .news-page-link,
    .news-page-current .page-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .news-card-image-wrapper {
        height: 180px;
    }

    .news-card-content {
        padding: 1rem;
    }

    .news-card-title {
        font-size: 1rem;
    }

    .news-card-description {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .empty-news-alert {
        padding: 2rem;
    }

    .empty-news-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .empty-news-alert .alert-heading {
        font-size: 1.25rem;
    }
}
