/* Import main style.css for all core styles including navbar */
@import url("style.css");

/* Fix: Prevent Flickering fix */
html {
  scroll-behavior: smooth;
}

/* Doctor Page Hero Styles */
.doctor-page-hero {
    position: relative;
    min-height: 40vh;
    padding-top: 100px;
    background-image: url('');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Fix: Prevent layout shifts */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
     background-color: #0ea4a9;
}

.doctor-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.355);
    z-index: 1;
}

.doctor-page-hero .hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 30px;
    /* Fix: Prevent layout shifts */
    width: 100%;
}

.doctor-page-hero .hero-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #000000;
    margin: 0;
}

.doctor-page-hero .hero-para {
    font-size: 1.1rem;
    margin-top: 10px;
    color: #000000;
    margin-bottom: 0;
}

/* Doctor Page Doctors Section */
.doctor-page-doctors {
    padding: 50px 0 70px;
    background: var(--bg-light);
}

.doctors-stack {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* .doctor-row {
    display: flex;
    align-items: flex-start;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.04);
    padding: 30px;
    gap: 36px;
    transition: transform 0.2s ease, box-shadow 0.2s;
    border: 1px solid #eef3f7;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
} */

.doctor-row {
    display: flex;
    align-items: flex-start;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    padding: 26px;
    gap: 32px;
    border: 1px solid #eef2f6;
}

/* Portrait section: Image + Button */
.doctor-portrait-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.doctor-row:hover {
    box-shadow: 0 20px 35px rgba(14, 165, 168, 0.1);
    transform: translateY(-3px);
}

/* Doctor Portrait - Bigger Size */
.doctor-portrait {
    flex: 0 0 300px;
    width: 300px;
    height: 300px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Fix: Prevent image flickering */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.doctor-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Fix: Prevent image flickering */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: none; /* Disable default transitions if not needed */
}

/* Doctor Details */
.doctor-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.doctor-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.doctor-specialty {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: block;
}

.nmc-no {
    font-size: 0.9rem;
    color: var(--text-body);
    margin-bottom: 16px;
    font-weight: 500;
    background: var(--primary-soft);
    display: inline-block;
    padding: 4px 16px;
    border-radius: var(--radius-pill);
    width: fit-content;
    color: var(--primary-dark);
}

/* .doctor-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 18px;
    max-width: 700px;
} */


.doctor-description {
    font-size: 0.98rem;
    line-height: 1.75;
    color: #5f6b7a;
    margin-bottom: 20px;
    max-width: 100%;
    text-align: justify;
}

/* .services-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 20px;
}

.services-list li {
    font-size: 0.85rem;
    background: var(--primary-soft);
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
} */


.services-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin-bottom: 20px;
    padding: 0;
}

.services-list li {
    font-size: 10px;
    background: #f2f7fa;
    color: #0ea5a8;
    padding: 8px 14px;
    border-radius: 30px;
    font-weight: 500;
    text-align: left;
}

.services-list li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    margin-right: 4px;
}

.book-btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    width: fit-content;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
    margin-top: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(14, 165, 168, 0.2);
    /* Fix: Prevent button flickering */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.book-btn-small i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.book-btn-small:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 168, 0.3);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .doctors-stack {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .doctor-row {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        text-align: center;
    }
    
    .doctor-portrait {
        width: 250px;
        height: 250px;
        flex: 0 0 auto;
    }
    
    .doctor-details {
        align-items: center;
    }
    
    .doctor-description {
     font-size: 1rem;
    line-height: 1.8;
    color: #5f6b7a;
    text-align: left;
    }
    
    .services-list {
        justify-content: center;
    }
    
    .doctor-page-hero .hero-heading {
        font-size: 2rem;
    }
    
    .doctor-page-hero .hero-para {
        font-size: 1rem;
    }
    
    .doctors-stack {
        padding: 0 20px;
    }
    
    .doctor-page-hero .hero-content {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .doctor-page-hero {
        min-height: 35vh;
        padding-top: 120px;
    }
    
    .doctor-portrait {
        width: 220px;
        height: 220px;
    }
    
    .doctor-name {
        font-size: 1.5rem;
    }
    
    .doctors-stack {
        padding: 0 16px;
    }
    
    .doctor-page-hero .hero-content {
        padding: 0 16px;
    }
}
