.home-page .hero-news-slider {
    isolation: isolate;
}

body.category-page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body.category-page main {
    width: 100% !important;
    margin: 0 !important;
    padding: 80px 0 0 !important;
}

body.category-page main > .category-page-section,
body.category-page main > .news-section.category-page-section {
    width: min(1360px, 94%) !important;
    margin: 0 auto !important;
    padding: 0 0 70px !important;
}

body.category-page .category-page-section > .section-title {
    min-height: 190px !important;
    margin: 0 0 26px !important;
    padding: 34px 38px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
    text-align: right !important;
    border-radius: 0 0 30px 30px !important;
    overflow: hidden !important;
    position: relative !important;
    background: linear-gradient(90deg, rgba(4,8,20,.94), rgba(4,8,20,.64) 55%, rgba(4,8,20,.26)), radial-gradient(circle at 86% 18%, rgba(225,29,46,.26), transparent 32%), url('assets/hero-bg.webp') center 42% / cover no-repeat !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    border-top: 0 !important;
    box-shadow: 0 24px 65px rgba(0,0,0,.23) !important;
}

body.category-page .category-page-section > .section-title::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    background: linear-gradient(to top, rgba(2,5,14,.68), rgba(2,5,14,.03) 68%) !important;
}

body.category-page .category-page-section > .section-title > * {
    position: relative !important;
    z-index: 1 !important;
}

body.category-page #categoryPageLabel {
    margin-bottom: 8px !important;
    color: #ff6975 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: 1.8px !important;
}

body.category-page #categoryPageTitle {
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(38px, 4.3vw, 60px) !important;
    line-height: 1.12 !important;
    font-weight: 950 !important;
    text-shadow: 0 5px 22px rgba(0,0,0,.7) !important;
}

body.category-page #categoryPageDesc {
    display: block !important;
    margin: 10px 0 0 !important;
    color: rgba(255,255,255,.84) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    font-weight: 750 !important;
}

body.category-page #categoryPageNews,
body.category-page .category-news-grid.page-news-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
}

body.category-page #categoryPageNews > .category-news-card {
    position: relative !important;
    isolation: isolate !important;
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease !important;
}

body.category-page #categoryPageNews > .category-news-card::after {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    pointer-events: none !important;
    background: linear-gradient(to top, rgba(2,5,14,.98) 0%, rgba(2,5,14,.82) 34%, rgba(2,5,14,.38) 65%, rgba(2,5,14,.05) 88%) !important;
}

body.category-page #categoryPageNews .category-news-image {
    background-size: cover !important;
    transition: transform .5s ease !important;
}

body.category-page #categoryPageNews .category-news-content {
    inset: auto !important;
    text-align: right !important;
    direction: rtl !important;
}

body.category-page .category-card-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
}

body.category-page .category-card-meta span {
    margin: 0 !important;
    border-radius: 999px !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body.category-page .category-card-meta time {
    font-size: 10px !important;
    font-weight: 800 !important;
}

body.category-page #categoryPageNews .category-news-content h2 {
    width: 100% !important;
}

.category-results-summary {
    margin: 24px 0 0 !important;
    color: rgba(255,255,255,.68) !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

.category-pagination {
    margin: 16px auto 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.category-pagination a,
.category-pagination span {
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 13px !important;
    color: #fff !important;
    background: rgba(255,255,255,.075) !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    transition: transform .2s ease, background .2s ease, border-color .2s ease !important;
}

.category-pagination a:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(255,82,94,.38) !important;
    background: rgba(225,29,46,.16) !important;
}

.category-pagination a.active {
    background: linear-gradient(135deg, #e11d2e, #b70f20) !important;
    border-color: transparent !important;
    box-shadow: 0 10px 24px rgba(225,29,46,.23) !important;
}

.category-pagination span {
    min-width: 26px !important;
    padding: 0 5px !important;
    color: rgba(255,255,255,.58) !important;
    background: transparent !important;
    border-color: transparent !important;
}

.category-pagination span.disabled {
    min-width: 42px !important;
    padding: 0 13px !important;
    color: rgba(255,255,255,.6) !important;
    background: rgba(255,255,255,.04) !important;
    border-color: rgba(255,255,255,.08) !important;
}

body.category-page #categoryPageNews:empty {
    min-height: 100vh;
}

.category-page-skeleton {
    min-height: 330px !important;
    border-radius: 25px !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    background: linear-gradient(90deg, rgba(255,255,255,.045), rgba(255,255,255,.105), rgba(255,255,255,.045)) !important;
    background-size: 220% 100% !important;
    animation: categorySkeleton 1.15s linear infinite !important;
}

@keyframes categorySkeleton {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -20% 0;
    }
}

