/* =========================================================
   WEBLINKUS
   CATEGORY ARCHIVE
   PREMIUM BLOG DESIGN
========================================================= */


/* =========================================================
   01. CATEGORY PAGE
========================================================= */

.category-page {
    width: 100%;

    direction: rtl;

    background:
        linear-gradient(
            180deg,
            #f8faff 0%,
            #f4f7fb 100%
        );

    padding-bottom: 90px;
}


/* =========================================================
   02. CONTAINER
========================================================= */

.category-container {
    width: min(1200px, 92%);

    margin: 0 auto;
}


/* =========================================================
   03. HERO
========================================================= */

.category-hero {
    position: relative;

    width: 100%;

    min-height: 250px;

    display: flex;

    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            120deg,
            #03142d 0%,
            #082c5c 55%,
            #155eef 100%
        );
}


/* =========================================================
   04. HERO LIGHT EFFECT
========================================================= */

.category-hero::before {
    content: "";

    position: absolute;

    width: 420px;

    height: 420px;

    left: -130px;

    top: -180px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255,255,255,0.12),
            transparent 70%
        );
}


.category-hero::after {
    content: "";

    position: absolute;

    width: 300px;

    height: 300px;

    right: -100px;

    bottom: -170px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(21,94,239,0.35),
            transparent 70%
        );
}


/* =========================================================
   05. HERO OVERLAY
========================================================= */

.category-hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(3,20,45,0.10),
            rgba(3,20,45,0.25)
        );
}


/* =========================================================
   06. HERO CONTENT
========================================================= */

.category-hero-content {
    position: relative;

    z-index: 2;

    max-width: 800px;

    padding: 35px 0;
}


/* =========================================================
   07. BREADCRUMB
========================================================= */

.category-breadcrumb {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 9px;

    margin-bottom: 15px;

    color: #c7d7ef;

    font-size: 13px;
}


.category-breadcrumb a {
    color: #ffffff;

    text-decoration: none;

    transition: color 0.25s ease;
}


.category-breadcrumb a:hover {
    color: #8db5ff;
}


.category-breadcrumb strong {
    color: #ffffff;

    font-weight: 700;
}


/* =========================================================
   08. TITLE
========================================================= */

.category-title {
    margin: 0 0 12px;

    color: #ffffff;

    font-size: clamp(32px, 4vw, 48px);

    line-height: 1.3;

    font-weight: 800;
}


/* =========================================================
   09. DESCRIPTION
========================================================= */

.category-description {
    max-width: 700px;

    margin: 0;

    color: #d8e4f5;

    font-size: 16px;

    line-height: 1.9;
}


.category-description p {
    margin: 0;
}


/* =========================================================
   10. CONTENT AREA
========================================================= */

.category-content {
    padding-top: 55px;
}


/* =========================================================
   11. SECTION HEADING
========================================================= */

.category-section-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 30px;
}


.category-section-label {
    display: block;

    margin-bottom: 6px;

    color: #155eef;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1px;
}


.category-section-heading h2 {
    margin: 0;

    color: #03142d;

    font-size: 27px;

    line-height: 1.5;

    font-weight: 800;
}


.category-section-heading h2 strong {
    color: #155eef;
}


/* =========================================================
   12. COUNT
========================================================= */

.category-count {
    flex-shrink: 0;

    padding: 9px 15px;

    background: #ffffff;

    border: 1px solid #e5eaf1;

    border-radius: 9px;

    color: #667085;

    font-size: 13px;

    font-weight: 600;

    box-shadow:
        0 5px 20px rgba(3,20,45,0.04);
}


/* =========================================================
   13. GRID
   4 CARDS PER ROW
========================================================= */

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 22px;
}


/* =========================================================
   14. CARD
========================================================= */

.category-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e7ecf2;

    border-radius: 15px;

    box-shadow:
        0 8px 25px rgba(3,20,45,0.04);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.category-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 18px 40px rgba(3,20,45,0.10);
}


/* =========================================================
   15. CARD IMAGE
========================================================= */

.category-card-image {
    position: relative;

    display: block;

    width: 100%;

    height: 190px;

    overflow: hidden;

    background: #eef2f7;
}


.category-card-image img {
    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}


.category-card:hover
.category-card-image img {
    transform: scale(1.07);
}


/* =========================================================
   16. NO IMAGE
========================================================= */

.category-no-image {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    height: 100%;

    background:
        linear-gradient(
            135deg,
            #03142d,
            #155eef
        );

    color: #ffffff;

    font-size: 20px;

    font-weight: 800;
}


/* =========================================================
   17. BADGE
========================================================= */

.category-card-badge {
    position: absolute;

    top: 12px;

    right: 12px;

    padding: 6px 10px;

    background: rgba(3,20,45,0.82);

    backdrop-filter: blur(8px);

    border-radius: 7px;

    color: #ffffff;

    font-size: 11px;

    font-weight: 700;
}


/* =========================================================
   18. CARD CONTENT
========================================================= */

