*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
    margin:0;
    font-family:Arial,Helvetica,sans-serif;
    color:#183848;
    line-height:1.6
}

a{
    text-decoration:none;
    color:inherit
}

/* ================= HEADER ================= */

.header{
    height:88px;
    padding:0 6%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    position:sticky;
    top:0;
    background:#fff;
    z-index:100;
    box-shadow:0 3px 20px #123b4d15
}

.brand{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:290px
}

.brand img{
    width:55px;
    height:55px;
    object-fit:contain;
    border-radius:50%
}

.brand b{
    display:block;
    font-size:14px;
    color:#073e6d;
    line-height:1.1
}

.brand small{
    font-size:11px;
    color:#b5232a
}

/* DESKTOP MENU */

.header nav{
    display:flex;
    align-items:center;
    gap:20px;
    font-size:14px;
    font-weight:700
}

.header nav a{
    white-space:nowrap
}

.header nav a:hover{
    color:#0a7e88
}

.call{
    font-weight:800;
    color:#0a6e78;
    white-space:nowrap
}

/* MOBILE MENU BUTTON */

.menu-toggle{
    display:none;
    font-size:28px;
    font-weight:bold;
    color:#087d85;
    cursor:pointer;
    padding:5px 10px;
    line-height:1;
    border:0;
    background:none
}

/* ================= HERO ================= */

.hero{
    min-height:610px;
    padding:80px 7%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:45px;
    background:
    linear-gradient(90deg,#e9f7f7dd,#ffffffdd),
    url('../images/hospital-1.jpg') center/cover
}

.hero-content{
    max-width:700px
}

.tag,
.heading span,
.pagehero span{
    font-size:11px;
    letter-spacing:2px;
    font-weight:800;
    color:#0a7e88
}

.hero h1{
    font-size:54px;
    line-height:1.08;
    margin:15px 0;
    color:#123a4c
}

.hero h1 em{
    font-style:normal;
    color:#087b84
}

.hero p{
    font-size:18px;
    color:#5f747c
}

.btn{
    display:inline-block;
    padding:13px 21px;
    background:#087d85;
    color:#fff;
    border-radius:7px;
    font-weight:bold;
    border:0;
    margin-top:14px;
    cursor:pointer
}

.ghost{
    background:#fff;
    color:#08747c;
    border:1px solid #c9dfe1
}

.hero-box{
    background:#fff;
    padding:28px;
    border-radius:18px;
    width:310px;
    box-shadow:0 18px 55px #123b4d22
}

.hero-box img{
    width:100%;
    height:150px;
    object-fit:cover;
    border-radius:12px;
    margin-bottom:14px
}

/* ================= QUICK ================= */

.quick{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    background:#0b626b;
    color:#fff;
    padding:23px 7%;
    text-align:center
}

.quick b{
    display:block;
    font-size:25px
}

.quick span{
    font-size:13px;
    opacity:.85
}

/* ================= SECTIONS ================= */

.section{
    padding:78px 7%
}

.lightbg{
    background:#f5fafb
}

.heading{
    margin-bottom:32px
}

.heading h2{
    font-size:36px;
    line-height:1.2;
    margin:8px 0
}

.center{
    text-align:center
}

.two{
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:65px;
    align-items:center
}

.two p{
    color:#657982
}

.check{
    background:#eef8f8;
    padding:22px;
    border-radius:14px
}

.check p{
    padding:9px;
    border-bottom:1px solid #d5e8e9
}

/* ================= CARDS ================= */

.grid4,
.facility{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px
}

.card,
.facility>div,
.doctor,
.contact>div{
    background:#fff;
    border:1px solid #dfecee;
    border-radius:13px;
    padding:24px
}

.card i{
    font-size:27px;
    font-style:normal
}

.card p,
.facility p,
.doctor p,
.contact p{
    color:#687b83;
    font-size:14px
}

.facility b{
    font-size:28px
}

.doctor{
    text-align:center
}

.avatar{
    width:90px;
    height:90px;
    border-radius:50%;
    display:grid;
    place-items:center;
    margin:auto;
    background:#e6f7f6;
    color:#087d85;
    font-weight:bold;
    font-size:22px
}

/* ================= CTA ================= */

.cta{
    padding:50px 7%;
    background:#0b626b;
    color:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center
}

/* ================= CONTACT ================= */

.contact{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px
}

/* ================= GALLERY ================= */

.gallery{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px
}

.gallery img{
    width:100%;
    height:300px;
    object-fit:cover;
    border-radius:14px;
    box-shadow:0 10px 25px #123b4d18
}

/* ================= PAGE HERO ================= */

.pagehero{
    padding:75px 7%;
    background:#eaf7f6
}

.pagehero h1{
    font-size:44px;
    margin:8px 0
}

/* ================= FORM ================= */

.form-section{
    background:#f5fafb
}

.form-section form{
    max-width:850px;
    margin:auto;
    background:#fff;
    padding:30px;
    border-radius:15px;
    box-shadow:0 15px 40px #123b4d12
}

.row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px
}

