/* Homepage – Shared section header */

.hp-section-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0 0.15rem;
    direction: rtl;
}

.hp-section-head__leading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.hp-section-head__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: linear-gradient(145deg, #007DC5 0%, #0096e0 100%);
    box-shadow: 0 3px 10px rgba(0, 125, 197, 0.28);
    flex-shrink: 0;
}

.hp-section-head__icon .material-icons {
    font-family: 'Material Icons' !important;
    font-size: 20px !important;
    font-weight: normal !important;
    font-style: normal !important;
    line-height: 1 !important;
    display: inline-block !important;
    direction: ltr !important;
    color: #fff !important;
    margin: 0 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    white-space: nowrap !important;
    word-wrap: normal !important;
    -webkit-font-feature-settings: 'liga' !important;
    font-feature-settings: 'liga' !important;
    -webkit-font-smoothing: antialiased;
}

.hp-section-head__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1b2636;
    line-height: 1.35;
}

.hp-section-head__line {
    flex: 1;
    height: 2px;
    min-width: 2rem;
    border-radius: 2px;
    background: linear-gradient(to left, transparent 0%, #d6eaf5 35%, #007DC5 100%);
}

/* Homepage – Categories section */

.hp-categories {
    margin-bottom: 1.5rem;
}

.hp-categories__grid {
    margin: 0 -4px;
}

.hp-categories__item {
    padding: 0 4px;
    margin-bottom: 8px;
}

.hp-cat-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100%;
    min-height: 108px;
    padding: 0.85rem 0.4rem 0.75rem !important;
    gap: 0.5rem;
    background: #fff !important;
    border: 1.5px solid #e8edf3 !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 10px rgba(0, 45, 90, 0.06) !important;
    color: #1b2636 !important;
    text-decoration: none !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    margin: 0 !important;
    line-height: 1.4 !important;
    cursor: pointer;
}

.hp-cat-card:hover,
.hp-cat-card:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 125, 197, 0.14) !important;
    border-color: #007DC5 !important;
    text-decoration: none !important;
    color: #1b2636 !important;
}

.hp-cat-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(145deg, #e7f4fb 0%, #f5fbff 100%);
    border: 2px solid #d6ecf8;
    flex-shrink: 0;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.hp-cat-card:hover .hp-cat-card__icon,
.hp-cat-card:focus .hp-cat-card__icon {
    background: linear-gradient(145deg, #cce9f8 0%, #e7f4fb 100%);
    border-color: #007DC5;
}

.hp-cat-card__icon img {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    border-radius: 0 !important;
    object-fit: contain;
    margin: 0 !important;
}

.hp-cat-card__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #1b2636 !important;
    text-align: center;
    line-height: 1.45;
    margin: 0 !important;
    width: 100%;
    min-height: 2.9em;
}

@media (min-width: 400px) {
    .hp-cat-card {
        min-height: 112px;
    }

    .hp-cat-card__name {
        font-size: 12px !important;
    }
}

@media (min-width: 576px) {
    .hp-section-head__title {
        font-size: 16px;
    }

    .hp-section-head__icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .hp-jobs-swiper .swiper-slide {
        width: 168px;
    }

    .hp-cat-card {
        min-height: 118px;
        padding: 1rem 0.5rem 0.85rem !important;
    }

    .hp-cat-card__icon {
        width: 56px;
        height: 56px;
    }

    .hp-cat-card__icon img {
        width: 34px !important;
        height: 34px !important;
        max-width: 34px !important;
        max-height: 34px !important;
    }

    .hp-cat-card__name {
        font-size: 12.5px !important;
    }
}

@media (min-width: 992px) {
    .hp-cat-card {
        min-height: 124px;
    }

    .hp-jobs-swiper .swiper-slide {
        width: 190px;
    }

    .hp-cat-card__icon {
        width: 60px;
        height: 60px;
    }

    .hp-cat-card__icon img {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
    }

    .hp-cat-card__name {
        font-size: 13px !important;
    }
}

/* Homepage – States section */

.hp-states {
    margin-bottom: 1.75rem;
}

.hp-states__grid {
    margin: 0 -4px;
}

.hp-states__item {
    padding: 0 4px;
    margin-bottom: 8px;
}

.hp-state-chip {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    width: 100%;
    min-height: 44px;
    padding: 0.5rem 0.65rem !important;
    background: #fff !important;
    border: 1.5px solid #e8edf3 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 45, 90, 0.05) !important;
    color: #1b2636 !important;
    text-decoration: none !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    margin: 0 !important;
    line-height: 1.3 !important;
    cursor: pointer;
}

.hp-state-chip:hover,
.hp-state-chip:focus {
    transform: translateY(-2px);
    background: #007DC5 !important;
    border-color: #007DC5 !important;
    box-shadow: 0 6px 18px rgba(0, 125, 197, 0.22) !important;
    text-decoration: none !important;
}

.hp-state-chip__name {
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    color: #1b2636;
    text-align: right;
    line-height: 1.35;
    transition: color 0.18s ease;
}

.hp-state-chip:hover .hp-state-chip__name,
.hp-state-chip:focus .hp-state-chip__name {
    color: #fff;
}

.hp-state-chip__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.18s ease, color 0.18s ease;
}

