/* =========================================================
   SALESPLAY BLOG
========================================================= */

.sp-blog-page {
    --sp-blue: #0869d7;
    --sp-dark: #071a38;
    --sp-text: #182844;
    --sp-muted: #667085;
    --sp-border: #e2e8f0;
    --sp-light-blue: #f3f8ff;
    --sp-white: #ffffff;

    color: var(--sp-text);
    background: #fff;
}


/* =========================================================
   CONTAINER
========================================================= */

.sp-blog-container {
    width: min(1300px, calc(100% - 30px));
    margin: 0 auto;
}


/* =========================================================
   HERO
========================================================= */

.sp-blog-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(
            110deg,
            #f2f8ff 0%,
            #f8fbff 55%,
            #eef7ff 100%
        );
    padding: 70px 0 60px;
}


.sp-blog-hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    top: -300px;
    right: -200px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
}


.sp-blog-hero .sp-blog-container {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}


.sp-blog-hero-content {
    max-width: 620px;
}


.sp-blog-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;

    border-radius: 8px;

    background: #e6f2ff;
    color: var(--sp-blue);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
}


.sp-blog-hero h1 {
    margin: 22px 0 12px;

    color: var(--sp-dark);

    font-size: clamp(42px, 5vw, 62px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -2px;
}


.sp-blog-hero p {
    max-width: 600px;

    margin: 0;

    color: #52627a;

    font-size: 18px;
    line-height: 1.65;
}


/* =========================================================
   HERO CATEGORY PILLS
========================================================= */

.sp-blog-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 30px;
}


.sp-blog-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 9px 14px;

    background: #fff;
    border: 1px solid #dce7f3;
    border-radius: 30px;

    color: #23507d;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}


.sp-blog-pill:hover {
    background: #eef7ff;
    border-color: #9bc8f8;
    transform: translateY(-2px);
    text-decoration: none;
}


.sp-blog-pill-icon {
    width: 18px;
    height: 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.sp-blog-pill-icon img {
    width: 18px;
    height: 18px;

    display: block;

    object-fit: contain;
}


/* =========================================================
   HERO IMAGE
========================================================= */

.sp-blog-hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}


.sp-blog-hero-image img {
    width: 100%;
    max-width: 560px;
    height: auto;

    display: block;

    object-fit: contain;
}


/* =========================================================
   FEATURED GUIDE
========================================================= */

.sp-blog-featured {
    padding: 24px 0 10px;
}


.sp-featured-card {
    display: grid;
    grid-template-columns: 40% 60%;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            110deg,
            #f7fbff,
            #eef7ff
        );

    border-radius: 12px;
}


.sp-featured-image {
    height: 250px;
    overflow: hidden;
}


.sp-featured-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


.sp-featured-content {
    padding: 32px 42px;
}


.sp-featured-label {
    display: block;

    margin-bottom: 8px;

    color: var(--sp-blue);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}


.sp-featured-content h2 {
    margin: 0 0 10px;

    color: var(--sp-dark);

    font-size: 27px;
    line-height: 1.25;
}


.sp-featured-content p {
    margin: 0 0 22px;

    max-width: 650px;

    color: #64748b;

    font-size: 14px;
    line-height: 1.65;
}


.sp-featured-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}


.sp-primary-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 11px 20px;

    border-radius: 25px;

    background: #0869d7;
    color: #fff;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background .2s ease,
        transform .2s ease;
}


.sp-primary-button:hover {
    background: #0758b4;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}


.sp-featured-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;

    color: #65758b;

    font-size: 12px;
}


.sp-featured-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.sp-section-heading {
    margin-bottom: 18px;
}


.sp-section-heading h2,
.sp-latest-header h2 {
    margin: 0;

    color: var(--sp-dark);

    font-size: 21px;
    line-height: 1.3;
}


/* =========================================================
   CATEGORY SECTION
========================================================= */

.sp-blog-categories {
    padding: 25px 0 15px;
}


.sp-category-grid {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 12px;
}


.sp-category-card {
    min-height: 100px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 15px;

    background: #fff;

    border: 1px solid #e4e9ef;
    border-radius: 11px;

    text-align: center;

    text-decoration: none;

    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}


.sp-category-card:hover {
    transform: translateY(-3px);

    border-color: #b7d5f5;
    text-decoration: none;
    box-shadow:
        0 8px 25px rgba(15, 65, 110, .08);
}


.sp-category-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 7px;
}

.sp-category-icon img {
    width: 30px;
    height: 30px;

    display: block;

    object-fit: contain;
}

.sp-category-icon span {
    color: #0869d7;
    font-size: 24px;
    line-height: 1;
}

.sp-category-card h3 {
    margin: 0;

    color: #24324a;

    font-size: 12px;
    font-weight: 600;
}


.sp-category-count {
    display: inline-block;

    margin-top: 7px;
    padding: 3px 9px;

    border-radius: 20px;

    background: #edf5fd;

    color: #477197;

    font-size: 10px;
}


/* =========================================================
   LATEST ARTICLES
========================================================= */

.sp-blog-latest {
    padding: 25px 0 70px;
}


.sp-latest-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;
}


.sp-latest-header a {
    color: var(--sp-blue);

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}


.sp-latest-header a:hover {
    text-decoration: underline;
}