label{
    font-weight:bold;
    display:block;
    margin-bottom:13px
}

input,
select,
textarea{
    width:100%;
    padding:13px;
    margin-top:6px;
    border:1px solid #d5e3e5;
    border-radius:7px;
    font:inherit
}

textarea{
    height:120px
}

.result{
    color:#087d85;
    font-weight:bold
}

/* ================= FOOTER ================= */

footer{
    background:#123b4d;
    color:#fff;
    padding:27px 7%;
    display:flex;
    justify-content:space-between;
    gap:20px;
    font-size:13px
}

footer small{
    display:block;
    opacity:.7
}

/* ================= WHATSAPP ================= */

.wa{
    position:fixed;
    right:20px;
    bottom:20px;
    background:#159447;
    color:#fff;
    padding:12px 18px;
    border-radius:28px;
    font-weight:bold;
    z-index:100
}

/* ================= ADMIN ================= */

.admin{
    background:#eef7f7;
    min-height:100vh
}

.adminbox{
    width:min(440px,92%);
    margin:70px auto;
    background:#fff;
    padding:32px;
    border-radius:15px;
    text-align:center;
    box-shadow:0 15px 40px #123b4d18
}

.adminbox input{
    margin:6px 0
}

.dashboard{
    padding:50px 6%
}

.dashgrid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
    margin:25px 0
}

.dashgrid div{
    background:#fff;
    padding:23px;
    border-radius:12px
}

.dashgrid strong{
    display:block;
    font-size:30px;
    color:#087d85
}

.adminnav{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin:20px 0
}

.tablewrap{
    overflow:auto;
    background:#fff;
    border-radius:12px;
    padding:10px
}

table{
    width:100%;
    border-collapse:collapse
}

th,
td{
    padding:11px;
    border-bottom:1px solid #e2ecee;
    text-align:left;
    font-size:13px
}

.btn.danger{
    background:#b5232a
}

.btn.secondary{
    background:#365d6b
}

/* ================= TABLET ================= */

@media(max-width:950px){

    .header{
        height:auto;
        min-height:88px;
        padding:12px 4%;
        flex-wrap:wrap
    }

    .brand{
        min-width:0;
        flex:1
    }

    .menu-toggle{
        display:block
    }

    /* Mobile menu hidden until button clicked */

    .header nav{
        display:none;
        width:100%;
        flex-direction:column;
        gap:0;
        margin-top:12px;
        padding:8px 0;
        border-top:1px solid #e5eeee;
        background:#fff
    }

    .header nav.mobile-open{
        display:flex
    }

    .header nav a{
        width:100%;
        padding:12px 10px;
        border-bottom:1px solid #edf2f3
    }

    .header nav a:hover{
        background:#f2fafa
    }

    .hero{
        padding:60px 5%;
        flex-direction:column;
        align-items:flex-start
    }

    .hero h1{
        font-size:42px
    }

    .section{
        padding:60px 5%
    }

    .two{
        grid-template-columns:1fr
    }

    .grid4,
    .facility{
        grid-template-columns:repeat(2,1fr)
    }

    .contact{
        grid-template-columns:1fr
    }

    .quick{
        grid-template-columns:repeat(2,1fr);
        gap:15px
    }

    .cta{
        padding:45px 5%
    }

    .dashgrid{
        grid-template-columns:repeat(2,1fr)
    }
}

/* ================= MOBILE ================= */

@media(max-width:560px){

    .header{
        padding:12px 4%
    }

    .brand b{
        font-size:11px
    }

    .brand small{
        font-size:9px
    }

    .call{
        font-size:12px
    }

    .menu-toggle{
        font-size:27px
    }

    .hero h1{
        font-size:34px
    }

    .grid4,
    .facility,
    .gallery{
        grid-template-columns:1fr
    }

    .row{
        grid-template-columns:1fr
    }

    .cta,
    footer{
        flex-direction:column;
        align-items:flex-start
    }

    .pagehero h1{
        font-size:35px
    }

    .dashgrid{
        grid-template-columns:1fr
    }

    .hero-box{
        width:100%
    }
}