/* =========================================================
   PARHAM - CATEGORY SHOWCASE
   Inherits global Light / Dark theme colors
   ========================================================= */

.category-showcase {
    direction: rtl;
    min-height: 100vh;
    padding: 0 0 90px;

    color: var(--text-primary, inherit);
    background: var(--bg-primary, transparent);
}

.category-showcase *,
.category-showcase *::before,
.category-showcase *::after {
    box-sizing: border-box;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.category-showcase__container {
    width: min(1480px, calc(100% - 48px));
    margin-inline: auto;
}


/* =========================================================
   HERO
   ========================================================= */

.category-showcase__hero {
    position: relative;
    overflow: hidden;
    padding: 85px 0 70px;

    color: var(--text-primary, inherit);

    border-bottom: 1px solid var(--border-color, rgba(127,127,127,.18));

    background:
        linear-gradient(
            180deg,
            var(--surface-secondary, rgba(127,127,127,.08)),
            transparent
        );
}

.category-showcase__hero-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    top: -280px;
    right: 12%;

    border-radius: 50%;

    background: var(
        --accent-soft,
        rgba(212,175,55,.06)
    );

    filter: blur(10px);
    pointer-events: none;
}

.category-showcase__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 17px;

    color: var(
        --accent-color,
        #d4af37
    );

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.8px;
}

.category-showcase__eyebrow span {
    width: 30px;
    height: 1px;

    background: var(
        --accent-color,
        #d4af37
    );
}

.category-showcase__hero h1 {
    margin: 0;

    color: var(
        --heading-color,
        var(--text-primary, inherit)
    );

    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.8px;
}

.category-showcase__hero p {
    max-width: 600px;
    margin: 18px 0 0;

    color: var(
        --text-secondary,
        rgba(127,127,127,.85)
    );

    font-size: 15px;
    line-height: 2;
}


/* =========================================================
   ROWS
   ========================================================= */

.category-showcase__rows {
    padding-top: 55px;
}

.category-showcase__row {
    display: grid;
    grid-template-columns: 285px minmax(0, 1fr);
    direction: ltr;

    gap: 28px;

    min-height: 330px;
    margin-bottom: 42px;
    padding: 18px;

    overflow: hidden;

    border: 1px solid var(
        --border-color,
        rgba(127,127,127,.18)
    );

    border-radius: 24px;

    background: var(
        --surface-card,
        rgba(127,127,127,.055)
    );

    box-shadow:
        0 20px 60px var(
            --shadow-color,
            rgba(0,0,0,.12)
        ),
        inset 0 1px 0 rgba(255,255,255,.025);
}


/* =========================================================
   CATEGORY PANEL
   ========================================================= */

.category-showcase__category {
    direction: rtl;
    min-width: 0;
}

.category-showcase__category-link {
    display: flex;
    flex-direction: column;

    height: 100%;

    overflow: hidden;

    color: inherit;
    text-decoration: none;

    border: 1px solid var(
        --accent-border,
        rgba(212,175,55,.30)
    );

    border-radius: 19px;

    background: var(
        --surface-card,
        rgba(127,127,127,.045)
    );

    transition:
        border-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.category-showcase__category-link:hover {
    transform: translateY(-3px);

    border-color: var(
        --accent-color,
        #d4af37
    );

    box-shadow:
        0 18px 45px var(
            --shadow-color,
            rgba(0,0,0,.16)
        );
}

.category-showcase__category-image {
    position: relative;

    height: 175px;

    overflow: hidden;

    background: var(
        --surface-secondary,
        rgba(127,127,127,.08)
    );
}

.category-showcase__category-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .55s ease;
}

.category-showcase__category-link:hover
.category-showcase__category-image img {
    transform: scale(1.06);
}

.category-showcase__category-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 25%,
            var(
                --image-overlay,
                rgba(0,0,0,.58)
            ) 100%
        );
}

.category-showcase__category-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background:
        radial-gradient(
            circle at 30% 20%,
            var(--accent-soft, rgba(212,175,55,.16)),
            transparent 30%
        ),
        var(
            --surface-secondary,
            rgba(127,127,127,.10)
        );
}

