/* =========================================
   DOCTOR PROFILE PAGE (Pure Section CSS)
========================================= */
.doctor-profile-page {
    padding: 40px 20px 60px;
    background-color: #fcf6ee;
}

.profile-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- TOP INTRO BOX --- */
.profile-intro-box {
    background: #fff;
    border-radius: 16px;
    padding: 35px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.intro-left .badge-pill {
    display: inline-block;
    background: #461e29;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 18px;
    border-radius: 50px;
    margin-bottom: 15px;
}

.intro-left h1 {
    font-size: 2.5rem;
    color: #461e29;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
}

/* INTRO RIGHT - IMAGE FIX */
.intro-right {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6; 
}

.intro-right img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    object-position: center;
    display: block;
}

/* --- RESPONSIVE TOP BOX --- */
@media (max-width: 992px) {
    .intro-left h1 { font-size: 2rem; }
    .intro-right { width: 70px; height: 70px; }
}

@media (max-width: 576px) {
    .profile-intro-box {
        padding: 25px 20px;
        flex-direction: column;
        align-items: flex-start;
        position: relative;
    }
    .intro-left h1 { font-size: 1.6rem; }
    .intro-right {
        width: 50px;
        height: 50px;
        top: 10px;
        right: 15px;
        transform: none;
    }
}

/* --- MAIN LAYOUT --- */
.profile-main-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* --- LEFT COLUMN (IMAGE COVER FIX) --- */
.profile-left-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-card-white {
    background: #fff;
    border-radius: 16px;
    padding: 25px; /* Reduced slightly for better box fit */
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.profile-img-wrapper {
    position: relative;
    width: 100%;
    height: 340px; /* Fixed height ensures perfect cover */
    border-radius: 12px;
    overflow: hidden;
    background: #fcf6ee;
}

.bg-pattern-deco {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    z-index: 1;
}

.bg-pattern-deco svg {
    width: 140px;
    height: 140px;
}

.profile-img-wrapper img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Full Cover Fix */
    object-position: top 10% center; /* Centers the face nicely */
    display: block;
}

/* Action Buttons */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-full {
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-full.crimson {
    background: #461e29;
    color: #fff;
}
.btn-full.crimson:hover { background: #5e2a37; }

.btn-full.outline {
    border: 1px solid #461e29;
    color: #461e29;
    background: transparent;
}
.btn-full.outline:hover { background: #fcf6ee; }

/* --- RIGHT COLUMN --- */
.profile-right-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Top White Card */
.profile-info-white {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.info-header h2 {
    font-size: 1.6rem;
    color: #461e29;
    font-weight: 700;
    margin: 0 0 2px 0;
}
.info-header .credentials {
    font-size: 0.85rem;
    color: #777;
    margin: 0;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 13px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #461e29;
    color: #fff;
    text-decoration: none;
}
.btn-sm span { font-size: 16px; }

.bio-short {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Social & Phone */
.social-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.social-icons {
    display: flex;
    gap: 12px;
}
.social-icons a {
    color: #461e29;
    font-size: 20px;
    transition: 0.3s;
}
.social-icons a:hover { color: #c0a175; }

.phone-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #461e29;
    color: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
}
.phone-display ion-icon { font-size: 18px; }

/* Bottom Dark Card */
.profile-info-dark {
    background: #461e29;
    border-radius: 16px;
    padding: 30px;
    color: #fff;
}

.dark-title {
    font-size: 1.2rem;
    color: #fff;
    margin: 0 0 15px 0;
    font-weight: 600;
}
.dark-desc {
    font-size: 0.9rem;
    color: #e0d5d0;
    line-height: 1.7;
    margin-bottom: 15px;
}
.dark-subtitle {
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
    margin: 20px 0 10px 0;
}

.dark-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}
.dark-list li {
    font-size: 0.9rem;
    color: #e0d5d0;
    line-height: 1.6;
    margin-bottom: 6px;
}
.dark-list.bullets li {
    padding-left: 15px;
    position: relative;
}
.dark-list.bullets li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #c0a175;
}
/* --- SIMPLE LOCATION & TIMING TEXT --- */
.location-text-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.location-text-block .loc-address {
    font-size: 0.95rem;
    color: #ffffff; /* White color for address */
    line-height: 1.6;
    margin: 0;
}

.location-text-block .loc-timing {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}
.loc-timing{
        color: #c0a175; /* Beige/Gold color for timings */

}
/* Add spacing between two different hospital locations */
.location-text-block .loc-timing:not(:last-child) {
    margin-bottom: 12px;
}
/* --- PATIENT REVIEW BOX --- */
.profile-review-box {
    background: #fff;
    border-radius: 16px;
    padding: 30px 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.review-content { text-align: center; }
.quote-icon { margin-bottom: 15px; }
.quote-icon ion-icon { font-size: 32px; color: #461e29; }

.review-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.reviewer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.reviewer-details {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}
.reviewer-details h4 {
    font-size: 1rem;
    color: #461e29;
    font-weight: 600;
    margin: 0;
}
.reviewer-details span { font-size: 0.85rem; color: #999; }

.review-dots {
    display: flex;
    gap: 6px;
}
.r-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
}
.r-dot.active { background: #461e29; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .profile-main-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .profile-left-col {
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .info-header {
        flex-direction: column;
        gap: 15px;
    }
    .social-row {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .profile-review-box { padding: 20px; }
}

/* --- PATIENT REVIEW BOX (Slider) --- */
.profile-review-box {
    background: #fff;
    border-radius: 20px;
    padding: 35px 40px;
    max-width: 600px;
    margin-left: 0; /* Align with the right column */
    margin-top: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.review-slide {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}
.review-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.quote-icon {
    margin-bottom: 20px;
}
.quote-icon svg {
    width: 44px;
    height: 44px;
}

.review-text {
    font-size: 1.05rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 25px;
}

.reviewer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #f0e8dd;
}
.reviewer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-details h4 {
    font-size: 1.1rem;
    color: #461e29;
    font-weight: 700;
    margin: 0 0 2px 0;
}
.reviewer-details span {
    font-size: 0.85rem;
    color: #999;
}

/* Review Arrows */
.review-arrows {
    display: flex;
    gap: 10px;
}

.r-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #461e29;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.r-arrow:hover {
    background: #5e2a37;
    transform: scale(1.05);
}

.r-arrow ion-icon {
    font-size: 18px;
}

/* Review Arrows Responsive */
@media (max-width: 576px) {
    .profile-review-box {
        padding: 25px 20px;
        margin-left: 0;
    }
    .reviewer-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .review-arrows {
        align-self: flex-end;
    }
    .review-text {
        font-size: 0.95rem;
    }
}


/* --- CASE STUDIES SECTION --- */
.case-studies {
    padding: 60px 20px 80px;
    background-color: #fcf6ee;
}

.case-heading {
    text-align: center;
    margin-bottom: 45px;
}

.case-heading h2 {
    font-size: 2.8rem;
    color: #461e29;
    font-weight: 400;
    line-height: 1.2;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-card {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
}

.case-image {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.case-card:hover .case-image img {
    transform: scale(1.03);
}

.case-content {
    padding: 0;
}

.case-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #461e29;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #461e29;
    font-weight: 500;
}

.case-meta .meta-separator {
    color: #ccc;
}

.case-meta .date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.case-meta .date ion-icon {
    font-size: 16px;
}

.case-content h3 {
    font-size: 1.15rem;
    color: #461e29;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.case-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .case-heading h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .case-grid {
        grid-template-columns: 1fr;
    }
    .case-heading h2 {
        font-size: 1.8rem;
    }
    .case-image {
        height: 180px;
    }
}