@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');


:root{
    --navy:#071827;
    --gold:#d6ad55;
    --gold-light:#f2d58a;
    --white:#ffffff;
    --bg:#f8f4ea;
    --text:#222;
}


/* ========== RESET ========== */

*{
    box-sizing:border-box;
}


html{
    scroll-behavior:smooth;
}


body{

    margin:0;

    font-family:"Cairo",Tahoma,Arial,sans-serif;

    direction:rtl;

    background:#fff;

    color:var(--text);

}


img{

    max-width:100%;

    display:block;

}


a{

    text-decoration:none;

    color:inherit;

}



/* ========== HEADER ========== */


.main-header{

    width:100%;

    background:var(--navy);

    color:white;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:12px 5%;

    position:sticky;

    top:0;

    z-index:999;

}



.header-brand{

    display:flex;

    align-items:center;

    gap:12px;

}



.header-logo{

    width:65px;

    height:65px;

    object-fit:contain;

}



.brand-text strong{

    display:block;

    color:var(--gold);

    font-size:20px;

}



.brand-text span{

    font-size:12px;

}



.main-nav{

    display:flex;

    gap:25px;

}



.main-nav a{

    color:#fff;

    font-size:16px;

    transition:.3s;

}



.main-nav a:hover{

    color:var(--gold);

}



.header-actions{

    display:flex;

    gap:10px;

}



.header-book,
.gold-button{

    background:linear-gradient(
        135deg,
        var(--gold-light),
        var(--gold)
    );

    color:#111;

    padding:12px 25px;

    border-radius:30px;

    font-weight:bold;

}



.header-login{

    border:1px solid var(--gold);

    color:white;

    padding:10px 20px;

    border-radius:30px;

}



/* ========== HERO ========== */


.new-hero{

    height:650px;

    position:relative;

    display:flex;

    align-items:center;

    overflow:hidden;

}



.hero-image{

    position:absolute;

    inset:0;

}



.hero-image img{

    width:100%;

    height:100%;

    object-fit:cover;

}



.hero-image::after{

    content:"";

    position:absolute;

    inset:0;

    background:
    linear-gradient(
        90deg,
        rgba(7,24,39,.85),
        rgba(7,24,39,.35)
    );

}



.hero-content{

    position:relative;

    z-index:2;

    width:55%;

    padding-right:8%;

    color:white;

}



.hero-small{

    font-size:16px;

}



.hero-content h1{

    font-size:60px;

    font-weight:800;

    margin:15px 0;

}



.hero-content h2{

    font-size:40px;

    color:var(--gold-light);

}



.hero-content p{

    font-size:20px;

    line-height:2;

}
/* ========== SERVICES ========== */


.services-section{

    padding:70px 6%;

}



.section-heading{

    text-align:center;

    margin-bottom:45px;

}



.section-heading span{

    color:var(--gold);

    font-weight:bold;

}



.section-heading h2{

    font-size:40px;

    color:var(--navy);

    margin:10px 0;

}



.section-heading p{

    font-size:18px;

}



/* كروت العيادات */

.services-grid{

    display:grid;

    grid-template-columns:repeat(5,1fr);

    gap:20px;

}



.service-card{

    background:white;

    border-radius:25px;

    overflow:hidden;

    box-shadow:0 10px 25px #ddd;

    text-align:center;

    transition:.3s;

}



.service-card:hover{

    transform:translateY(-8px);

}



.service-image img{

    width:100%;

    height:180px;

    object-fit:cover;

}



.service-icon{

    width:55px;

    height:55px;

    background:var(--gold);

    border-radius:50%;

    margin:15px auto;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:25px;

    color:#111;

}



.service-card h3{

    font-size:21px;

    color:var(--navy);

    font-weight:800;

    padding:0 10px;

}



.service-card p{

    padding:0 15px;

    line-height:1.8;

}



.service-link{

    display:block;

    color:var(--gold);

    padding:15px;

    font-weight:bold;

}





/* ========== ABOUT ========== */


.about-section{

    background:var(--bg);

    padding:70px 6%;

    display:flex;

    align-items:center;

    gap:40px;

}



.about-image{

    width:50%;

}



.about-image img{

    width:100%;

    border-radius:30px;

}



