/* Category pages – breadcrumb, hero, layout */

.cat-page {
    padding-bottom: 2rem;
}

/* Breadcrumb */
.cat-breadcrumb {
    margin: 0.5rem 0 0.75rem;
    padding: 0.65rem 0.85rem;
}

.cat-breadcrumb__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.cat-breadcrumb__item {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}

.cat-breadcrumb__item + .cat-breadcrumb__item::before {
    content: '/';
    margin: 0 0.35rem;
    color: #cbd5e1;
    font-weight: 400;
}

.cat-breadcrumb__link {
    color: #007DC5 !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.cat-breadcrumb__link:hover {
    color: #006aad !important;
    text-decoration: none !important;
}

.cat-breadcrumb__current {
    color: #1b2636;
    font-weight: 600;
}

/* Page hero */
.cat-page__hero {
    padding: 0.35rem 0 1rem;
    margin-bottom: 1rem;
    text-align: center;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.cat-page__title {
    margin: 0 0 0.4rem;
    font-size: 17px;
    font-weight: 800;
    color: #1b2636;
    line-height: 1.5;
}

.cat-page__subtitle {
    margin: 0;
    font-size: 12.5px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.55;
}

.cat-page__count {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    background: transparent;
    border-radius: 0;
}

@media (min-width: 576px) {
    .cat-breadcrumb__item {
        font-size: 13px;
    }

    .cat-page__title {
        font-size: 19px;
    }

    .cat-page__subtitle {
        font-size: 13.5px;
    }
}

@media (min-width: 992px) {
    .cat-page__hero {
        padding: 0.5rem 0 1.1rem;
    }

    .cat-page__title {
        font-size: 21px;
    }
}

/* Jobs grid on category page */

.hp-jobs-grid {
    margin: 0 -4px 0.5rem;
}

.hp-jobs-grid__item {
    padding: 0 4px;
    margin-bottom: 8px;
}

.hp-jobs-grid .hp-job-card {
    height: 100%;
}

/* Pagination */
.cat-pagination {
    display: flex;
    justify-content: center;
    margin: 1.25rem 0 1.5rem;
}

.cat-pagination .pagination {
    margin: 0;
    gap: 4px;
}

.cat-pagination .page-item .page-link {
    border: 1.5px solid #e8edf3;
    border-radius: 10px !important;
    color: #007DC5;
    font-size: 13px;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    margin: 0 2px;
    box-shadow: none;
}

.cat-pagination .page-item.active .page-link {
    background: #007DC5;
    border-color: #007DC5;
    color: #fff;
}

.cat-pagination .page-item.disabled .page-link {
    color: #94a3b8;
    background: #f8fafc;
}

/* SEO text box */
.cat-page__seo {
    background: #fff;
    border: 1.5px solid #e8edf3;
    border-radius: 14px;
    padding: 1rem 1rem 0.9rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 45, 90, 0.05);
}

.cat-page__seo p {
    margin: 0;
    font-size: 13px;
    line-height: 1.75;
    color: #64748b;
    text-align: justify;
}

.cat-page__seo strong {
    color: #1b2636;
    font-weight: 700;
}

.cat-page__seo a {
    color: #007DC5;
    font-weight: 600;
    text-decoration: none;
}

.cat-page__seo a:hover {
    text-decoration: underline;
}

/* City filter panel */
.cat-filter__panel {
    padding: 0.75rem 0.5rem 1rem;
}

.cat-filter__head {
    margin-bottom: 0.75rem;
}

