﻿/*=========================================================
    MY JOY SPECIALITY DENTAL CLINIC
    GLOBAL STYLESHEET
    Part 1
=========================================================*/

/*==============================
    CSS VARIABLES
==============================*/



:root{

    --primary:#1E88E5;
    --primary-dark:#1565C0;
    --secondary:#42A5F5;

    --accent:#F57C00;
    --accent-dark:#EF6C00;

    --white:#FFFFFF;
    --light:#F8FAFC;
    --gray:#E5E7EB;
    --gray2:#6B7280;
    --dark:#1F2937;

    --success:#16A34A;
    --danger:#DC2626;

    --radius:16px;
    --radius-small:10px;

    --shadow:
        0 10px 30px rgba(0,0,0,.08);

    --transition:.30s ease;
}

/*==============================
    RESET
==============================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{

    scroll-behavior:smooth;
}

body{

    font-family:'Poppins',sans-serif;

    background:var(--light);

    color:var(--dark);

    line-height:1.7;

    overflow-x:hidden;
}

/*==============================
    SCROLLBAR
==============================*/

::-webkit-scrollbar{

    width:10px;
}

::-webkit-scrollbar-track{

    background:#f1f1f1;
}

::-webkit-scrollbar-thumb{

    background:var(--primary);

    border-radius:50px;
}

::-webkit-scrollbar-thumb:hover{

    background:var(--primary-dark);
}

/*==============================
    LINKS
==============================*/

a{

    text-decoration:none;

    transition:var(--transition);

    color:inherit;
}

img{

    max-width:100%;

    display:block;
}

ul{

    list-style:none;
}

button{

    font-family:inherit;

    cursor:pointer;

    border:none;

    outline:none;
}

/*==============================
    CONTAINER
==============================*/

.container{

    width:90%;

    max-width:1300px;

    margin:auto;
}

/*==============================
    SECTIONS
==============================*/

section{

    padding:90px 0;
}

section h2{

    font-size:2.4rem;

    text-align:center;

    margin-bottom:18px;

    color:var(--dark);

    font-weight:700;
}

section p.section-text{

    max-width:750px;

    margin:auto;

    text-align:center;

    color:var(--gray2);
}

/*==============================
    TYPOGRAPHY
==============================*/

h1{

    font-size:4rem;

    line-height:1.2;

    font-weight:700;
}

h2{

    font-size:2.6rem;
}

h3{

    font-size:1.4rem;

    margin-bottom:10px;
}

p{

    color:var(--gray2);

    font-size:1rem;
}

/*==============================
    PAGE WRAPPER
==============================*/

.site-wrapper{

    min-height:100vh;

    display:flex;

    flex-direction:column;
}

main{

    flex:1;
}

/*==============================
    PAGE LOADER
==============================*/

#pageLoader{

    position:fixed;

    inset:0;

    background:#fff;

    display:flex;

    justify-content:center;

    align-items:center;

    z-index:9999;

    transition:.5s;
}

.loader-circle{

    width:60px;

    height:60px;

    border-radius:50%;

    border:5px solid #ddd;

    border-top:5px solid var(--accent);

    animation:spin .8s linear infinite;
}

@keyframes spin{

    to{

        transform:rotate(360deg);
    }
}

/*==============================
    BACK TO TOP
==============================*/

#backToTop{

    position:fixed;

    right:25px;

    bottom:25px;

    width:50px;

    height:50px;

    border-radius:50%;

    background:var(--accent);

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:20px;

    box-shadow:var(--shadow);

    opacity:0;

    visibility:hidden;

    transition:var(--transition);

    z-index:999;
}

#backToTop.show{

    opacity:1;

    visibility:visible;
}

#backToTop:hover{

    background:var(--accent-dark);

    transform:translateY(-4px);
}

/*==============================
    BUTTONS
==============================*/

.btn-primary{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:15px 34px;

    border-radius:50px;

    background:var(--accent);

    color:#fff;

    font-weight:600;

    transition:var(--transition);

    box-shadow:var(--shadow);
}

.btn-primary:hover{

    background:var(--accent-dark);

    transform:translateY(-3px);
}

.btn-secondary{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:15px 34px;

    border-radius:50px;

    border:2px solid var(--primary);

    color:var(--primary);

    font-weight:600;

    transition:var(--transition);
}

.btn-secondary:hover{

    background:var(--primary);

    color:#fff;
}

/*==============================
    COMMON CARDS
==============================*/

.card{

    background:#fff;

    border-radius:var(--radius);

    padding:30px;

    box-shadow:var(--shadow);

    transition:var(--transition);
}

.card:hover{

    transform:translateY(-8px);
}

.card p{

    margin-top:10px;
}

/*==============================
    GRID
==============================*/

.grid-2{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:30px;
}

.grid-3{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;
}

.grid-4{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;
}

/*==============================
    UTILITIES
==============================*/

.text-center{

    text-align:center;
}

.mt-1{

    margin-top:10px;
}

.mt-2{

    margin-top:20px;
}

.mt-3{

    margin-top:30px;
}

.mt-4{

    margin-top:40px;
}

.mb-1{

    margin-bottom:10px;
}

.mb-2{

    margin-bottom:20px;
}

.mb-3{

    margin-bottom:30px;
}

.mb-4{

    margin-bottom:40px;
}

.rounded{

    border-radius:var(--radius);
}

.shadow{

    box-shadow:var(--shadow);
}

.hidden{

    display:none;
}