.category-showcase__category-placeholder span {
    color: var(
        --accent-color,
        #d4af37
    );

    opacity: .7;

    font-size: 72px;
    font-weight: 800;
}

.category-showcase__category-number {
    position: absolute;
    top: 14px;
    right: 15px;
    z-index: 2;

    color: var(
        --accent-color,
        #d4af37
    );

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.category-showcase__category-info {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 19px 20px 20px;
}

.category-showcase__category-label,
.category-showcase__content-label {
    color: var(
        --accent-color,
        #d4af37
    );

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
}

.category-showcase__category-info h2 {
    margin: 8px 0 6px;

    color: var(
        --heading-color,
        var(--text-primary, inherit)
    );

    font-size: 22px;
    font-weight: 800;
}

.category-showcase__category-info p {
    margin: 0;

    color: var(
        --text-secondary,
        rgba(127,127,127,.85)
    );

    font-size: 12px;
    line-height: 1.9;
}

.category-showcase__category-more {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: auto;
    padding-top: 15px;

    color: var(
        --accent-color,
        #d4af37
    );

    font-size: 11px;
    font-weight: 700;
}

.category-showcase__category-more span {
    font-size: 17px;

    transition: transform .2s ease;
}

.category-showcase__category-link:hover
.category-showcase__category-more span {
    transform: translateX(-5px);
}


/* =========================================================
   CONTENT
   ========================================================= */

.category-showcase__content {
    direction: rtl;
    min-width: 0;

    padding: 10px 2px 4px;
}

.category-showcase__content-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
    margin-bottom: 17px;
}

.category-showcase__content-head h3 {
    margin: 7px 0 0;

    color: var(
        --heading-color,
        var(--text-primary, inherit)
    );

    font-size: 20px;
    font-weight: 800;
}

.category-showcase__controls {
    display: flex;
    flex-shrink: 0;
    gap: 7px;
}

.category-showcase__arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 39px;
    height: 39px;
    padding: 0;

    border: 1px solid var(
        --border-color,
        rgba(127,127,127,.18)
    );

    border-radius: 11px;

    color: var(
        --text-primary,
        inherit
    );

    background: var(
        --surface-card,
        rgba(127,127,127,.055)
    );

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.category-showcase__arrow:hover {
    color: var(
        --accent-color,
        #d4af37
    );

    border-color: var(
        --accent-color,
        #d4af37
    );

    background: var(
        --accent-soft,
        rgba(212,175,55,.08)
    );
}


/* =========================================================
   SLIDER
   ========================================================= */

.category-showcase__slider {
    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 2px 2px 14px;

    scrollbar-width: thin;

    scrollbar-color:
        var(--accent-color, #d4af37)
        transparent;

    direction: ltr;

    scroll-behavior: smooth;

    overscroll-behavior-inline: contain;
}

.category-showcase__slider::-webkit-scrollbar {
    height: 4px;
}

.category-showcase__slider::-webkit-scrollbar-track {
    background: transparent;
}

.category-showcase__slider::-webkit-scrollbar-thumb {
    border-radius: 20px;

    background: var(
        --accent-color,
        #d4af37
    );
}

.category-showcase__track {
    display: flex;

    direction: rtl;

    gap: 18px;

    width: max-content;
    min-width: 100%;
}


/* =========================================================
   CONTENT CARD
   ========================================================= */

.category-showcase__card {
    flex: 0 0 235px;

    width: 235px;

    overflow: hidden;

    border: 1px solid var(
        --border-color,
        rgba(127,127,127,.18)
    );

    border-radius: 17px;

    background: var(
        --surface-card,
        rgba(127,127,127,.035)
    );

    transition:
        transform .25s ease,
        border-color .25s ease,
        background .25s ease;
}

.category-showcase__card:hover {
    transform: translateY(-4px);

    border-color: var(
        --accent-border,
        rgba(212,175,55,.30)
    );

    background: var(
        --surface-card-hover,
        rgba(127,127,127,.065)
    );
}

.category-showcase__card > a {
    display: block;

    color: inherit;
    text-decoration: none;
}

.category-showcase__card-image {
    position: relative;

    height: 150px;

    overflow: hidden;

    background: var(
        --surface-secondary,
        rgba(127,127,127,.08)
    );
}

.category-showcase__card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .5s ease;
}

