/* =========================================
   SOURCINGMART CATEGORIES + INSIGHTS
========================================= */

.sm-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.sm-page-hero {
    padding: 90px 0 75px;
    background:
        linear-gradient(
            135deg,
            rgba(10, 49, 41, 0.98),
            rgba(20, 76, 62, 0.94)
        );
    color: #ffffff;
    text-align: center;
}

.sm-eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    color: #d6b56d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sm-page-hero h1 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
}

.sm-page-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.8;
}

/* Categories */

.sm-categories-section,
.sm-insights-section {
    padding: 75px 0;
    background: #f7f8f5;
}

.sm-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}

.sm-category-card {
    display: block;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e4e9e3;
    border-radius: 16px;
    color: #123c32;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(12, 51, 44, 0.06);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.sm-category-card:hover {
    color: #123c32;
    transform: translateY(-7px);
    box-shadow: 0 18px 40px rgba(12, 51, 44, 0.13);
}

.sm-category-image {
    height: 190px;
    overflow: hidden;
    background: #e9eee9;
}

.sm-category-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.sm-category-card:hover .sm-category-image img {
    transform: scale(1.06);
}

.sm-category-content {
    padding: 23px;
}

.sm-category-content h2 {
    margin: 0 0 8px;
    color: #123c32;
    font-size: 20px;
    line-height: 1.3;
}

.sm-category-content p {
    margin: 0 0 18px;
    color: #758078;
    font-size: 14px;
}

.sm-category-link {
    color: #a7833f;
    font-size: 13px;
    font-weight: 800;
}

/* Insights */

.sm-insights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.sm-insight-card {
    overflow: hidden;
    margin: 0;
    background: #ffffff;
    border: 1px solid #e4e9e3;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(12, 51, 44, 0.06);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.sm-insight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(12, 51, 44, 0.13);
}

.sm-insight-image {
    display: block;
    height: 230px;
    overflow: hidden;
    background: #e9eee9;
}

.sm-insight-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.sm-insight-card:hover .sm-insight-image img {
    transform: scale(1.05);
}

.sm-insight-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    background: #123c32;
    color: #d6b56d;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
}

.sm-insight-content {
    padding: 25px;
}

.sm-insight-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 13px;
    color: #8b958e;
    font-size: 12px;
}

.sm-insight-title {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.35;
}

.sm-insight-title a {
    color: #123c32;
    text-decoration: none;
}

.sm-insight-title a:hover {
    color: #a7833f;
}

.sm-insight-excerpt {
    margin-bottom: 20px;
    color: #68766f;
    font-size: 14px;
    line-height: 1.8;
}

.sm-insight-read-more {
    color: #a7833f;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.sm-insight-read-more:hover {
    color: #123c32;
}

.sm-empty-message {
    padding: 45px 25px;
    background: #ffffff;
    border: 1px solid #e4e9e3;
    border-radius: 14px;
    text-align: center;
}

.sm-empty-message h2 {
    margin: 0 0 12px;
    color: #123c32;
}

.sm-empty-message p {
    margin: 0;
    color: #68766f;
    line-height: 1.7;
}

/* Pagination */

.sm-insights-pagination {
    margin-top: 45px;
    text-align: center;
}

.sm-insights-pagination ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sm-insights-pagination a,
.sm-insights-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid #dce4dc;
    border-radius: 8px;
    background: #ffffff;
    color: #123c32;
    text-decoration: none;
}

.sm-insights-pagination .current,
.sm-insights-pagination a:hover {
    background: #123c32;
    border-color: #123c32;
    color: #ffffff;
}

/* Responsive */

@media (max-width: 1000px) {
    .sm-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sm-insights-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .sm-page-hero {
        padding: 65px 0 55px;
    }

    .sm-categories-section,
    .sm-insights-section {
        padding: 50px 0;
    }

    .sm-category-grid,
    .sm-insights-grid {
        grid-template-columns: 1fr;
    }

    .sm-category-image {
        height: 210px;
    }

    .sm-insight-image {
        height: 220px;
    }
}