/* =========================================
   PromptSena - Browse Categories Page
========================================= */

.ps-browse-categories {
    padding: 48px 0 60px;
    background: #f7f9fc;
}

/* =========================================
   Heading Section
========================================= */

.ps-browse-heading {
    text-align: center;
    margin: 0 auto 35px;
    padding: 22px 0 5px;
}

.ps-browse-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 10px;
    margin-bottom: 17px;
    border: 1px solid #ffdb70;
    border-radius: 30px;
    background: #fffdf7;
    color: #a94b08;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.ps-browse-badge span {
    font-size: 15px;
}

.ps-browse-heading h1 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -2px;
    text-align: center;
}

.ps-browse-heading p {
    max-width: 900px;
    margin: 0 auto;
    color: #52647b;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
    text-align: center;
}

/* =========================================
   Category Grid
========================================= */

.ps-category-grid {
    margin-right: -10px;
    margin-left: -10px;
}

.ps-category-item {
    display: flex;
    padding-right: 10px;
    padding-left: 10px;
}

/* =========================================
   Category Card
========================================= */

.ps-category-card {
    display: block;
    width: 100%;
    height: 100%;
    padding: 10px;
    overflow: hidden;

    color: inherit;
    text-decoration: none !important;

    background: #fff;
    border: 0;
    border-radius: 15px;

    box-shadow: 0 5px 24px rgba(25, 35, 55, .07);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.ps-category-card:hover {
    color: inherit;
    text-decoration: none !important;

    transform: translateY(-4px);

    box-shadow: 0 9px 30px rgba(25, 35, 55, .12);
}

/* =========================================
   Category Image
========================================= */

.ps-category-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 3;

    overflow: hidden;

    border-radius: 13px;
    background: #f1f1f1;
}

.ps-category-card-image img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .4s ease;
}

.ps-category-card:hover .ps-category-card-image img {
    transform: scale(1.04);
}

/* =========================================
   Category Information
========================================= */

.ps-category-card-info {
    padding: 10px;
}

/* Category Title */

.ps-category-card-info h2 {
    color: #101827;

    font-size: 16px;
    font-weight: 750;
    line-height: 1.4;

    margin: 0 0 5px;

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

/* Subtitle and Arrow */

.ps-category-card-info > span {
    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #64748b;

    font-size: 12px;
    font-weight: 400;
}

.ps-category-card-info > span i {
    color: #f97316;

    font-size: 12px;
    margin-left: auto;

    transition: transform .2s ease;
}

.ps-category-card:hover .ps-category-card-info > span i {
    transform: translateX(4px);
}

/* =========================================
   Mobile Responsive
========================================= */

@media (max-width: 767px) {

    .ps-browse-categories {
        padding: 30px 0 40px;
    }

    /* Heading */

    .ps-browse-heading {
        padding: 15px 0 5px;
        margin-bottom: 25px;
    }

    .ps-browse-badge {
        font-size: 12px;
        padding: 4px 10px;
        margin-bottom: 15px;
    }

    .ps-browse-heading h1 {
        font-size: 30px;
        letter-spacing: -1px;
    }

    .ps-browse-heading p {
        font-size: 13px;
        line-height: 1.55;
    }

    /* Grid */

    .ps-category-grid {
        margin-left: -7px;
        margin-right: -7px;
    }

    .ps-category-item {
        padding-left: 7px;
        padding-right: 7px;
        margin-bottom: 14px !important;
    }

    /* Card */

    .ps-category-card {
        padding: 10px;
        border-radius: 15px;
    }

    /* Image */

    .ps-category-card-image {
        border-radius: 10px;
        aspect-ratio: 4 / 3;
    }

    /* Information */

    .ps-category-card-info {
        padding-top: 12px;
    }

    .ps-category-card-info h2 {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .ps-category-card-info > span {
        font-size: 11px;
    }

    .ps-category-card-info > span i {
        font-size: 13px;
    }
}

/* =========================================
   Reduced Motion
========================================= */

@media (prefers-reduced-motion: reduce) {

    .ps-category-card,
    .ps-category-card-image img,
    .ps-category-card-info > span i {
        transition: none;
    }
}