/* ===================================
   DOCTOR DETAIL PAGE
=================================== */

.doctor-detail {
    padding: 60px 0 100px;
    background:
        radial-gradient(circle at top right, rgba(14, 108, 189, 0.08), transparent 22%),
        radial-gradient(circle at bottom left, rgba(11, 58, 90, 0.05), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #f5f7fb 100%);
}

/* ===================================
   FIX: CENTER PAGE CONTENT ONLY
   بدون تغییر ظاهر، فقط وسط‌چین شدن کانتینر
=================================== */

.doctor-detail .container {
    width: min(100% - 40px, 1320px);
    margin-right: auto;
    margin-left: auto;
}

/* ===================================
   PROFILE
=================================== */

.doctor-profile {
    position: relative;
    background: #ffffff;
    border-radius: 36px;
    padding: 42px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.14);
    overflow: hidden;
}

.doctor-profile::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(15, 108, 189, 0.18),
        transparent
    );
}

.doctor-top {
    display: flex;
    align-items: center;
    gap: 40px;
}

.doctor-photo-shell {
    position: relative;
    width: 236px;
    height: 236px;
    flex-shrink: 0;
    padding: 8px;
    border-radius: 40px;
    background: linear-gradient(
        135deg,
        rgba(15, 108, 189, 0.18),
        rgba(11, 58, 90, 0.08)
    );
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.doctor-photo-shell::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    pointer-events: none;
}

.doctor-photo {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef5fb, #e2edf8);
    box-shadow: inset 0 0 0 1px rgba(11, 58, 90, 0.06);
}

.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doctor-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-placeholder i {
    font-size: 80px;
    color: #0b3a5a;
    opacity: 0.72;
}


.doctor-main {
    flex: 1;
}

.doctor-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.specialty {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #eef7ff, #dceeff);
    color: #0b3a5a;
    font-weight: 800;
    border: 1px solid rgba(15, 108, 189, 0.12);
    box-shadow: 0 8px 20px rgba(15, 108, 189, 0.08);
}

.specialty-icon {
    font-size: 16px;
    color: #0f6cbd;
    filter: drop-shadow(0 2px 4px rgba(15, 108, 189, 0.2));
    flex-shrink: 0;
}


.degree-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    color: #334155;
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.degree-badge__icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0b3a5a, #0f6cbd);
    box-shadow: 0 8px 18px rgba(15, 108, 189, 0.18);
}

.degree-badge__icon i {
    font-size: 17px;
    color: #ffffff;
}


.degree-badge__text {
    font-weight: 800;
    line-height: 1.4;
    color: #475569;
}

.doctor-main h1 {
    margin: 0;
    font-size: 38px;
    font-weight: 900;
    line-height: 1.45;
    color: #0f172a;
}

/* ===================================
   INFORMATION CARDS
=================================== */

.doctor-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 45px;
}

.info-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(203, 213, 225, 0.55);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.info-card::before {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 5px;
    border-radius: 24px;
    background: linear-gradient(180deg, #0f6cbd, #0b3a5a);
    opacity: 0.95;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.09);
    border-color: rgba(15, 108, 189, 0.22);
}

.info-icon {
    width: 62px;
    height: 62px;
    min-width: 62px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0b3a5a, #0f6cbd);
    box-shadow: 0 12px 24px rgba(15, 108, 189, 0.2);
}

.info-icon i {
    font-size: 27px;
    color: #ffffff;
}


.info-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f6cbd;
}

.info-card strong {
    display: block;
    font-size: 1.2rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.6;
}

.info-card small {
    color: #64748b;
    line-height: 1.8;
    font-size: 0.92rem;
}