.about-content{

    width:50%;

}



.about-label{

    color:var(--gold);

    font-weight:bold;

}



.about-content h2{

    font-size:40px;

    color:var(--navy);

    margin:15px 0;

}



.about-content p{

    line-height:2;

    font-size:18px;

}



/* المميزات */

.features-grid{

    display:flex;

    gap:15px;

    margin:30px 0;

}



.feature-box{

    background:white;

    padding:20px;

    border-radius:20px;

    text-align:center;

    flex:1;

}



.feature-icon{

    font-size:28px;

    color:var(--gold);

}



.feature-box h3{

    color:var(--navy);

}



.feature-box p{

    font-size:15px;

}



.outline-button{

    display:inline-block;

    border:2px solid var(--gold);

    padding:12px 25px;

    border-radius:30px;

    color:var(--navy);

    font-weight:bold;

    transition:.3s;

}



.outline-button:hover{

    background:var(--gold);

    color:#111;

}
/* ========== DOCTORS ========== */


.doctors-section{

    padding:70px 6%;

}



.doctors-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:25px;

}



.doctor-card{

    background:var(--navy);

    color:white;

    padding:30px;

    border-radius:25px;

    text-align:center;

}



.doctor-avatar{

    width:80px;

    height:80px;

    background:var(--gold);

    color:#111;

    border-radius:50%;

    margin:0 auto 15px;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:35px;

}



.doctor-card h3{

    color:white;

}



.doctor-card p{

    color:#eee;

}



.doctor-card strong{

    display:block;

    margin:15px 0;

    color:var(--gold-light);

}



.doctor-status{

    display:block;

    margin-bottom:20px;

    font-weight:bold;

}



.available{

    color:#19d36b;

}



.unavailable{

    color:#ff5252;

}



.doctor-button{

    display:inline-block;

    background:var(--gold);

    color:#111;

    padding:10px 25px;

    border-radius:25px;

    font-weight:bold;

}





/* ========== BOOKING ========== */


.booking-section{

    background:var(--navy);

    padding:70px 6%;

    color:white;

    display:flex;

    gap:50px;

    align-items:center;

}



.booking-info{

    width:50%;

}



.booking-info span{

    color:var(--gold);

    font-weight:bold;

}



.booking-info h2{

    font-size:40px;

}



.booking-info p{

    line-height:2;

}



.contact-line{

    margin:20px 0;

}



.contact-line strong{

    display:block;

    color:var(--gold-light);

    margin-bottom:5px;

}



.contact-line a{

    color:white;

}



.booking-form-wrap{

    width:50%;

}



.booking-form{

    background:white;

    padding:30px;

    border-radius:25px;

}



.booking-form label{

    color:var(--navy);

    display:block;

    margin-bottom:5px;

}



.booking-form input,
.booking-form select{

    width:100%;

    padding:15px;

    margin-bottom:15px;

    border-radius:10px;

    border:1px solid #ddd;

    font-family:"Cairo";

}



.booking-form button{

    border:none;

    cursor:pointer;

}





/* ========== FOOTER ========== */


.main-footer{

    background:#050d16;

    color:white;

    padding:40px 6%;

    text-align:center;

}



.footer-brand{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:15px;

}



.footer-brand img{

    width:70px;

}



.footer-brand strong{

    color:var(--gold);

}



.footer-info{

    display:flex;

    justify-content:center;

    gap:60px;

    margin-top:30px;

}



.footer-info strong{

    color:var(--gold-light);

}



.footer-bottom{

    margin-top:30px;

    border-top:1px solid #333;

    padding-top:20px;

}
/* ========== DEPARTMENT PAGES ========== */


.department-hero{

    padding:60px 6%;

    background:var(--bg);

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:40px;

}



.department-content{

    width:50%;

}



.department-content span{

    color:var(--gold);

    font-weight:bold;

}



.department-content h1{

    font-size:42px;

    color:var(--navy);

    margin:20px 0;

}



.department-content p{

    font-size:18px;

    line-height:2;

}



.department-image{

    width:40%;

}



.department-image img{

    width:100%;

    height:350px;

    object-fit:cover;

    border-radius:35px;

    border:6px solid var(--gold);

}