.category-showcase__card:hover
.category-showcase__card-image img {
    transform: scale(1.06);
}

.category-showcase__card-gradient {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 35%,
            var(
                --image-overlay,
                rgba(0,0,0,.62)
            )
        );
}

.category-showcase__card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 100%;

    background:
        radial-gradient(
            circle at 70% 25%,
            var(--accent-soft, rgba(212,175,55,.15)),
            transparent 30%
        ),
        var(
            --surface-secondary,
            rgba(127,127,127,.08)
        );
}

.category-showcase__card-placeholder span {
    color: var(
        --accent-color,
        #d4af37
    );

    opacity: .55;

    font-size: 54px;
    font-weight: 800;
}

.category-showcase__card-index {
    position: absolute;

    top: 11px;
    left: 11px;

    z-index: 2;

    min-width: 29px;

    padding: 5px 7px;

    border: 1px solid rgba(255,255,255,.15);

    border-radius: 7px;

    color: #fff;

    background: rgba(0,0,0,.35);

    backdrop-filter: blur(8px);

    text-align: center;

    font-size: 9px;
    font-weight: 700;
}

.category-showcase__card-body {
    padding: 15px;
}

.category-showcase__card-body h4 {
    display: -webkit-box;

    min-height: 42px;

    margin: 0;

    overflow: hidden;

    color: var(
        --heading-color,
        var(--text-primary, inherit)
    );

    font-size: 13px;
    font-weight: 750;
    line-height: 1.65;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-showcase__card-body p {
    display: -webkit-box;

    height: 34px;

    margin: 7px 0 0;

    overflow: hidden;

    color: var(
        --text-secondary,
        rgba(127,127,127,.85)
    );

    font-size: 10px;
    line-height: 1.7;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-showcase__card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;

    margin-top: 14px;
    padding-top: 11px;

    border-top: 1px solid var(
        --border-color,
        rgba(127,127,127,.14)
    );

    color: var(
        --text-muted,
        rgba(127,127,127,.72)
    );

    font-size: 9px;
}

.category-showcase__card-read {
    color: var(
        --accent-color,
        #d4af37
    );

    font-weight: 700;
}

.category-showcase__card-read b {
    margin-right: 3px;

    font-size: 13px;
}


/* =========================================================
   EMPTY
   ========================================================= */

.category-showcase__empty {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 250px;

    padding: 30px;

    border: 1px dashed var(
        --border-color,
        rgba(127,127,127,.20)
    );

    border-radius: 18px;

    color: var(
        --text-secondary,
        rgba(127,127,127,.85)
    );

    background: var(
        --surface-card,
        rgba(127,127,127,.035)
    );

    text-align: center;

    font-size: 12px;
}

.category-showcase__empty--all {
    flex-direction: column;

    gap: 10px;

    margin-bottom: 40px;
}

.category-showcase__empty--all strong {
    color: var(
        --heading-color,
        var(--text-primary, inherit)
    );

    font-size: 18px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .category-showcase__row {
        grid-template-columns: 245px minmax(0, 1fr);
        gap: 20px;
    }

    .category-showcase__card {
        flex-basis: 215px;
        width: 215px;
    }

}

@media (max-width: 820px) {

    .category-showcase__container {
        width: min(100% - 28px, 680px);
    }

    .category-showcase__hero {
        padding: 60px 0 50px;
    }

    .category-showcase__row {
        display: block;
        padding: 12px;
        border-radius: 20px;
    }

    .category-showcase__category {
        margin-bottom: 20px;
    }

    .category-showcase__category-link {
        display: grid;

        grid-template-columns: 145px minmax(0, 1fr);

        min-height: 155px;
    }

    .category-showcase__category-image {
        height: 100%;
        min-height: 155px;
    }

    .category-showcase__category-info {
        padding: 16px;
    }

    .category-showcase__category-info h2 {
        font-size: 19px;
    }

}

@media (max-width: 560px) {

    .category-showcase__container {
        width: calc(100% - 20px);
    }

    .category-showcase__hero {
        padding: 45px 0 38px;
    }

    .category-showcase__hero h1 {
        font-size: 31px;
    }

    .category-showcase__hero p {
        font-size: 12px;
    }

    .category-showcase__rows {
        padding-top: 25px;
    }

    .category-showcase__row {
        margin-bottom: 24px;
    }

    .category-showcase__category-link {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .category-showcase__category-image {
        min-height: 135px;
    }

    .category-showcase__category-info {
        padding: 13px;
    }

    .category-showcase__category-info h2 {
        font-size: 17px;
    }

    .category-showcase__category-info p {
        font-size: 10px;
    }

    .category-showcase__content-head h3 {
        font-size: 16px;
    }

    .category-showcase__card {
        flex-basis: 195px;
        width: 195px;
    }

    .category-showcase__card-image {
        height: 125px;
    }

}


/* =========================================================
   CATEGORY ARCHIVE
   ========================================================= */

.category-posts {
    padding: 15px 0 80px;
}

.category-posts__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color, rgba(127, 127, 127, .18));
}