.info-card--experience {
    background:
        radial-gradient(circle at top left, rgba(15, 108, 189, 0.08), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.info-card--hours {
    background:
        radial-gradient(circle at top left, rgba(11, 58, 90, 0.08), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

/* ===================================
   DOCTOR BIO
=================================== */

.doctor-section {
    margin-top: 50px;
    padding: 32px;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border: 1px solid rgba(203, 213, 225, 0.45);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.doctor-section h2 {
    margin: 0 0 18px;
    font-size: 25px;
    font-weight: 900;
    color: #0f172a;
}

.doctor-section p {
    margin: 0;
    line-height: 2.2;
    color: #475569;
    font-size: 1rem;
}

/* ===================================
   APPOINTMENT BOX
=================================== */

.appointment-box {
    margin-top: 50px;
    padding: 36px;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 24%),
        linear-gradient(135deg, #0b3a5a, #0f6cbd);
    box-shadow: 0 18px 38px rgba(11, 58, 90, 0.22);
    position: relative;
    overflow: hidden;
}

.appointment-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 20%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 80%
    );
    transform: translateX(-100%);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.appointment-box:hover::before {
    transform: translateX(100%);
}

.appointment-box__content {
    position: relative;
    z-index: 1;
}

.appointment-box__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.82rem;
    font-weight: 800;
}

.appointment-box h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 900;
}

.appointment-box p {
    margin: 0;
    color: #ffffff !important;
    line-height: 2;
    opacity: 0.95;
}

.appointment-box a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    min-width: 220px;
    padding: 15px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    background: #ffffff;
    color: #0b3a5a;
    box-shadow: 0 14px 28px rgba(255, 255, 255, 0.16);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.appointment-box a svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s ease;
}

.appointment-box a:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(255, 255, 255, 0.22);
    background: #f8fbff;
}

.appointment-box a:hover svg {
    transform: translateX(-3px);
}

/* ===================================
   RESPONSIVE
=================================== */

@media (max-width: 991.98px) {
    .doctor-main h1 {
        font-size: 33px;
    }

    .doctor-photo-shell {
        width: 210px;
        height: 210px;
    }
}

@media (max-width: 768px) {
    .doctor-detail {
        padding: 36px 0 70px;
    }

    .doctor-detail .container {
        width: min(100% - 32px, 1320px);
    }

    .doctor-profile {
        padding: 24px;
        border-radius: 28px;
    }

    /* بخش تصویر و اطلاعات اصلی پزشک */
    .doctor-top {
        flex-direction: column;
        text-align: center;
        gap: 22px;
    }

    .doctor-photo-shell {
        width: 172px;
        height: 172px;
        padding: 6px;
        border-radius: 32px;
    }

    .doctor-photo-shell::after {
        inset: 10px;
        border-radius: 24px;
    }

    .doctor-photo {
        border-radius: 24px;
    }

    .doctor-placeholder i {
        font-size: 62px;
    }

    .doctor-main {
        width: 100%;
        min-width: 0;
    }

    .doctor-meta {
        justify-content: center;
        gap: 10px;
        margin-bottom: 13px;
    }

    .doctor-main h1 {
        font-size: clamp(24px, 6vw, 29px);
        line-height: 1.6;
        overflow-wrap: anywhere;
    }

    /* کارت‌های سابقه و ساعات حضور */
    .doctor-info-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 32px;
    }

    .info-card {
        min-width: 0;
        padding: 19px 23px 19px 19px;
        border-radius: 20px;
        align-items: flex-start;
        gap: 14px;
    }

    .info-card::before {
        border-radius: 20px;
    }

    .info-icon {
        width: 54px;
        height: 54px;
        min-width: 54px;
        border-radius: 16px;
    }

    .info-icon i {
        font-size: 23px;
    }

    .info-content {
        min-width: 0;
        flex: 1;
        gap: 3px;
        padding-top: 1px;
    }

    .info-label {
        font-size: 0.84rem;
        line-height: 1.6;
    }

    .info-card strong {
        font-size: 1.08rem;
        line-height: 1.7;
        overflow-wrap: anywhere;
    }

    .info-card small {
        font-size: 0.84rem;
        line-height: 1.9;
        overflow-wrap: anywhere;
    }

    /* درباره پزشک */
    .doctor-section {
        margin-top: 34px;
        padding: 23px 20px;
        border-radius: 22px;
    }

    .doctor-section h2 {
        margin-bottom: 14px;
        font-size: 22px;
    }

    .doctor-section p {
        font-size: 0.93rem;
        line-height: 2.1;
        overflow-wrap: anywhere;
    }

    /* بخش نوبت‌دهی */
    .appointment-box {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        margin-top: 34px;
        padding: 27px 20px;
        border-radius: 24px;
    }

    .appointment-box h3 {
        margin-bottom: 8px;
        font-size: 1.25rem;
    }

    .appointment-box p {
        font-size: 0.91rem;
        line-height: 2;
    }

    .appointment-box a {
        width: 100%;
        max-width: 300px;
        min-width: 0;
        padding: 14px 20px;
        font-size: 0.94rem;
    }
}

