/* ==========================================================================
   AKP CATEGORY ARCHIVE
   Theme: Kamdhenu_Solutions_WP_Theme
   Version: 2.0
   ========================================================================== */


/* ==========================================================================
   1. PAGE
   ========================================================================== */

.akp-category-page {
    width: 100%;
    min-height: 450px;
    padding: 22px 15px 35px;
    background: #fffaf7;
    box-sizing: border-box;
}

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

.akp-category-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}


/* ==========================================================================
   2. CATEGORY HEADER
   ========================================================================== */

.akp-category-header {
    display: flex;
    align-items: center;

    gap: 14px;

    width: 100%;

    margin-bottom: 14px;
    padding: 13px 17px;

    color: #ffffff;

    background: linear-gradient(
        135deg,
        #800000 0%,
        #680000 55%,
        #500000 100%
    );

    border: 1px solid #720000;
    border-bottom: 3px solid #d4af37;
    border-radius: 9px;

    box-shadow:
        0 3px 5px rgba(80, 0, 0, .15),
        0 8px 18px rgba(80, 0, 0, .12);
}


/* ==========================================================================
   3. HEADER ICON
   ========================================================================== */

.akp-category-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;

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

    color: #ffffff;

    background: linear-gradient(
        145deg,
        #a00000,
        #5b0000
    );

    border: 1px solid #d4af37;
    border-radius: 50%;

    box-shadow:
        inset 0 1px 2px rgba(255,255,255,.25),
        0 3px 7px rgba(0,0,0,.30);
}

.akp-category-header-icon i {
    font-size: 18px;
}


/* ==========================================================================
   4. HEADER TEXT
   ========================================================================== */

.akp-category-header-text {
    min-width: 0;
}

.akp-category-header-text h1 {
    margin: 0;

    color: #ffffff;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.akp-category-description {
    margin-top: 3px;

    color: #f6dfd5;

    font-size: .75rem;
    line-height: 1.4;
}


/* ==========================================================================
   5. TOOLBAR
   ========================================================================== */

.akp-category-toolbar {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    width: 100%;

    margin-bottom: 10px;
    padding: 7px 9px;

    background: #ffffff;

    border: 1px solid #e4d7d0;
    border-radius: 7px;

    box-shadow:
        0 2px 5px rgba(80,0,0,.06);
}

.akp-category-result-count {
    display: flex;

    align-items: center;

    gap: 6px;

    color: #765f57;

    font-size: .68rem;
    font-weight: 700;
}

.akp-category-result-count i {
    color: #800000;
}


/* ==========================================================================
   6. VIEW SWITCHER
   ========================================================================== */

.akp-category-view-switcher {
    display: flex;

    align-items: center;

    gap: 4px;

    padding: 3px;

    background: #f8f2ef;

    border: 1px solid #e4d8d2;
    border-radius: 6px;
}

.akp-view-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 5px;

    min-width: 60px;
    height: 28px;

    padding: 3px 9px;

    color: #735f58;

    background: transparent;

    border: 0;
    border-radius: 4px;

    font-family: inherit;
    font-size: .64rem;
    font-weight: 700;

    cursor: pointer;

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

.akp-view-btn i {
    font-size: .68rem;
}

.akp-view-btn:hover {
    color: #800000;
    background: #ffffff;
}

.akp-view-btn.active {
    color: #ffffff;

    background: linear-gradient(
        145deg,
        #850000,
        #650000
    );

    box-shadow:
        0 2px 4px rgba(80,0,0,.20);

    transform: translateY(-1px);
}


/* ==========================================================================
   7. POST LIST
   ========================================================================== */

.akp-category-list {
    width: 100%;
}


/* ==========================================================================
   8. LIST VIEW
   ========================================================================== */

