/* ==============================
   Alobusiness Consultants Plugin
   Scoped styles - Prefix: ab-
================================= */

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

.ab-consultant-card {
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 28px 22px 24px;
    text-align: center;
    min-height: 520px;
    transition: all 0.25s ease;
}

.ab-consultant-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

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

.ab-consultant-image-box {
    width: 230px;
    height: 230px;
    margin: 0 auto 22px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*
اگر تصویر زرد پشت عکس مشاور را داری، آن را در رسانه وردپرس آپلود کن
و لینک آن را اینجا قرار بده.

مثال:
background-image: url('https://alobiz.ir/wp-content/uploads/2026/05/consultant-bg.png');
*/

.ab-consultant-image-box img {
    width: 155px;
    height: 155px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.ab-consultant-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 0 0 18px;
    line-height: 1.8;
}

.ab-consultant-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0 0 18px;
    line-height: 1.8;
}

.ab-consultant-desc {
    font-size: 14px;
    color: #111;
    line-height: 2;
    text-align: right;
}

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

/* ==============================
   Single Consultant Profile
================================= */

.ab-profile-page {
    direction: rtl;
    font-family: inherit;
    background: #ffffff;
    padding: 40px 20px;
    color: #000;
}

.ab-profile-layout {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 70px;
    align-items: start;
}

.ab-profile-sidebar {
    padding-top: 85px;
}

.ab-consult-box {
    border: 1px solid #d5dce5;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    background: #fff;
}

.ab-box-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 24px;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px solid #e4e7eb;
}

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

.ab-phone-button {
    margin: 20px;
    background: #005f9f;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    font-weight: bold;
}

.ab-phone-button:hover {
    color: #fff !important;
    background: #004f86;
}

.ab-guarantee-text {
    margin-top: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #d5dce5;
    line-height: 2;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

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

.ab-social-title {
    font-weight: bold;
    margin-bottom: 22px;
}

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

.ab-social-icons a {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #005f9f !important;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 13px;
}

.ab-profile-card {
    border: 1px solid #d5dce5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.ab-profile-top {
    height: 125px;
    background: #e6f7ff;
    position: relative;
}

.ab-actions {
    position: absolute;
    top: 36px;
    left: 38px;
    display: flex;
    gap: 18px;
    font-size: 26px;
    color: #005f9f;
}

.ab-profile-image-wrap {
    position: absolute;
    top: 25px;
    left: 35px;
}

.ab-profile-image {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.ab-online-dot {
    width: 16px;
    height: 16px;
    background: #2dbb00;
    border-radius: 50%;
    display: block;
    position: absolute;
    bottom: 12px;
    right: 6px;
}

.ab-profile-info {
    padding: 20px 28px 26px;
    position: relative;
    min-height: 210px;
}

.ab-profile-name-area {
    text-align: right;
}

.ab-profile-name-area h1 {
    font-size: 26px;
    margin: 10px 0 26px;
    font-weight: bold;
}

.ab-specialty {
    font-size: 18px;
    margin-bottom: 32px;
}

.ab-experience {
    text-align: center;
    line-height: 2;
    font-size: 16px;
    max-width: 760px;
    margin: 0 auto;
}

.ab-profile-stats {
    position: absolute;
    right: 28px;
    top: 18px;
    display: flex;
    gap: 24px;
    align-items: center;
}

.ab-rating {
    background: #e6f7ff;
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 14px;
}

.ab-consult-count {
    font-weight: bold;
    line-height: 1.7;
    text-align: center;
    font-size: 14px;
}

.ab-profile-location {
    position: absolute;
    top: 38px;
    right: 38%;
    font-size: 18px;
    color: #666;
}

.ab-trust-row {
    margin-top: 20px;
    border: 1px solid #d5dce5;
    border-radius: 8px;
    min-height: 120px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    background: #fff;
}

.ab-trust-item {
    text-align: center;
    font-size: 15px;
}

.ab-trust-icon {
    font-size: 38px;
    color: #005f9f;
    margin-bottom: 8px;
}

.ab-tabs {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #dff4ff;
}

.ab-tabs a {
    padding: 16px;
    text-align: center;
    text-decoration: none !important;
    color: #000 !important;
    font-weight: bold;
    border-left: 1px solid #005f9f;
}

.ab-tabs a.active {
    background: #005f9f;
    color: #fff !important;
}

.ab-content-section,
.ab-response-times {
    margin-top: 50px;
}

.ab-content-section h2,
.ab-response-times h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    font-size: 22px;
    margin-bottom: 24px;
}

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

.ab-badge {
    background: #005f9f;
    color: #fff;
    display: table;
    padding: 8px 22px;
    border-radius: 18px;
    font-weight: bold;
    margin: 0 auto 30px;
}

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

.ab-time-card {
    border: 1px solid #d5dce5;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    background: #fff;
}

.ab-day {
    background: #005f9f;
    color: #fff;
    padding: 12px;
    font-weight: bold;
}

.ab-time {
    padding: 22px 10px;
    font-weight: bold;
    font-size: 14px;
}

/* ==============================
   Responsive
================================= */

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

@media (max-width: 992px) {
    .ab-profile-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ab-profile-sidebar {
        padding-top: 0;
        order: 2;
    }

    .ab-profile-main {
        order: 1;
    }

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

    .ab-profile-location {
        position: static;
        margin: 20px 0;
    }

    .ab-profile-stats {
        position: static;
        margin-bottom: 20px;
    }

    .ab-profile-image-wrap {
        left: 25px;
    }

    .ab-profile-info {
        padding-top: 70px;
    }
}

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

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

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

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

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