.department-doctors{

    padding:70px 6%;

}



.department-doctors h2{

    text-align:center;

    font-size:38px;

    color:var(--navy);

    margin-bottom:40px;

}



.department-doctors-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:25px;

}



.department-doctor-card{

    background:var(--navy);

    color:white;

    padding:30px;

    border-radius:30px;

    text-align:center;

}



.department-doctor-card img{

    width:120px;

    height:120px;

    border-radius:50%;

    object-fit:cover;

    border:5px solid var(--gold);

    margin:auto;

}



.department-doctor-card h3{

    color:white;

    margin-top:20px;

}



.department-doctor-card p{

    color:#eee;

}



.department-button{

    display:inline-block;

    background:var(--gold);

    color:#111;

    padding:12px 30px;

    border-radius:30px;

    font-weight:bold;

    margin-top:15px;

}





/* ========== MOBILE ========== */


@media(max-width:900px){


.main-header{

    flex-direction:column;

    gap:15px;

    padding:15px 20px;

}



.main-nav{

    flex-wrap:wrap;

    justify-content:center;

    gap:15px;

}



.header-actions{

    justify-content:center;

}



.hero-content{

    width:100%;

    padding:30px 20px;

    text-align:center;

}



.hero-content h1{

    font-size:38px;

}



.hero-content h2{

    font-size:28px;

}



.services-grid{

    grid-template-columns:1fr;

}



.about-section{

    flex-direction:column;

}



.about-image,
.about-content{

    width:100%;

}



.features-grid{

    flex-direction:column;

}



.doctors-grid{

    grid-template-columns:1fr;

}



.booking-section{

    flex-direction:column;

}



.booking-info,
.booking-form-wrap{

    width:100%;

}



.footer-info{

    flex-direction:column;

    gap:20px;

}



/* صفحات الأقسام */

.department-hero{

    flex-direction:column;

    text-align:center;

}



.department-content,
.department-image{

    width:100%;

}



.department-image img{

    height:250px;

}



.department-doctors-grid{

    grid-template-columns:1fr;

}



}



html,body{

    max-width:100%;

    overflow-x:hidden;

}
/* ===== FIX SERVICE CARDS ===== */

.service-card{

    min-height:520px;

    display:flex;

    flex-direction:column;

    justify-content:flex-start;

}


.service-image{

    width:100%;

}



.service-image img{

    height:220px;

    width:100%;

    object-fit:cover;

}



.service-icon{

    margin:20px auto 10px;

    flex-shrink:0;

}



.service-card h3{

    margin:15px 10px;

    min-height:55px;

}



.service-card p{

    min-height:80px;

    margin:0;

}



.service-link{

    margin-top:auto;

    padding-bottom:25px;

}





@media(max-width:900px){


.service-card{

    min-height:470px;

}


.service-image img{

    height:180px;

}


}

/* =====================================================================
   v6: زر واتساب العائم + فيسبوك + فوتر موحد للصفحات العامة
===================================================================== */

.wa-float{
    position:fixed;
    left:18px;
    bottom:calc(18px + env(safe-area-inset-bottom, 0px));
    z-index:10000;
    display:flex;
    align-items:center;
    gap:8px;
    background:#25d366;
    color:#fff !important;
    border-radius:999px;
    padding:12px;
    box-shadow:0 10px 28px rgba(18,140,74,.38),0 2px 6px rgba(0,0,0,.15);
    text-decoration:none;
    font-family:"Cairo",Tahoma,Arial,sans-serif;
    font-weight:700;
    font-size:15px;
    line-height:1;
    transition:transform .2s,box-shadow .2s,background .2s;
}

.wa-float svg{ flex:0 0 auto; display:block; }

.wa-float::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:inherit;
    box-shadow:0 0 0 0 rgba(37,211,102,.55);
    animation:wa-pulse 2.4s infinite;
    pointer-events:none;
}

