/* ===== Hero (this page uses no background, unlike index.html's hero) ===== */
.blog .main__wrapper {
    background: none !important;
    /* main.css's 100px bottom padding was sized for the CTA button that
       used to sit below the slider; that button is gone on this page. */
    padding-bottom: 0 !important;
}

/* ===== TOC: index.html's toc has 8 links so `li{width:100%}` +
   justify-content:space-between naturally spreads them across the row.
   This page only has 3, so those same rules stretch each pill to fill a
   third of the wrapper. Figma has these compact and centered instead. */
.blog .toc__container>ul {
    justify-content: center;
    gap: 12px;
}

.blog .toc__container>ul>li {
    width: auto;
    margin-right: 0 !important;
}

.blog .toc__container>ul a {
    width: auto;
}

/* ===== Blog Categories ===== */
.blog__categories {
    background-image: url(/assets/images/blogCategoriesBg.svg);
    background-repeat: no-repeat;
    background-size: cover;
    padding: 88px 0;
}

.blog__categoriesTags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    /* Figma's content column here is ~820px (1920 canvas, 550px side
       padding), not the sitewide 1420px .wrapper — without this the pills
       all fit on one row on desktop instead of wrapping like the design. */
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.blog__categoryPill {
    display: inline-block;
    width: auto;
    padding: 8px 16px;
    background-color: var(--ultraDark50);
    color: #ADADAD !important;
    border-radius: var(--bradBtn);
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.075, 0.82, 0.165, 1);
}

/* the site-wide `a::after` underline-on-hover only gets suppressed for the
   existing .btn* classes (see btn.css) — these are custom classes, so it
   has to be disabled here explicitly too. */
.blog__categoryPill::after {
    content: none;
}

.blog__categoryPill:hover {
    color: #fff !important;
    scale: 1.06;
}

/* ===== Latest Blog Posts (no bg — kept separate from .blogArticle__related,
   which blog_arcticle.html's Related Posts still uses with a background) ===== */
.blog__latestPosts {
    padding-bottom: 100px;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
}

.pagination__page,
.pagination__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 4px;
    border-radius: var(--bradBtn);
    background-color: var(--ultraDark50);
    color: #ADADAD !important;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.pagination__page::after,
.pagination__arrow::after {
    content: none;
}

.pagination__page:hover,
.pagination__arrow:not(.is-disabled):hover {
    color: #fff !important;
    scale: 1.08;
}

.pagination__page.is-active {
    background-color: var(--orangePrimary);
    color: #fff !important;
}

.pagination__arrow img {
    width: 10px;
    height: 19px;
}

.pagination__arrow.pagination__prev img {
    transform: rotate(180deg);
}

.pagination__arrow.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.pagination__ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    color: #999999 !important;
    font-weight: 500;
}

@media (max-width: 768px) {
    .blog__categories {
        padding: 30px 0;
    }

    .pagination {
        gap: 6px;
        margin-top: 30px;
    }

    .pagination__page,
    .pagination__arrow,
    .pagination__ellipsis {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .pagination__page,
    .pagination__arrow,
    .pagination__ellipsis {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}
