.services-index-page {
    --service-primary: #ff375f;
    --service-heading: #062b54;
    --service-text: #5f6875;
    --service-border: #e8edf3;
    --service-soft: #f7f9fc;
}

.services-index-page .section-title p {
    max-width: 660px;
    margin: 14px auto 0;
}

.services-filter-panel {
    padding: 26px;
    border: 1px solid var(--service-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(6, 43, 84, 0.07);
}

.services-filter-panel .form-label {
    display: block;
    margin-bottom: 9px;
    color: var(--service-heading);
    font-weight: 700;
}

.services-search-box {
    position: relative;
}

.services-search-box input,
.services-filter-panel .form-select {
    width: 100%;
    min-height: 54px;
    padding: 11px 46px 11px 16px;
    border: 1px solid var(--service-border);
    border-radius: 10px;
    background-color: var(--service-soft);
    color: var(--service-heading);
    outline: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.services-filter-panel .form-select {
    padding-right: 16px;
}

.services-search-box input:focus,
.services-filter-panel .form-select:focus {
    border-color: var(--service-primary);
    box-shadow: 0 0 0 4px rgba(255, 55, 95, 0.11);
}

.services-search-box > i {
    position: absolute;
    top: 50%;
    right: 17px;
    color: var(--service-primary);
    font-size: 20px;
    transform: translateY(-50%);
    pointer-events: none;
}

.services-filter-submit {
    min-height: 54px;
    border: 0;
}

.services-active-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--service-border);
    color: var(--service-text);
}

.services-active-filter a {
    color: var(--service-primary);
    font-weight: 700;
}

.services-category-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.services-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--service-border);
    border-radius: 999px;
    background: #fff;
    color: var(--service-heading);
    font-weight: 700;
    transition: 0.2s ease;
}

.services-category-pill span {
    display: inline-grid;
    min-width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 50%;
    background: var(--service-soft);
    color: var(--service-text);
    font-size: 12px;
}

.services-category-pill:hover,
.services-category-pill.active {
    border-color: var(--service-primary);
    background: var(--service-primary);
    color: #fff;
    transform: translateY(-2px);
}

.services-category-pill:hover span,
.services-category-pill.active span {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.services-index-card {
    overflow: hidden;
    border: 1px solid var(--service-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(6, 43, 84, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.services-index-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 45px rgba(6, 43, 84, 0.13);
}

.services-index-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--service-soft);
}

.services-index-card-image > a {
    display: block;
    width: 100%;
    height: 100%;
}

.services-index-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.services-index-card:hover .services-index-card-image img {
    transform: scale(1.055);
}

.services-image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: var(--service-primary);
    font-size: 64px;
}

.services-featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--service-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(255, 55, 95, 0.25);
}

.services-index-card-body {
    display: flex;
    min-height: 310px;
    flex-direction: column;
    padding: 24px;
}

.services-card-category {
    align-self: flex-start;
    margin-bottom: 11px;
    color: var(--service-primary);
    font-size: 13px;
    font-weight: 700;
}

.services-index-card-body h3 {
    margin: 0 0 12px;
    font-size: 23px;
    line-height: 1.55;
}

.services-index-card-body h3 a {
    color: var(--service-heading);
}

.services-index-card-body h3 a:hover {
    color: var(--service-primary);
}

.services-index-card-body > p {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 19px;
    color: var(--service-text);
    line-height: 1.9;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.services-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 14px;
    margin-top: auto;
    margin-bottom: 20px;
    padding-top: 17px;
    border-top: 1px solid var(--service-border);
}

.services-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--service-text);
    font-size: 13px;
}

.services-card-meta i {
    color: var(--service-primary);
    font-size: 17px;
}

.services-card-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 7px;
    color: var(--service-heading);
    font-weight: 800;
}

.services-card-link:hover {
    color: var(--service-primary);
}

.services-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.services-page-link,
.services-page-ellipsis {
    display: inline-grid;
    min-width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--service-border);
    border-radius: 10px;
    background: #fff;
    color: var(--service-heading);
    font-weight: 700;
}

.services-page-link:hover,
.services-page-link.active {
    border-color: var(--service-primary);
    background: var(--service-primary);
    color: #fff;
}

.services-page-ellipsis {
    border-color: transparent;
    background: transparent;
}

.services-empty-state {
    max-width: 660px;
    margin: 0 auto;
    padding: 56px 30px;
    border: 1px dashed #ccd5df;
    border-radius: 18px;
    background: var(--service-soft);
    text-align: center;
}

.services-empty-icon {
    display: inline-grid;
    width: 78px;
    height: 78px;
    margin-bottom: 20px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--service-primary);
    font-size: 36px;
    box-shadow: 0 10px 25px rgba(6, 43, 84, 0.08);
}

.services-empty-state h3 {
    margin-bottom: 10px;
    color: var(--service-heading);
}

.services-empty-state p {
    margin-bottom: 22px;
    color: var(--service-text);
}

@media (max-width: 767px) {
    .services-filter-panel {
        padding: 20px;
    }

    .services-active-filter {
        align-items: flex-start;
        flex-direction: column;
    }

    .services-category-nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .services-category-pill {
        flex: 0 0 auto;
    }

    .services-index-card-body {
        min-height: auto;
    }
}

/* هماهنگی ساده با حالت تیره قالب */
.theme-dark .services-filter-panel,
.theme-dark .services-index-card,
.theme-dark .services-category-pill,
.theme-dark .services-page-link {
    border-color: rgba(255, 255, 255, 0.1);
    background: #12263a;
}

.theme-dark .services-search-box input,
.theme-dark .services-filter-panel .form-select,
.theme-dark .services-empty-state {
    border-color: rgba(255, 255, 255, 0.1);
    background: #0d2032;
    color: #fff;
}

.theme-dark .services-index-card-body h3 a,
.theme-dark .services-filter-panel .form-label,
.theme-dark .services-card-link,
.theme-dark .services-category-pill,
.theme-dark .services-page-link,
.theme-dark .services-empty-state h3 {
    color: #fff;
}
