/* ─── Author Page ──────────────────────────────────────────────── */
.author-page {
    padding: 40px 0 80px;
    background: var(--bg-light);
    min-height: 60vh;
}

/* ─── Breadcrumbs ──────────────────────────────────────────────── */
.breadcrumbs {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 30px;
    padding: 10px 0;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* ─── Author Header ────────────────────────────────────────────── */
.author-header {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    margin-bottom: 40px;
}

.author-photo-wrap {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-photo-fallback {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.author-header-info {
    flex: 1;
}

.author-header-info h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.2;
}

.author-role {
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 4px;
}

.author-clinic {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.author-credentials-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 25px;
}

.author-credentials-line span {
    color: var(--accent-hover);
    font-size: 0.95rem;
    font-weight: 600;
}

.author-contact {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ─── Author Bio ───────────────────────────────────────────────── */
.author-bio-section {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    margin-bottom: 40px;
}

.author-bio-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.author-bio-section p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.author-bio-section p:last-child {
    margin-bottom: 0;
}

/* ─── Specialties ──────────────────────────────────────────────── */
.author-specialties {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    margin-bottom: 40px;
}

.author-specialties h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.specialty-card {
    padding: 25px;
    background: var(--bg-light);
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.specialty-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--secondary-color);
}

.specialty-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.specialty-card h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.specialty-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ─── Credentials ──────────────────────────────────────────────── */
.author-credentials {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    margin-bottom: 40px;
}

.author-credentials h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.credentials-list {
    list-style: none;
    padding: 0;
}

.credentials-list li {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.credentials-list li:last-child {
    border-bottom: none;
}

.credentials-list li strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.credentials-list li span {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ─── Articles by Author ───────────────────────────────────────── */
.author-articles {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    margin-bottom: 40px;
}

.author-articles h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.section-intro {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
}

.author-articles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.article-card {
    display: block;
    padding: 22px;
    background: var(--bg-light);
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.article-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-medium);
}

.article-card h3 {
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.article-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ─── Author CTA ───────────────────────────────────────────────── */
.author-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 50px 40px;
    border-radius: 16px;
    text-align: center;
}

.author-cta h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.author-cta p {
    color: rgba(255,255,255,0.92);
    font-size: 1.05rem;
    margin-bottom: 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.author-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Mobile ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .author-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
        gap: 25px;
    }

    .author-photo-wrap {
        width: 150px;
        height: 150px;
    }

    .author-credentials-line {
        justify-content: center;
    }

    .author-contact {
        justify-content: center;
        width: 100%;
    }

    .author-contact .btn {
        flex: 1;
        min-width: 140px;
    }

    .author-bio-section,
    .author-specialties,
    .author-credentials,
    .author-articles {
        padding: 28px 20px;
    }

    .author-bio-section h2,
    .author-specialties h2,
    .author-credentials h2,
    .author-articles h2 {
        font-size: 1.5rem;
    }

    .author-cta {
        padding: 40px 22px;
    }

    .author-cta h2 {
        font-size: 1.5rem;
    }
}