.category-posts__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-color, #d4af37);
    font-size: 13px;
    font-weight: 700;
}

.category-posts__title {
    margin: 0;
    color: var(--heading-color, var(--text-primary, inherit));
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
}

.category-posts__count {
    flex: 0 0 auto;
    color: var(--text-muted, #888);
    font-size: 13px;
}

.category-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.category-post {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border-color, rgba(127, 127, 127, .18));
    border-radius: 18px;
    background: var(--surface-card, transparent);
    box-shadow: 0 10px 30px var(--shadow-color, rgba(0, 0, 0, .08));
    transition:
        transform .25s ease,
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.category-post:hover {
    transform: translateY(-4px);
    border-color: var(--accent-border, rgba(212, 175, 55, .35));
    background: var(--surface-card-hover, var(--surface-card, transparent));
    box-shadow: 0 16px 38px var(--shadow-color, rgba(0, 0, 0, .12));
}

.category-post__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.category-post__image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--surface-secondary, rgba(127, 127, 127, .08));
}

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

.category-post:hover .category-post__image img {
    transform: scale(1.04);
}

.category-post__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--accent-color, #d4af37);
    font-size: 48px;
    font-weight: 800;
    background: var(--surface-secondary, rgba(127, 127, 127, .08));
}

.category-post__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.category-post__meta {
    margin-bottom: 9px;
    color: var(--text-muted, #888);
    font-size: 12px;
}

.category-post__title {
    margin: 0 0 10px;
    color: var(--heading-color, var(--text-primary, inherit));
    font-size: 18px;
    font-weight: 800;
    line-height: 1.65;
}

.category-post__excerpt {
    margin: 0;
    color: var(--text-secondary, #888);
    font-size: 13px;
    line-height: 1.9;
}

.category-post__read-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 16px;
    color: var(--accent-color, #d4af37);
    font-size: 13px;
    font-weight: 700;
}

.category-post__read-more span {
    transition: transform .2s ease;
}

.category-post:hover .category-post__read-more span {
    transform: translateX(-4px);
}

.category-posts__pagination {
    display: flex;
    justify-content: center;
    margin-top: 42px;
}

.category-posts__pagination nav {
    display: flex;
    justify-content: center;
    width: 100%;
}

.category-posts__pagination svg {
    width: 18px;
    height: 18px;
}

.category-posts__pagination > nav > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.category-posts__pagination a,
.category-posts__pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color, rgba(127, 127, 127, .18));
    border-radius: 10px;
    color: var(--text-secondary, inherit);
    background: var(--surface-card, transparent);
    text-decoration: none;
    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.category-posts__pagination a:hover {
    color: var(--accent-color, #d4af37);
    border-color: var(--accent-border, rgba(212, 175, 55, .4));
    background: var(--surface-card-hover, var(--surface-card, transparent));
}

.category-posts__pagination span[aria-current="page"] {
    color: var(--accent-color, #d4af37);
    border-color: var(--accent-border, rgba(212, 175, 55, .4));
}

.category-posts__empty {
    padding: 55px 20px;
    text-align: center;
    border: 1px solid var(--border-color, rgba(127, 127, 127, .18));
    border-radius: 18px;
    background: var(--surface-card, transparent);
}

.category-posts__empty h2 {
    margin: 0 0 10px;
    color: var(--heading-color, var(--text-primary, inherit));
    font-size: 22px;
}

.category-posts__empty p {
    margin: 0;
    color: var(--text-muted, #888);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .category-posts__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 700px) {

    .category-posts {
        padding-bottom: 55px;
    }

    .category-posts__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .category-posts__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .category-post__body {
        padding: 16px;
    }

    .category-post__title {
        font-size: 16px;
    }

    .category-posts__pagination > nav > div {
        flex-wrap: wrap;
    }

    .category-posts__pagination a,
    .category-posts__pagination span {
        min-width: 36px;
        height: 36px;
        padding: 0 9px;
    }

}


/* =========================================================
   CATEGORY ARCHIVE — POSTS LAYOUT INHERITANCE
   ========================================================= */

.category-page {
    width: 100%;
}

.category-posts-shell {
    margin-top: 46px;
}

.category-heading {
    margin-bottom: 28px;
}

.category-sidebar-ad {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--posts-border);
    border-radius: 22px;
    background: var(--posts-white);
    box-shadow: var(--posts-shadow);
}

.category-sidebar-ad a {
    display: block;
    line-height: 0;
}

.category-sidebar-ad img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.category-sidebar-html-ad {
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgba(212, 175, 55, .35);
    border-radius: 22px;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(212, 175, 55, .17),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #fff,
            #f9f7ef
        );
}

.category-sidebar-html-ad a {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-sidebar-html-ad span {
    align-self: flex-start;
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--posts-gold);
    color: var(--posts-green-dark);
    font-size: 9px;
    font-weight: 900;
}

.category-sidebar-html-ad strong {
    color: var(--posts-green-dark);
    font-size: 18px;
    font-weight: 850;
}

.category-sidebar-html-ad p {
    margin: 0;
    color: var(--posts-muted);
    font-size: 12px;
    line-height: 1.8;
}

.category-sidebar-html-ad b {
    color: var(--posts-green);
    font-size: 12px;
}

.category-posts-empty {
    padding: 55px 25px;
    text-align: center;
    border: 1px solid var(--posts-border);
    border-radius: 24px;
    background: var(--posts-white);
}

.category-posts-empty h2 {
    margin: 0;
    color: var(--posts-green-dark);
    font-size: 24px;
}

.category-posts-empty p {
    margin: 10px 0 0;
    color: var(--posts-muted);
}

@media (max-width: 900px) {

    .category-posts-shell {
        margin-top: 30px;
    }

}

/* ==========================================================================
   CATEGORY SHOWCASE — FINAL LAYOUT OVERRIDES
   ========================================================================== */

.category-showcase__rows {
    width: min(100%, 100%);
    padding-top: 32px;
}

.category-showcase__rows > .container {
    width: min(100%, 1180px);
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: 0;
}

.category-showcase__row {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    direction: ltr;
    align-items: stretch;
    gap: 22px;

    width: 100%;
    min-height: 300px;
    margin: 0 0 28px;
    padding: 14px;

    overflow: hidden;
}

.category-showcase__category {
    direction: rtl;
    min-width: 0;
    width: 100%;
}

.category-showcase__category-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;

    border: 1px solid var(--accent-border, rgba(212,175,55,.30));
    border-radius: 16px;

    background: var(--surface-card, rgba(127,127,127,.055));
}

.category-showcase__category-image-link {
    display: block;
    flex: 0 0 auto;
    color: inherit;
    text-decoration: none;
}

.category-showcase__category-image {
    height: 145px;
}

.category-showcase__category-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;

    padding: 14px 15px 13px;
}

