:root{--primary:#19a9e5;--primary-dark:#0cb7f5;--navy:#123f57;--ink:#173243;--muted:#6b7f8c;--surface:#fff;--soft:#f5f9fb;--line:#dfe9ee;--danger:#ef5350;--success:#2eaf79;--shadow:0 18px 50px rgba(20,59,78,.12)}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
    margin:0;
    font-family:Inter,"Segoe UI",Arial,sans-serif;
    color:var(--ink);
    background:#fff;
    line-height:1.6
}

a{color:inherit}

.container{
    width:min(1160px,calc(100% - 36px));
    margin:auto
}

/* UPDATED TOPBAR */
.topbar{
    position:relative;
    background:#0496f7;
    color:rgb(10, 10, 10);
    font-size:13px;
    line-height:1.2
}

/* Starts with menu/logo container and continues fully right */
.topbar::after{
    content:"";
    position:absolute;
    left:max(18px,calc((100% - 1160px)/2));
    right:0;
    bottom:0;
    height:1px;
    background:#cefc03
}

.topbar .container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:4px 0;
    border-bottom:10
}

.topbar .container>*{
    margin:0;
    line-height:1.2;
    white-space:nowrap
}

.site-header{
    position:sticky;
    top:0;
    z-index:50;
    background:rgba(224, 248, 4, 0.96);
    backdrop-filter:blur(12px);
    border-bottom:0 solid var(--line)
}

.nav-wrap{
    width:min(1160px,calc(100% - 36px));
    height:78px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px
}

.brand{
    display:flex;
    align-items:center;
    gap:11px;
    text-decoration:none;
    font-weight:900;
    font-size:22px;
    letter-spacing:-.4px
}

.brand img{
    width:42px;
    height:42px
}

.brand strong{color:var(--primary)}

.nav{
    display:flex;
    gap:6px;
    align-items:center
}

.nav a{
    padding:10px 11px;
    border-radius:20px;
    text-decoration:none;
    font-weight:700;
    font-size:14px;
    color:white
}

.nav a:hover,
.nav a.active{
    background-color: #123f57;
    color:white
}

.header-actions{
    display:flex;
    gap:9px
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    border:0;
    border-radius:15px;
    padding:3px 7px;
    font-weight:200;
    text-decoration:none;
    cursor:pointer;
    font:inherit;
    transition:.2s
}
.topbar-social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    font-size:50px;
}

.topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size:50px;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.topbar-social a:hover {
    color: #f51707;
    transform: translateY(-2px);
}
.btn-primary{
    background:var(--primary);
    color:#fff;
    box-shadow:0 8px 20px rgba(25,169,229,.25)
}

.btn-primary:hover{
    background:#fa5e03;
    transform:translateY(-1px)
}

.btn-outline{
    border:1px solid #bed3de;
    color:#285166;
    background:white
}

.btn-danger{
    background:#ef5350;
    color:#fff
}

.hero{
    background:linear-gradient(135deg,#f2fbff 0%,#e9f7fc 50%,#fff 100%);
    padding:58px 0 46px;
    overflow:hidden
}

.hero-grid{
    display:grid;
    grid-template-columns:1.05fr .95fr;
    gap:48px;
    align-items:center
}

.eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:7px 11px;
    border:1px solid #b9e6f7;
    border-radius:700px;
    background:#f8f5f7;
    color:#0b83b1;
    font-weight:800;
    font-size:12px;
    text-transform:none;
    letter-spacing:.7px
}
.hero h1{
    font-size:clamp(60px,5vw,66px);
    line-height:1.04;
    display: block;
    letter-spacing:-1px;
    margin:18px 0;
    text-transform:none;
    color:rgb(8, 8, 8)
    text-align:justify;

}
.hero h1 span{color:var(--primary)
display: block;
    margin-top: 10px;
    max-width: 560px;
    color: #1ca9e6;
    font-size: 0.72em;
    line-height: 1.15;
    letter-spacing: -1px;
    font-weight: 700;
    text-transform: none;
    text-align:justify;

}

.hero p{
    font-size:18px;
    color:#587480;
    max-width:650px;
    text-transform:none;

}

.hero-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:25px
}

.hero-note{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
    margin-top:28px;
    font-size:13px;
    color:#5a7380;
    font-weight:700
}

.hero-note span:before{
    content:"✓";
    color:var(--success);
    font-weight:900;
    margin-right:7px
}

.hero-art{position:relative}

.hero-art img{
    width:100%;
    display:block;
    filter:drop-shadow(0 20px 30px rgba(20,70,90,.16))
}

