    
.categories-container {
    max-width: 920px;
    margin: 40px auto;
    padding: 0 10px;
    margin-top: 140px;
}

.section-header {
    margin-bottom: 15px;
}

.section-header h2 {
    color: #3B414A;
    font-family: Overpass;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 12px;
    letter-spacing: -0.72px;
    margin-bottom: 10px;
}

.section-header p {
    color: #3B414A;
    font-family: Overpass;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
line-height: 20px;
letter-spacing: -0.7px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.category-card {
    position: relative;
    width: 100%;
    height: 212px;
    overflow: hidden;
    border-radius: 14px;
    cursor: pointer;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(356deg, rgba(23, 23, 26, 0.80) -18.49%, rgba(13, 13, 13, 0.00) 79.91%);
    z-index: 1;
}

.tags-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5px;
    text-align: center;
    z-index: 2;
    padding: 0 15px;
}

.tags-overlay h3 {
    color: #FFF;
    text-align: center;
    font-family: Overpass;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 12px;
    letter-spacing: -0.8px;
}


/* // new css */
.popular-tags {
    max-width: 1200px;
    margin: 40px auto;
}

.popular-tags__title {
    margin-bottom: 5px;
    color: #3B414A;
    font-family: Overpass;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 12px; /* 66.667% */
    letter-spacing: -0.72px;
}

.popular-tags__subtitle {
    color: #3B414A;
    font-family: Overpass;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px; /* 142.857% */
    letter-spacing: -0.7px;
    margin-bottom: 15px;
}

.popular-tags__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tag-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 56px;
    padding: 0 20px;

    text-decoration: none;
    color: #343A40;
    font-size: 18px;
    font-weight: 600;

    border: 1px solid #E5E5E5;
    border-radius: 14px;
    background: #fff;

    overflow: hidden;
    transition: .25s;
}

/* Pattern Background */
.tag-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url("/static/images/tag-mask-bg.2d8c1ce6eb6e.svg");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;

    opacity: .25;
    pointer-events: none;
}

/* Arrow */
.tag-card::after {
    content: "↗";
    position: relative;
    z-index: 2;

    color: #ff5b5b;
    font-size: 22px;
    font-weight: 400;
    margin-left: 20px;
}

.tag-card:hover {
    border-color: #ff5b5b;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

/* Keep text above background */
.tag-card span,
.tag-card {
    z-index: 2;
}

/* Tablet */
@media (max-width: 992px) {
    .popular-tags__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .categories-container {
        margin-top: 110px;
    }
}

/* Mobile */
@media (max-width: 640px) {

    .popular-tags__title {
        font-size: 22px;
    }

    .popular-tags__subtitle {
        font-size: 14px;
    }

    .popular-tags__grid {
        grid-template-columns: 1fr;
    }

    .tag-card {
        min-height: 58px;
        font-size: 16px;
    }
}


/* Tablet */

@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */

@media (max-width: 600px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        height: 220px;
    }

    .section-header h2 {
        font-size: 26px;
    }

    .section-header p {
        font-size: 16px;
    }

    .tags-overlay h3 {
        font-size: 22px;
    }
}