@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('layout.css');
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    color: #ffffff;
}

main {
    width: 100%;
}

.categories-hero {
    width: 100%;
    padding: 5rem var(--page-gutter) 0.75rem;
}

.categories-hero-inner {
    margin: 0 auto;
    text-align: center;
}

.categories-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2rem);
    line-height: 1.3;
    color: #000000;
    letter-spacing: -0.02em;
    font-weight: 600;
}

.categories-hero p {
    margin: 10px auto 0;
    width: min(100%, 900px);
    color: #000000;
    font-size: clamp(1rem, 1.5vw, 1rem);
    line-height: 1.45;
    font-weight: 500;
}

.hero-search {
    margin: 38px auto 0;
    width: min(100%, 800px);
    height: 50px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 999px;
    background: #f5f5f5;
}

.hero-search .fa-magnifying-glass {
    font-size: 1.2rem;
    color: #000000;
    flex-shrink: 0;
}

.hero-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #131313;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
}

.hero-search input::placeholder {
    color: #131313;
    font-size: 1rem;
    font-weight: 500;
}

.hero-search button {
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #f6f8ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-search button:hover {
    transform: translateX(2px);
    background: rgba(255, 255, 255, 0.08);
}

.hero-search button:focus-visible,
.hero-search input:focus-visible {
    outline: 2px solid #0030FF;
    outline-offset: 2px;
}

