/* =========================================================
   04 - CATEGORY PAGE FIX
========================================================= */

.category-page-section {
    width: 100% !important;
    padding: 22px 0 50px !important;
    background: #f4f7fb !important;
}

.category-page-section .container {
    max-width: 1300px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
}

.category-page-head {
    width: 100% !important;
    margin: 0 0 22px !important;
    padding: 24px !important;
    background: #ffffff !important;
    border: 1px solid #dfe5ee !important;
    border-radius: 18px !important;
    box-shadow: 0 14px 34px rgba(6, 26, 51, .08) !important;
    overflow: visible !important;
}

.category-title-row {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 18px !important;
}

.category-title-row > div > span {
    display: inline-flex !important;
    margin-bottom: 7px !important;
    color: var(--btv-red) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

.category-title-row h1 {
    margin: 0 !important;
    color: var(--btv-dark) !important;
    font-size: 42px !important;
    line-height: 1.1 !important;
    font-weight: 600 !important;
}

.category-title-row strong {
    min-height: 40px !important;
    padding: 0 16px !important;
    border-radius: 999px !important;
    background: rgba(180, 0, 25, .08) !important;
    color: var(--btv-red) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

.category-child-list {
    margin-top: 18px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.category-child-list a {
    min-height: 34px !important;
    padding: 0 13px !important;
    border-radius: 999px !important;
    background: #f4f7fb !important;
    color: var(--btv-dark) !important;
    border: 1px solid #e4e9f1 !important;
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    transition: .2s ease !important;
}

.category-child-list a:hover {
    background: var(--btv-red) !important;
    border-color: var(--btv-red) !important;
    color: #ffffff !important;
}

.category-filter-bar {
    margin-top: 20px !important;
    display: flex !important;
    align-items: flex-end !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
    position: relative !important;
    z-index: 20 !important;
}

.category-filter-group {
    display: grid !important;
    gap: 7px !important;
    min-width: 210px !important;
    position: relative !important;
}

.category-filter-group label {
    color: #667085 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding-left: 4px !important;
}

.btv-custom-select {
    position: relative !important;
    width: 100% !important;
}

.btv-custom-select-btn {
    width: 100% !important;
    height: 48px !important;
    padding: 0 14px 0 16px !important;
    border: 1px solid #dfe5ee !important;
    border-radius: 15px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    color: var(--btv-dark) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: 0 8px 18px rgba(6, 26, 51, .05) !important;
}

.btv-custom-select-btn span {
    color: var(--btv-dark) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.btv-custom-select-btn i {
    color: var(--btv-dark) !important;
    font-size: 12px !important;
    transition: .22s ease !important;
}

.btv-custom-select.open .btv-custom-select-btn {
    border-color: var(--btv-red) !important;
    box-shadow: 0 0 0 4px rgba(180, 0, 25, .09) !important;
}

.btv-custom-select.open .btv-custom-select-btn i {
    color: var(--btv-red) !important;
    transform: rotate(180deg) !important;
}

.btv-custom-select-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999 !important;
    padding: 8px !important;
    border: 1px solid #e4e9f1 !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 36px rgba(6, 26, 51, .16) !important;
    display: none !important;
}

.btv-custom-select.open .btv-custom-select-menu {
    display: grid !important;
    gap: 5px !important;
}

.btv-custom-select-menu button {
    width: 100% !important;
    min-height: 40px !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: transparent !important;
    color: var(--btv-dark) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    cursor: pointer !important;
}

.btv-custom-select-menu button:hover {
    background: rgba(180, 0, 25, .07) !important;
    color: var(--btv-red) !important;
}

.btv-custom-select-menu button.active {
    background: linear-gradient(135deg, var(--btv-red) 0%, #8c0016 100%) !important;
    color: #ffffff !important;
}

.btv-custom-select-menu button.active span,
.btv-custom-select-menu button.active i {
    color: #ffffff !important;
}

.category-layout-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 340px !important;
    gap: 22px !important;
    align-items: start !important;
    position: relative !important;
    z-index: 1 !important;
}

.category-main-col {
    min-width: 0 !important;
    width: 100% !important;
}

.category-news-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

.category-sidebar {
    display: grid !important;
    gap: 16px !important;
    position: sticky !important;
    top: 90px !important;
}

.category-load-status {
    margin: 22px 0 0 !important;
    min-height: 50px !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    border: 1px solid #dfe5ee !important;
    color: #667085 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-shadow: 0 10px 24px rgba(6, 26, 51, .06) !important;
}

.category-load-status span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

@media (max-width: 1200px) {
    .category-layout-grid {
        grid-template-columns: minmax(0, 1fr) 310px !important;
    }

    .category-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 992px) {
    .category-layout-grid {
        grid-template-columns: 1fr !important;
    }

    .category-sidebar {
        position: static !important;
    }
}

@media (max-width: 768px) {
    .category-title-row {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    .category-title-row h1 {
        font-size: 30px !important;
    }

    .category-filter-bar {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .category-filter-group {
        min-width: 0 !important;
    }

    .category-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}

@media (max-width: 520px) {
    .category-news-grid {
        grid-template-columns: 1fr !important;
    }

    .category-filter-bar {
        grid-template-columns: 1fr !important;
    }
}