.hp-state-chip:hover .hp-state-chip__count,
.hp-state-chip:focus .hp-state-chip__count {
    color: #007DC5;
    background: #fff;
}

@media (min-width: 576px) {
    .hp-state-chip {
        min-height: 46px;
        padding: 0.55rem 0.75rem !important;
    }

    .hp-state-chip__name {
        font-size: 12.5px;
    }

    .hp-state-chip__count {
        min-width: 28px;
        height: 24px;
        font-size: 11px;
    }
}

@media (min-width: 992px) {
    .hp-state-chip__name {
        font-size: 13px;
    }
}

/* Homepage – Job cards & sliders */

.hp-jobs-section {
    margin-bottom: 1.5rem;
}

.hp-jobs-swiper {
    overflow: hidden;
    padding-bottom: 2.25rem;
    width: 100%;
}

.hp-jobs-swiper .swiper-wrapper {
    align-items: stretch;
}

.hp-jobs-swiper .swiper-slide {
    width: 148px;
    height: auto;
    flex-shrink: 0;
    box-sizing: border-box;
}

.hp-jobs-swiper .hp-job-card {
    width: 100%;
    max-width: 100%;
}

.hp-jobs-swiper .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    background: #e2e8f2;
    opacity: 1;
    transition: width 0.2s ease, background 0.2s ease;
}

.hp-jobs-swiper .swiper-pagination-bullet-active {
    background: #007DC5;
    width: 20px;
    border-radius: 4px;
}

.hp-job-card {
    border: 1.5px solid #e8edf3 !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(0, 45, 90, 0.07) !important;
    background: #fff;
    overflow: visible;
    height: 100%;
    margin: 0.25rem 0 !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.hp-job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 125, 197, 0.14) !important;
    border-color: #b8dff5 !important;
}

.hp-job-card .card-body {
    padding: 0.65rem 0.6rem 0.8rem !important;
}

.hp-job-card--featured {
    border-color: #e8c840 !important;
    box-shadow: 0 2px 14px rgba(232, 200, 64, 0.28) !important;
}

.hp-job-card--featured .card-body {
    background-color: #fffabe;
    border-radius: 15px;
}

.hp-job-card--featured:hover {
    border-color: #d4ad2a !important;
    box-shadow: 0 8px 24px rgba(232, 200, 64, 0.35) !important;
}

.hp-job-card__featured-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5c518, #e8a800);
    color: #5a4500;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 0.4rem;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.hp-job-card__stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.hp-job-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    line-height: 1.5;
}

.hp-job-card__badge .material-icons {
    font-size: 13px !important;
    margin: 0 !important;
}

.hp-job-card__badge--like {
    color: #00a86b;
    background: #e6f7f0;
}

.hp-job-card__badge--view {
    color: #007DC5;
    background: #e7f4fb;
}

.hp-job-card__avatar {
    width: 84px !important;
    max-width: 84px !important;
    height: 84px !important;
    margin: 0.2rem auto 0.45rem !important;
    position: relative;
}

.hp-job-card__avatar a {
    display: block;
    width: 84px;
    height: 84px;
}

