
/* ==========================================
   SNP GROUP - BLOG SECTION
========================================== */

.snp-blog-section {
    width: 100%;
    padding: 75px 20px;
    background: #ffffff;
    font-family: 'Manrope', sans-serif;
    overflow: hidden;
    box-sizing: border-box;
}

.snp-blog-section *,
.snp-blog-section *::before,
.snp-blog-section *::after {
    box-sizing: border-box;
}

.snp-blog-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Heading */
.snp-blog-heading {
    max-width: 650px;
    margin: 0 auto 42px;
    text-align: center;
}

.snp-blog-tag {
    display: inline-block;
    margin-bottom: 12px;
    color: #1672e8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.snp-blog-heading h2 {
    margin: 0 0 12px;
    color: #10243e;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
}

.snp-blog-heading h2 span {
    color: #1672e8;
}

.snp-blog-heading p {
    margin: 0;
    color: #68788d;
    font-size: 15px;
    line-height: 1.7;
}

/* Desktop: 3 cards */
.snp-blog-slider {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Blog Card */
.snp-blog-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e8eef6;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(16, 36, 62, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.snp-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(16, 36, 62, 0.12);
}

/* Blog Image */
.snp-blog-image-link {
    display: block;
    width: 100%;
    overflow: hidden;
    text-decoration: none;
}

.snp-blog-image {
    width: 100%;
    height: 210px;
    overflow: hidden;
    background: #eaf1f9;
}

.snp-blog-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.snp-blog-card:hover .snp-blog-image img {
    transform: scale(1.06);
}

/* Blog Content */
.snp-blog-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px;
}

.snp-blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}

.snp-blog-category {
    display: inline-block;
    padding: 6px 10px;
    color: #1672e8;
    background: #eaf3ff;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 800;
}

.snp-blog-date {
    color: #8795a8;
    font-size: 11px;
}

.snp-blog-content h3 {
    margin: 0 0 12px;
    color: #10243e;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
}

.snp-blog-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.snp-blog-content h3 a:hover {
    color: #1672e8;
}

.snp-blog-excerpt {
    margin: 0 0 20px;
    color: #68788d;
    font-size: 13px;
    line-height: 1.8;
    flex: 1;
}

/* Read Article */
.snp-blog-read-more {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 9px;
    color: #1672e8;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.snp-blog-read-more span {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.snp-blog-read-more:hover span {
    transform: translateX(5px);
}

/* View All Blogs */
.snp-blog-view-more {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 35px;
}

.snp-blog-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 28px;
    color: #ffffff;
    background: #1672e8;
    border: 2px solid #1672e8;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.snp-blog-view-btn span {
    font-size: 19px;
    transition: transform 0.3s ease;
}

.snp-blog-view-btn:hover {
    color: #ffffff;
    background: #10243e;
    border-color: #10243e;
}

.snp-blog-view-btn:hover span {
    transform: translateX(5px);
}

/* Tablet */
@media (min-width: 601px) and (max-width: 992px) {
    .snp-blog-section {
        padding: 65px 20px;
    }

    .snp-blog-slider {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .snp-blog-heading h2 {
        font-size: 32px;
    }
}

/* Mobile: One Card at a Time */
@media (max-width: 600px) {
    .snp-blog-section {
        width: 100%;
        padding: 50px 0;
        overflow: hidden;
    }

    .snp-blog-container {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .snp-blog-heading {
        width: 100%;
        padding: 0 16px;
        margin: 0 auto 28px;
    }

    .snp-blog-heading h2 {
        font-size: 27px;
    }

    .snp-blog-heading p {
        font-size: 13px;
    }

    .snp-blog-slider {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch;
        justify-content: flex-start;

        width: 100% !important;
        gap: 16px !important;
        padding: 5px 16px 18px !important;
        margin: 0 !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        scroll-snap-stop: always;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

    .snp-blog-slider::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .snp-blog-slider > .snp-blog-card {
        display: flex !important;
        flex: 0 0 calc(100vw - 32px) !important;
        width: calc(100vw - 32px) !important;
        min-width: calc(100vw - 32px) !important;
        max-width: calc(100vw - 32px) !important;

        margin: 0 !important;
        border-radius: 15px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        transform: none;
    }

    .snp-blog-card:hover {
        transform: none;
    }

    .snp-blog-image {
        height: 200px;
    }

    .snp-blog-content {
        padding: 20px;
    }

    .snp-blog-content h3 {
        font-size: 17px;
    }

    .snp-blog-excerpt {
        font-size: 13px;
    }

    .snp-blog-view-more {
        margin-top: 18px;
        padding: 0 16px;
    }

    .snp-blog-view-btn {
        padding: 12px 24px;
        font-size: 13px;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .snp-blog-heading h2 {
        font-size: 24px;
    }

    .snp-blog-slider {
        gap: 12px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .snp-blog-slider > .snp-blog-card {
        flex-basis: calc(100vw - 24px) !important;
        width: calc(100vw - 24px) !important;
        min-width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
    }
}
.snp-blog-slider {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    overflow: hidden;
}