/* ===================================
   BLOG & NEWS STYLES
   =================================== */

/* News Section */
.news-section {
    background-color: var(--white);
    padding: 60px 0;
}

.news-section h2 {
    text-align: center;
    color: var(--primary-green);
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-family: 'Proxima Nova', sans-serif;
    font-weight: 700;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--light-cream);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.news-image {
    height: 200px;
    background-color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-placeholder {
    color: var(--white);
    font-size: 1.5rem;
    text-align: center;
}

.news-card h3 {
    padding: 20px 20px 10px;
    color: var(--primary-green);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-card p {
    padding: 0 20px 15px;
    color: var(--text-dark);
    line-height: 1.6;
}

.news-link {
    display: block;
    padding: 0 20px 20px;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
}

.news-link:hover {
    text-decoration: underline;
}

/* Blog Page Styles */
.blog-hero {
    background-image: url('../images/texture.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    margin-top: 0;
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Proxima Nova', sans-serif;
    color: var(--yellow);
}

.blog-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.blog-content {
    padding: 80px 0;
    background-color: var(--white);
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.blog-post {
    background-color: var(--cream);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.blog-post-image {
    height: 250px;
    background-color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-content {
    padding: 30px;
}

.blog-post-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.blog-post h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-post-excerpt {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.blog-read-more:hover {
    color: var(--dark-green);
    transform: translateX(5px);
}

/* Blog Categories */
.blog-categories {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-filter {
    padding: 10px 20px;
    background-color: var(--cream);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-filter:hover,
.category-filter.active {
    background-color: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
        color: var(--yellow);
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .category-filter {
        width: 200px;
        text-align: center;
    }
}

/* ===================================
   FEATURED SECTION (HOME PAGE)
   =================================== */

/* Latest News Section - Simple Design */
.latest-news-section {
    position: relative;
    padding: 60px 0 40px;
    overflow: hidden;
}

.latest-news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/saucebg.webp') center/cover no-repeat;
    z-index: 0;
}

.latest-news-section > * {
    position: relative;
    z-index: 1;
}

.latest-news-section h2 {
    text-align: center;
    color: var(--primary-green);
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-family: 'Proxima Nova', sans-serif;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.news-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px;
    justify-content: flex-start;
    /* Hide scrollbar but keep functionality */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.news-carousel::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

/* Blog Card Styles - Matching Design */
.blog-card {
    background: var(--primary-green);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: center;
    padding: 15px;
    width: 350px;
    min-width: 300px;
    flex: 0 0 350px;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.blog-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    margin: 0 0 15px 0;
    padding: 0;
    border-radius: 12px;
}

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

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

.blog-content {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.blog-content h4 {
    font-family: 'Proxima Nova', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    text-transform: capitalize;
}

.blog-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Mobile responsive for news section */
@media (max-width: 768px) {
    .latest-news-section h2 {
        font-size: 2rem;
    }
    
    .news-carousel {
        gap: 15px;
        padding: 15px 0;
    }
    
    .blog-card {
        width: 300px;
        min-width: 250px;
        flex: 0 0 300px;
        padding: 12px;
    }
    
    .blog-image {
        height: 200px;
        margin-bottom: 12px;
    }
    
    .blog-content {
        padding: 1rem;
    }
    
    .blog-content h4 {
        font-size: 1rem;
    }
    
    .blog-date {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .blog-card {
        width: 280px;
        min-width: 230px;
        flex: 0 0 280px;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .blog-content {
        padding: 0.75rem;
    }
    
    .blog-content h4 {
        font-size: 0.95rem;
        line-height: 1.2;
    }
}