/* ==========================================================
   APEX HOSPITAL DARBHANGA
   03-doctors-listing.css
   Premium Doctors Listing Page
   ========================================================== */


/* ==========================================================
   01. HERO SECTION
   ========================================================== */

.doctors-listing-hero {
    position: relative;
    overflow: hidden;
    padding: 6.5rem 2rem 5.5rem;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(14, 165, 233, 0.28),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #0f172a 0%,
            #123b5d 55%,
            #0879ad 100%
        );
}

.doctors-listing-hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -180px;
    bottom: -240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.doctors-listing-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    left: -120px;
    top: -130px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.10);
}

.doctors-listing-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.doctors-listing-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.1rem;
    color: #7dd3fc;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.doctors-listing-eyebrow i {
    font-size: 1rem;
}

.doctors-listing-hero h1 {
    margin: 0 0 1.1rem;
    color: #ffffff;
    font-size: clamp(2.5rem, 5vw, 4.3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.doctors-listing-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.8;
}


/* ==========================================================
   02. MAIN DOCTORS SECTION
   ========================================================== */

.doctors-listing-section {
    padding: 5.5rem 2rem;
    background: #f8fafc;
}

.doctors-listing-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.doctors-listing-heading {
    max-width: 760px;
    margin: 0 auto 3.2rem;
    text-align: center;
}

.doctors-listing-heading > span {
    display: block;
    margin-bottom: 0.65rem;
    color: #0284c7;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.doctors-listing-heading h2 {
    margin: 0 0 0.9rem;
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
}

.doctors-listing-heading p {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.8;
}


/* ==========================================================
   03. DOCTORS GRID
   ========================================================== */

.doctors-listing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
    align-items: stretch;
}


/* ==========================================================
   04. DOCTOR CARD
   ========================================================== */

.doctor-listing-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 15px 45px rgba(15, 23, 42, 0.07);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.doctor-listing-card:hover {
    transform: translateY(-7px);
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.13);
}


/* ==========================================================
   05. DOCTOR IMAGE
   Full image visible
   NO CROPPING
   Same image area for all doctors
   ========================================================== */

.doctor-listing-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 390px;
    overflow: hidden;
    background: #f1f5f9;
}

.doctor-listing-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.08),
        transparent 35%
    );
}

.doctor-listing-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.45s ease;
}

.doctor-listing-card:hover .doctor-listing-image img {
    transform: scale(1.02);
}

.doctor-listing-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #0284c7;
    font-size: 4rem;
}


/* ==========================================================
   06. CARD CONTENT
   ========================================================== */

.doctor-listing-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.65rem;
}

.doctor-listing-designation {
    display: block;
    margin-bottom: 0.55rem;
    color: #0284c7;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.doctor-listing-content h3 {
    margin: 0 0 0.75rem;
    color: #0f172a;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.2;
}

.doctor-listing-qualification {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.55rem;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    box-sizing: border-box;
    color: #334155;
    background: #f1f5f9;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.45;
}

.doctor-listing-qualification i {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: #0284c7;
}

.doctor-listing-content p {
    margin: 0 0 1.2rem;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.7;
}


/* ==========================================================
   07. EXPERIENCE
   ========================================================== */

.doctor-listing-experience {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: auto;
    margin-bottom: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.84rem;
    font-weight: 700;
}

.doctor-listing-experience i {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #f59e0b;
    background: #fff7ed;
    border-radius: 10px;
}


/* ==========================================================
   08. PROFILE BUTTON
   ========================================================== */

.doctor-listing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 50px;
    margin-top: auto;
    padding: 0.8rem 1.2rem;
    box-sizing: border-box;
    color: #ffffff;
    background: linear-gradient(
        135deg,
        #0284c7,
        #0ea5e9
    );
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.20);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.doctor-listing-button i {
    transition: transform 0.3s ease;
}

.doctor-listing-button:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.30);
}

.doctor-listing-button:hover i {
    transform: translateX(4px);
}


/* ==========================================================
   09. APPOINTMENT CTA
   ========================================================== */

.doctors-listing-cta {
    padding: 0 2rem 5.5rem;
    background: #f8fafc;
}

.doctors-listing-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.3rem 3.8rem;
    box-sizing: border-box;
    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(14, 165, 233, 0.18),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #0f172a,
            #123b5d
        );
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.doctors-cta-eyebrow {
    display: block;
    margin-bottom: 0.6rem;
    color: #7dd3fc;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.doctors-listing-cta h2 {
    margin: 0 0 0.65rem;
    color: #ffffff;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
}

.doctors-listing-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

.doctor-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 0.7rem;
    min-width: 190px;
    padding: 0.95rem 1.5rem;
    box-sizing: border-box;
    color: #ffffff;
    background: #0284c7;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.doctor-cta-button:hover {
    color: #ffffff;
    background: #0ea5e9;
    transform: translateY(-2px);
}


/* ==========================================================
   10. TABLET
   ========================================================== */

@media (max-width: 1050px) {

    .doctors-listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .doctor-listing-image {
        height: 380px;
    }

}


/* ==========================================================
   11. MOBILE
   ========================================================== */

@media (max-width: 700px) {

    .doctors-listing-hero {
        padding: 5rem 1.25rem 4.5rem;
    }

    .doctors-listing-section {
        padding: 4.5rem 1.25rem;
    }

    .doctors-listing-heading {
        margin-bottom: 2.5rem;
    }

    .doctors-listing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .doctor-listing-image {
        height: 390px;
    }

    .doctors-listing-cta {
        padding: 0 1.25rem 4.5rem;
    }

    .doctors-listing-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 2.5rem 2rem;
        border-radius: 20px;
    }

    .doctor-cta-button {
        width: 100%;
    }

}


/* ==========================================================
   12. SMALL MOBILE
   ========================================================== */

@media (max-width: 420px) {

    .doctors-listing-hero {
        padding: 4rem 1rem;
    }

    .doctors-listing-section {
        padding: 3.5rem 1rem;
    }

    .doctors-listing-heading {
        margin-bottom: 2rem;
    }

    .doctor-listing-image {
        height: 350px;
    }

    .doctor-listing-content {
        padding: 1.35rem;
    }

    .doctor-listing-content h3 {
        font-size: 1.3rem;
    }

    .doctor-listing-qualification {
        border-radius: 14px;
    }

    .doctors-listing-cta {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .doctors-listing-cta-inner {
        padding: 2rem 1.4rem;
    }

}