.floating-card{
    position:absolute;
    background:white;
    border:1px solid #dceaf0;
    border-radius:15px;
    box-shadow:var(--shadow);
    padding:14px 17px;
    font-weight:800;
    font-size:13px
}

.floating-card.one{
    left:-24px;
    bottom:54px
}

.floating-card.two{
    right:-10px;
    top:60px
}

.stats-strip{
    margin-top:-24px;
    position:relative;
    z-index:4
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    box-shadow:var(--shadow);
    overflow:hidden
}

.stat{
    padding:25px 22px;
    border-right:1px solid var(--line)
}

.stat:last-child{border:0}

.stat b{
    display:block;
    font-size:28px;
    color:#124d69
}

.stat span{
    font-size:13px;
    color:var(--muted);
    font-weight:700
}

.section{padding:72px 0}

.section-soft{background:var(--soft)}

.section-head{
    text-align:center;
    max-width:720px;
    margin:0 auto 38px
}

.section-head h2{
    font-size:36px;
    line-height:1.15;
    margin:8px 0 10px;
    letter-spacing:-1px
}

.section-head p{
    color:var(--muted);
    margin:0
}

.cards{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px
}

.card{
    background:#fff;
    border:1px solid var(--line);
    border-radius:17px;
    padding:24px;
    box-shadow:0 8px 25px rgba(20,58,76,.05)
}

.card-icon{
    width:52px;
    height:52px;
    border-radius:14px;
    background:#eaf8fd;
    color:#0f95c8;
    display:grid;
    place-items:center;
    font-size:24px;
    margin-bottom:16px
}

.card h3{margin:0 0 8px}

.card p{
    color:var(--muted);
    font-size:14px;
    margin:0
}

.card-link{
    display:inline-block;
    margin-top:15px;
    color:#0787b8;
    font-weight:800;
    font-size:14px;
    text-decoration:none
}

.department-card{
    padding:0;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    min-height:100%;
    transition:transform .2s ease,box-shadow .2s ease
}

.department-card:hover{
    transform:translateY(-4px);
    box-shadow:0 14px 34px rgba(20,58,76,.12)
}

.department-card-image,
.department-card-placeholder{
    width:100%;
    aspect-ratio:16/9;
    background:#eaf8fd;
    overflow:hidden
}

.department-card-image img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover
}

.department-card-placeholder{
    display:grid;
    place-items:center;
    color:#0f95c8;
    font-size:48px
}

.department-card-body{
    padding:22px 24px 24px;
    display:flex;
    flex:1;
    flex-direction:column
}

.department-card-body p{
    flex:1;
    line-height:1.65
    text-align:justify
    line-height: 1.7
}

.doctor-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px
}

.doctor-card{
    border:1px solid var(--line);
    border-radius:18px;
    overflow:hidden;
    background:white
    text-align:justify
}

.doctor-photo{
    height:220px;
    background:linear-gradient(145deg,#dff5fd,#eff9fc);
    display:grid;
    place-items:center;
    overflow:hidden
}

.doctor-photo img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block
}

.doctor-photo .avatar{
    width:104px;
    height:104px;
    border-radius:50%;
    background:#03b4fa;
    color:white;
    display:grid;
    place-items:center;
    font-size:34px;
    font-weight:900;
    border:6px solid white;
    box-shadow:0 10px 25px rgba(10,85,112,.16)
}

.doctor-info{padding:20px}

.doctor-info small{
    color:#1596ca;
    font-weight:800
}

.doctor-info h3{margin:4px 0}

.doctor-info p{
    color:var(--muted);
    font-size:14px
}

.cta{
    background:linear-gradient(135deg,#15526f,#0d799f);
    color:white;
    border-radius:24px;
    padding:44px;
    display:flex;
    justify-content:space-between;
    gap:30px;
    align-items:center
}

.cta h2{
    font-size:34px;
    margin:0 0 8px
}

.cta p{
    margin:0;
    color:#cfe9f3
}

.footer{
    background:#0188e2;
    color:hsl(0, 6%, 97%);
    padding:54px 0 24px
}

.footer-grid{
    display:grid;
    grid-template-columns:1.4fr 1fr 1fr 1fr;
    gap:34px
}

.footer h4{
    color:white;
    margin-top:0
}

.footer a{
    display:block;
    text-decoration:none;
    color:#cbe0e8;
    margin:8px 0;
    font-size:14px
}

.footer .brand{color:white}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,.12);
    margin-top:34px;
    padding-top:20px;
    font-size:13px;
    display:flex;
    justify-content:space-between;
    gap:14px;
    margin-top: -12px;
    flex-wrap:wrap
}

