/* News Feed Styles */
.news-feed {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.feed-header {
    text-align: center;
    margin-bottom: 3rem;
}

.feed-header h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.feed-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 50px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover, .filter-btn.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.feed-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

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

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

.news-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.news-category {
    background: #f0f7f0;
    color: #2e7d32;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-date {
    color: #666;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-date i {
    font-size: 1rem;
}

.news-card h2 {
    font-size: 1.5rem;
    margin: 0.5rem 0 1rem 0;
    color: #1a1a1a;
    line-height: 1.4;
    font-weight: 700;
}

.news-card p {
    color: #4a4a4a;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex-grow: 1;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.news-author {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-author i {
    color: #4CAF50;
}

.read-more {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #388e3c;
}

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

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

.load-more-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.load-more-btn:hover {
    background: #388e3c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.load-more-btn:active {
    transform: translateY(0);
}

/* Newsletter Section */
.newsletter-section {
    background: #f5f9f5;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.newsletter-section h2 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.newsletter-section p {
    color: #666;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 0.75rem;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 0.75rem 1.25rem;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.newsletter-form button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #388e3c;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .news-feed {
        padding: 5rem 0;
    }
    
    .feed-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .news-card:first-child {
        grid-column: 1 / -1;
        flex-direction: row;
    }
    
    .news-card:first-child .news-image {
        width: 50%;
        height: auto;
        border-radius: 12px 0 0 12px;
    }
    
    .news-card:first-child .news-content {
        width: 50%;
        padding: 2.5rem;
    }
    
    .newsletter-form {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .feed-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .news-card:first-child {
        grid-column: 1 / -1;
    }
    
    .newsletter-section {
        padding: 4rem 2rem;
    }
}

/* Hide scrollbar for Webkit browsers */
.news-slider-container::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.news-slider-container {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
