/* =========================================================
   Sarkari Sites - Professional Category Header
   Parent Company: Star Digital Software
   Child Brand: Sarkari Sites
========================================================= */
/* =========================================================
   Sarkari Sites
   Parent Company : Star Digital Software
   Brand          : Sarkari Sites
   Component      : Category Card Header
   ========================================================= */


/* =========================================================
   CATEGORY CARD
   ========================================================= */

.custom-card {
    width: 100%;
    padding: 0;
    margin: 0;

    background: #ffffff;

    border: 1px solid #e1e5e9;
    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.06);

    box-sizing: border-box;
}


/* =========================================================
   CATEGORY HEADER
   Full available width of the card
   ========================================================= */

.category-header {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    min-width: 0;
    min-height: 64px;

    margin: 0;
    padding: 8px 10px 8px 20px;

    box-sizing: border-box;

    background: linear-gradient(
        135deg,
        #173f5f 0%,
        #20639b 52%,
        #2a9d8f 100%
    );

    border: 0;

    border-radius: 9px 9px 0 0;

    overflow: hidden;
}


/* =========================================================
   LEFT BRAND ACCENT
   ========================================================= */

.category-header::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 4px;
    height: 100%;

    background: #ec5252;
}


/* =========================================================
   CATEGORY TITLE
   Takes all available space
   ========================================================= */

.category-title {
    position: relative;
    z-index: 1;

    flex: 1 1 auto;

    min-width: 0;

    margin: 0;
    padding: 0;

    color: #ffffff;

    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;

    letter-spacing: -0.2px;

    text-align: left;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    text-decoration: none;
}


/* =========================================================
   VIEW ALL BUTTON
   ========================================================= */

.view-btn {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    min-width: 110px;
    height: 42px;

    margin-left: 15px;
    padding: 0 18px;

    background: #ec5252;

    color: #ffffff !important;

    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 7px;

    font-size: 15px;
    font-weight: 600;
    line-height: 1;

    letter-spacing: 0.1px;

    text-align: center;
    text-decoration: none !important;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================================
   VIEW ALL - HOVER
   ========================================================= */

.view-btn:hover {
    background: #d94343;

    color: #ffffff !important;

    transform: translateY(-1px);

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.20);
}


/* =========================================================
   VIEW ALL - FOCUS
   ========================================================= */

.view-btn:focus,
.view-btn:focus-visible {
    color: #ffffff !important;

    outline: none;

    box-shadow:
        0 0 0 3px rgba(236, 82, 82, 0.25),
        0 3px 8px rgba(0, 0, 0, 0.15);
}


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

.custom-card > ol {
    width: 100%;

    margin: 0;

    padding: 16px 20px 12px 40px;

    box-sizing: border-box;
}


/* =========================================================
   CATEGORY LIST ITEMS
   ========================================================= */

.custom-card > ol > li {
    margin-bottom: 8px;

    padding-left: 3px;

    line-height: 1.6;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .category-header {
        min-height: 58px;

        padding: 7px 8px 7px 16px;

        border-radius: 8px 8px 0 0;
    }

    .category-title {
        font-size: 20px;
    }

    .view-btn {
        min-width: 92px;
        height: 38px;

        margin-left: 10px;
        padding: 0 13px;

        font-size: 14px;
    }

    .custom-card > ol {
        padding: 14px 14px 10px 32px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .category-header {
        min-height: 54px;

        padding-left: 14px;
        padding-right: 7px;
    }

    .category-title {
        font-size: 18px;
    }

    .view-btn {
        min-width: 82px;
        height: 36px;

        margin-left: 8px;
        padding: 0 10px;

        font-size: 13px;
    }

    .custom-card > ol {
        padding-left: 28px;
    }
}