.cat-filter__cities {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cat-filter__city {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.55rem 0.75rem;
    font-size: 12.5px;
    font-weight: 600;
    color: #1b2636 !important;
    background: #f0f4f9;
    border: 1.5px solid #e8edf3;
    border-radius: 10px;
    text-decoration: none !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cat-filter__city-name {
    flex: 1;
    text-align: right;
    line-height: 1.35;
}

.cat-filter__city-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 22px;
    padding: 0 6px;
    font-size: 10.5px;
    font-weight: 700;
    color: #007DC5;
    background: #e7f4fb;
    border-radius: 20px;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.cat-filter__city:hover {
    background: #e7f4fb;
    border-color: #007DC5;
    color: #007DC5 !important;
    text-decoration: none !important;
}

.cat-filter__city:hover .cat-filter__city-count {
    background: #fff;
}

/* State page – city chips & filter */

.state-page__cities {
    margin-bottom: 1.25rem;
}

.state-page__city-chip {
    justify-content: center !important;
}

.state-page__city-chip .hp-state-chip__name {
    text-align: center;
    flex: unset;
}

.state-filter__form .form-control {
    border-radius: 10px;
    border-color: #e8edf3;
    font-size: 13px;
}

.state-filter__form .form-control:focus {
    border-color: #007DC5;
    box-shadow: 0 0 0 3px rgba(0, 125, 197, 0.12);
}

.state-filter__form label {
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.state-filter__submit {
    border-radius: 10px;
    font-weight: 700;
    padding: 0.65rem;
}

.state-filter__panel {
    padding-bottom: 1.25rem;
}

.state-page__categories {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

/* All categories page */

.all-categories__group {
    margin-bottom: 1.5rem;
}

.all-categories__group:last-child {
    margin-bottom: 2rem;
}

.all-categories__parent-link {
    color: #1b2636 !important;
    text-decoration: none !important;
}

.all-categories__parent-link:hover {
    color: #007DC5 !important;
    text-decoration: none !important;
}

/* Essential phones page */

.essential-page__notice {
    margin-bottom: 1rem;
    padding: 0.75rem 0.85rem;
    font-size: 13px;
    line-height: 1.6;
    color: #1b2636;
    text-align: center;
    background: #eef7fc;
    border: 1px solid #cfe8f6;
    border-radius: 12px;
}

.essential-page__grid-wrap {
    padding-bottom: 2rem;
}

.essential-page__grid {
    margin: 0 -4px;
}

.essential-page__item {
    padding: 0 4px;
    margin-bottom: 8px;
}

.essential-phone-card {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 148px;
    padding: 0.85rem 0.55rem 0.75rem !important;
    background: #fff !important;
    border: 1.5px solid #e8edf3 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    color: #1b2636 !important;
    text-decoration: none !important;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.essential-phone-card:hover,
.essential-phone-card:focus {
    background: #f8fbff !important;
    border-color: #007DC5 !important;
    transform: translateY(-2px);
    text-decoration: none !important;
}

.essential-phone-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 0.55rem;
}

.essential-phone-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.essential-phone-card__name {
    display: block;
    width: 100%;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    color: #1b2636;
    text-align: center;
    margin-bottom: 0.35rem;
}

.essential-phone-card:hover .essential-phone-card__name,
.essential-phone-card:focus .essential-phone-card__name {
    color: #007DC5;
}

.essential-phone-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 0.2rem 0.65rem;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #007DC5;
    background: #e7f4fb;
    border-radius: 20px;
    direction: ltr;
}

.essential-phone-card:hover .essential-phone-card__number,
.essential-phone-card:focus .essential-phone-card__number {
    color: #fff;
    background: #007DC5;
}

@media (min-width: 576px) {
    .essential-phone-card {
        min-height: 158px;
        padding: 0.95rem 0.65rem 0.8rem !important;
    }

    .essential-phone-card__icon {
        width: 62px;
        height: 62px;
    }

    .essential-phone-card__name {
        font-size: 12.5px;
    }

    .essential-phone-card__number {
        font-size: 16px;
    }
}

/* Before login page */

.before-login-page__container {
    max-width: 720px;
    padding-bottom: 2rem;
}

.before-login-page__intro {
    margin-bottom: 1.25rem;
    padding: 0.75rem 0.85rem;
    font-size: 13px;
    line-height: 1.7;
    color: #475569;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e8edf3;
    border-radius: 12px;
}

.before-login-page__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.bl-action-card {
    padding: 1rem 1rem 1.1rem;
    background: #fff;
    border: 1.5px solid #e8edf3;
    border-radius: 16px;
}

.bl-action-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.bl-action-card__badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
}

.bl-action-card__badge--register {
    color: #0f766e;
    background: #ecfdf5;
}

.bl-action-card__badge--login {
    color: #007DC5;
    background: #e7f4fb;
}

.bl-action-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f0f4f9;
    color: #007DC5;
}

.bl-action-card__icon .material-icons {
    font-size: 22px;
}

.bl-action-card--register .bl-action-card__icon {
    color: #0f766e;
    background: #ecfdf5;
}

.bl-action-card__title {
    margin: 0 0 0.45rem;
    font-size: 16px;
    font-weight: 800;
    color: #1b2636;
    line-height: 1.5;
}

.bl-action-card__text {
    margin: 0 0 1rem;
    font-size: 13px;
    line-height: 1.75;
    color: #64748b;
    text-align: justify;
}

.bl-action-card__text a {
    color: #007DC5;
    font-weight: 600;
    text-decoration: none;
}

.bl-action-card__text a:hover {
    text-decoration: underline;
}

.bl-action-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px !important;
}

.before-login-page__help {
    padding: 0.85rem 0.9rem;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}

.before-login-page__help p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: #64748b;
    text-align: center;
}

@media (min-width: 768px) {
    .before-login-page__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .bl-action-card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .bl-action-card__btn {
        margin-top: auto;
    }
}