.page-hero{
    padding:45px 0;
    background:linear-gradient(135deg,#effaff,#f9fdff);
    border-bottom:1px solid var(--line)
}

.page-hero h1{
    font-size:42px;
    margin:0 0 8px
}

.page-hero p{
    color:var(--muted);
    margin:0
}

.form-shell{
    max-width:820px;
    margin:auto;
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    padding:30px;
    box-shadow:var(--shadow)
}

.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:17px
}

.form-group{
    display:flex;
    flex-direction:column;
    gap:7px
}

.form-group.full{grid-column:1/-1}

.form-group label{
    font-weight:800;
    font-size:13px
}

.form-control{
    width:100%;
    padding:12px 13px;
    border:1px solid #cbdce4;
    border-radius:9px;
    background:#fff;
    color:#173243;
    font:inherit;
    outline:none
}

.form-control:focus{
    border-color:#55bfe9;
    box-shadow:0 0 0 3px rgba(25,169,229,.12)
}

textarea.form-control{
    min-height:118px;
    resize:vertical
}

.alert{
    border-radius:10px;
    padding:12px 14px;
    margin-bottom:18px;
    font-weight:700;
    font-size:14px
}

.alert.success{
    background:#e9f8f1;
    color:#18744f;
    border:1px solid #bce8d5
}

.alert.error{
    background:#fff0f0;
    color:#a83838;
    border:1px solid #f4c7c7
}

.auth-layout{
    min-height:calc(100vh - 150px);
    display:grid;
    place-items:center;
    background:#f3f9fb;
    padding:50px 18px
}

.auth-card{
    width:min(460px,100%);
    background:white;
    border:1px solid var(--line);
    border-radius:20px;
    box-shadow:var(--shadow);
    padding:32px
}

.auth-card h1{
    margin:0 0 5px;
    font-size:28px
}

.auth-card>p{
    margin:0 0 24px;
    color:var(--muted)
}

.auth-card .form-group{margin-bottom:15px}

.demo-box{
    background:#edf9fd;
    border:1px dashed #9bd8ef;
    border-radius:12px;
    padding:13px;
    margin-top:18px;
    font-size:13px
}

.table-wrap{
    overflow:auto;
    border:1px solid var(--line);
    border-radius:14px
}

table.data{
    width:100%;
    border-collapse:collapse;
    background:#fff
}

table.data th,
table.data td{
    padding:12px 13px;
    border-bottom:1px solid var(--line);
    text-align:left;
    font-size:14px
}

table.data th{
    background:#f5fafc;
    color:#426270;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.4px
}

.badge{
    display:inline-flex;
    padding:5px 9px;
    border-radius:999px;
    font-size:11px;
    font-weight:900
}

.badge.green{
    background:#e7f7ef;
    color:#188257
}

.badge.orange{
    background:#fff4df;
    color:#a96a00
}

.badge.red{
    background:#ffe9e9;
    color:#b33c3c
}

.badge.blue{
    background:#e7f6fc;
    color:#0b7da8
}

.mobile-toggle{
    display:none;
    background:none;
    border:0;
    font-size:24px
}

.empty{
    padding:35px;
    text-align:center;
    color:var(--muted)
}

/* Doctor profile additions */
.doctor-profile-layout{
    display:grid;
    grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);
    gap:22px;
    align-items:start;
    max-width:1040px;
    margin:auto
}

.doctor-profile-side{
    display:grid;
    gap:20px
}

.doctor-profile-card .doctor-photo-full{
    height:500px;
    background:#f4f8fa
}

.doctor-profile-card .doctor-photo-full img{
    object-fit:contain;
    width:100%;
    height:100%
}

.doctor-profile-side .card a{
    color:#0c8ebe;
    text-decoration:none;
    font-weight:800
}

.doctor-gallery{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px
}

.doctor-gallery-item{
    margin:0;
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 8px 25px rgba(20,58,76,.06)
}

.doctor-gallery-item img{
    width:100%;
    height:340px;
    object-fit:contain;
    display:block;
    background:#f4f8fa
}

.doctor-gallery-item figcaption{
    padding:13px 15px;
    font-size:13px;
    font-weight:800;
    color:#365563;
    text-align:center
}

/* Service fee */
.service-price{
    display:flex;
    align-items:baseline;
    gap:8px;
    flex-wrap:wrap
}

.service-old-price{
    text-decoration:line-through;
    color:#8b969c;
    font-weight:700
}

.service-current-price{
    color:#0d789f;
    font-size:18px;
    font-weight:900
}

.service-duration{
    color:#6b7f8c;
    font-size:13px;
    font-weight:700
}

