/* Teams Page Styling */
.team-detail-section {
    padding: 40px 0;
    background-color: #ffffff;
}

.team-detail-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
}

.team-left-col {
    width: 330px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
    align-self: flex-start;
    z-index: 10;
}

.team-right-col {
    flex: 1;
    min-width: 0;
}

/* Avatar Card */
.team-avatar-card {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.team-avatar-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Booking Form Box */
.team-booking-box {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.booking-box-header {
    background: linear-gradient(135deg, #001594 0%, #0028aa 100%);
    color: #ffffff;
    padding: 16px;
    text-align: center;
}

.booking-subtitle {
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 4px;
    opacity: 0.95;
}

.booking-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.booking-form {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.booking-form .form-group {
    margin: 0;
}

.booking-form .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    background-color: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.booking-form .form-control::placeholder {
    color: #9ca3af;
}

.booking-form .form-control:focus {
    border-color: #001594;
    box-shadow: 0 0 0 3px rgba(0, 21, 148, 0.12);
    outline: none;
}

.booking-form textarea.form-control {
    resize: vertical;
    min-height: 90px;
}

.booking-submit-wrap {
    text-align: center;
    margin-top: 6px;
}

.btn-booking-submit {
    background: linear-gradient(135deg, #001594 0%, #0c3ca8 100%);
    color: #ffffff;
    border: none;
    padding: 11px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 21, 148, 0.2);
    display: inline-block;
}

.btn-booking-submit:hover {
    background: linear-gradient(135deg, #000f6b 0%, #001594 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 21, 148, 0.3);
}

/* Doctor Right Info */
.doctor-header-info {
    margin-bottom: 24px;
}

.doctor-rank {
    display: block;
    font-size: 15px;
    color: #6b7280;
    font-weight: 400;
    margin-bottom: 4px;
}

.doctor-name {
    font-size: 30px;
    font-weight: 700;
    color: #001594;
    margin: 0 0 16px 0;
    line-height: 1.25;
}

.doctor-badge {
    /* display: inline-flex; */
    align-items: center;
    gap: 8px;
    background-color: #f0f4ff;
    color: #001594;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.doctor-badge .badge-icon {
    display: flex;
    align-items: center;
    color: #001594;
}

/* Accordion Sections */
.doctor-detail-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-item {
    border-radius: 6px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #001594;
    color: #ffffff;
    padding: 12px 18px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease;
    border-radius: 4px;
}

.accordion-header:hover {
    background-color: #000f6e;
}

.acc-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.acc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.acc-title {
    font-size: 16px;
    font-weight: 600;
}

.acc-toggle-icon {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    user-select: none;
    width: 20px;
    text-align: center;
}

.accordion-content {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease;
    opacity: 1;
}

.accordion-item:not(.active) .accordion-content {
    max-height: 0;
    opacity: 0;
}

.acc-body {
    padding: 16px 0 10px 0;
    color: #374151;
    font-size: 15px;
    line-height: 1.7;
}

.acc-body p {
    margin: 0;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-list li {
    color: #374151;
    font-size: 15px;
    line-height: 1.6;
}

/* Related Doctors Section */
.related-doctors-section {
    padding: 40px 0 60px 0;
    background-color: #ffffff;
}

.related-doctors-title {
    font-size: 24px;
    font-weight: 700;
    color: #001594;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 32px;
    letter-spacing: 0.5px;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.doctor-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.doctor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 21, 148, 0.1);
    border-color: #d1d5db;
}

.doctor-card-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f3f4f6;
}

.doctor-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.doctor-card:hover .doctor-card-img {
    transform: scale(1.03);
}

.doctor-card-body {
    padding: 16px 14px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.doctor-card-rank {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 400;
}

.doctor-card-name {
    font-size: 17px;
    font-weight: 700;
    color: #001594;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.doctor-card-pos {
    font-size: 13.5px;
    color: #374151;
    margin: 0 0 18px 0;
    line-height: 1.4;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-doctor-booking {
    margin-top: auto;
    display: inline-block;
    padding: 7px 22px;
    border: 1.5px solid #28a745;
    color: #28a745;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    background-color: transparent;
}

.btn-doctor-booking:hover {
    background-color: #28a745;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.25);
}

/* Responsive */
@media (max-width: 1199px) {
    .doctors-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .team-detail-wrapper {
        flex-direction: column;
        gap: 24px;
    }

    .team-left-col {
        width: 100%;
        position: static;
        top: auto;
    }

    .doctor-name {
        font-size: 26px;
    }

    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .related-doctors-title {
        font-size: 20px;
        margin-bottom: 24px;
    }
}

@media (max-width: 576px) {
    .team-detail-section {
        padding: 24px 0;
    }

    .doctor-name {
        font-size: 22px;
    }

    .booking-title {
        font-size: 18px;
    }

    .accordion-header {
        padding: 10px 14px;
        font-size: 15px;
    }

    .acc-title {
        font-size: 15px;
    }

    .doctors-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 16px;
    }

    .doctor-card-pos {
        min-height: auto;
    }
}