/* Lusaka Eye Hospital - Clinical Optometrists & Refraction Specialists
   Design Language: LEH Portal Design System (Slate-50, Blue-600, rounded-2xl, Inter)
*/

.optometrists-section {
    padding: 5.5rem 0 6rem 0;
    background-color: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.optometrists-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .optometrists-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .optometrists-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Optometrist Card */
.optometrist-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.optometrist-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 36px -8px rgba(15, 23, 42, 0.14), 0 4px 12px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

/* Header Avatar / Clinical Badge Presentation Stage */
.optometrist-stage {
    position: relative;
    padding: 2.25rem 1.5rem 1.5rem 1.5rem;
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.optometrist-avatar-wrap {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 3.5px solid #dbeafe;
    box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.2);
    position: relative;
    margin-bottom: 1rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.optometrist-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.optometrist-card:hover .optometrist-avatar-wrap {
    transform: scale(1.06);
    border-color: var(--primary-color);
    box-shadow: 0 12px 28px -4px rgba(37, 99, 235, 0.35);
}

.avatar-badge-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    border: 2.5px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    z-index: 2;
}

/* Availability Status */
.optometrist-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.725rem;
    font-weight: 700;
    color: #166534;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    margin-bottom: 0.85rem;
}

.optometrist-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 0.25rem;
    letter-spacing: -0.015em;
}

.optometrist-role {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Card Body Content */
.optometrist-body {
    padding: 1.5rem 1.6rem 1.6rem 1.6rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.optometrist-creds {
    font-size: 0.775rem;
    color: var(--text-light);
    font-weight: 600;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    display: inline-block;
    width: fit-content;
    margin-bottom: 1.1rem;
}

.optometrist-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.optometrist-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.skill-tag {
    font-size: 0.725rem;
    font-weight: 600;
    color: #334155;
    background-color: #f1f5f9;
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
}

/* Action Button */
.btn-book-optom {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #ffffff;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-book-optom i {
    font-size: 1.05rem;
}

.btn-book-optom:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
}