.category-showcase__category-info h2 {
    margin: 6px 0 5px;
    font-size: 19px;
    line-height: 1.5;
}

.category-showcase__category-info h2 a {
    color: inherit;
    text-decoration: none;
}

.category-showcase__category-info p {
    margin: 0;
    font-size: 11px;
    line-height: 1.8;
}

.category-showcase__category-more {
    margin-top: auto;
    padding-top: 10px;
}

.category-showcase__slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    direction: ltr;
}

.category-showcase__slider {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;

    padding: 3px 2px 12px;

    direction: ltr;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;

    scrollbar-width: thin;
}

.category-showcase__track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 16px;

    width: max-content;
    min-width: max-content;

    direction: ltr;
}

.category-showcase__card {
    flex: 0 0 210px;
    width: 210px;
    min-width: 210px;
    direction: rtl;
}

.category-showcase__card-image {
    height: 135px;
}

.category-showcase__card-body {
    min-height: 112px;
    padding: 12px 13px;
}

.category-showcase__card-body h4 {
    margin: 0;
    line-height: 1.7;
}

.category-showcase__arrow {
    position: absolute;
    z-index: 5;

    width: 36px;
    height: 36px;
    min-width: 36px;

    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0,0,0,.14);
}

.category-showcase__arrow--prev {
    left: 4px;
}