.hp-job-card__avatar img {
    width: 84px !important;
    height: 84px !important;
    max-height: 84px !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: 3px solid #e7f4fb;
    box-shadow: 0 3px 10px rgba(0, 125, 197, 0.12);
}

.hp-job-card__avatar.improved-profile::before {
    top: -5px;
    z-index: 2;
    left: 60px;
}

.hp-job-card__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #1b2636 !important;
    line-height: 1.45;
    margin: 0.15rem 0 0.2rem !important;
    min-height: 2.6em;
    text-decoration: none !important;
}

.hp-job-card__name:hover {
    color: #007DC5 !important;
    text-decoration: none !important;
}

.hp-job-card__cat {
    display: block;
    font-size: 11px !important;
    color: #64748b !important;
    margin: 0 0 0.25rem;
    text-decoration: none !important;
    line-height: 1.4;
}

.hp-job-card__cat:hover {
    color: #007DC5 !important;
    text-decoration: none !important;
}

.hp-job-card__loc {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 11px !important;
    font-weight: 600;
    color: #007DC5 !important;
    background: #e7f4fb;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 0.15rem;
    text-decoration: none !important;
}

.hp-job-card__loc .material-icons {
    font-size: 12px !important;
    margin: 0 !important;
}

.hp-job-card__loc:hover {
    background: #cce9f8 !important;
    text-decoration: none !important;
    color: #006aad !important;
}

@media (min-width: 576px) {
    .hp-job-card__avatar,
    .hp-job-card__avatar a {
        width: 90px !important;
        height: 90px !important;
    }

    .hp-job-card__avatar img {
        width: 90px !important;
        height: 90px !important;
        max-height: 90px !important;
    }

    .hp-job-card__name {
        font-size: 13px !important;
    }
}

@media (min-width: 768px) {
    .hp-jobs-swiper .swiper-slide {
        width: 178px;
    }
}

@media (min-width: 1200px) {
    .hp-jobs-swiper .swiper-slide {
        width: 200px;
    }
}

/* Homepage – Stats section */

.hp-stats {
    margin-bottom: 1.75rem;
}

.hp-stats__grid {
    margin: 0 -4px;
}

.hp-stats__item {
    padding: 0 4px;
    margin-bottom: 8px;
}

.hp-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    padding: 1rem 0.5rem 0.85rem;
    background: #fff;
    border: 1.5px solid #e8edf3;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 45, 90, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hp-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 125, 197, 0.12);
}

.hp-stat-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin-bottom: 0.55rem;
}

.hp-stat-card__icon .material-icons {
    font-size: 26px !important;
    margin: 0 !important;
}