.fade-in{

    opacity:0;

    transform:translateY(30px);

    transition:.7s;
}

.fade-in.show{

    opacity:1;

    transform:translateY(0);
}

/*=========================================================
    PART 2
    NAVIGATION + HERO
=========================================================*/


/*==============================
    HEADER
==============================*/

.main-header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    background:#ffffff;

    z-index:1000;

    transition:.35s ease;

    box-shadow:0 2px 15px rgba(0,0,0,.05);

}

.main-header.scrolled{

    box-shadow:0 8px 30px rgba(0,0,0,.12);
}


/*==============================
    NAV CONTAINER
==============================*/

.nav-container{

    height:85px;

    display:flex;

    align-items:center;

    justify-content:space-between;

}


/*==============================
    LOGO
==============================*/

.logo{

    display:flex;

    align-items:center;

    gap:15px;

}

.logo-image{

    width:58px;

    height:58px;

    object-fit:contain;

}

.logo-text{

    display:flex;

    flex-direction:column;

}

.logo-text h2{

    font-size:1.4rem;

    color:var(--primary);

    line-height:1.1;

}

.logo-text span{

    font-size:.82rem;

    color:var(--gray2);

    font-weight:500;

}


/*==============================
    DESKTOP NAVIGATION
==============================*/

.navigation{

    display:flex;

    align-items:center;

}

.nav-links{

    display:flex;

    align-items:center;

    gap:28px;

}

.nav-links a{

    position:relative;

    color:var(--dark);

    font-weight:500;

    transition:var(--transition);

}

.nav-links a:hover{

    color:var(--primary);

}

.nav-links a.active{

    color:var(--primary);

}

.nav-links a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:0;

    height:3px;

    background:var(--accent);

    border-radius:50px;

    transition:.3s;

}

.nav-links a:hover::after,

.nav-links a.active::after{

    width:100%;

}


/*==============================
    NAV ACTIONS
==============================*/

.nav-actions{

    display:flex;

    align-items:center;

    gap:15px;

}

.btn-book{

    background:var(--accent);

    color:#fff;

    padding:12px 22px;

    border-radius:50px;

    font-weight:600;

    box-shadow:var(--shadow);

    transition:var(--transition);

}

.btn-book:hover{

    background:var(--accent-dark);

    transform:translateY(-2px);

}

.btn-login{

    border:2px solid var(--primary);

    color:var(--primary);

    padding:10px 22px;

    border-radius:50px;

    font-weight:600;

    transition:var(--transition);

}

.btn-login:hover{

    background:var(--primary);

    color:#fff;

}


/*==============================
    MOBILE TOGGLE
==============================*/

.menu-toggle{

    display:none;

    width:48px;

    height:48px;

    background:none;

    flex-direction:column;

    justify-content:center;

    gap:6px;

}

.menu-toggle span{

    width:28px;

    height:3px;

    background:var(--dark);

    border-radius:20px;

    transition:.3s;

}


/*==============================
    MOBILE MENU
==============================*/

.mobile-navigation{

    position:absolute;

    top:85px;

    left:0;

    width:100%;

    background:#ffffff;

    box-shadow:0 15px 30px rgba(0,0,0,.12);

    max-height:0;

    overflow:hidden;

    transition:.4s ease;

}

.mobile-navigation.active{

    max-height:700px;

}

.mobile-navigation ul{

    display:flex;

    flex-direction:column;

    padding:20px;

}

.mobile-navigation li{

    border-bottom:1px solid #eee;

}

.mobile-navigation li:last-child{

    border:none;

}

.mobile-navigation a{

    display:block;

    padding:18px 0;

    font-weight:500;

    color:var(--dark);

}

.mobile-navigation a:hover{

    color:var(--primary);

}


/*==============================
    HERO
==============================*/

.hero{

    position:relative;

    min-height:100vh;

    display:flex;

    align-items:center;

    justify-content:center;

    background:url("../images/hero.jpg") center center/cover no-repeat;

    margin-top:85px;

}

.hero::before{

    content:"";

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.45);

}

.hero-overlay{

    position:relative;

    width:100%;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:60px 0;

}

.hero-content{

    width:90%;

    max-width:1200px;

    color:#fff;

}

.hero-content h1{

    max-width:650px;

    font-size:4.2rem;

    margin-bottom:25px;

    animation:slideUp .8s ease;

}

.hero-content h1 span{

    color:var(--accent);

}

.hero-content p{

    color:#f5f5f5;

    max-width:650px;

    font-size:1.15rem;

    margin-bottom:40px;

    animation:slideUp 1s ease;

}

.hero-buttons{

    display:flex;

    gap:20px;

    flex-wrap:wrap;

    animation:slideUp 1.2s ease;

}


/*==============================
    HERO ANIMATION
==============================*/

