/* Blog Section Styling */
.blog-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.blog-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-section .section-header h2 {
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 700;
}

.blog-section .section-header p {
    color: #666;
    font-size: 16px;
}

.blog-slider-shell {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.blog-slider-viewport {
    min-width: 0;
    overflow: hidden;
}

.blog-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 14px;
}

.blog-grid::-webkit-scrollbar {
    display: none;
}

.blog-slider-btn {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(45, 106, 79, 0.18);
    border-radius: 50%;
    background: #fff;
    color: #2D6A4F;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.blog-slider-btn:hover {
    background: #2D6A4F;
    color: #fff;
    transform: translateY(-2px);
}

.blog-slider-btn:disabled {
    cursor: default;
    opacity: 0.35;
    transform: none;
}

.blog-slider-btn:focus-visible {
    outline: 3px solid rgba(45, 106, 79, 0.25);
    outline-offset: 3px;
}

.blog-card {
    flex: 0 0 calc((100% - 30px) / 2);
    scroll-snap-align: start;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #888;
}

.blog-meta span i {
    margin-right: 5px;
    color: #2D6A4F;
}

.blog-card h3 {
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.blog-card p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: #2D6A4F;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
}

.read-more:hover {
    text-decoration: underline;
}

.blog-footer {
    text-align: center;
}

.btn-view-all {
    display: inline-block;
    padding: 12px 30px;
    background-color: #2D6A4F;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-view-all:hover {
    background-color: #1b4332;
}

@media (max-width: 1024px) {
    .blog-card {
        flex-basis: calc((100% - 24px) / 2);
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding: 50px 0;
    }

    .blog-section .section-header {
        margin-bottom: 28px;
    }

    .blog-slider-shell {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .blog-slider-viewport {
        overflow: visible;
    }

    .blog-grid {
        gap: 16px;
        margin-inline: -16px;
        padding: 4px 16px 14px;
        scroll-padding-inline: 16px;
    }

    .blog-card {
        flex-basis: min(86vw, 360px);
    }

    .blog-slider-btn {
        display: none;
    }

    .blog-image {
        height: 180px;
    }

    .blog-content {
        padding: 20px;
    }

    .blog-meta {
        flex-direction: column;
        gap: 6px;
    }

    .blog-card h3 {
        font-size: 18px;
    }
}
