/* All Doctors Page Styles */

/* Doctors Section */
.doctors-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 80vh;
    width: 100%;
    overflow-x: hidden;
}

.doctors-section .container {
    max-width: 100%;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.doctors-header {
    text-align: center;
    margin-bottom: 4rem;
}

.doctors-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
}

.doctors-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* Doctors List Container */
.doctors-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Doctor Tile */
.doctor-tile {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    position: relative;
}


/* Doctor Image Container */
.doctor-image-container {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
}

.doctor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Doctor Content */
.doctor-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.doctor-name-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.doctor-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0;
    letter-spacing: 0.01em;
}

.doctor-experience {
    font-size: 0.95rem;
    font-weight: 600;
    color: #3b82f6;
    background: #eff6ff;
    padding: 0.375rem 0.875rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    border: 1px solid #dbeafe;
}

.doctor-qualification {
    font-size: 1rem;
    color: #3b82f6;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

.doctor-details {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
    margin-top: 0.5rem;
    font-weight: 400;
}

/* Highlight state for linked doctors */
.doctor-highlight {
    border: 2px solid #2563eb;
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.25);
    transform: translateY(-2px);
}

.doctor-highlight .doctor-highlight-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.doctor-highlight .doctor-highlight-close:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.16);
    background: #f9fafb;
}

/* Doctor Modal */
.doctor-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1500;
}

.doctor-modal.active {
    display: flex;
}

.doctor-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.doctor-modal-content {
    position: relative;
    background: #fff;
    border-radius: 1rem;
    max-width: 960px;
    width: calc(100% - 2rem);
    padding: 1.5rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.doctor-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.doctor-modal-close:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    background: #f9fafb;
}

.doctor-modal-body {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.doctor-modal-image-container {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
}

.doctor-modal-image {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    object-fit: cover;
    border: 4px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.doctor-modal-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.doctor-modal-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
}

.doctor-modal-qualification {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2563eb;
    margin: 0;
}

.doctor-modal-details {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0.25rem 0 0;
}

@media (max-width: 768px) {
    .doctor-modal-body {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .doctor-modal-image-container {
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .doctor-modal-content {
        padding: 1rem;
    }
}

/* Container - Full Width Override */
.doctors-section .container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .doctors-section .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .doctors-section .container {
        padding: 0 3rem;
    }
}

@media (min-width: 1280px) {
    .doctors-section .container {
        padding: 0 4rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .doctors-section {
        padding: 3rem 0;
    }

    .doctors-title {
        font-size: 2rem;
    }

    .doctors-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .doctor-tile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
        gap: 1.5rem;
        max-width: 100%;
        box-sizing: border-box;
    }


    .doctor-image-container {
        width: 100px;
        height: 100px;
    }

    .doctor-content {
        text-align: center;
    }

    .doctor-name-header {
        justify-content: center;
        gap: 0.75rem;
    }

    .doctor-name {
        font-size: 1.25rem;
    }

    .doctor-experience {
        font-size: 0.875rem;
        padding: 0.25rem 0.75rem;
    }

    .doctor-qualification {
        font-size: 0.95rem;
    }

    .doctor-details {
        font-size: 0.95rem;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .doctor-tile {
        padding: 1.25rem;
        max-width: 100%;
        box-sizing: border-box;
    }


    .doctor-image-container {
        width: 80px;
        height: 80px;
    }

    .doctor-name-header {
        gap: 0.5rem;
    }

    .doctor-name {
        font-size: 1.125rem;
    }

    .doctor-experience {
        font-size: 0.8125rem;
        padding: 0.25rem 0.625rem;
    }

    .doctor-qualification {
        font-size: 0.875rem;
    }

    .doctor-details {
        font-size: 0.875rem;
    }
}