@keyframes slideUp{

    from{

        opacity:0;

        transform:translateY(40px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}


/*==============================
    RESPONSIVE NAVIGATION
==============================*/

@media(max-width:992px){

    .navigation{

        display:none;

    }

    .nav-actions{

        display:none;

    }

    .menu-toggle{

        display:flex;

    }

    .logo-text span{

        display:none;

    }

    .hero-content h1{

        font-size:3.2rem;

    }

}


@media(max-width:768px){

    .nav-container{

        height:75px;

    }

    .hero{

        margin-top:75px;

    }

    .hero-content{

        text-align:center;

    }

    .hero-content h1{

        font-size:2.6rem;

        margin-left:auto;

        margin-right:auto;

    }

    .hero-content p{

        margin-left:auto;

        margin-right:auto;

    }

    .hero-buttons{

        justify-content:center;

    }

}


@media(max-width:480px){

    .hero-content h1{

        font-size:2rem;

    }

    .hero-content p{

        font-size:1rem;

    }

    .btn-primary,

    .btn-secondary{

        width:100%;

        justify-content:center;

    }

}

/*=========================================================
    PART 3
    HOMEPAGE SECTIONS
=========================================================*/


/*==============================
    WHY CHOOSE US
==============================*/

.why-us{

    background:#ffffff;

}


.why-us .cards{

    margin-top:50px;

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

}


.why-us .card{

    text-align:center;

    padding:35px 25px;

    position:relative;

    overflow:hidden;

}


.why-us .card::before{

    content:"";

    position:absolute;

    top:0;

    left:0;

    width:100%;

    height:5px;

    background:var(--accent);

}


.why-us .card h3{

    color:var(--primary);

    font-size:1.25rem;

}


.why-us .card p{

    font-size:.95rem;

}



/*==============================
    SERVICES PREVIEW
==============================*/

.services-preview{

    background:#f8fafc;

}


.service-grid{

    margin-top:50px;

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

}


.service-card{

    background:white;

    padding:30px 25px;

    border-radius:var(--radius);

    box-shadow:var(--shadow);

    transition:var(--transition);

    border-bottom:4px solid transparent;

}


.service-card:hover{

    transform:translateY(-10px);

    border-bottom-color:var(--accent);

}


.service-card h3{

    color:var(--primary);

    margin-bottom:15px;

}


.service-card p{

    font-size:.95rem;

}


/*==============================
    STATISTICS
==============================*/

.statistics{

    background:

    linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

}


.stats-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

}


.stat-card{

    background:rgba(255,255,255,.12);

    backdrop-filter:blur(10px);

    padding:35px 20px;

    border-radius:var(--radius);

    text-align:center;

    color:white;

}


.stat-card h2{

    color:white;

    font-size:3rem;

    margin-bottom:10px;

}


.stat-card p{

    color:white;

    font-size:1rem;

}


/*==============================
    TESTIMONIALS
==============================*/

.testimonials-home{

    background:#ffffff;

}


.testimonial-grid{

    margin-top:50px;

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}


.testimonial{

    background:#f8fafc;

    padding:35px;

    border-radius:var(--radius);

    position:relative;

    transition:var(--transition);

}


.testimonial:hover{

    transform:translateY(-8px);

    box-shadow:var(--shadow);

}


.testimonial::before{

    content:"“";

    position:absolute;

    top:15px;

    left:25px;

    font-size:70px;

    color:var(--accent);

    opacity:.3;

}


.testimonial p{

    margin-top:35px;

    font-style:italic;

}


.testimonial h4{

    margin-top:20px;

    color:var(--primary);

}


/*==============================
    CONTACT CTA
==============================*/

.contact-cta{

    background:

    linear-gradient(
        120deg,
        var(--accent),
        var(--accent-dark)
    );

    text-align:center;

}


.contact-cta h2{

    color:white;

}


.contact-cta p{

    color:white;

    max-width:700px;

    margin:0 auto 35px;

    font-size:1.1rem;

}


.contact-cta .btn-primary{

    background:white;

    color:var(--accent);

}


.contact-cta .btn-primary:hover{

    background:#f5f5f5;

}


/*==============================
    GENERAL IMAGE CARDS
==============================*/

.image-card{

    overflow:hidden;

    border-radius:var(--radius);

    background:white;

    box-shadow:var(--shadow);

}


.image-card img{

    width:100%;

    height:280px;

    object-fit:cover;

    transition:.5s;

}


.image-card:hover img{

    transform:scale(1.08);

}


.image-card-content{

    padding:25px;

}


/*==============================
    BADGES
==============================*/

.badge{

    display:inline-block;

    padding:7px 18px;

    border-radius:50px;

    background:#e0f2fe;

    color:var(--primary);

    font-size:.85rem;

    font-weight:600;

}


/*==============================
    FORMS GLOBAL
==============================*/

.form-group{

    margin-bottom:20px;

}


.form-group label{

    display:block;

    margin-bottom:8px;

    font-weight:600;

    color:var(--dark);

}


.form-control{

    width:100%;

    padding:15px 18px;

    border-radius:var(--radius-small);

    border:1px solid #ddd;

    background:white;

    font-size:1rem;

    outline:none;

    transition:.3s;

}


.form-control:focus{

    border-color:var(--primary);

    box-shadow:0 0 0 3px rgba(30,136,229,.15);

}


textarea.form-control{

    min-height:140px;

    resize:vertical;

}


/*==============================
    RESPONSIVE HOMEPAGE
==============================*/

@media(max-width:1100px){

    .why-us .cards,

    .service-grid{

        grid-template-columns:repeat(2,1fr);

    }


    .stats-grid{

        grid-template-columns:repeat(2,1fr);

    }


}


@media(max-width:768px){


    section{

        padding:60px 0;

    }


    section h2{

        font-size:2rem;

    }


    .why-us .cards,

    .service-grid,

    .testimonial-grid,

    .stats-grid{

        grid-template-columns:1fr;

    }


    .stat-card h2{

        font-size:2.4rem;

    }

}

/*=========================================================
    PART 4
    FOOTER + SYSTEM COMPONENTS + FINAL RESPONSIVE
=========================================================*/


/*==============================
    FOOTER
==============================*/

.site-footer{

    background:#0f172a;

    color:white;

    padding-top:70px;

}


.footer-container{

    width:90%;

    max-width:1300px;

    margin:auto;

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:40px;

    padding-bottom:50px;

}


.footer-column h3{

    color:white;

    margin-bottom:25px;

    font-size:1.3rem;

}


.footer-column p{

    color:#cbd5e1;

    font-size:.95rem;

    margin-bottom:10px;

}


.footer-column ul li{

    margin-bottom:12px;

}


.footer-column ul li a{

    color:#cbd5e1;

    transition:.3s;

}


.footer-column ul li a:hover{

    color:var(--accent);

    padding-left:5px;

}


.footer-logo{

    width:75px;

    margin-bottom:15px;

}


.footer-bottom{

    border-top:1px solid rgba(255,255,255,.1);

    padding:25px;

    text-align:center;

}


.footer-bottom p{

    color:#94a3b8;

}



/*==============================
    SOCIAL BUTTONS
==============================*/

.social-links{

    display:flex;

    gap:12px;

}


.social-links a{

    width:40px;

    height:40px;

    border-radius:50%;

    background:rgba(255,255,255,.1);

    display:flex;

    justify-content:center;

    align-items:center;

    color:white;

}


.social-links a:hover{

    background:var(--accent);

}



/*==============================
    CONTACT PAGE
==============================*/

.contact-wrapper{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:40px;

}


.contact-box{

    background:white;

    padding:35px;

    border-radius:var(--radius);

    box-shadow:var(--shadow);

}


.contact-item{

    display:flex;

    gap:15px;

    margin-bottom:25px;

}


.contact-icon{

    width:50px;

    height:50px;

    background:#e0f2fe;

    color:var(--primary);

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

}



/*==============================
    APPOINTMENT FORM
==============================*/

.appointment-section{

    background:#f8fafc;

}


.appointment-card{

    background:white;

    max-width:850px;

    margin:auto;

    padding:45px;

    border-radius:var(--radius);

    box-shadow:var(--shadow);

}



/*==============================
    TABLE SYSTEM
==============================*/


.table-container{

    width:100%;

    overflow-x:auto;

}


table{

    width:100%;

    border-collapse:collapse;

    background:white;

    border-radius:12px;

    overflow:hidden;

    box-shadow:var(--shadow);

}


table th{

    background:var(--primary);

    color:white;

    padding:15px;

    text-align:left;

}


table td{

    padding:15px;

    border-bottom:1px solid #eee;

}


table tr:hover{

    background:#f8fafc;

}



/*==============================
    STATUS BADGES
==============================*/


.status{

    padding:6px 14px;

    border-radius:50px;

    font-size:.8rem;

    font-weight:600;

}


.status-success{

    background:#dcfce7;

    color:#166534;

}


.status-warning{

    background:#fef3c7;

    color:#92400e;

}


.status-danger{

    background:#fee2e2;

    color:#991b1b;

}



/*==============================
    DASHBOARD COMPONENTS
==============================*/


.dashboard-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

}