@media (max-width: 1000px) {
    body.category-page #categoryPageNews,
    body.category-page .category-news-grid.page-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    body.category-page main {
        padding-top: 68px !important;
    }

    body.category-page main > .category-page-section,
    body.category-page main > .news-section.category-page-section {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 14px 50px !important;
    }

    body.category-page .category-page-section > .section-title {
        width: calc(100% + 28px) !important;
        min-height: 150px !important;
        margin: 0 -14px 18px !important;
        padding: 25px 20px !important;
        border-radius: 0 0 24px 24px !important;
    }

    body.category-page #categoryPageTitle {
        font-size: 34px !important;
    }

    body.category-page #categoryPageDesc {
        font-size: 12px !important;
    }

    body.category-page #categoryPageNews,
    body.category-page .category-news-grid.page-news-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 13px !important;
    }

    .category-page-skeleton {
        min-height: 136px !important;
    }

    .category-pagination {
        gap: 6px !important;
    }

    .category-pagination a,
    .category-pagination span {
        min-width: 40px !important;
        height: 40px !important;
        padding: 0 10px !important;
        border-radius: 12px !important;
        font-size: 12px !important;
    }
}

.home-page .hero-news-slider {
    border-radius: 34px !important;
    overflow: hidden !important;
    box-shadow: 0 30px 90px rgba(0,0,0,.32), 0 0 0 1px rgba(255,255,255,.06) !important;
}

body.category-page #categoryPageNews > .category-news-card {
    min-height: 390px !important;
    height: 390px !important;
    display: grid !important;
    grid-template-rows: 218px minmax(0, 1fr) !important;
    align-items: stretch !important;
    overflow: hidden !important;
    border-radius: 24px !important;
    background: linear-gradient(180deg, #101827, #09101b) !important;
    border: 1px solid rgba(255,255,255,.09) !important;
    box-shadow: 0 18px 48px rgba(0,0,0,.22) !important;
}

body.category-page #categoryPageNews > .category-news-card::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 3 !important;
    pointer-events: none !important;
    border-radius: inherit !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.03) !important;
}

body.category-page #categoryPageNews > .category-news-card::after {
    display: none !important;
    content: none !important;
}

body.category-page #categoryPageNews .category-news-image {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 218px !important;
    min-height: 218px !important;
    background-position: center 28% !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    filter: saturate(1.04) contrast(1.02) !important;
}

body.category-page #categoryPageNews .category-news-image::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    background: linear-gradient(to top, rgba(5,9,18,.54), rgba(5,9,18,.02) 55%) !important;
}

body.category-page #categoryPageNews .category-news-content {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 17px 19px 19px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    background: linear-gradient(180deg, rgba(17,24,39,.98), rgba(8,14,24,.99)) !important;
}

body.category-page .category-card-meta {
    margin: 0 0 10px !important;
    min-height: 27px !important;
}

body.category-page .category-card-meta span {
    max-width: 67% !important;
    padding: 5px 10px !important;
    background: rgba(225,29,46,.16) !important;
    border: 1px solid rgba(255,84,98,.25) !important;
    color: #ff7782 !important;
    box-shadow: none !important;
}

body.category-page .category-card-meta time {
    color: rgba(255,255,255,.54) !important;
}

body.category-page #categoryPageNews .category-news-content h2 {
    margin: 0 !important;
    color: #fff !important;
    font-size: 18px !important;
    line-height: 1.55 !important;
    font-weight: 900 !important;
    letter-spacing: -.1px !important;
    text-shadow: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

body.category-page #categoryPageNews .category-news-content p {
    margin: 7px 0 0 !important;
    color: rgba(226,232,240,.68) !important;
    font-size: 12px !important;
    line-height: 1.75 !important;
    font-weight: 650 !important;
    text-shadow: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

body.category-page #categoryPageNews > .category-news-card:hover {
    transform: translateY(-7px) !important;
    border-color: rgba(255,75,90,.40) !important;
    box-shadow: 0 28px 68px rgba(0,0,0,.28), 0 12px 34px rgba(225,29,46,.09) !important;
}

body.category-page #categoryPageNews .category-news-card:hover .category-news-image {
    transform: scale(1.045) !important;
}

html[data-theme="light"] body.category-page #categoryPageNews > .category-news-card {
    background: #fff !important;
    border-color: rgba(15,23,42,.10) !important;
    box-shadow: 0 18px 42px rgba(15,23,42,.10) !important;
}

html[data-theme="light"] body.category-page #categoryPageNews .category-news-content {
    background: linear-gradient(180deg, #fff, #f7f9fc) !important;
}

html[data-theme="light"] body.category-page #categoryPageNews .category-news-content h2 {
    color: #101828 !important;
}

html[data-theme="light"] body.category-page #categoryPageNews .category-news-content p {
    color: #667085 !important;
}

html[data-theme="light"] body.category-page .category-card-meta time {
    color: #5a6a80 !important;
}

