.test-list-page {
    direction: rtl;
}

.test-list-page ul {
    list-style: disc outside;
    padding-inline-start: 1.25rem;
}

.test-list-page ol {
    list-style: decimal outside;
    padding-inline-start: 1.25rem;
}

.test-list-page li {
    display: list-item;
    list-style: unset;
}

.tl-hero {
    text-align: center;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}

.tl-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e6f7f4;
    color: #18a27b;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-family: yekan-bakh-bold;
}

.tl-hero-title {
    margin: 18px auto 12px;
    font-family: yekan-black !important;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.25;
    color: #111827;
}

.tl-hero-accent {
    color: #18a27b;
    font-size: 40px;
}

.tc-long-desc img {
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 575px) {
    .tl-hero-accent {
        font-size: 20px;
    }
    .tc-long-desc img {
        max-width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .tl-hero-accent {
        font-size: 24px;
    }
    .tc-long-desc img {
        max-width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .tl-hero-accent {
        font-size: 28px;
    }
    .tc-long-desc img {
        max-width: 75%;
    }
}

@media (min-width: 991px) and (max-width: 1199px) {
    .tc-long-desc img {
        max-width: 60%;
    }
}

@media (min-width: 1199px) and (max-width: 1399px) {
    .tc-long-desc img {
        max-width: 50%;
    }
}

@media (min-width: 1400px) {
    .tc-long-desc img {
        max-width: 40%;
    }
}

.tl-hero-lead {
    color: #6b7280;
    font-size: 15px;
    line-height: 2;
    max-width: 640px;
    margin: 0 auto 22px;
}

.tl-hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.tl-hero-btn-primary {
    display: inline-flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 8px;
    background: #18a27b;
    color: #fff;
    border-radius: 14px;
    padding: 12px 22px;
    font-size: 15px;
    font-family: yekan-bakh-bold;
    text-decoration: none;
    border: 1px solid #18a27b;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tl-hero-btn-primary:hover {
    color: #fff;
    opacity: 0.92;
    transform: translateY(-1px);
}

.tl-hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #18a27b;
    border-radius: 14px;
    padding: 12px 22px;
    font-size: 15px;
    font-family: yekan-bakh-bold;
    text-decoration: none;
    border: 1px solid #18a27b;
    transition: background 0.2s ease, color 0.2s ease;
}

.tl-hero-btn-secondary:hover {
    background: #f0fdf9;
    color: #159876;
}

.tl-hero-stat {
    border: 1px solid #eef2f0;
    border-radius: 16px;
    background: #fff;
    padding: 18px 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.tl-hero-stat-value {
    display: block;
    color: #18a27b;
    font-size: 22px;
    font-family: yekan-bakh-heavy;
    margin-bottom: 6px;
}

.tl-hero-stat-label {
    color: #9ca3af;
    font-size: 13px;
    font-family: yekan-bakh-bold;
}

#popular-tests {
    scroll-margin-top: 96px;
}

.test-list-badge {
    background: #eefcf7;
    color: #18a27b;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    display: inline-block;
}

.test-list-lead {
    color: #6b7280;
    font-size: 14px;
    line-height: 2;
}

.test-list-outline-btn {
    border: 1px solid #18a27b;
    color: #18a27b;
    background: #fff;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 14px;
}

.test-list-stats-box {
    border: 1px solid #ecf2f0;
    border-radius: 14px;
    background: #fff;
    padding: 14px;
    text-align: center;
}

.test-list-stats-box b {
    color: #18a27b;
    font-size: 18px;
}

.test-list-card {
    border: 1px solid #edf2f0;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    height: 100%;
}

.test-list-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.test-list-card p {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 10px;
}

.test-list-meta {
    color: #8b94a2;
    font-size: 12px;
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.tl-cta-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 32px 24px 26px;
    text-align: center;
    background: #fff;
    border: 1px solid #f0eaea;
    box-shadow: 0 14px 40px rgba(17, 24, 39, 0.08);
}

.tl-cta-card::before,
.tl-cta-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(0);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.tl-cta-card::before {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 92, 92, 0.22) 0%, rgba(255, 92, 92, 0) 70%);
    inset-inline-start: -40px;
    top: 40%;
    transform: translateY(-50%);
}

.tl-cta-card::after {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 165, 124, 0.18) 0%, rgba(0, 165, 124, 0) 70%);
    inset-inline-end: -30px;
    top: -60px;
}

.tl-cta-inner {
    position: relative;
    z-index: 1;
}

.tl-cta-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff0f0;
    margin-bottom: 14px;
}

.tl-cta-icon-wrap svg {
    stroke: #ff5c5c;
}

.tl-cta-title {
    font-family: yekan-bakh-heavy;
    font-size: clamp(22px, 3.2vw, 32px);
    color: #111827;
    margin: 0 0 12px;
    line-height: 1.45;
}