.dashboard-card{

    background:white;

    padding:30px;

    border-radius:var(--radius);

    box-shadow:var(--shadow);

}


.dashboard-card h3{

    color:var(--gray2);

    font-size:1rem;

}


.dashboard-card strong{

    display:block;

    font-size:2.5rem;

    color:var(--primary);

    margin-top:10px;

}



.sidebar{

    background:#0f172a;

    min-height:100vh;

    width:270px;

    padding:30px;

}


.sidebar a{

    color:#cbd5e1;

    display:block;

    padding:15px;

    border-radius:10px;

    margin-bottom:10px;

}


.sidebar a:hover,

.sidebar a.active{

    background:var(--primary);

    color:white;

}



/*==============================
    MODALS
==============================*/


.modal{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.5);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:2000;

}


.modal.active{

    display:flex;

}


.modal-content{

    background:white;

    padding:35px;

    border-radius:var(--radius);

    width:90%;

    max-width:500px;

}



/*==============================
    ANIMATION HELPERS
==============================*/


.slide-left{

    animation:slideLeft .8s ease;

}


@keyframes slideLeft{

    from{

        opacity:0;

        transform:translateX(-50px);

    }

    to{

        opacity:1;

        transform:translateX(0);

    }

}



.zoom-in{

    animation:zoomIn .6s ease;

}


@keyframes zoomIn{

    from{

        opacity:0;

        transform:scale(.8);

    }

    to{

        opacity:1;

        transform:scale(1);

    }

}



/*==============================
    FINAL RESPONSIVE RULES
==============================*/


@media(max-width:1100px){

    .footer-container{

        grid-template-columns:repeat(2,1fr);

    }


    .dashboard-grid{

        grid-template-columns:repeat(2,1fr);

    }


    .contact-wrapper{

        grid-template-columns:1fr;

    }

}



@media(max-width:768px){


    .footer-container{

        grid-template-columns:1fr;

        text-align:center;

    }


    .footer-logo{

        margin:auto;

    }


    .social-links{

        justify-content:center;

    }


    .dashboard-grid{

        grid-template-columns:1fr;

    }


    .sidebar{

        width:100%;

        min-height:auto;

    }


    .appointment-card,

    .contact-box{

        padding:25px;

    }

}



@media(max-width:480px){


    .container{

        width:94%;

    }


    h1{

        font-size:2rem;

    }


    h2{

        font-size:1.7rem;

    }


    table{

        font-size:.85rem;

    }


}