@media (max-width: 760px) {
    .home-page .hero-news-slider {
        min-height: 440px !important;
        border-radius: 24px !important;
    }

    body.category-page #categoryPageNews > .category-news-card {
        direction: ltr !important;
        width: 100% !important;
        height: 142px !important;
        min-height: 142px !important;
        display: grid !important;
        grid-template-columns: minmax(0,1fr) 122px !important;
        grid-template-rows: 142px !important;
        border-radius: 19px !important;
    }

    body.category-page #categoryPageNews .category-news-image {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 122px !important;
        height: 142px !important;
        min-height: 142px !important;
        border: 0 !important;
        border-right: 1px solid rgba(255,255,255,.06) !important;
    }

    body.category-page #categoryPageNews .category-news-content {
        grid-column: 1 !important;
        grid-row: 1 !important;
        padding: 12px 13px !important;
        justify-content: center !important;
        direction: rtl !important;
    }

    body.category-page .category-card-meta {
        margin-bottom: 7px !important;
        min-height: 22px !important;
    }

    body.category-page .category-card-meta span {
        max-width: 100% !important;
        padding: 4px 8px !important;
        font-size: 9px !important;
    }

    body.category-page .category-card-meta time {
        display: none !important;
    }

    body.category-page #categoryPageNews .category-news-content h2 {
        font-size: 14px !important;
        line-height: 1.55 !important;
    }

    body.category-page #categoryPageNews .category-news-content p {
        margin-top: 5px !important;
        font-size: 10.5px !important;
        line-height: 1.55 !important;
        -webkit-line-clamp: 1 !important;
    }
}

html[data-theme="light"] body.category-page .category-page-section > .section-title,
html[data-visual-theme="light"] body.category-page .category-page-section > .section-title {
    min-height: 178px !important;
    margin: 0 0 28px !important;
    padding: 32px 38px 30px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 5px !important;
    text-align: right !important;
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid rgba(15, 23, 42, .09) !important;
    border-top: 0 !important;
    border-radius: 0 0 30px 30px !important;
    background: radial-gradient(circle at 88% 16%, rgba(220, 38, 38, .10), transparent 30%), radial-gradient(circle at 8% 92%, rgba(37, 99, 235, .10), transparent 32%), linear-gradient(135deg, rgba(255,255,255,.99), rgba(245,248,253,.98)) !important;
    box-shadow: 0 22px 55px rgba(15, 23, 42, .09) !important;
}

html[data-theme="light"] body.category-page .category-page-section > .section-title::before,
html[data-visual-theme="light"] body.category-page .category-page-section > .section-title::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 5px !important;
    background: linear-gradient(180deg, #dc2626 0%, #ef4444 42%, #2563eb 100%) !important;
    pointer-events: none !important;
}

html[data-theme="light"] body.category-page .category-page-section > .section-title::after,
html[data-visual-theme="light"] body.category-page .category-page-section > .section-title::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(115deg, transparent 0 62%, rgba(255,255,255,.58) 100%) !important;
    pointer-events: none !important;
}

html[data-theme="light"] body.category-page .category-page-section > .section-title > *,
html[data-visual-theme="light"] body.category-page .category-page-section > .section-title > * {
    position: relative !important;
    z-index: 2 !important;
}

html[data-theme="light"] body.category-page #categoryPageLabel,
html[data-visual-theme="light"] body.category-page #categoryPageLabel {
    display: inline-flex !important;
    width: max-content !important;
    margin: 0 0 8px !important;
    padding: 7px 11px !important;
    border-radius: 999px !important;
    color: #b91c1c !important;
    background: #fff1f2 !important;
    border: 1px solid #ffe4e6 !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    letter-spacing: 1.35px !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.category-page #categoryPageTitle,
html[data-visual-theme="light"] body.category-page #categoryPageTitle {
    margin: 0 !important;
    color: #0b1220 !important;
    font-size: clamp(38px, 4vw, 58px) !important;
    line-height: 1.12 !important;
    font-weight: 950 !important;
    letter-spacing: -.035em !important;
    text-shadow: none !important;
}

html[data-theme="light"] body.category-page #categoryPageDesc,
html[data-visual-theme="light"] body.category-page #categoryPageDesc {
    display: block !important;
    margin: 8px 0 0 !important;
    max-width: 760px !important;
    color: #475569 !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
    font-weight: 750 !important;
    letter-spacing: 0 !important;
}

@media (max-width: 760px) {
    html[data-theme="light"] body.category-page .category-page-section > .section-title,
    html[data-visual-theme="light"] body.category-page .category-page-section > .section-title {
        width: calc(100% + 28px) !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 -14px 18px !important;
        padding: 24px 22px 22px !important;
        border-radius: 0 0 24px 24px !important;
        justify-content: center !important;
        align-items: flex-start !important;
    }

    html[data-theme="light"] body.category-page #categoryPageTitle,
    html[data-visual-theme="light"] body.category-page #categoryPageTitle {
        font-size: clamp(30px, 9vw, 40px) !important;
        line-height: 1.16 !important;
    }

    html[data-theme="light"] body.category-page #categoryPageDesc,
    html[data-visual-theme="light"] body.category-page #categoryPageDesc {
        margin-top: 7px !important;
        font-size: 14px !important;
        line-height: 1.75 !important;
    }
}
