:root {
    --ab-blue: #21BBDE;
    --ab-blue-dark: #1197B6;
    --ab-blue-soft: #E9F9FC;
    --ab-yellow: #FFD601;
    --ab-yellow-soft: #FFF7B8;
    --ab-text: #111827;
    --ab-muted: #6B7280;
    --ab-border: #DBE3EA;
    --ab-white: #FFFFFF;
    --ab-success: #32C412;
    --ab-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

/* =====================================
   لیست مشاوران
===================================== */

.ab-consultants-wrapper {
    direction: rtl;
    max-width: 1280px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    font-family: inherit;
}

.ab-consultant-card {
    background: var(--ab-white);
    border: 1px solid var(--ab-border);
    border-radius: 18px;
    padding: 28px 22px 24px;
    text-align: center;
    min-height: 520px;
    transition: all 0.25s ease;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
}

.ab-consultant-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ab-shadow);
    border-color: rgba(33, 187, 222, 0.45);
}

.ab-consultant-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

/* بک‌گراند زرد پشت عکس */
.ab-consultant-image-box {
    width: 220px;
    height: 220px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center,
        #ffffff 0%,
        #ffffff 50%,
        var(--ab-yellow-soft) 51%,
        var(--ab-yellow) 72%,
        transparent 73%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* خود عکس کاملاً گرد */
.ab-consultant-image-circle {
    width: 154px;
    height: 154px;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f4f6;
    box-shadow: 0 8px 20px rgba(0,0,0,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ab-consultant-image-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.ab-consultant-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--ab-text);
    margin: 0 0 12px;
    line-height: 1.7;
}

.ab-consultant-card h4 {
    font-size: 18px;
    font-weight: 800;
    color: var(--ab-blue-dark);
    margin: 0 0 16px;
    line-height: 1.7;
}

.ab-consultant-desc {
    font-size: 14px;
    color: var(--ab-text);
    line-height: 2.05;
    text-align: right;
    white-space: pre-line;
}

.ab-no-consultants {
    text-align: center;
    font-size: 18px;
    margin: 40px 0;
}

/* =====================================
   صفحه پروفایل
===================================== */

.ab-profile-page {
    direction: rtl;
    font-family: inherit;
    color: var(--ab-text);
    background: var(--ab-white);
    padding: 38px 20px;
}

.ab-profile-layout {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    grid-template-areas: "sidebar main";
    gap: 34px;
    align-items: start;
}

.ab-profile-sidebar {
    grid-area: sidebar;
    min-width: 0;
}

.ab-profile-main {
    grid-area: main;
    min-width: 0;
}

/* =====================================
   کارت پروفایل
===================================== */

.ab-profile-card {
    border: 1px solid var(--ab-border);
    border-radius: 18px;
    overflow: hidden;
    background: var(--ab-white);
}

.ab-profile-top {
    height: 138px;
    background: linear-gradient(90deg, rgba(255,214,1,0.16), rgba(33,187,222,0.14));
    position: relative;
}

.ab-actions {
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    gap: 14px;
    font-size: 22px;
    color: var(--ab-blue-dark);
}

.ab-profile-image-wrap {
    position: absolute;
    top: 24px;
    right: 36px;
}

.ab-profile-image {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    border: 4px solid var(--ab-white);
}

.ab-online-dot {
    width: 18px;
    height: 18px;
    background: var(--ab-success);
    border: 3px solid var(--ab-white);
    border-radius: 50%;
    display: block;
    position: absolute;
    bottom: 8px;
    left: 2px;
}

.ab-profile-info {
    padding: 34px 28px 28px;
}

.ab-profile-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.ab-profile-main-info {
    flex: 1 1 520px;
    min-width: 280px;
}

.ab-profile-stats-box {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ab-profile-name-wrap h1 {
    font-size: 34px;
    line-height: 1.5;
    font-weight: 900;
    margin: 0 0 8px;
    color: var(--ab-text);
}

.ab-specialty {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.7;
    color: var(--ab-text);
    margin-bottom: 16px;
}

/* توضیحات خلاصه در صفحه پروفایل */
.ab-profile-short-desc {
    margin-top: 8px;
    padding: 18px 20px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(33,187,222,0.08), rgba(255,214,1,0.13));
    border: 1px solid rgba(33,187,222,0.22);
    color: var(--ab-text);
    font-size: 16px;
    line-height: 2.1;
    white-space: pre-line;
}

.ab-rating {
    background: rgba(33,187,222,0.12);
    color: var(--ab-blue-dark);
    padding: 8px 14px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap;
}

.ab-consult-count {
    font-size: 16px;
    font-weight: 900;
    color: var(--ab-text);
    white-space: nowrap;
}

.ab-profile-location {
    font-size: 17px;
    color: var(--ab-muted);
    white-space: nowrap;
}

.ab-experience {
    margin: 24px 0 14px;
    line-height: 2.1;
    font-size: 17px;
    color: var(--ab-text);
}

.ab-start-year {
    font-size: 17px;
    color: #555;
    font-weight: 800;
}

/* =====================================
   ردیف اعتماد
===================================== */

.ab-trust-row {
    margin-top: 20px;
    border: 1px solid var(--ab-border);
    border-radius: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: var(--ab-white);
    overflow: hidden;
}

.ab-trust-item {
    text-align: center;
    padding: 24px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    min-height: 128px;
    font-size: 16px;
}

.ab-trust-item:not(:last-child) {
    border-left: 1px solid var(--ab-border);
}

.ab-trust-icon {
    font-size: 36px;
    line-height: 1;
    color: var(--ab-blue-dark);
}

/* =====================================
   تب‌ها
===================================== */

.ab-tabs {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--ab-border);
    border-bottom: none;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.ab-tab-btn {
    appearance: none;
    border: none;
    outline: none;
    background: rgba(33,187,222,0.10);
    color: var(--ab-text);
    font-size: 18px;
    font-weight: 800;
    padding: 18px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 1px solid rgba(33,187,222,0.18);
}

.ab-tab-btn:last-child {
    border-left: none;
}

.ab-tab-btn:hover {
    background: rgba(255,214,1,0.20);
}

.ab-tab-btn.active {
    background: var(--ab-blue);
    color: var(--ab-white);
}

.ab-tab-content-wrapper {
    border: 1px solid var(--ab-border);
    border-top: none;
    border-radius: 0 0 18px 18px;
    background: var(--ab-white);
    min-height: 220px;
}

.ab-tab-pane {
    display: none;
    padding: 30px 28px;
}

.ab-tab-pane.active {
    display: block;
}

/* =====================================
   محتوا
===================================== */

.ab-content-section h2,
.ab-response-times h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    margin: 0 0 20px;
    color: var(--ab-text);
}