.hero{
    height:100vh !important;
    min-height:100vh !important;
    background-image:url("../images/hero.jpg") !important;
    background-size:cover !important;
    background-position:center !important;
    background-repeat:no-repeat !important;
}


/*=========================================================
    HOMEPAGE REDESIGN
    New sections appended — no existing rules changed
=========================================================*/

/* ---- Scroll animation base ---- */
.fade-up{
    opacity:0;
    transform:translateY(32px);
    transition:opacity .65s ease, transform .65s ease;
    transition-delay:var(--d,0s);
}
.fade-up.visible{
    opacity:1;
    transform:translateY(0);
}
.fade-section{
    opacity:0;
    transition:opacity .5s ease;
}
.fade-section.visible{
    opacity:1;
}

/* ---- Section labels & titles ---- */
.section-label{
    display:inline-block;
    font-size:.8rem;
    font-weight:700;
    letter-spacing:1.6px;
    text-transform:uppercase;
    color:var(--accent);
    margin-bottom:12px;
    text-align:center;
    width:100%;
}
.section-title{
    font-size:2.5rem;
    font-weight:800;
    color:var(--dark);
    text-align:center;
    margin-bottom:16px;
    line-height:1.2;
}
.section-sub{
    max-width:680px;
    margin:0 auto 56px;
    text-align:center;
    color:var(--gray2);
    font-size:1.05rem;
    line-height:1.8;
}