.hero-search .fa-arrow-right {
    font-size: 1.3rem;
    color: #0030FF;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

.categories-filter {
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
    padding: 40px var(--page-gutter) 64px;
}

.categories-filter-inner,
.categories-filter-groups {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.categories-filter-all,
.categories-filter-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 14px;
}

.categories-filter-group {
    width: min(100%, 980px);
    text-align: center;
}

.categories-filter-label {
    margin: 0 0 10px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
}

.categories-filter-extra {
    display: contents;
}

.categories-filter-extra[hidden] {
    display: none !important;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 5px 30px;
    border-radius: 999px;
    background: #0363FB;
    color: #ffffff;
    border: 0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.category-chip--more {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.86);
}

.category-chip:hover {
    background: #0363FB;
}

.category-chip--more:hover {
    background: rgba(255, 255, 255, 0.08);
}

.category-chip.is-active {
    background-color: white;
    color: #000000;
}

.categories-cards-section {
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
    padding: 48px var(--page-gutter-wide) 0.75rem var(--page-gutter-wide);
}

.categories-cards-grid {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.categories-static-links {
    width: min(100%, 1100px);
    margin: 28px auto 0;
    padding: 0;
    color: #000000;
}

.categories-static-links h2 {
    margin: 0 0 12px;
    font-size: 1.125rem;
    font-weight: 600;
    color: #000000;
}

.categories-static-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    list-style: none;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.categories-static-links a {
    color: #2f2f2f;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.categories-static-links a:hover {
    color: #5931d4;
}

.categories-static-links p {
    margin: 16px 0 0;
    color: #535353;
    font-size: 0.95rem;
    line-height: 1.55;
}

.category-showcase-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.category-showcase-thumb {
    width: 100%;
    aspect-ratio: 7 / 11;
    background: #535353 center / cover no-repeat;
}

.category-showcase-meta {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
}

.category-showcase-text h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    line-height: 1.3;
}

.category-showcase-text p {
    margin: 4px 0 0;
    color: #0030FF;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
}

.category-showcase-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0363FB;
    color: #ffffff;
    font-size: 0.8rem;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.category-showcase-card:hover .category-showcase-arrow {
    transform: translate(1px, -1px);
    filter: brightness(1.07);
}
.trending-tags-section {
    padding: 100px var(--page-gutter) 104px;
}

.trending-tags-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.trending-tags-inner h2 {
    margin: 0;
    font-size: clamp(2rem, 4.2vw, 3rem);
    line-height: 1.2;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.trending-tags-list {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.trending-tag {
    text-decoration: none;
    background: #0363FB;
    color: #ffffff;
    border-radius: 999px;
    padding: 12px 28px;
    font-size: 1rem;
    line-height: 1;
    font-weight: 300;
}

.trending-tag:hover {
    color: #000000;
}

.ads2 {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px var(--page-gutter-wide) 72px;
}

.ads2-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    width: min(1800px, 100%);
    align-items: stretch;
}

.ads2-frame {
    display: block;
    width: 100%;
    line-height: 0;
    overflow: hidden;
    background: #111114;
}

.ads2-frame img {
    width: 100%;
    height: 100%;
    display: block;
    aspect-ratio: 1200 / 628;
    object-fit: cover;
}

.ads2-pixel {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 991px) {
    .categories-hero {
        padding: 64px var(--page-gutter) 36px;
    }

    .categories-hero h1 {
        max-width: 620px;
        margin: 0 auto;
    }

    .categories-hero p {
        margin-top: 14px;
        max-width: 620px;
        font-size: 1.12rem;
    }

    .hero-search {
        min-height: 64px;
        margin-top: 30px;
        padding: 9px 12px 9px 18px;
    }

    .hero-search input {
        font-size: 1.02rem;
    }

    .hero-search button {
        width: 46px;
        height: 46px;
    }

    .categories-filter {
        padding: 0 var(--page-gutter) 68px;
    }

    .categories-filter-inner,
    .categories-filter-groups {
        justify-content: center;
        flex-wrap: wrap;
        overflow: visible;
        padding-bottom: 0;
        gap: 18px;
    }

    .category-chip {
        flex: 0 0 auto;
        min-height: 44px;
        padding: 9px 24px;
        font-size: 1rem;
    }

    .categories-cards-section {
        padding: 28px var(--page-gutter) 72px;
    }

    .ads2 {
        padding: 28px var(--page-gutter) 72px;
    }

    .ads2-row {
        gap: 14px;
    }

    .ads2-frame {
        border-radius: 14px;
    }

    .categories-cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .categories-static-links {
        margin-top: 24px;
    }

    .category-showcase-text h3 {
        font-size: 1.32rem;
    }

    .category-showcase-text p {
        font-size: 1.04rem;
    }

    .category-showcase-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .trending-tags-section {
        padding: 24px var(--page-gutter) 48px;
    }

    .trending-tags-list {
        gap: 12px;
    }

    .trending-tag {
        padding: 11px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .categories-hero {
        padding: 42px var(--page-gutter) 26px;
    }

    .categories-hero h1 {
        font-size: clamp(1.7rem, 8vw, 1.5rem);
        line-height: 1.16;
    }

    .categories-hero p {
        margin-top: 12px;
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .hero-search {
        min-height: 56px;
        margin-top: 24px;
        gap: 10px;
        padding: 8px 10px 8px 14px;
    }

    .hero-search .fa-magnifying-glass {
        font-size: 0.95rem;
    }

    .hero-search input {
        font-size: 0.95rem;
    }

    .hero-search button {
        width: 38px;
        height: 38px;
    }

    .hero-search .fa-arrow-right {
        font-size: 1rem;
    }

    .categories-filter {
        padding: 0 var(--page-gutter) 50px;
    }

    .categories-filter-inner,
    .categories-filter-groups {
        justify-content: flex-start;
        flex-wrap: wrap;
        overflow: visible;
        padding-bottom: 0;
        gap: 16px;
    }

    .category-chip {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 8px 18px;
        font-size: 0.8rem;
    }

    .categories-cards-section {
        padding: 20px var(--page-gutter) 56px;
    }

    .ads2 {
        padding: 20px var(--page-gutter) 56px;
    }

    .ads2-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ads2-frame {
        border-radius: 0px;
    }

    .categories-cards-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 16px;
    }

    .categories-static-links h2 {
        font-size: 1rem;
    }

    .categories-static-links ul {
        gap: 8px 12px;
    }

    .categories-static-links a {
        font-size: 0.92rem;
    }

    .category-showcase-meta {
        margin-top: 10px;
        gap: 10px;
    }

    .category-showcase-text h3 {
        font-size: 1.15rem;
    }

    .category-showcase-text p {
        font-size: 0.8rem;
        margin-bottom: 20px;
    }

    .category-showcase-arrow {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
    .trending-tags-section {
        padding: 20px var(--page-gutter) 36px;
    }

    .trending-tags-inner h2 {
        font-size: 1.5rem;
    }

    .trending-tags-list {
        margin-top: 20px;
        gap: 10px;
    }

    .trending-tag {
        width: calc(50% - 6px);
        padding: 10px 12px;
        font-size: 0.9rem;
        text-align: center;
    }
}