.tl-cta-desc {
    color: #6b7280;
    font-size: 15px;
    line-height: 2;
    max-width: 640px;
    margin: 0 auto 22px;
}

.tl-cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.tl-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 14px;
    padding: 12px 20px;
    font-size: 15px;
    font-family: yekan-bakh-bold;
    text-decoration: none;
    border: 1px solid transparent;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.tl-cta-btn:hover {
    opacity: 0.94;
    transform: translateY(-1px);
}

.tl-cta-btn-consult {
    background: #ff5c5c;
    color: #fff;
    border-color: #ff5c5c;
}

.tl-cta-btn-book {
    background: #00a57c;
    color: #fff;
    border-color: #00a57c;
}

.tl-cta-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px 28px;
    color: #4b5563;
    font-size: 13px;
    font-family: yekan-bakh-bold;
}

.tl-cta-feature {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tl-cta-feature svg {
    stroke: #18a27b;
}

.featured-tests-badge {
    background: #fff1ef;
    color: #ff6c61;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    display: inline-block;
    font-weight: 700;
}

.featured-tests-title {
    font-size: 50px;
    font-family: yekan-bakh-heavy;
    margin: 10px 0 6px;
    color: #1f2937;
}

.featured-tests-subtitle {
    color: #6b7280;
    margin-bottom: 0;
}

.featured-tests-divider {
    width: 38px;
    height: 3px;
    margin: 16px auto 0;
    background: #ff34c8;
    border-radius: 999px;
}

.featured-test-card {
    border: 1px solid #edf2f0;
    border-radius: 20px;
    background: #fff;
    padding: 16px 16px 14px;
    height: 100%;
    box-shadow: 0 2px 8px rgba(23, 33, 51, 0.03);
    transition: all 0.25s ease;
}

.featured-test-card.gradient-green {
    background: radial-gradient(circle at top left, #e7fff8 0, #ffffff 58%);
}

.featured-test-card.gradient-pink {
    background: radial-gradient(circle at top left, #fff0f8 0, #ffffff 58%);
}

.featured-test-tag {
    display: inline-block;
    border-radius: 999px;
    font-size: 11px;
    padding: 3px 10px;
    margin-bottom: 10px;
    color: #fff;
    font-family: yekan-bakh-bold;
}

.featured-test-tag.green {
    background: #18a27b;
}

.featured-test-tag.red {
    background: #ff6c61;
}

.featured-test-tag.yellow {
    background: #f9bf2c;
    color: #2f2f2f;
}

.featured-test-tag.pink {
    background: #ff4ecf;
}

.featured-test-card h3 {
    font-size: 20px !important;
    margin: 0 0 6px;
    font-family: yekan-bakh-heavy;
    color: #1f2937;
}

.featured-test-card p {
    color: #6b7280;
    line-height: 1.9;
    font-size: 14px;
    min-height: 54px;
    margin-bottom: 12px;
}

.featured-test-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 10px;
}

.featured-test-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.featured-test-start {
    width: 100%;
    border-radius: 14px;
    background: #f64d52;
    color: #fff;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 14px;
    font-family: yekan-bakh-bold;
    text-decoration: none;
}

.featured-test-start:hover {
    color: #fff;
    opacity: 0.92;
}

.featured-test-card:hover {
    border-color: #7ed7c3;
    box-shadow: 0 16px 28px rgba(24, 162, 123, 0.12);
    transform: translateY(-3px);
}

.featured-test-card:hover h3 {
    color: #08a57d;
}

.all-tests-title {
    font-size: 52px;
    font-family: yekan-bakh-heavy;
    color: #1f2937;
    margin-bottom: 4px;
}

.all-tests-subtitle {
    color: #9aa3af;
    margin-bottom: 22px;
    font-family: yekan-bakh-bold;
}

.all-test-card {
    border: 1px solid #edf2f0;
    border-radius: 20px;
    background: #fff;
    padding: 16px 16px 14px;
    min-height: 230px;
    box-shadow: 0 2px 9px rgba(23, 33, 51, 0.03);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.25s ease;
}

.all-test-card .all-test-tag {
    align-self: flex-end;
    display: inline-block;
    border-radius: 999px;
    background: #ebfbf7;
    color: #18a27b;
    font-size: 11px;
    font-family: yekan-bakh-bold;
    padding: 3px 10px;
    margin-bottom: 8px;
}

.all-test-card h3,
.all-test-card .all-test-title {
    font-size: 16px !important;
    line-height: 1.5;
    margin: 0 0 6px;
    color: #1f2937;
    font-family: yekan-bakh-heavy;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}

.all-test-card p {
    color: #6b7280;
    line-height: 1.9;
    font-size: 14px;
    margin-bottom: 10px;
    min-height: 54px;
}

.all-test-meta {
    color: #8b94a2;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.all-test-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.all-test-start {
    margin-top: auto;
    width: 100%;
    border-radius: 14px;
    background: #ecfffa;
    color: #18a27b;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 14px;
    text-decoration: none;
    font-family: yekan-bakh-bold;
    border: 1px solid #e2f7f1;
}

.all-test-start:hover {
    color: #159876;
    background: #e5fdf6;
}

.all-test-card::before {
    content: "";
    position: absolute;
    inset-inline-start: 14px;
    top: 14px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.22s ease;
    background: #18a27b;
    box-shadow: 0 0 0 2px #e6faf4 inset;
}

.all-test-card::after {
    content: "✓";
    position: absolute;
    inset-inline-start: 19px;
    top: 14px;
    color: #fff;
    font-size: 11px;
    font-family: yekan-bakh-bold;
    opacity: 0;
    transition: all 0.22s ease;
}

.all-test-card:hover {
    border-color: #87dcca;
    box-shadow: 0 16px 30px rgba(10, 155, 120, 0.14);
    transform: translateY(-3px);
}

.all-test-card:hover h3 {
    color: #08a57d;
}

.all-test-card:hover::before,
.all-test-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

.all-test-card:hover .all-test-start {
    background: #08a57d;
    border-color: #08a57d;
    color: #fff;
}

.cat-section-title {
    font-size: 32px;
    color: #1f2937;
    font-family: yekan-bakh-heavy;
}

.cat-card {
    display: block;
    border: 1px solid #e8f0ed;
    border-radius: 16px;
    background: #fff;
    padding: 20px 12px 16px;
    min-height: 150px;
    text-align: center;
    text-decoration: none;
    color: #1f2937;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cat-card:hover {
    border-color: #bfe9dc;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 14px;
    background: #eefcf7;
}

.cat-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: var(--cat-icon-filter, none);
    transition: filter 0.2s ease;
}

.cat-label {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    font-size: 14px;
    font-family: yekan-bakh-bold;
    color: #374151;
}

.cat-row {
    --cat-gap: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    margin-inline: calc(var(--cat-gap) / -2);
    justify-content: center;
}

.cat-row>* {
    flex: 0 0 50%;
    max-width: 50%;
    padding: calc(var(--cat-gap) / 2);
}

@media (min-width: 768px) {
    .cat-row>* {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (min-width: 1200px) {
    .cat-row>* {
        flex: 0 0 calc(100% / 7);
        max-width: calc(100% / 7);
    }
}

.cat-row>div:nth-child(7n + 1) .cat-icon {
    background: #fff0e2;
    --cat-icon-filter: brightness(0) saturate(100%) invert(49%) sepia(79%) saturate(1041%) hue-rotate(349deg) brightness(93%) contrast(89%);
}

.cat-row>div:nth-child(7n + 2) .cat-icon {
    background: #e0f4fa;
    --cat-icon-filter: brightness(0) saturate(100%) invert(42%) sepia(53%) saturate(975%) hue-rotate(155deg) brightness(94%) contrast(90%);
}

.cat-row>div:nth-child(7n + 3) .cat-icon {
    background: #ede8ff;
    --cat-icon-filter: brightness(0) saturate(100%) invert(36%) sepia(60%) saturate(1117%) hue-rotate(229deg) brightness(91%) contrast(91%);
}

.cat-row>div:nth-child(7n + 4) .cat-icon {
    background: #ffedf5;
    --cat-icon-filter: brightness(0) saturate(100%) invert(33%) sepia(85%) saturate(1563%) hue-rotate(304deg) brightness(93%) contrast(92%);
}

.cat-row>div:nth-child(7n + 5) .cat-icon {
    background: #fff5d0;
    --cat-icon-filter: brightness(0) saturate(100%) invert(58%) sepia(88%) saturate(669%) hue-rotate(10deg) brightness(87%) contrast(93%);
}

.cat-row>div:nth-child(7n + 6) .cat-icon {
    background: #ffeded;
    --cat-icon-filter: brightness(0) saturate(100%) invert(35%) sepia(46%) saturate(1551%) hue-rotate(335deg) brightness(95%) contrast(94%);
}

.cat-row>div:nth-child(7n + 7) .cat-icon {
    background: #e3fff4;
    --cat-icon-filter: brightness(0) saturate(100%) invert(39%) sepia(64%) saturate(734%) hue-rotate(133deg) brightness(90%) contrast(90%);
}

/* توضیحات بلند دسته‌بندی (بعد از CTA) */
.tc-category-body {
    max-width: 100%;
}

.tc-long-desc {
    color: #374151;
    font-size: 1rem;
    line-height: 1.85;
    text-align: justify;
}

.tc-long-desc p {
    margin-bottom: 0.9rem;
}

.tc-long-desc p:last-child {
    margin-bottom: 0;
}

.tc-long-desc h2,
.tc-long-desc h3,
.tc-long-desc h4 {
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    font-family: yekan-bakh-bold, yekan-bakh, Tahoma, sans-serif;
    color: #1f2937;
}

.tc-long-desc ul,
.tc-long-desc ol {
    padding-right: 1.25rem;
    margin-bottom: 0.75rem;
}