@media (max-width: 479.98px) {
    .doctor-detail {
        padding: 26px 0 55px;
    }

    .doctor-detail .container {
        width: min(100% - 24px, 1320px);
    }

    .doctor-profile {
        padding: 18px 15px;
        border-radius: 23px;
    }

    .doctor-photo-shell {
        width: 145px;
        height: 145px;
        border-radius: 28px;
    }

    .doctor-photo-shell::after {
        inset: 9px;
        border-radius: 20px;
    }

    .doctor-photo {
        border-radius: 20px;
    }

    .doctor-placeholder i {
        font-size: 53px;
    }

    /* تخصص و مدرک در یک ستون منظم */
    .doctor-meta {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-bottom: 12px;
    }

    .specialty,
    .degree-badge {
        width: 100%;
        min-width: 0;
        justify-content: center;
        padding: 10px 13px;
        font-size: 0.87rem;
    }

    .specialty {
        gap: 8px;
    }

    .specialty-icon {
        font-size: 14px;
    }

    .degree-badge {
        gap: 8px;
    }

    .degree-badge__icon {
        width: 31px;
        height: 31px;
        min-width: 31px;
    }

    .degree-badge__icon i {
        font-size: 15px;
    }

    .degree-badge__text {
        min-width: 0;
        font-size: 0.84rem;
        overflow-wrap: anywhere;
    }

    .doctor-main h1 {
        font-size: clamp(21px, 6.8vw, 25px);
        line-height: 1.65;
    }

    .doctor-info-grid {
        margin-top: 27px;
        gap: 12px;
    }

    .info-card {
        padding: 16px 19px 16px 14px;
        gap: 11px;
        border-radius: 18px;
    }

    .info-card::before {
        width: 4px;
        border-radius: 18px;
    }

    .info-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        border-radius: 14px;
    }

    .info-icon i {
        font-size: 20px;
    }

    .info-label {
        font-size: 0.78rem;
    }

    .info-card strong {
        font-size: 0.98rem;
        line-height: 1.6;
    }

    .info-card small {
        font-size: 0.77rem;
        line-height: 1.85;
    }

    .doctor-section {
        margin-top: 28px;
        padding: 19px 16px;
        border-radius: 19px;
    }

    .doctor-section h2 {
        margin-bottom: 11px;
        font-size: 19px;
    }

    .doctor-section p {
        font-size: 0.86rem;
        line-height: 2.05;
    }

    .appointment-box {
        margin-top: 28px;
        gap: 17px;
        padding: 23px 15px;
        border-radius: 20px;
    }

    .appointment-box h3 {
        font-size: 1.1rem;
    }

    .appointment-box p {
        font-size: 0.83rem;
        line-height: 1.95;
    }

    .appointment-box a {
        max-width: none;
        min-height: 48px;
        padding: 13px 16px;
        font-size: 0.88rem;
    }
}

/* گوشی‌های بسیار کوچک؛ مانند عرض 320 پیکسل */
@media (max-width: 359.98px) {
    .doctor-detail .container {
        width: min(100% - 18px, 1320px);
    }

    .doctor-profile {
        padding: 15px 12px;
    }

    .doctor-photo-shell {
        width: 130px;
        height: 130px;
    }

    .doctor-main h1 {
        font-size: 20px;
    }

    .specialty,
    .degree-badge {
        font-size: 0.8rem;
        padding: 9px 10px;
    }

    .info-card {
        padding: 14px 17px 14px 12px;
        gap: 9px;
    }

    .info-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 13px;
    }

    .info-icon i {
        font-size: 18px;
    }

    .info-card small {
        font-size: 0.73rem;
    }

    .appointment-box {
        padding: 20px 13px;
    }
}
