/* ======================================
   DOCTORS PAGE - UNIQUE CSS
   All classes prefixed with doc- (doctors)
   ====================================== */

/* ===== CSS VARIABLES ===== */
:root {
    --doc-navy: #003E7E;
    --doc-red: #E31E24;
    --doc-magenta: #A5195D;
    --doc-white: #FFFFFF;
    --doc-light-bg: #F8F9FA;
    --doc-text-dark: #2C3E50;
    --doc-text-light: #6C757D;
    --doc-border: #E0E0E0;
}

/* ===== PAGE HEADER ===== */
.doc-page-header {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    margin-top: 0;
}

.doc-page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.doc-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,62,126,0.9), rgba(165,25,93,0.8));
    z-index: 2;
}

.doc-header-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.doc-page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--doc-white);
    margin-bottom: 1rem;
    animation: docFadeInDown 0.8s ease;
}

.doc-breadcrumb {
    background: transparent;
    justify-content: center;
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
}

.doc-breadcrumb-item {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
}

.doc-breadcrumb-item a {
    color: var(--doc-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.doc-breadcrumb-item a:hover {
    color: var(--doc-red);
}

.doc-breadcrumb-item.active {
    color: var(--doc-red);
}

.doc-breadcrumb-item + .doc-breadcrumb-item::before {
    content: "→";
    color: rgba(255,255,255,0.6);
    padding: 0 10px;
}

/* ===== INTRO SECTION ===== */
.doc-intro-section {
    padding: 80px 0 40px;
}

.doc-badge {
    display: inline-block;
    background: rgba(227,30,36,0.1);
    color: var(--doc-red);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.doc-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--doc-navy);
    margin-bottom: 1rem;
    line-height: 1.3;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.doc-main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--doc-red);
    border-radius: 2px;
}

.doc-intro-text {
    font-size: 1.1rem;
    color: var(--doc-text-dark);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ===== DOCTORS TEAM SECTION ===== */
.doc-team-section {
    padding: 40px 0 80px;
}

/* CRITICAL FIX: Proper flexbox for equal height cards */
.doc-team-section .row.g-4 > [class*='col-'] {
    display: flex;
}

.doc-card {
    background: var(--doc-white);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid var(--doc-border);
    display: flex;
    flex-direction: column;
    width: 100%;
}

.doc-card:hover {
    border-color: var(--doc-navy);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.doc-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 350px;
    flex-shrink: 0;
}

.doc-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.doc-card:hover .doc-image {
    transform: scale(1.1);
}

.doc-social-links {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 10;
}

.doc-card:hover .doc-social-links {
    opacity: 1;
    bottom: 30px;
}

.doc-social-icon {
    width: 40px;
    height: 40px;
    background: var(--doc-white);
    color: var(--doc-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.doc-social-icon:hover {
    background: var(--doc-red);
    color: var(--doc-white);
    transform: translateY(-3px);
}

.doc-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.doc-name {
    color: var(--doc-navy);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.doc-specialization {
    color: var(--doc-red);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.doc-experience {
    color: var(--doc-text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.doc-experience i {
    color: var(--doc-magenta);
    flex-shrink: 0;
}

.doc-description {
    color: var(--doc-text-dark);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.doc-qualifications {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.doc-qual-badge {
    background: rgba(0,62,126,0.1);
    color: var(--doc-navy);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.doc-btn-appointment {
    display: block;
    background: var(--doc-navy);
    color: var(--doc-white);
    padding: 12px 30px;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.doc-btn-appointment:hover {
    background: var(--doc-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(227,30,36,0.3);
}

/* ===== WHY CHOOSE SECTION ===== */
.doc-why-section {
    padding: 80px 0;
    background: var(--doc-light-bg);
}

.doc-section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding: 0 15px;
}

.doc-section-subtitle {
    font-size: 1.1rem;
    color: var(--doc-text-light);
    margin-bottom: 0;
    margin-top: 15px;
    line-height: 1.6;
}

/* CRITICAL FIX: Proper flexbox for why section cards */
.doc-why-section .row.g-4 > [class*='col-'] {
    display: flex;
}

.doc-feature-card {
    background: var(--doc-white);
    padding: 40px 25px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid var(--doc-border);
    display: flex;
    flex-direction: column;
    width: 100%;
}

.doc-feature-card:hover {
    border-color: var(--doc-magenta);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.doc-feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--doc-magenta), #d41868);
    color: var(--doc-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
}

.doc-feature-card:hover .doc-feature-icon {
    background: var(--doc-navy);
    transform: rotateY(360deg);
}

.doc-feature-title {
    color: var(--doc-navy);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.doc-feature-text {
    color: var(--doc-text-light);
    margin: 0;
    line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.doc-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--doc-magenta), #d41868);
    color: var(--doc-white);
}

.doc-cta-wrapper {
    padding: 40px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
}

.doc-cta-title {
    color: var(--doc-white);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.doc-cta-text {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin: 0;
}

.doc-btn-white {
    background: var(--doc-white);
    color: var(--doc-magenta);
    padding: 14px 35px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.doc-btn-white:hover {
    background: var(--doc-navy);
    color: var(--doc-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.doc-btn-outline {
    background: transparent;
    color: var(--doc-white);
    padding: 14px 35px;
    border-radius: 50px;
    border: 2px solid var(--doc-white);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.doc-btn-outline:hover {
    background: var(--doc-white);
    color: var(--doc-magenta);
    transform: translateY(-2px);
}

/* ===== ANIMATIONS ===== */
@keyframes docFadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet (992px and below) */
@media (max-width: 992px) {
    .doc-main-title {
        font-size: 2rem;
    }

    .doc-page-title {
        font-size: 2.5rem;
    }

    .doc-intro-section,
    .doc-team-section,
    .doc-why-section,
    .doc-cta-section {
        padding: 60px 0;
    }

    .doc-image-wrapper {
        height: 320px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .doc-page-header {
        padding: 100px 0 60px;
    }

    .doc-page-title {
        font-size: 2rem;
    }

    .doc-main-title {
        font-size: 1.8rem;
    }

    .doc-image-wrapper {
        height: 300px;
    }

    .doc-card-content {
        padding: 25px 20px;
    }

    .doc-name {
        font-size: 1.3rem;
    }

    .doc-specialization {
        font-size: 1rem;
    }

    .doc-feature-card {
        padding: 30px 20px;
    }

    .doc-cta-wrapper {
        padding: 30px 20px;
        text-align: center;
    }

    .doc-cta-title {
        font-size: 1.5rem;
    }

    .doc-btn-white,
    .doc-btn-outline {
        width: 100%;
        margin-top: 10px;
        margin-left: 0 !important;
    }

    /* Show social links on mobile */
    .doc-social-links {
        opacity: 1;
        bottom: 20px;
    }
}

/* Small Mobile (576px and below) */
@media (max-width: 576px) {
    .doc-page-header {
        padding: 80px 0 50px;
    }

    .doc-page-title {
        font-size: 1.75rem;
    }

    .doc-main-title {
        font-size: 1.6rem;
    }

    .doc-image-wrapper {
        height: 280px;
    }

    .doc-feature-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .doc-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }

    .doc-social-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .doc-intro-text {
        font-size: 1rem;
    }

    .doc-section-subtitle {
        font-size: 1rem;
    }
}