/* Forms and blog media */
.form-trap{
    position:absolute!important;
    left:-9999px!important;
    width:1px!important;
    height:1px!important;
    overflow:hidden!important
}

.blog-media{
    width:100%;
    aspect-ratio:16/9;
    border-radius:14px;
    overflow:hidden;
    background:#eaf2f5;
    margin-bottom:18px
}

.blog-media img,
.blog-media iframe{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    border:0
}

.blog-video-link{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-top:14px;
    color:#0c8ebe;
    font-weight:800
}

.g-recaptcha{
    max-width:100%;
    overflow:hidden
}


/* =========================================================
   Responsive layout
   ========================================================= */

/* Smaller laptops and large tablets */
@media (max-width: 1100px){
    .nav-wrap{
        gap:14px;
    }

    .nav{
        gap:3px;
    }

    .nav a{
        padding:9px 9px;
        font-size:13px;
    }

    .header-actions .btn-outline{
        display:none;
    }
}

/* Tablets */
@media (max-width: 980px){
    html,
    body{
        overflow-x:hidden;
    }

    .topbar .container{
        gap:12px;
        flex-wrap:wrap;
    }

    .topbar .container>*{
        white-space:normal;
    }

    .topbar-social{
        gap:10px;
        font-size:20px;
    }

    .topbar-social a{
        font-size:20px;
    }

    .nav{
        display:none;
        position:absolute;
        top:66px;
        left:18px;
        right:18px;
        flex-direction:column;
        align-items:stretch;
        gap:4px;
        background:grey;
        padding:12px;
        border-radius:12px;
        box-shadow:0 15px 35px rgba(0,0,0,.12);
        z-index:55;
    }

    .nav a{
        display:block;
        width:100%;
        padding:11px 13px;
        border-radius:10px;
        color:#04a2f7 !important;
        background:transparent !important;
        text-align:left;
        font-weight:700;
    }

    .nav a:hover,
    .nav a.active{
        background:#ff0697 !important;
        color:#123f57 !important;
    }

    .mobile-toggle{
        display:block;
        color:#123f57;
        cursor:pointer;
        padding:8px;
        line-height:1;
        z-index:60;
    }

    .hero-grid{
        grid-template-columns:1fr;
    }

    .hero-art{
        max-width:620px;
        margin:auto;
    }

    .cards,
    .doctor-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .footer-grid{
        grid-template-columns:1fr 1fr;
    }

    .stats-grid{
        grid-template-columns:1fr 1fr;
    }

    .stat:nth-child(2){
        border-right:0;
    }

    .doctor-profile-layout{
        grid-template-columns:1fr;
    }

    .doctor-gallery{
        grid-template-columns:repeat(2,1fr);
    }
}

/* Phones */
@media (max-width: 640px){
    .topbar{
        display:none;
    }

    .nav-wrap{
        height:66px;
    }

    .brand{
        min-width:0;
        font-size:18px;
    }

    .brand img{
        width:72px !important;
        height:42px !important;
        margin-left:-18px !important;
        margin-top:0 !important;
        flex:0 0 auto;
    }

    .brand > span{
        min-width:0;
    }

    .brand > span > span,
    .brand > span small{
        white-space:normal;
    }

    .header-actions{
        display:none;
    }

    .nav{
        top:66px;
        left:10px;
        right:10px;
        width:auto;
        padding:10px;
    }

    .nav a{
        padding:12px 14px;
        color:#f7068b !important;
        background:transparent !important;
    }

    .nav a:hover,
    .nav a.active{
        background:#3004f5 !important;
        color:#ee0873 !important;
    }

    .mobile-toggle{
        display:block;
        color:#123f57;
        font-size:24px;
        flex:0 0 auto;
    }

    .hero{
        padding-top:38px;
    }

    .hero h1{
        font-size:42px;
    }

    .hero p{
        font-size:16px;
    }

    .hero-actions{
        gap:10px;
    }

    .hero-actions .btn{
        max-width:100%;
    }

    .stats-grid,
    .cards,
    .doctor-grid,
    .footer-grid,
    .form-grid{
        grid-template-columns:1fr;
    }

    .stat{
        border-right:0;
        border-bottom:1px solid var(--line);
    }

    .cta{
        padding:30px;
        display:block;
    }

    .cta .btn{
        margin-top:20px;
    }

    .page-hero h1{
        font-size:34px;
    }

    .form-shell{
        padding:20px;
    }

    .footer-bottom{
        display:block;
    }

    .doctor-profile-card .doctor-photo-full{
        height:420px;
    }

    .doctor-gallery{
        grid-template-columns:1fr;
    }

    .doctor-gallery-item img{
        height:auto;
        max-height:520px;
    }
}