.akp-category-list.akp-list-view {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.akp-category-list.akp-list-view .akp-category-card {
    display: flex;
    flex-direction: row;
    align-items: center;
}


/* ==========================================================================
   9. GRID VIEW
   ========================================================================== */

.akp-category-list.akp-grid-view {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;
}

.akp-category-list.akp-grid-view .akp-category-card {
    display: flex;

    flex-direction: column;
    align-items: stretch;

    min-height: 180px;
}

.akp-category-list.akp-grid-view .akp-category-date {
    width: fit-content;
    min-width: 0;

    margin: 0 0 10px;
}

.akp-category-list.akp-grid-view
.akp-category-card-content {
    width: 100%;
}

.akp-category-list.akp-grid-view
.akp-category-post-title {
    min-height: 40px;
}

.akp-category-list.akp-grid-view
.akp-category-excerpt {
    display: block;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* ==========================================================================
   10. POST CARD
   ========================================================================== */

.akp-category-card {
    width: 100%;

    margin: 0;
    padding: 9px 11px;

    background: #ffffff;

    border: 1px solid #e6d8d1;
    border-left: 4px solid #800000;

    border-radius: 8px;

    box-shadow:
        0 2px 4px rgba(80,0,0,.06),
        0 5px 12px rgba(80,0,0,.07);

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

.akp-category-card:hover {
    transform: translateY(-2px);

    border-left-color: #d4af37;

    box-shadow:
        0 4px 7px rgba(80,0,0,.10),
        0 10px 20px rgba(80,0,0,.16);
}


/* ==========================================================================
   11. DATE
   ========================================================================== */

.akp-category-date {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: auto;
    min-width: 125px;
    height: 38px;

    margin-right: 14px;
    padding: 0 9px;

    gap: 6px;

    color: #ffffff;

    background: linear-gradient(
        145deg,
        #850000,
        #5c0000
    );

    border: 1px solid #d4af37;
    border-radius: 6px;

    font-size: .67rem;
    font-weight: 700;

    line-height: 1;

    white-space: nowrap;

    box-shadow:
        inset 0 1px 2px rgba(255,255,255,.15),
        0 2px 5px rgba(70,0,0,.20);
}

.akp-category-date i {
    color: #efd889;
    font-size: .72rem;
    flex-shrink: 0;
}


/* ==========================================================================
   12. CONTENT
   ========================================================================== */

.akp-category-card-content {
    flex: 1;
    min-width: 0;
}


/* ==========================================================================
   13. TITLE
   ========================================================================== */

.akp-category-post-title {
    margin: 0 0 4px;

    font-size: .95rem;
    font-weight: 700;

    line-height: 1.3;
}

.akp-category-post-title a {
    color: #463333;

    text-decoration: none;

    transition: color .2s ease;
}

.akp-category-post-title a:hover {
    color: #800000;
}


/* ==========================================================================
   14. META
   ========================================================================== */

.akp-category-meta {
    display: block;

    margin: 0;

    color: #917a70;

    font-size: .64rem;
    line-height: 1.2;
}

.akp-category-meta-date {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    white-space: nowrap;
}

.akp-category-meta-date i {
    color: #800000;
    flex-shrink: 0;
}


/* ==========================================================================
   15. EXCERPT
   ========================================================================== */

.akp-category-excerpt {
    margin-top: 5px;

    color: #76645d;

    font-size: .70rem;
    line-height: 1.35;
}


/* ==========================================================================
   16. READ MORE
   ========================================================================== */

.akp-category-read-more {
    display: inline-flex;

    align-items: center;

    gap: 4px;

    margin-top: 4px;

    color: #800000;

    font-size: .67rem;
    font-weight: 700;

    text-decoration: none;
}

.akp-category-read-more:hover {
    color: #b08b00;
}


/* ==========================================================================
   17. PAGINATION
   ========================================================================== */

.akp-category-pagination {
    margin-top: 18px;

    text-align: center;
}

.akp-category-pagination ul {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 5px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.akp-category-pagination li {
    margin: 0;
    padding: 0;
}

.akp-category-pagination a,
.akp-category-pagination span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 32px;
    min-height: 30px;

    padding: 4px 9px;

    color: #700000;

    background: #ffffff;

    border: 1px solid #dfcdc3;
    border-radius: 5px;

    font-size: .70rem;

    text-decoration: none;

    box-shadow:
        0 2px 4px rgba(80,0,0,.05);
}

.akp-category-pagination a:hover {
    color: #ffffff;

    background: #800000;

    border-color: #800000;
}

.akp-category-pagination .current {
    color: #ffffff;

    background: #800000;

    border-color: #800000;
}


/* ==========================================================================
   18. EMPTY
   ========================================================================== */

.akp-category-empty {
    padding: 50px 20px;

    color: #735e56;

    background: #ffffff;

    border: 1px solid #e5d7d0;
    border-radius: 9px;

    text-align: center;

    box-shadow:
        0 5px 15px rgba(80,0,0,.08);
}

.akp-category-empty-icon {
    margin-bottom: 12px;

    color: #800000;

    font-size: 38px;
}

.akp-category-empty h2 {
    margin: 0 0 6px;

    color: #4c3333;

    font-size: 1.1rem;
}

.akp-category-empty p {
    margin: 0 0 16px;

    color: #806d65;

    font-size: .8rem;
}

.akp-category-home {
    display: inline-block;

    padding: 8px 15px;

    color: #ffffff;

    background: #800000;

    border-radius: 5px;

    font-size: .75rem;
    font-weight: 700;

    text-decoration: none;

    box-shadow:
        0 3px 6px rgba(80,0,0,.18);
}

.akp-category-home:hover {
    color: #ffffff;

    background: #650000;
}


/* ==========================================================================
   19. TABLET
   ========================================================================== */

@media (max-width: 900px) {

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

}


/* ==========================================================================
   20. MOBILE
   ========================================================================== */

@media (max-width: 600px) {

    .akp-category-page {
        padding: 14px 7px 25px;
    }

    .akp-category-header {
        padding: 9px 10px;
        gap: 9px;
        margin-bottom: 10px;
    }

    .akp-category-header-icon {
        width: 34px;
        min-width: 34px;
        height: 34px;
    }

    .akp-category-header-icon i {
        font-size: 13px;
    }

    .akp-category-header-text h1 {
        font-size: 1rem;
    }

    .akp-category-description {
        font-size: .60rem;
    }


    /* Toolbar */

    .akp-category-toolbar {
        padding: 6px;

        margin-bottom: 8px;
    }

    .akp-category-result-count {
        font-size: .58rem;
    }

    .akp-view-btn {
        min-width: 48px;
        height: 26px;

        padding: 2px 6px;

        font-size: .57rem;
    }


    /* List */

    .akp-category-list.akp-list-view {
        gap: 6px;
    }

    .akp-category-list.akp-list-view
    .akp-category-card {
        align-items: flex-start;
    }


    .akp-category-card {
        padding: 8px;

        border-left-width: 3px;
    }


    .akp-category-date {
        min-width: 92px;
        height: 33px;

        margin-right: 8px;
        padding: 0 6px;

        gap: 4px;

        font-size: .52rem;
    }

    .akp-category-date i {
        font-size: .58rem;
    }


    .akp-category-post-title {
        margin-bottom: 3px;

        font-size: .77rem;
    }

    .akp-category-meta {
        font-size: .55rem;
    }

    .akp-category-excerpt {
        display: none;
    }

    .akp-category-read-more {
        margin-top: 4px;

        font-size: .58rem;
    }


    /* Grid becomes 2 columns */

    .akp-category-list.akp-grid-view {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 7px;
    }

    .akp-category-list.akp-grid-view
    .akp-category-card {
        min-height: 145px;
        padding: 7px;
    }

    .akp-category-list.akp-grid-view
    .akp-category-date {
        width: fit-content;
        min-width: 0;

        margin: 0 0 7px;

        height: 29px;

        font-size: .46rem;
    }

    .akp-category-list.akp-grid-view
    .akp-category-post-title {
        font-size: .68rem;
        min-height: 0;
    }

}


/* ==========================================================================
   21. VERY SMALL SCREEN
   ========================================================================== */

@media (max-width: 360px) {

    .akp-category-page {
        padding-left: 5px;
        padding-right: 5px;
    }

    .akp-category-result-count {
        display: none;
    }

    .akp-category-toolbar {
        justify-content: flex-end;
    }

    .akp-category-date {
        min-width: 82px;
        height: 31px;

        padding: 0 5px;

        font-size: .48rem;
    }

    .akp-category-date i {
        font-size: .52rem;
    }

    .akp-category-post-title {
        font-size: .72rem;
    }

    .akp-category-meta {
        font-size: .52rem;
    }

}
