/* --- Dr. Bipin Profile Specific Styles --- */

:root {
    --pdf-border: #e2e8f0;
    --accent-soft: #fff5eb;
}

.profile-container {
    max-width: 1000px;
    margin: 160px auto 80px;
    background: #fff;
    padding: 60px;
    border: 1px solid var(--pdf-border);
    box-shadow: 0 40px 100px rgba(0,0,0,0.03);
    border-radius: 4px;
}

.profile-header-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    border-bottom: 2px solid var(--pdf-border);
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.profile-image img {
    width: 100%;
    height: auto;
    filter: grayscale(15%);
    border-radius: 2px;
}

.doc-title h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
    line-height: 1.1;
}

.doc-meta {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    letter-spacing: 0.3px;
}

.section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--saffron);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.info-block {
    margin-bottom: 40px;
}

.info-block.no-margin {
    margin-bottom: 0;
}

.bio-text {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.8;
}

/* Credentials Table */
.credentials-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.credentials-table td {
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    vertical-align: top;
}

.country-tag {
    font-weight: 700;
    color: var(--dark);
    width: 140px;
}

/* Expertise Tags */
.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

.tag {
    background: var(--accent-soft);
    color: var(--saffron);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Navigation */
.back-home {
    position: fixed;
    top: 120px;
    left: 40px;
    text-decoration: none;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    z-index: 100;
}

.back-home:hover {
    color: var(--saffron);
    transform: translateX(-5px);
}

/* Responsive Tweaks */
@media (max-width: 1279px) {
    .back-home {
        position: absolute;
        top: 100px;
        left: 20px;
    }
}

@media (max-width: 1024px) {
    .profile-container {
        max-width: 90%;
        padding: 50px;
        margin: 140px 15px 40px;
    }
    
    .profile-header-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .expertise-tags {
        justify-content: center;
    }
    
    .back-home {
        top: 90px;
    }
}

/* Tablets & Small Devices (768px - 1024px) */
@media (max-width: 767px) {
    .profile-container {
        margin: 130px 10px 30px;
        padding: 25px;
        border-radius: 8px;
    }

    .doc-title h1 {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }

    .section-title {
        font-size: 0.75rem;
        margin-bottom: 1.2rem;
    }

    .credentials-table {
        font-size: 0.9rem;
    }

    .credentials-table td {
        padding: 12px 0;
    }

    .bio-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    .tag {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .back-home {
        top: 85px;
        left: 15px;
        font-size: 0.85rem;
    }
}

/* Small Phones (481px - 767px) */
@media (max-width: 480px) {
    .profile-container {
        margin: 120px 8px 25px;
        padding: 18px;
        border: none;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        border-radius: 12px;
    }

    .profile-header-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }

    .profile-image img {
        border-radius: 8px;
    }

    .doc-title h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .doc-meta {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .specialization {
        font-size: 1rem;
    }

    .section-title {
        font-size: 0.7rem;
        margin-bottom: 1rem;
    }

    .info-block {
        margin-bottom: 30px;
    }

    .credentials-table {
        font-size: 0.85rem;
        margin-top: 0.8rem;
    }

    .credentials-table td {
        padding: 8px 0;
    }

    .country-tag {
        width: 100px;
        font-size: 0.85rem;
    }

    .bio-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .expertise-tags {
        gap: 8px;
        justify-content: flex-start;
    }

    .tag {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .back-home {
        position: fixed;
        top: 80px;
        left: 10px;
        font-size: 0.8rem;
        gap: 5px;
    }

    footer {
        padding: 2.5rem 0;
    }
}

@media (max-width: 360px) {
    .profile-container {
        margin: 108px 6px 20px;
        padding: 15px;
        box-shadow: none;
        border-radius: 8px;
    }

    .profile-header-grid {
        gap: 1rem;
        padding-bottom: 20px;
        margin-bottom: 20px;
        border-bottom: 1px solid #e2e8f0;
    }

    .doc-title h1 {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
        line-height: 1.1;
    }

    .doc-meta {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .specialization {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .badge {
        font-size: 0.65rem;
    }

    .section-title {
        font-size: 0.65rem;
        letter-spacing: 1px;
        margin-bottom: 0.8rem;
    }

    .info-block {
        margin-bottom: 20px;
    }

    .bio-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .credentials-table td {
        padding: 6px 0;
        font-size: 0.8rem;
    }

    .country-tag {
        width: 80px;
        font-size: 0.8rem;
    }

    .expertise-tags {
        gap: 6px;
    }

    .tag {
        font-size: 0.65rem;
        padding: 3px 8px;
        border-radius: 3px;
    }

    .back-home {
        position: absolute;
        top: 74px;
        left: 8px;
        font-size: 0.7rem;
        gap: 4px;
    }

    footer {
        padding: 2rem 0;
    }

    footer p {
        font-size: 0.75rem;
    }
}