.category-card-content {
    padding: 19px;
}


/* =========================================================
   19. DATE
========================================================= */

.category-card-date {
    display: block;

    margin-bottom: 8px;

    color: #98a2b3;

    font-size: 11px;
}


/* =========================================================
   20. TITLE
========================================================= */

.category-card-content h3 {
    margin: 0 0 12px;

    min-height: 55px;

    font-size: 17px;

    line-height: 1.6;

    font-weight: 800;
}


.category-card-content h3 a {
    color: #03142d;

    text-decoration: none;

    transition: color 0.25s ease;
}


.category-card-content h3 a:hover {
    color: #155eef;
}


/* =========================================================
   21. EXCERPT
========================================================= */

.category-card-content p {
    display: -webkit-box;

    overflow: hidden;

    margin: 0 0 15px;

    color: #667085;

    font-size: 13px;

    line-height: 1.8;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;
}


/* =========================================================
   22. READ MORE
========================================================= */

.category-read-more {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #155eef;

    font-size: 13px;

    font-weight: 800;

    text-decoration: none;
}


.category-read-more span {
    transition:
        transform 0.25s ease;
}


.category-read-more:hover span {
    transform: translateX(-4px);
}


/* =========================================================
   23. PAGINATION
========================================================= */

.category-pagination {
    display: flex;

    justify-content: center;

    margin-top: 50px;
}


.category-pagination ul {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    margin: 0;

    padding: 0;

    list-style: none;
}


.category-pagination li {
    margin: 0;

    padding: 0;
}


.category-pagination a,
.category-pagination span {
    display: flex;

    align-items: center;

    justify-content: center;

    min-width: 42px;

    height: 42px;

    padding: 0 10px;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 9px;

    color: #344054;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}


.category-pagination a:hover {
    transform: translateY(-2px);

    background: #eef4ff;

    border-color: #155eef;

    color: #155eef;
}


.category-pagination .current {
    background: #155eef;

    border-color: #155eef;

    color: #ffffff;
}


.category-pagination .dots {
    background: transparent;

    border: 0;

    color: #98a2b3;
}


/* =========================================================
   24. EMPTY
========================================================= */

.category-empty {
    padding: 80px 30px;

    background: #ffffff;

    border: 1px solid #e7ecf2;

    border-radius: 18px;

    text-align: center;
}


.category-empty-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 55px;

    height: 55px;

    margin: 0 auto 18px;

    background: #eef4ff;

    border-radius: 50%;

    color: #155eef;

    font-size: 24px;

    font-weight: 800;
}


.category-empty h2 {
    margin: 0 0 10px;

    color: #03142d;

    font-size: 24px;
}


.category-empty p {
    margin: 0 0 25px;

    color: #667085;
}


.category-home-button {
    display: inline-flex;

    padding: 12px 22px;

    background: #155eef;

    border-radius: 9px;

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.category-home-button:hover {
    transform: translateY(-2px);

    color: #ffffff;

    box-shadow:
        0 8px 20px rgba(21,94,239,0.20);
}


/* =========================================================
   25. TABLET
========================================================= */

@media (max-width: 1100px) {

    .category-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


@media (max-width: 991px) {

    .category-hero {
        min-height: 250px;
    }

    .category-content {
        padding-top: 45px;
    }

}


/* =========================================================
   26. SMALL TABLET
========================================================= */

@media (max-width: 767px) {

    .category-container {
        width: 94%;
    }


    .category-hero-content {
        padding: 30px 0;
    }


    .category-title {
        font-size: 32px;
    }


    .category-description {
        font-size: 14px;

        line-height: 1.8;
    }


    .category-section-heading {
        align-items: flex-start;

        flex-direction: column;

        margin-bottom: 22px;
    }


    .category-section-heading h2 {
        font-size: 23px;
    }


    .category-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 16px;
    }


    .category-card-image {
        height: 170px;
    }


    .category-card-content {
        padding: 16px;
    }


    .category-card-content h3 {
        min-height: auto;

        font-size: 16px;
    }


    .category-card-content p {
        font-size: 12px;
    }


    .category-pagination {
        margin-top: 35px;
    }


    .category-pagination a,
    .category-pagination span {
        min-width: 38px;

        height: 38px;

        font-size: 13px;
    }

}


/* =========================================================
   27. MOBILE
========================================================= */

@media (max-width: 520px) {

    .category-page {
        padding-bottom: 60px;
    }


    .category-hero {
        min-height: 250px;
    }


    .category-breadcrumb {
        font-size: 11px;

        gap: 6px;
    }


    .category-title {
        font-size: 29px;
    }


    .category-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .category-card-image {
        height: 200px;
    }


    .category-card-content h3 {
        font-size: 18px;
    }


    .category-pagination ul {
        gap: 4px;
    }


    .category-pagination a,
    .category-pagination span {
        min-width: 36px;

        height: 36px;

        padding: 0 7px;
    }

}