.ab-box-title span,
.ab-content-section h2 span,
.ab-response-times h2 span {
    width: 12px;
    height: 12px;
    background: var(--ab-yellow);
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 12px;
}

.ab-content-text {
    line-height: 2.2;
    font-size: 16px;
    color: var(--ab-text);
}

.ab-content-text p:last-child {
    margin-bottom: 0;
}

/* =====================================
   زمان پاسخگویی
===================================== */

.ab-response-times {
    margin-top: 40px;
}

.ab-badge {
    display: table;
    margin: 0 auto 28px;
    background: var(--ab-blue);
    color: var(--ab-white);
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 900;
}

.ab-time-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.ab-time-card {
    border: 1px solid var(--ab-border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--ab-white);
    text-align: center;
}

.ab-day {
    background: var(--ab-blue);
    color: var(--ab-white);
    font-size: 17px;
    font-weight: 900;
    padding: 14px 10px;
}

.ab-time {
    padding: 22px 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ab-text);
}

/* =====================================
   سایدبار
===================================== */

.ab-consult-box {
    border: 1px solid var(--ab-border);
    border-radius: 18px;
    overflow: hidden;
    background: var(--ab-white);
}

.ab-box-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px;
    font-size: 18px;
    font-weight: 900;
    color: var(--ab-text);
    border-bottom: 1px solid var(--ab-border);
}


.ab-phone-button {
    margin: 22px;
    min-height: 68px;
    border-radius: 10px;
    background: var(--ab-blue);
    color: var(--ab-white) !important;

text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    font-weight: 900;
    transition: 0.25s ease;
    cursor: pointer;
}

.ab-phone-button:hover {
    background: var(--ab-blue-dark);
}

    

.ab-phone-button:hover {
    background: var(--ab-blue-dark);
}

.ab-guarantee-text {
    margin-top: 26px;
    padding: 6px 0 24px;
    border-bottom: 1px solid var(--ab-border);
    line-height: 2;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    color: var(--ab-text);
}

.ab-social-section {
    margin-top: 24px;
    text-align: center;
}

.ab-social-title {
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--ab-text);
}

.ab-social-icons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.ab-social-icons a {
    min-width: 72px;
    height: 58px;
    padding: 0 12px;
    background: var(--ab-white);
    border: 1px solid #eef1f5;
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(0,0,0,0.06);
    color: var(--ab-blue-dark) !important;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.ab-social-icons a:hover {
    transform: translateY(-2px);
    border-color: var(--ab-blue);
    background: rgba(33,187,222,0.06);
}

/* =====================================
   ریسپانسیو
===================================== */

@media (max-width: 1200px) {
    .ab-consultants-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .ab-profile-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "sidebar";
    }

    .ab-tabs,
    .ab-trust-row,
    .ab-time-grid {
        grid-template-columns: 1fr;
    }

    .ab-profile-heading-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .ab-profile-stats-box {
        width: 100%;
    }

    .ab-profile-name-wrap h1 {
        font-size: 28px;
    }

    .ab-specialty {
        font-size: 20px;
    }
}

@media (max-width: 900px) {
    .ab-consultants-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .ab-consultants-wrapper {
        grid-template-columns: 1fr;
    }

    .ab-consultant-card {
        min-height: auto;
    }

    .ab-consultant-image-box {
        width: 195px;
        height: 195px;
    }

    .ab-consultant-image-circle {
        width: 140px;
        height: 140px;
    }

    .ab-profile-page {
        padding: 24px 12px;
    }

    .ab-profile-image-wrap {
        right: 20px;
    }

    .ab-profile-image {
        width: 110px;
        height: 110px;
    }

    .ab-profile-info {
        padding: 26px 18px 20px;
    }

    .ab-tab-btn {
        font-size: 16px;
        padding: 16px 10px;
    }

    .ab-tab-pane {
        padding: 20px 16px;
    }
}