.category-showcase__arrow--next {
    right: 4px;
}

.category-showcase__banner {
    width: 100%;
    max-width: 1180px;

    margin: 8px auto 36px;

    overflow: hidden;

    border-radius: 16px;

    border: 1px solid var(--border-color, rgba(127,127,127,.18));

    background: var(--surface-card, rgba(127,127,127,.055));

    box-shadow:
        0 12px 35px var(--shadow-color, rgba(0,0,0,.10));
}

.category-showcase__banner a {
    display: block;
}

.category-showcase__banner img {
    display: block;

    width: 100%;
    height: auto;
    max-height: 220px;

    object-fit: cover;
}

.category-showcase__banner a,
.category-showcase__banner img {
    text-decoration: none;
}

@media (max-width: 900px) {

    .category-showcase__rows > .container {
        width: min(100% - 24px, 1180px);
    }

    .category-showcase__row {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 16px;
    }

    .category-showcase__card {
        flex-basis: 190px;
        width: 190px;
        min-width: 190px;
    }

}

@media (max-width: 680px) {

    .category-showcase__rows {
        padding-top: 20px;
    }

    .category-showcase__row {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 10px;
    }

    .category-showcase__category-link {
        display: grid;
        grid-template-columns: 125px minmax(0, 1fr);
        min-height: 145px;
    }

    .category-showcase__category-image {
        height: 100%;
        min-height: 145px;
    }

    .category-showcase__category-info {
        padding: 12px;
    }

    .category-showcase__category-info h2 {
        font-size: 17px;
    }

    .category-showcase__slider-wrap {
        min-height: 230px;
    }

    .category-showcase__card {
        flex-basis: 175px;
        width: 175px;
        min-width: 175px;
    }

    .category-showcase__card-image {
        height: 115px;
    }

    .category-showcase__banner {
        margin-top: 2px;
        margin-bottom: 24px;
        border-radius: 12px;
    }

}


/* ==========================================================================
   CATEGORIES PAGE — POSTS SIDEBAR LAYOUT
   ========================================================================== */

.category-page__layout {
    width: min(100%, 1180px);
    max-width: 1180px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 28px;
    align-items: start;
    direction: ltr;
}

.category-page__main {
    min-width: 0;
    direction: rtl;
}

.category-page__sidebar {
    min-width: 0;
    direction: rtl;
}

@media (max-width: 900px) {
    .category-page__layout {
        width: min(100% - 24px, 1180px);
        grid-template-columns: minmax(0, 1fr) 250px;
        gap: 20px;
    }
}

@media (max-width: 760px) {
    .category-page__layout {
        grid-template-columns: 1fr;
    }

    .category-page__sidebar {
        order: 2;
    }

    .category-page__main {
        order: 1;
    }
}


/* =========================================================
   CATEGORY INLINE HTML ADS
   ========================================================= */