/* ---- Why Choose Us ---- */
.why-us-new{
    background:#fff;
    padding:100px 0;
}
.why-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px;
}
.why-card{
    background:#f8fafc;
    border-radius:18px;
    padding:36px 30px;
    border:1px solid #f1f5f9;
    transition:box-shadow .25s,transform .25s;
}
.why-card:hover{
    box-shadow:0 12px 40px rgba(0,0,0,.08);
    transform:translateY(-6px);
}
.why-icon{
    width:58px;height:58px;
    border-radius:14px;
    display:flex;align-items:center;justify-content:center;
    margin-bottom:22px;
}
.why-icon-blue  {background:#dbeafe;color:#1e88e5;}
.why-icon-orange{background:#ffedd5;color:#f57c00;}
.why-icon-green {background:#dcfce7;color:#16a34a;}
.why-icon-purple{background:#ede9fe;color:#7c3aed;}
.why-icon-red   {background:#fee2e2;color:#dc2626;}
.why-icon-teal  {background:#ccfbf1;color:#0d9488;}
.why-card h3{font-size:1.15rem;font-weight:700;color:var(--dark);margin-bottom:10px;}
.why-card p{font-size:.93rem;color:var(--gray2);line-height:1.7;}

/* ---- Services Section ---- */
.services-new{
    background:#f8fafc;
    padding:100px 0;
}
.services-grid-new{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
}
.svc-card{
    background:#fff;
    border-radius:18px;
    padding:34px 26px;
    border:1px solid #f1f5f9;
    transition:box-shadow .25s,transform .25s,border-color .25s;
    display:flex;
    flex-direction:column;
    gap:12px;
}
.svc-card:hover{
    box-shadow:0 14px 44px rgba(0,0,0,.1);
    transform:translateY(-7px);
    border-color:var(--accent);
}
.svc-icon-wrap{
    width:60px;height:60px;
    border-radius:16px;
    background:var(--ic);
    color:var(--clr);
    display:flex;align-items:center;justify-content:center;
    flex-shrink:0;
}
.svc-card h3{font-size:1.1rem;font-weight:700;color:var(--dark);}
.svc-card p{font-size:.9rem;color:var(--gray2);line-height:1.7;flex:1;}
.svc-link{
    font-size:.85rem;font-weight:700;
    color:var(--primary);
    display:inline-flex;align-items:center;gap:4px;
    transition:gap .2s,color .2s;
    margin-top:4px;
}
.svc-link:hover{color:var(--accent);gap:8px;}

/* ---- Statistics ---- */
.stats-new{
    background:linear-gradient(135deg,#0d47a1 0%,#1565c0 40%,#1e88e5 100%);
    padding:80px 0;
    position:relative;
    overflow:hidden;
}
.stats-new::before{
    content:"";
    position:absolute;
    top:-80px;right:-80px;
    width:320px;height:320px;
    border-radius:50%;
    background:rgba(255,255,255,.06);
}
.stats-new-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
}
.stat-new-card{
    text-align:center;
    color:#fff;
    padding:20px 10px;
}
.stat-new-card .stat-num{
    font-size:3.4rem;
    font-weight:900;
    line-height:1;
    color:#fff;
}
.stat-new-card .stat-plus{
    font-size:2rem;
    font-weight:800;
    color:var(--accent);
    display:inline-block;
    margin-top:-4px;
}
.stat-new-card p{
    color:rgba(255,255,255,.75);
    font-size:1rem;
    margin-top:10px;
}

/* ---- Doctors ---- */
.doctors-new{background:#fff;padding:100px 0;}
.doctors-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px;
}
.doctor-card-new{
    border-radius:20px;
    overflow:hidden;
    border:1px solid #f1f5f9;
    transition:box-shadow .25s,transform .25s;
    background:#fff;
}
.doctor-card-new:hover{
    box-shadow:0 14px 44px rgba(0,0,0,.1);
    transform:translateY(-6px);
}
.doctor-photo-wrap{position:relative;}
.doctor-photo-placeholder{
    height:200px;
    background:#f1f5f9;
    display:flex;align-items:center;justify-content:center;
}
.doctor-badge{
    position:absolute;bottom:14px;left:50%;
    transform:translateX(-50%);
    background:var(--accent);color:#fff;
    font-size:.75rem;font-weight:700;
    padding:5px 14px;border-radius:20px;
    white-space:nowrap;
}
.doctor-info{padding:24px 26px;}
.doctor-info h3{font-size:1.15rem;font-weight:800;color:var(--dark);margin-bottom:6px;}
.doctor-specialty{
    display:block;font-size:.82rem;font-weight:600;
    color:var(--primary);margin-bottom:4px;
}
.doctor-exp{
    display:block;font-size:.78rem;color:var(--gray2);
    margin-bottom:14px;
}
.doctor-info p{font-size:.88rem;color:var(--gray2);line-height:1.7;}
.btn-outline-blue{
    display:inline-flex;align-items:center;gap:8px;
    padding:14px 32px;border-radius:50px;
    border:2px solid var(--primary);color:var(--primary);
    font-weight:700;font-size:.95rem;
    transition:.25s;
}
.btn-outline-blue:hover{
    background:var(--primary);color:#fff;
}

/* ---- Process Timeline ---- */
.process-new{background:#f8fafc;padding:100px 0;}
.process-timeline{
    display:flex;
    justify-content:space-between;
    gap:10px;
    position:relative;
    margin-top:20px;
}
.process-timeline::before{
    content:"";
    position:absolute;
    top:32px;left:60px;right:60px;height:2px;
    background:linear-gradient(90deg,var(--primary),var(--accent));
    z-index:0;
}
.process-step{
    flex:1;
    text-align:center;
    position:relative;
    z-index:1;
    padding:0 10px;
}
.process-icon-wrap{
    display:flex;flex-direction:column;align-items:center;
    margin-bottom:16px;
}
.process-icon{
    width:64px;height:64px;
    border-radius:50%;
    background:#fff;
    border:3px solid var(--primary);
    display:flex;align-items:center;justify-content:center;
    color:var(--primary);
    box-shadow:0 4px 16px rgba(30,136,229,.18);
    transition:.25s;
}
.process-step:hover .process-icon{
    background:var(--primary);color:#fff;
    transform:scale(1.1);
}
.process-step-num{
    font-size:.72rem;font-weight:800;
    color:var(--accent);letter-spacing:1px;
    margin-bottom:8px;
}
.process-step h4{font-size:1rem;font-weight:700;color:var(--dark);margin-bottom:8px;}
.process-step p{font-size:.83rem;color:var(--gray2);line-height:1.6;}

/* ---- Testimonials ---- */
.testimonials-new{background:#fff;padding:100px 0;}
.testimonials-grid-new{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}
.testi-card{
    background:#f8fafc;
    border-radius:18px;
    padding:34px 28px;
    border:1px solid #f1f5f9;
    position:relative;
    transition:box-shadow .25s,transform .25s;
}
.testi-card:hover{
    box-shadow:0 12px 40px rgba(0,0,0,.09);
    transform:translateY(-5px);
}
.testi-card::before{
    content:"\201C";
    position:absolute;top:18px;left:24px;
    font-size:72px;line-height:1;
    color:var(--accent);opacity:.18;
    font-family:Georgia,serif;
}
.testi-stars{
    color:#f59e0b;font-size:1.1rem;
    margin-bottom:18px;letter-spacing:2px;
}
.testi-text{
    font-size:.95rem;color:var(--gray2);
    line-height:1.8;font-style:italic;
    margin-bottom:22px;
}
.testi-author{
    display:flex;align-items:center;gap:12px;
}
.testi-avatar{
    width:42px;height:42px;border-radius:50%;
    color:#fff;font-size:.95rem;font-weight:800;
    display:flex;align-items:center;justify-content:center;
    flex-shrink:0;
}
.testi-author strong{
    display:block;font-size:.9rem;
    color:var(--dark);font-weight:700;
}
.testi-author span{font-size:.75rem;color:var(--gray2);}

/* ---- Before & After Gallery ---- */
.gallery-new{background:#f8fafc;padding:100px 0;}
.gallery-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}
.gallery-card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    border:1px solid #f1f5f9;
    transition:box-shadow .25s,transform .25s;
}
.gallery-card:hover{
    box-shadow:0 14px 44px rgba(0,0,0,.1);
    transform:translateY(-6px);
}
.gallery-before-after{
    display:grid;
    grid-template-columns:1fr 4px 1fr;
    height:160px;
}
.gallery-side{
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
}
.gallery-divider{background:#fff;}
.gallery-label-tag{
    position:absolute;top:10px;left:10px;
    font-size:.68rem;font-weight:800;
    letter-spacing:.6px;text-transform:uppercase;
    background:rgba(0,0,0,.45);color:#fff;
    padding:3px 9px;border-radius:20px;
}
.gallery-label-after{left:auto;right:10px;}
.gallery-card-info{
    padding:18px 20px;
    border-top:1px solid #f1f5f9;
}
.gallery-card-info strong{
    display:block;font-size:.95rem;
    font-weight:700;color:var(--dark);margin-bottom:4px;
}
.gallery-card-info p{font-size:.82rem;color:var(--gray2);}

/* ---- FAQ ---- */
.faq-new{background:#fff;padding:100px 0;}
.faq-list{
    max-width:820px;margin:0 auto;
    display:flex;flex-direction:column;gap:12px;
}
.faq-item{
    background:#f8fafc;
    border-radius:14px;
    border:1px solid #f1f5f9;
    overflow:hidden;
    transition:box-shadow .2s;
}
.faq-item:hover{box-shadow:0 4px 16px rgba(0,0,0,.06);}
.faq-item.open{border-color:var(--primary);}
.faq-question{
    width:100%;
    display:flex;align-items:center;justify-content:space-between;
    gap:16px;
    padding:20px 24px;
    background:none;
    text-align:left;
    font-size:1rem;font-weight:600;color:var(--dark);
    cursor:pointer;
    font-family:inherit;
}
.faq-question:hover{color:var(--primary);}
.faq-item.open .faq-question{color:var(--primary);}
.faq-chevron{
    flex-shrink:0;
    transition:transform .28s;
    color:var(--gray2);
}
.faq-item.open .faq-chevron{transform:rotate(180deg);color:var(--primary);}
.faq-answer{
    max-height:0;
    overflow:hidden;
    transition:max-height .35s ease;
}
.faq-answer p{
    padding:0 24px 20px;
    font-size:.93rem;color:var(--gray2);line-height:1.8;
}

/* ---- Payment Methods ---- */
.payment-methods-new{background:#f8fafc;padding:100px 0;}
.payment-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
    margin-bottom:28px;
}
.payment-card{
    background:#fff;
    border-radius:18px;
    padding:34px 26px;
    text-align:center;
    border:1px solid #f1f5f9;
    transition:box-shadow .25s,transform .25s;
}
.payment-card:hover{
    box-shadow:0 12px 36px rgba(0,0,0,.09);
    transform:translateY(-5px);
}
.payment-icon{
    width:68px;height:68px;
    border-radius:18px;
    display:flex;align-items:center;justify-content:center;
    margin:0 auto 20px;
}
.payment-card h4{
    font-size:1.05rem;font-weight:700;
    color:var(--dark);margin-bottom:10px;
}
.payment-card p{font-size:.88rem;color:var(--gray2);line-height:1.7;}
.payment-note{
    max-width:680px;margin:0 auto;
    display:flex;align-items:flex-start;gap:12px;
    background:#eff6ff;
    border:1px solid #bfdbfe;
    border-radius:12px;
    padding:16px 20px;
    font-size:.9rem;color:#1e40af;
}
.payment-note svg{flex-shrink:0;margin-top:1px;color:#1e88e5;}

/* ---- CTA Section ---- */
.cta-new{
    background:linear-gradient(135deg,#0d47a1,#1e88e5 60%,#1565c0);
    padding:100px 0;
    position:relative;
    overflow:hidden;
}
.cta-new::before{
    content:"";
    position:absolute;bottom:-100px;right:-100px;
    width:400px;height:400px;border-radius:50%;
    background:rgba(245,124,0,.15);
}
.cta-inner{
    display:grid;
    grid-template-columns:1.4fr 1fr;
    gap:60px;
    align-items:center;
    position:relative;z-index:1;
}
.cta-text-block .section-label{
    color:rgba(255,255,255,.7);
    text-align:left;width:auto;
}
.cta-text-block h2{
    font-size:2.6rem;font-weight:800;
    color:#fff;line-height:1.25;
    margin-bottom:18px;
    text-align:left;
}
.cta-text-block > p{
    color:rgba(255,255,255,.8);
    font-size:1.05rem;line-height:1.8;
    margin-bottom:28px;
}
.cta-bullets{
    list-style:none;margin-bottom:36px;
    display:flex;flex-direction:column;gap:10px;
}
.cta-bullets li{
    display:flex;align-items:center;gap:10px;
    color:rgba(255,255,255,.9);font-size:.95rem;
}
.cta-bullets li svg{
    flex-shrink:0;
    color:var(--accent);
}
.cta-actions{display:flex;gap:16px;flex-wrap:wrap;}
.btn-cta-primary{
    display:inline-flex;align-items:center;
    padding:15px 34px;border-radius:50px;
    background:var(--accent);color:#fff;
    font-weight:700;font-size:1rem;
    transition:.25s;
    box-shadow:0 4px 18px rgba(245,124,0,.4);
}
.btn-cta-primary:hover{
    background:#e65100;transform:translateY(-3px);
    box-shadow:0 8px 28px rgba(245,124,0,.5);
    color:#fff;
}
.btn-cta-outline{
    display:inline-flex;align-items:center;
    padding:13px 32px;border-radius:50px;
    border:2px solid rgba(255,255,255,.6);
    color:#fff;font-weight:700;font-size:1rem;
    transition:.25s;
}
.btn-cta-outline:hover{
    background:rgba(255,255,255,.15);
    border-color:#fff;
    color:#fff;
}
.cta-info-block{
    display:flex;flex-direction:column;gap:16px;
}
.cta-info-card{
    background:rgba(255,255,255,.1);
    backdrop-filter:blur(8px);
    border:1px solid rgba(255,255,255,.15);
    border-radius:14px;
    padding:18px 22px;
    display:flex;align-items:center;gap:16px;
    transition:background .2s;
}
.cta-info-card:hover{background:rgba(255,255,255,.18);}
.cta-info-icon{
    width:46px;height:46px;
    border-radius:12px;
    background:rgba(255,255,255,.15);
    display:flex;align-items:center;justify-content:center;
    color:#fff;flex-shrink:0;
}
.cta-info-card span{
    display:block;font-size:.72rem;color:rgba(255,255,255,.6);
    font-weight:600;text-transform:uppercase;letter-spacing:.5px;
}
.cta-info-card strong{
    display:block;color:#fff;
    font-size:.95rem;font-weight:700;margin-top:2px;
}

/* ---- Homepage Responsive ---- */
@media(max-width:1100px){
    .services-grid-new{grid-template-columns:repeat(2,1fr);}
    .why-grid{grid-template-columns:repeat(2,1fr);}
    .cta-inner{grid-template-columns:1fr;gap:40px;}
    .cta-text-block h2{font-size:2.1rem;}
    .process-timeline{flex-wrap:wrap;justify-content:center;}
    .process-timeline::before{display:none;}
    .process-step{min-width:140px;max-width:180px;}
}
@media(max-width:900px){
    .doctors-grid{grid-template-columns:repeat(2,1fr);}
    .gallery-grid{grid-template-columns:repeat(2,1fr);}
    .testimonials-grid-new{grid-template-columns:repeat(2,1fr);}
    .stats-new-grid{grid-template-columns:repeat(2,1fr);}
    .payment-grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:768px){
    .section-title{font-size:1.9rem;}
    .why-grid,
    .services-grid-new,
    .doctors-grid,
    .gallery-grid,
    .testimonials-grid-new,
    .stats-new-grid,
    .payment-grid{grid-template-columns:1fr;}
    .stat-new-card .stat-num{font-size:2.6rem;}
    .cta-text-block h2{font-size:1.8rem;}
    .process-step{min-width:120px;}
    .section-sub{margin-bottom:36px;}
}
@media(max-width:480px){
    .section-title{font-size:1.6rem;}
    .btn-cta-primary,.btn-cta-outline,.btn-outline-blue{width:100%;justify-content:center;}
    .cta-actions{flex-direction:column;}
}

/*=========================================================
    HOMEPAGE VISUAL FIXES
    Targeted corrections for 10 identified problems.
    All rules here override the existing homepage section.
    Nothing from Part 1-4 or the original homepage CSS
    is changed — only additions at the end.
=========================================================*/

/* Fix 1 — section-label: inline-block+width:100% centering is unreliable */
.section-label {
    display: block;
    text-align: center;
}

/* Fix 2 — section-sub: 56px bottom margin + 100px section padding = too wide a gap */
.section-sub {
    margin: 0 auto 48px;
}

/* Fix 3 — testi-card quote mark too faint at .18 opacity */
.testi-card::before {
    opacity: .25;
}

/* Fix 4 — stat-num is a div (block), stat-plus is inline-block — they stack vertically
           Give the card a flex column layout and make number+symbol share a row */
.stat-new-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-new-card .stat-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    line-height: 1;
}

/* If no .stat-row wrapper exists in HTML, make num+plus inline via adjacent selector */
.stat-new-card .stat-num {
    display: inline;
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1;
}

.stat-new-card .stat-plus {
    display: inline;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    vertical-align: super;
    line-height: 1;
    margin-left: 2px;
}

/* Fix 5 — process timeline connector line misaligned due to margin-top:20px on container */
.process-timeline::before {
    top: 52px;
}

/* Fix 6 — svc-card hover border: all-sides orange is jarring; accent bottom-only */
.svc-card:hover {
    border-color: #e2e8f0;
    border-bottom-color: var(--accent);
    border-bottom-width: 3px;
}

/* Fix 7 — doctor photo placeholder too short */
.doctor-photo-placeholder {
    height: 220px;
}

/* Fix 8 — gallery before/after panels too cramped at 160px */
.gallery-before-after {
    height: 190px;
}

/* Fix 9 — btn-secondary: no explicit background leaves hero overlay bleeding through */
.btn-secondary {
    background: transparent;
}

/* Fix 10 — fade-section starts fully invisible — use low opacity instead of zero
            so content is readable even if JS is slow */
.fade-section {
    opacity: 0.15;
    transition: opacity .4s ease;
}
.fade-section.visible {
    opacity: 1;
}

/* Bonus: tighter vertical rhythm — stat label spacing */
.stat-new-card p {
    margin-top: 12px;
    font-size: .92rem;
    letter-spacing: .2px;
}

/* Bonus: why-card — give the section a clean white background (not body light-gray) */
.why-us-new {
    background: #ffffff;
}

/* Bonus: services-new — use a very subtle off-white to distinguish from why-us */
.services-new {
    background: #f9fafb;
}

/* Bonus: testimonials-new — clean white separates it from gallery-new */
.testimonials-new {
    background: #ffffff;
}

/* Bonus: gallery-new — consistent light background */
.gallery-new {
    background: #f9fafb;
}

/* Bonus: faq-new — white for clean reading */
.faq-new {
    background: #ffffff;
}

/* Bonus: payment-methods-new — very light blue tint for visual separation */
.payment-methods-new {
    background: #f0f6ff;
}

/* Bonus: doctors-new — white */
.doctors-new {
    background: #ffffff;
}

/* Bonus: process-new — very light warm-gray to separate from doctors/testimonials */
.process-new {
    background: #f9fafb;
}

/* Bonus: consistent responsive — ensure section backgrounds hold on mobile */
@media (max-width: 768px) {
    .section-sub {
        font-size: .95rem;
        margin-bottom: 36px;
        padding: 0 4px;
    }
    .process-timeline {
        gap: 16px;
    }
    .cta-inner {
        gap: 36px;
    }
}