.hp-stat-card__icon--jobs {
    background: linear-gradient(145deg, #e7f4fb, #f5fbff);
    color: #007DC5;
}

.hp-stat-card__icon--jobs .material-icons {
    color: #007DC5 !important;
}

.hp-stat-card__icon--comments {
    background: linear-gradient(145deg, #e8f8f0, #f4fdf8);
    color: #00a86b;
}

.hp-stat-card__icon--comments .material-icons {
    color: #00a86b !important;
}

.hp-stat-card__icon--views {
    background: linear-gradient(145deg, #eef0ff, #f7f8ff);
    color: #5b6ee1;
}

.hp-stat-card__icon--views .material-icons {
    color: #5b6ee1 !important;
}

.hp-stat-card__icon--likes {
    background: linear-gradient(145deg, #fff3e8, #fffaf5);
    color: #e67e22;
}

.hp-stat-card__icon--likes .material-icons {
    color: #e67e22 !important;
}

.hp-stat-card__num {
    margin: 0 0 0.2rem;
    font-size: clamp(1rem, 3.8vw, 1.35rem);
    font-weight: 800;
    color: #1b2636;
    line-height: 1.2;
    direction: ltr;
    unicode-bidi: embed;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.hp-stat-card__label {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.3;
}

@media (min-width: 576px) {
    .hp-stat-card {
        min-height: 140px;
        padding: 1.1rem 0.6rem 0.95rem;
    }

    .hp-stat-card__icon {
        width: 52px;
        height: 52px;
    }

    .hp-stat-card__num {
        font-size: 1.35rem;
    }

    .hp-stat-card__label {
        font-size: 13px;
    }
}

@media (min-width: 992px) {
    .hp-stat-card {
        min-height: 148px;
    }

    .hp-stat-card__num {
        font-size: 1.45rem;
    }

    .col-lg-3 {
        flex: 0 0 auto;
        width: 20%;
    }
}

/* Homepage – Hero network banner */

.hp-hero-wrap {
    margin-bottom: 1.5rem;
}

.hp-hero__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.hp-hero {
    width: 100%;
    border-radius: 16px;
    background: linear-gradient(135deg, #45bd6d 0%, #3a52a8 55%, #324899 100%);
    overflow: hidden;
    position: relative;
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.25rem;
    direction: rtl;
    font-family: 'IRANSans', sans-serif;
    box-shadow: 0 6px 24px rgba(69, 98, 189, 0.28);
}

.hp-hero__grid-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: hpHeroDriftGrid 14s linear infinite;
}

@keyframes hpHeroDriftGrid {
    from { background-position: 0 0; }
    to { background-position: 20px 20px; }
}

.hp-hero__ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.13);
    animation: hpHeroExpand 6s ease-out infinite;
    right: -50px;
    top: 50%;
}

.hp-hero__ring:nth-child(2) { width: 100px; height: 100px; margin-top: -50px; animation-delay: 0s; }
.hp-hero__ring:nth-child(3) { width: 180px; height: 180px; margin-top: -90px; animation-delay: 1s; }
.hp-hero__ring:nth-child(4) { width: 270px; height: 270px; margin-top: -135px; animation-delay: 2s; }
.hp-hero__ring:nth-child(5) { width: 370px; height: 370px; margin-top: -185px; animation-delay: 3s; }
.hp-hero__ring:nth-child(6) { width: 480px; height: 480px; margin-top: -240px; animation-delay: 4s; }

@keyframes hpHeroExpand {
    0% { opacity: 0; transform: scale(0.65); }
    25% { opacity: 0.65; }
    100% { opacity: 0; transform: scale(1.15); }
}

.hp-hero__content {
    position: relative;
    z-index: 3;
    flex: 1;
    min-width: 0;
}

.hp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 14px;
    animation: hpHeroFadeUp 0.6s ease both;
}

.hp-hero__badge .material-icons {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.hp-hero__title {
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.4;
    animation: hpHeroFadeUp 0.6s 0.1s ease both;
}

.hp-hero__desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    max-width: 300px;
    margin: 0;
    animation: hpHeroFadeUp 0.6s 0.2s ease both;
}

.hp-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    animation: hpHeroFadeUp 0.6s 0.3s ease both;
}

.hp-hero__stat {
    background: rgba(255, 255, 255, 0.12);
    border: 0.5px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    padding: 7px 13px;
    text-align: center;
}

.hp-hero__stat-num {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
}

.hp-hero__stat-lbl {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 2px;
}

@keyframes hpHeroFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.hp-hero__vis-side {
    position: relative;
    z-index: 3;
    flex-shrink: 0;
    width: 210px;
    height: 170px;
}

.hp-hero__vis-side svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

@media (max-width: 767.98px) {
    .hp-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem 1rem 1rem;
        min-height: auto;
    }

    .hp-hero__title {
        font-size: 18px;
    }

    .hp-hero__desc {
        max-width: none;
        font-size: 12px;
    }

    .hp-hero__vis-side {
        display: none;
    }

    .hp-hero__stats {
        gap: 8px;
    }

    .hp-hero__stat {
        flex: 1;
        min-width: calc(33.333% - 8px);
        padding: 6px 8px;
    }

    .hp-hero__stat-num {
        font-size: 13px;
    }

    .hp-hero__stat-lbl {
        font-size: 10px;
    }
}

@media (min-width: 768px) {
    .hp-hero {
        padding: 2rem 2.5rem;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
    }

    .hp-hero__content {
        flex: 1;
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .hp-hero__desc {
        margin: 0;
        max-width: 300px;
    }

    .hp-hero__stats {
        justify-content: flex-start;
    }

    .hp-hero__vis-side {
        flex-shrink: 0;
        margin-left: 0;
        margin-right: auto;
        align-self: center;
    }
}