.category-showcase__rows .posts-inline-ad--html {
    width: 100%;
    max-width: 100%;
    margin: 24px 0 32px;
    box-sizing: border-box;
    overflow: hidden;
}

.category-showcase__rows .posts-inline-ad--html > a {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.category-showcase__rows .posts-inline-ad--html p,
.category-showcase__rows .posts-inline-ad--html strong,
.category-showcase__rows .posts-inline-ad--html span,
.category-showcase__rows .posts-inline-ad--html small {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 768px) {

    .category-showcase__rows .posts-inline-ad--html {
        width: 100%;
        margin: 18px 0 28px;
        border-radius: 12px;
    }

}

@media (max-width: 480px) {

    .category-showcase__rows .posts-inline-ad--html {
        margin: 16px 0 24px;
        border-radius: 10px;
    }

}


.category-heading .category-stats {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.category-heading .category-stats .posts-count {
    min-width: 82px;
    text-align: center;
    flex: 0 0 auto;
}

@media (max-width: 640px) {
    .category-heading .category-stats {
        flex-direction: row;
        width: auto;
    }
}


/* =========================================================
   CATEGORY SHOWCASE — FIXED POST CARD
   ========================================================= */

.category-showcase__card {
    display: flex;
    flex-direction: column;
    height: 345px;
}

.category-showcase__card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-showcase__card-image {
    flex: 0 0 135px;
    height: 135px;
}

.category-showcase__card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 12px 13px;
}

.category-showcase__card-body h3 {
    display: -webkit-box;

    height: 44px;
    min-height: 44px;

    margin: 0;

    overflow: hidden;

    color: var(
        --heading-color,
        var(--text-primary, inherit)
    );

    font-size: 13px;
    font-weight: 750;
    line-height: 1.7;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-showcase__card-body p {
    display: -webkit-box;

    height: 34px;
    min-height: 34px;

    margin: 7px 0 0;

    overflow: hidden;

    color: var(
        --text-secondary,
        rgba(127,127,127,.85)
    );

    font-size: 10px;
    line-height: 1.7;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-showcase__card-body .post-card__meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 7px;

    margin-top: auto;
    padding-top: 9px;

    border-top: 1px solid var(
        --border-color,
        rgba(127,127,127,.14)
    );

    direction: rtl;

    color: var(
        --text-muted,
        rgba(127,127,127,.72)
    );

    font-size: 9px;
    line-height: 1.6;

    white-space: nowrap;
}

.category-showcase__card-body .post-card__meta time,
.category-showcase__card-body .post-card__meta span {
    display: inline-flex;
    align-items: center;
}

.category-showcase__card-body .post-card__dot {
    width: 3px;
    height: 3px;
    min-width: 3px;

    border-radius: 50%;

    background: currentColor;
}

@media (max-width: 900px) {

    .category-showcase__card {
        height: 330px;
    }

    .category-showcase__card-image {
        flex-basis: 125px;
        height: 125px;
    }

}

@media (max-width: 680px) {

    .category-showcase__card {
        height: 310px;
    }

    .category-showcase__card-image {
        flex-basis: 115px;
        height: 115px;
    }

    .category-showcase__card-body h3 {
        font-size: 12px;
    }

}


/* =========================================================
   CATEGORY SHOWCASE — FIXED POST CARD — FINAL
   ========================================================= */

.category-showcase__card {
    display: flex;
    flex-direction: column;
    height: 345px;
}

.category-showcase__card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-showcase__card-image {
    flex: 0 0 135px;
    height: 135px;
}

.category-showcase__card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 14px 15px;
}

.category-showcase__card-body h3 {
    display: -webkit-box;
    height: 50px;
    min-height: 50px;
    margin: 0;
    overflow: hidden;

    color: var(--heading-color, var(--text-primary, inherit));
    font-size: 15px;
    font-weight: 750;
    line-height: 1.7;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-showcase__card-body p {
    display: -webkit-box;
    height: 42px;
    min-height: 42px;
    margin: 9px 0 0;
    overflow: hidden;

    color: var(--text-secondary, rgba(127,127,127,.85));
    font-size: 12px;
    line-height: 1.75;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-showcase__card-body .post-card__meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;

    margin-top: auto;
    padding-top: 11px;

    border-top: 1px solid var(--border-color, rgba(127,127,127,.14));

    direction: rtl;
    color: var(--text-muted, rgba(127,127,127,.72));
    font-size: 11px;
    line-height: 1.7;

    white-space: nowrap;
}

.category-showcase__card-body .post-card__meta time,
.category-showcase__card-body .post-card__meta span {
    display: inline-flex;
    align-items: center;
}

.category-showcase__card-body .post-card__dot {
    width: 4px;
    height: 4px;
    min-width: 4px;
    border-radius: 50%;
    background: currentColor;
}

@media (max-width: 900px) {

    .category-showcase__card {
        height: 335px;
    }

    .category-showcase__card-image {
        flex-basis: 125px;
        height: 125px;
    }

    .category-showcase__card-body h3 {
        font-size: 14px;
    }

    .category-showcase__card-body p {
        font-size: 11px;
    }

}

@media (max-width: 680px) {

    .category-showcase__card {
        height: 320px;
    }

    .category-showcase__card-image {
        flex-basis: 115px;
        height: 115px;
    }

    .category-showcase__card-body {
        padding: 13px 14px;
    }

    .category-showcase__card-body h3 {
        font-size: 13px;
    }

    .category-showcase__card-body p {
        font-size: 11px;
    }

    .category-showcase__card-body .post-card__meta {
        font-size: 10px;
    }

}

/* CATEGORY CARD — DATE + READING TIME */

.category-showcase__card-body .post-card__meta {
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    direction: rtl;
}

.category-showcase__card-body .post-card__meta-date,
.category-showcase__card-body .post-card__meta-reading {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.category-showcase__card-body .post-card__meta-reading {
    margin-right: 2px;
}

.category-showcase__card-body .post-card__meta time,
.category-showcase__card-body .post-card__meta span {
    font-size: 11px;
}


/* =========================================================
   CATEGORY SHOWCASE — DYNAMIC ADS
   ========================================================= */

.category-showcase__rows .category-showcase__banner {
    display: block !important;
    width: 100% !important;
    max-width: 1180px !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 24px auto 36px !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-sizing: border-box !important;
}

.category-showcase__rows .category-showcase__banner img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    object-fit: contain !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.category-showcase__rows .category-showcase__html-ad {
    display: block !important;
    width: 100% !important;
    max-width: 1180px !important;
    min-height: 80px !important;
    height: auto !important;
    margin: 24px auto 36px !important;
    padding: 0 !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-sizing: border-box !important;
}

.category-showcase__rows .category-showcase__html-ad .parham-inline-ad {
    display: block !important;
    width: 100% !important;
    min-height: 100px !important;
    padding: 24px 28px !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(212,175,55,.45) !important;
    border-radius: 18px !important;
    background: #fff !important;
    color: #222 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.category-showcase__rows .category-showcase__html-ad .parham-inline-ad span {
    display: inline-block !important;
    margin-bottom: 8px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.category-showcase__rows .category-showcase__html-ad .parham-inline-ad h3 {
    display: block !important;
    margin: 0 0 8px !important;
    font-size: 20px !important;
    font-weight: 800 !important;
}

.category-showcase__rows .category-showcase__html-ad .parham-inline-ad p {
    display: block !important;
    margin: 0 0 12px !important;
    font-size: 14px !important;
    line-height: 1.9 !important;
}

.category-showcase__rows .category-showcase__html-ad .parham-inline-ad strong {
    display: inline-block !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

@media (max-width: 680px) {

    .category-showcase__rows .category-showcase__banner {
        margin: 16px auto 24px !important;
        border-radius: 12px !important;
    }

    .category-showcase__rows .category-showcase__html-ad {
        margin: 16px auto 24px !important;
    }

    .category-showcase__rows .category-showcase__html-ad .parham-inline-ad {
        padding: 18px !important;
        border-radius: 12px !important;
    }

}

