/* ================= ROOT VARIABLES ================= */
:root{
    --primary:#E31E24;
    --secondary:#1F3C88;
    --light:#f6f9ff;
    --white:#ffffff;
    --shadow:0 18px 45px rgba(0,0,0,.18);
    --transition:.35s ease;
}

/* ================= RESET ================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body{
    background:#f4f6f9;
    color:#333;
}

/* ================= CONTAINER ================= */
.container{
    max-width:1200px;
    margin:40px auto;
    padding:0 20px;
}

/* ================= HERO ================= */
.hero{
    background:#fff;
    padding:30px 10px 20px;
    text-align:center;
}

.hero h1{
    text-align:center;
    font-size:36px;
    font-weight:800;
    color:#d32f2f;
    margin:20px 15px 10px;
    line-height:1.3;
    text-transform:uppercase;
    letter-spacing:1px;
}

.hero p{
    font-size:16px;
    color:#555;
}

/* ================= FILTER ================= */
.filter-box{
    text-align:center;
    margin:30px 0 40px;
}

.filter-box select{
    padding:12px 18px;
    font-size:16px;
    border-radius:8px;
    border:1px solid #ccc;
    background:#fff;
    cursor:pointer;
}

/* ================= DOCTOR GRID ================= */
.doctor-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:28px;
    padding:20px 40px 60px;
}

/* ================= DOCTOR CARD ================= */
.doctor-card{
    position:relative;
    background:#ffffff;
    border-radius:16px;
    padding:25px 18px;
    text-align:center;
    cursor:pointer;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    transition:transform 0.4s ease, box-shadow 0.4s ease;
    overflow:hidden;
}

/* Animated Gradient Border */
.doctor-card::before{
    content:"";
    position:absolute;
    inset:0;
    padding:2.5px;
    border-radius:16px;
    background:linear-gradient(
        270deg,
        #1F3C88,
        #E31E24,
        #ff9800,
        #1F3C88
    );
    background-size:600% 600%;
    animation:borderMove 6s ease infinite;

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite:xor;
    mask-composite:exclude;
}

@keyframes borderMove{
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}

/* Hover Effect */
.doctor-card:hover{
    transform:translateY(-12px) scale(1.03);
    box-shadow:0 22px 45px rgba(31,60,136,0.35);
}

/* ================= DOCTOR IMAGE ================= */
.doctor-card img{
    width:120px;
    height:120px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid transparent;
    background:
        linear-gradient(#fff,#fff) padding-box,
        linear-gradient(135deg,#1F3C88,#E31E24,#ff9800) border-box;
    margin-bottom:15px;
}

/* ================= DOCTOR TEXT ================= */
.doctor-card h3{
    font-size:18px;
    color:#222;
    margin:10px 0 6px;
    font-weight:700;
}

.doctor-card span{
    display:block;
    font-size:14px;
    font-weight:600;
    background:linear-gradient(135deg,#1F3C88,#E31E24);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    margin-bottom:6px;
}

.doctor-card p{
    font-size:14px;
    color:#555;
}

/* ================= MODAL ================= */
.modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.65);
    backdrop-filter:blur(4px);
    justify-content:center;
    align-items:center;
    z-index:9999;
}

/* ================= MODAL CONTENT ================= */
.modal-content{
    background:linear-gradient(180deg,#ffffff,#f6f9ff);
    max-width:520px;
    width:92%;
    border-radius:18px;
    padding:35px 30px;
    text-align:center;
    position:relative;
    box-shadow:0 30px 60px rgba(0,0,0,0.3);
    animation:zoomIn 0.35s ease;
}

@keyframes zoomIn{
    from{transform:scale(0.75);opacity:0}
    to{transform:scale(1);opacity:1}
}

/* ================= MODAL IMAGE ================= */
.modal-content img{
    width:150px;
    height:150px;
    border-radius:50%;
    object-fit:cover;
    border:5px solid transparent;
    background:
        linear-gradient(#fff,#fff) padding-box,
        linear-gradient(135deg,#1F3C88,#E31E24,#ff9800) border-box;
    margin-bottom:18px;
}

/* ================= MODAL TEXT ================= */
.modal-content h2{
    font-size:22px;
    margin:12px 0 6px;
    color:#222;
}

.modal-content span{
    font-size:15px;
    font-weight:600;
    background:linear-gradient(135deg,#1F3C88,#E31E24);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.modal-content p{
    font-size:15px;
    color:#555;
    line-height:1.7;
    margin-top:10px;
}

/* ================= WHATSAPP BUTTON ================= */
.whatsapp-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    background:linear-gradient(135deg,#25D366,#128C7E);
    color:#fff;
    padding:14px 26px;
    border-radius:50px;
    margin-top:22px;
    text-decoration:none;
    font-weight:600;
    font-size:16px;
    box-shadow:0 6px 18px rgba(37,211,102,0.4);
    transition:all 0.3s ease;
}

.whatsapp-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 25px rgba(37,211,102,0.6);
}

.whatsapp-btn img{
    width:26px;
    height:26px;
}

/* ================= CLOSE BUTTON ================= */
.close{
    position:absolute;
    top:14px;
    right:20px;
    font-size:28px;
    cursor:pointer;
    color:#444;
    transition:color 0.3s ease;
}

.close:hover{
    color:#e60000;
}

/* ================= RESPONSIVE ================= */
@media (max-width:600px){
    .hero h1{
        font-size:26px;
    }

    .doctor-grid{
        padding:15px;
    }

    .modal-content{
        margin:40px 15px;
        padding:25px 20px;
    }
}
