
/* =====================================================================
   DOCTORS – OUR SPECIALITIES
   3 Doctor Cards | Desktop | Tablet | Mobile
   ===================================================================== */

.sp {
    background: #0a0a0a url(/images/speciality-bg.jpg) center / cover no-repeat;
    padding: 80px 16px;
    margin-top: 40px;
}

/* HEADING */
.sp .hd {
    max-width: 900px;
    margin: 0 auto 40px;
    color: #fff;
    text-align: center;
}

.sp h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
}

.sp h2 span {
    color: #fd9a97;
}

.sp .hd p {
    line-height: 1.8;
    margin-top: 10px;
    font-size: 16px;
    color: #e5e5e5;
}

.sp .hd .bar {
    margin: 20px 0;
}

/* DOCTOR CARD CONTAINER */
.dc {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: auto;
}

/* CARD */
.dk {
    width: 100%;
    min-width: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px #0003;
    transition: transform .3s ease, box-shadow .3s ease;
}

.dk:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px #0005;
}

/* DOCTOR IMAGE */
.dk .ph {
    position: relative;
    height: 340px;
    overflow: hidden;
    background: #f3f4f6;
}

.dk .ph > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform .5s ease;
}

.dk:hover .ph > img {
    transform: scale(1.04);
}

/* OVERLAY */
.dk .ov {
    position: absolute;
    inset: 0;
    background: var(--r);
    color: #fff;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transform: translateY(100%);
    transition: transform .4s ease;
}

.dk:hover .ov,
.dk:focus-within .ov {
    transform: translateY(0);
}

.dk .ov h5 {
    border-bottom: 1px solid #ffffff80;
    padding-bottom: 10px;
    margin-bottom: 14px;
    width: 100%;
    font-size: 17px;
    font-weight: 600;
}

.dk .ov p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.dk .ov a {
    display: inline-block;
    background: #fff;
    color: var(--r);
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: .2s;
}

.dk .ov a:hover {
    background: #f3f3f3;
}

/* NAME */
.dk h3 {
    text-align: center;
    padding: 18px 12px 5px;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    text-transform: uppercase;
    line-height: 1.4;
}

.dk > span {
    display: block;
    text-align: center;
    color: var(--r);
    padding: 3px 12px 18px;
    font-size: 14px;
    line-height: 1.5;
}

/* OUR DOCTORS PAGE – COMPACT */
.sp-tight {
    padding-top: 55px;
    padding-bottom: 55px;
}

/* =====================================================================
   TABLET – 768px to 1023px
   ===================================================================== */

@media (max-width: 1023px) {

    .sp {
        padding: 65px 20px;
    }

    .dc {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
        max-width: 750px;
    }

    .dk .ph {
        height: 320px;
    }

}

/* =====================================================================
   MOBILE – 767px and below
   ===================================================================== */

@media (max-width: 767px) {

    .sp {
        padding: 45px 15px;
        margin-top: 25px;
    }

    .sp .hd {
        margin-bottom: 30px;
    }

    .sp .hd p {
        font-size: 14px;
        line-height: 1.7;
    }

    .dc {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        max-width: 420px;
    }

    .dk .ph {
        height: 350px;
    }

    .dk h3 {
        font-size: 17px;
        padding-top: 15px;
    }

    /* Mobile: overlay image ke neeche gradient info panel */
    .dk .ov {
        inset: auto 0 0;
        height: auto;
        transform: none;
        background: linear-gradient(
            to top,
            rgba(160, 25, 45, .98),
            rgba(160, 25, 45, .90),
            rgba(160, 25, 45, .15)
        );
        padding: 45px 16px 16px;
        justify-content: flex-end;
    }

    .dk .ov h5 {
        display: block;
        border: 0;
        padding: 0;
        margin: 0 0 6px;
        font-size: 14px;
    }

    .dk .ov p {
        display: block;
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .dk .ov a {
        padding: 8px 14px;
        font-size: 12px;
    }

}

/* =====================================================================
   SMALL MOBILE – 480px and below
   ===================================================================== */

@media (max-width: 480px) {

    .sp {
        padding: 38px 12px;
    }

    .dc {
        gap: 18px;
    }

    .dk .ph {
        height: 310px;
    }

    .dk .ov {
        padding: 38px 12px 12px;
    }

    .dk .ov p {
        font-size: 11px;
    }

}

/* =====================================================================
   VERY SMALL MOBILE – 360px and below
   ===================================================================== */

@media (max-width: 360px) {

    .dk .ph {
        height: 280px;
    }

    .dk h3 {
        font-size: 15px;
    }

    .dk > span {
        font-size: 12px;
    }

}