/* =========================================================
   ARTICLE GRID
========================================================= */

.sp-article-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}


.sp-article-card {
    overflow: hidden;

    background: #fff;

    border: 1px solid #e2e7ed;
    border-radius: 10px;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.sp-article-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 30px rgba(15, 40, 70, .08);
}


.sp-article-image {
    position: relative;

    display: block;

    height: 130px;

    overflow: hidden;
}


.sp-article-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .35s ease;
}


.sp-article-card:hover
.sp-article-image img {
    transform: scale(1.04);
}


.sp-article-category {
    position: absolute;
    top: 10px;
    left: 10px;

    padding: 4px 8px;

    border-radius: 4px;

    background: #0874df;
    color: #fff;

    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}


.sp-article-content {
    padding: 15px;
}


.sp-article-content time {
    display: block;

    margin-bottom: 8px;

    color: #8995a5;

    font-size: 10px;
}


.sp-article-content h3 {
    margin: 0 0 8px;

    font-size: 14px;
    line-height: 1.45;
}


.sp-article-content h3 a {
    color: #102342;

    text-decoration: none;
}


.sp-article-content h3 a:hover {
    color: var(--sp-blue);
}


.sp-article-content p {
    margin: 0 0 15px;

    color: #69788d;

    font-size: 11px;
    line-height: 1.6;
}


.sp-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;

    padding-top: 10px;

    border-top: 1px solid #edf0f3;

    color: #8290a1;

    font-size: 9px;
}


.sp-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}


/* =========================================================
   PAGINATION
========================================================= */

.sp-blog-pagination {
    display: flex;
    justify-content: center;

    margin-top: 35px;
}


.sp-blog-pagination ul {
    display: flex;
    align-items: center;
    gap: 7px;

    margin: 0;
    padding: 0;

    list-style: none;
}


.sp-blog-pagination li {
    margin: 0;
}


.sp-blog-pagination a,
.sp-blog-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 38px;

    padding: 0 10px;

    border: 1px solid #dce3eb;
    border-radius: 7px;

    color: #40516a;

    font-size: 12px;

    text-decoration: none;
}


.sp-blog-pagination .current {
    background: var(--sp-blue);
    border-color: var(--sp-blue);

    color: #fff;
}


.sp-blog-pagination a:hover {
    border-color: var(--sp-blue);
    color: var(--sp-blue);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .sp-blog-container {
        width: min(94%, 980px);
    }


    .sp-blog-hero .sp-blog-container {
        gap: 30px;
        padding-top: 100px;
    }


    .sp-blog-hero h1 {
        font-size: 48px;
    }


    .sp-category-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }


    .sp-article-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   TABLET / SMALL LAPTOP
========================================================= */

@media (max-width: 768px) {

    .sp-blog-container {
        width: min(92%, 650px);
    }


    .sp-blog-hero {
        padding: 50px 0 45px;
    }


    .sp-blog-hero .sp-blog-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top:60px;
    }


    .sp-blog-hero-content {
        max-width: none;
    }


    .sp-blog-hero h1 {
        font-size: 42px;
        letter-spacing: -1.5px;
    }


    .sp-blog-hero p {
        margin: 0 auto;

        font-size: 16px;
    }


    .sp-blog-category-pills {
        justify-content: center;
    }


    .sp-blog-hero-image {
        max-width: 500px;
        margin: 0 auto;
    }


    .sp-featured-card {
        grid-template-columns: 1fr;
    }


    .sp-featured-image {
        height: 250px;
    }


    .sp-featured-content {
        padding: 28px;
    }


    .sp-category-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }


    .sp-article-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 575px) {

    .sp-blog-container {
        width: calc(100% - 28px);
    }


    .sp-blog-hero {
        padding: 40px 0;
    }


    .sp-blog-hero h1 {
        margin-top: 18px;

        font-size: 34px;
        line-height: 1.1;
    }


    .sp-blog-hero p {
        font-size: 14px;
        line-height: 1.6;
    }


    .sp-blog-category-pills {
        gap: 7px;
        margin-top: 22px;
    }


    .sp-blog-pill {
        padding: 7px 10px;

        font-size: 11px;
    }


    .sp-blog-hero-image {
        margin-top: 10px;
    }


    .sp-blog-featured {
        padding-top: 15px;
    }


    .sp-featured-image {
        height: 200px;
    }


    .sp-featured-content {
        padding: 22px;
    }


    .sp-featured-content h2 {
        font-size: 22px;
    }


    .sp-featured-content p {
        font-size: 13px;
    }


    .sp-featured-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }


    .sp-featured-meta {
        gap: 10px;
    }


    .sp-blog-categories {
        padding-top: 20px;
    }


    .sp-category-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }


    .sp-category-card {
        min-height: 105px;
    }


    .sp-latest-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }


    .sp-article-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    .sp-article-image {
        height: 190px;
    }


    .sp-article-content {
        padding: 17px;
    }


    .sp-article-content h3 {
        font-size: 16px;
    }


    .sp-article-content p {
        font-size: 12px;
    }


    .sp-blog-latest {
        padding-bottom: 45px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .sp-blog-hero h1 {
        font-size: 30px;
    }


    .sp-category-grid {
        grid-template-columns: 1fr;
    }


    .sp-featured-meta {
        flex-direction: column;
        align-items: flex-start;
    }

}