.wa-float:hover{ background:#1ebe5a; transform:translateY(-3px); box-shadow:0 14px 34px rgba(18,140,74,.45); }

.wa-float-text{ padding-inline-end:6px; white-space:nowrap; }

@keyframes wa-pulse{
    0%{ box-shadow:0 0 0 0 rgba(37,211,102,.5); }
    70%{ box-shadow:0 0 0 16px rgba(37,211,102,0); }
    100%{ box-shadow:0 0 0 0 rgba(37,211,102,0); }
}

@media(max-width:700px){
    .wa-float{ left:14px; bottom:calc(14px + env(safe-area-inset-bottom, 0px)); padding:13px; }
    .wa-float-text{ display:none; }
}

@media(prefers-reduced-motion:reduce){
    .wa-float::before{ animation:none; }
}

.nav-social{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:38px;
    height:38px;
    border-radius:50%;
    border:1px solid rgba(214,173,85,.55);
    color:#fff !important;
    transition:background .2s,color .2s;
}

.nav-social:hover{ background:#1877f2; border-color:#1877f2; }

.footer-socials{ display:flex; gap:8px; flex-wrap:wrap; justify-content:center; margin-top:10px; }

.footer-social{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:6px 14px;
    border-radius:999px;
    font-size:14px;
    font-weight:700;
    color:#fff !important;
    text-decoration:none;
}

.footer-social.wa{ background:#25d366; }
.footer-social.fb{ background:#1877f2; }
.footer-social:hover{ filter:brightness(1.08); }

@media print{
    .wa-float{ display:none !important; }
}

/* ===== خريطة الموقع في الفوتر (فوق زر واتساب) ===== */

.footer-contact{ flex:0 1 420px; min-width:0; }
.footer-map{ margin:14px auto 4px; width:420px; max-width:100%; }
.footer-map-frame{
    position:relative;
    height:300px;
    border-radius:18px;
    overflow:hidden;
    padding:4px;
    background:linear-gradient(135deg, var(--gold, #d6ad55), #8a6a2a 55%, var(--gold-light, #f0d690));
    box-shadow:0 10px 28px rgba(0,0,0,.35);
}
.footer-map-frame iframe{
    display:block;
    width:100%;
    height:100%;
    border:0;
    border-radius:14px;
    background:#0b1a2b;
}
.footer-map-link{
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin-top:10px;
    padding:6px 16px;
    border-radius:999px;
    border:1px solid rgba(214,173,85,.55);
    color:var(--gold-light, #f0d690) !important;
    font-size:14px;
    font-weight:700;
    text-decoration:none;
    transition:background .15s, color .15s;
}
.footer-map-link:hover{ background:var(--gold, #d6ad55); color:#050d16 !important; }

@media(max-width:768px){
    .footer-contact{ flex:none; width:100%; }
    .footer-map{ width:100%; }
    .footer-map-frame{ height:240px; border-radius:14px; padding:3px; }
    .footer-map-frame iframe{ border-radius:11px; }
}
@media print{ .footer-map{ display:none !important; } }

/* زر "دخول المرضى" في هيدر كل الصفحات العامة (ظاهر دائمًا على الكمبيوتر والموبايل) */
.header-actions{ flex-wrap:wrap; align-items:center; }
a.nav-patient{
    display:inline-flex; align-items:center; gap:8px;
    background:linear-gradient(135deg,#f0d48a,#d6ad55);
    color:#0b1a2b !important;
    padding:10px 20px; border-radius:999px;
    font-weight:800; font-size:15px; line-height:1.2; white-space:nowrap;
    border:2px solid #f3dc9e;
    box-shadow:0 6px 18px rgba(214,173,85,.35);
    text-decoration:none;
    transition:transform .2s, box-shadow .2s, background .2s;
}
a.nav-patient .nav-patient-ic{ flex:0 0 auto; background:#0b1a2b; color:#f0d48a; border-radius:50%; padding:3px; width:24px; height:24px; }
a.nav-patient:hover, a.nav-patient:focus-visible{ background:linear-gradient(135deg,#fff1c9,#e5c370); transform:translateY(-2px); box-shadow:0 10px 24px rgba(214,173,85,.5); outline:none; }
@media(max-width:900px){
    .header-actions{ justify-content:center; gap:8px; width:100%; }
    a.nav-patient{ order:-1; padding:9px 16px; font-size:14px; }
}
@media(max-width:420px){
    a.nav-patient{ flex:1 1 100%; justify-content:center; }
}
