/* =====================================================================
   ثيم حديث للموقع العام (بيتحمّل بعد style.css و responsive.css)
   الألوان كلها من المتغيرات دي: غيّرها هنا بس
   ===================================================================== */
:root {
    --brand: #0f766e;
    --brand-dark: #0b5f59;
    --brand-2: #0ea5a4;
    --accent: #f59e0b;
    --ink: #10302f;
    --muted: #5d7776;
    --line: #e2ecec;
    --soft: #f2f8f8;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(15, 60, 60, .08);
    --shadow-lg: 0 20px 45px rgba(15, 60, 60, .14);
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Tajawal', 'Cairo', system-ui, sans-serif !important;
    color: var(--ink);
    background: #fff;
    direction: rtl;
    text-align: right;
}
h1, h2, h3, h4, h5, h6, p, a, span, li, label, input, textarea, button { font-family: inherit !important; }
p { color: var(--muted); line-height: 1.9; }
a { transition: color .2s, background .2s, transform .2s, box-shadow .2s; }
img { max-width: 100%; }
.ptb-100 { padding-top: 80px !important; padding-bottom: 80px !important; }
.pb-70 { padding-bottom: 50px !important; }
.gray-bg { background: var(--soft) !important; }

/* ===== Preloader ===== */
.preloader { background: #fff !important; }
.preloader img { animation: mPulse 1.2s ease-in-out infinite; }
@keyframes mPulse { 50% { transform: scale(1.08); opacity: .7; } }

/* ===== Top bar ===== */
.main-header .header-info-text {
    background: linear-gradient(90deg, var(--brand-dark), var(--brand)) !important;
    padding: 8px 0 !important;
}
.main-header .header-info-text .contact-info { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin: 0; padding: 0; }
.main-header .header-info-text .contact-info li { color: #e6f6f4 !important; font-size: 14px; list-style: none; margin: 0 !important; padding: 0 !important; display: flex; align-items: center; gap: 6px; }
.main-header .header-info-text .contact-info li span { color: #fff !important; font-weight: 700; }
.main-header .header-info-text .contact-info i { color: var(--accent) !important; font-size: 16px; position: static !important; }
.main-header .header-info-text .contact-info li:first-child { display: none; } /* اللوجو بقى في الناف بار */
.main-header .social-links { display: flex; justify-content: flex-start; gap: 8px; margin: 0; padding: 0; }
.main-header .social-links li { list-style: none; margin: 0 !important; }
.main-header .social-links a {
    width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.12) !important; color: #fff !important; font-size: 15px;
}
.main-header .social-links a:hover { background: var(--accent) !important; transform: translateY(-2px); }
.main-header .social-links a[href=""], .main-header .social-links a:not([href]) { display: none; }

/* ===== Navbar ===== */
.navbar-container {
    background: rgba(255,255,255,.96) !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 18px rgba(15,60,60,.07);
    z-index: 999;
}
.navbar-container .container { margin: 0 auto !important; }
.navbar-container .navbar { padding: 10px 0 !important; }
.m-brand img { height: 52px; width: auto; }
.navbar-light .navbar-nav .nav-item { margin: 0 !important; }
.navbar-light .navbar-nav .nav-link {
    color: var(--ink) !important; font-weight: 700; font-size: 15.5px;
    padding: 10px 14px !important; border-radius: 10px; position: relative;
}
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .active > .nav-link { color: var(--brand) !important; background: var(--soft); }
.navbar-light .navbar-nav .nav-link::before, .navbar-light .navbar-nav .nav-link::after { display: none !important; }
.navbar .dropdown-menu {
    border: 1px solid var(--line) !important; border-radius: 14px !important; box-shadow: var(--shadow-lg) !important;
    padding: 8px !important; min-width: 230px; text-align: right; max-height: 70vh; overflow: auto;
}
.navbar .dropdown-item { border-radius: 9px; padding: 9px 12px !important; font-weight: 600; color: var(--ink) !important; white-space: normal; }
.navbar .dropdown-item:hover { background: var(--soft) !important; color: var(--brand) !important; }
@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
}

.appointment-buttons { gap: 8px; }
.appointment-btn {
    display: inline-flex !important; align-items: center; gap: 6px; margin: 0 !important;
    background: var(--brand) !important; color: #fff !important; border-radius: 12px !important;
    padding: 10px 18px !important; font-weight: 800; border: 0 !important; box-shadow: 0 8px 18px rgba(15,118,110,.25);
}
.appointment-btn:hover { background: var(--brand-dark) !important; transform: translateY(-2px); }
.appointment-btn.m-outline { background: #fff !important; color: var(--brand) !important; border: 2px solid var(--brand) !important; box-shadow: none; }
.appointment-btn.m-outline:hover { background: var(--soft) !important; }
.appointment-btn i { transform: scaleX(-1); }

@media (max-width: 991px) {
    .navbar-collapse { background: #fff; border-radius: 14px; padding: 10px; margin-top: 10px; box-shadow: var(--shadow); }
    .appointment-buttons { margin-top: 10px; }
    .main-header .header-info-text .contact-info { justify-content: center; gap: 10px; font-size: 13px; }
    .main-header .social-links { justify-content: center; margin-top: 6px; }
}

/* ===== Hero ===== */
.hero-slider .hs-item { position: relative; height: 78vh; min-height: 420px; max-height: 720px; overflow: hidden; background: none !important; }
.hero-slider .hs-item > img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; }
.hero-slider .hs-item::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(8,40,40,.15) 0%, rgba(8,40,40,.65) 100%);
}
.hero-slider .hs-item .d-table { position: relative; z-index: 2; width: 100%; height: 100%; }
.hero-slider .hero-text h1 {
    color: #fff !important; font-size: clamp(26px, 4vw, 52px) !important; font-weight: 800 !important; line-height: 1.45;
    max-width: 900px; margin: 0 auto; text-shadow: 0 4px 18px rgba(0,0,0,.35);
}
.hero-slider.owl-theme .owl-dots { position: absolute; bottom: 24px; width: 100%; }
.hero-slider.owl-theme .owl-dots .owl-dot span { background: rgba(255,255,255,.55) !important; width: 10px; height: 10px; }
.hero-slider.owl-theme .owl-dots .owl-dot.active span { background: #fff !important; width: 28px; }

/* ===== Section titles ===== */
.section-title { text-align: center; max-width: 700px; margin: 0 auto 40px; }
.section-title h2 { font-size: 34px !important; font-weight: 800 !important; color: var(--ink) !important; position: relative; padding-bottom: 14px; }
.section-title h2::after { content: ""; position: absolute; bottom: 0; right: 50%; transform: translateX(50%); width: 60px; height: 4px; border-radius: 4px; background: var(--brand); }
.section-title p { margin-top: 10px; }

/* ===== Cards (services / departments / doctors) ===== */
.single-card {
    background: #fff !important; border: 1px solid var(--line); border-radius: var(--radius) !important;
    overflow: hidden; box-shadow: var(--shadow) !important; margin-bottom: 30px; height: calc(100% - 30px);
    display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.single-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg) !important; }
.single-card .thumb-img { overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); }
.single-card .thumb-img img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .5s; }
.single-card:hover .thumb-img img { transform: scale(1.06); }
.single-card .caption-text { padding: 20px 18px 22px !important; flex: 1; background: #fff !important; }
.single-card .caption-text h3 { font-size: 20px !important; font-weight: 800 !important; color: var(--ink) !important; margin-bottom: 8px; }
.single-card .caption-text a:hover h3 { color: var(--brand) !important; }
.single-card .caption-text p {
    font-size: 14.5px; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.single-card .designation { display: inline-block; background: var(--soft); color: var(--brand) !important; font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 99px; margin-bottom: 10px; }

.services-area.services-box { margin-top: -70px; position: relative; z-index: 5; padding-bottom: 20px; }
.services-area .row > div { margin-bottom: 0; }

/* الأطباء: صورة مربعة بخلفية فاتحة */
.m-doctors .single-card .thumb-img { aspect-ratio: 1 / 1; }
.m-doctors .single-card .thumb-img img { object-position: top; }

/* ===== About ===== */
.about-us-img img, .welcome-image img { border-radius: 24px; box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.about-us-img { position: relative; }
.about-us-img::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--brand-2); border-radius: 24px; z-index: -1; opacity: .5; }
.about-us-text h2, .m-about h2 { font-size: 34px !important; font-weight: 800 !important; color: var(--ink) !important; margin-bottom: 16px; }
.about-us-text p { font-size: 16px; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; }
.m-about p { font-size: 16.5px !important; line-height: 2.1 !important; color: var(--muted) !important; white-space: pre-line; }

.default-btn {
    display: inline-flex !important; align-items: center; gap: 8px; background: var(--brand) !important; color: #fff !important;
    border-radius: 12px !important; padding: 12px 26px !important; font-weight: 800; border: 0 !important;
    box-shadow: 0 10px 22px rgba(15,118,110,.25);
}
.default-btn:hover { background: var(--brand-dark) !important; transform: translateY(-2px); color: #fff !important; }

/* ===== Call to action ===== */
.call-to-action {
    background: linear-gradient(120deg, var(--brand-dark), var(--brand) 60%, var(--brand-2)) !important;
    padding: 46px 0 !important; position: relative; overflow: hidden;
}
.call-to-action::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.07); left: -120px; top: -160px; }
.call-to-action .row { align-items: center; position: relative; z-index: 1; }
.call-to-action-text { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 0 !important; }
.call-to-action-text i { position: static !important; font-size: 54px !important; color: #fff !important; background: rgba(255,255,255,.14); width: 84px; height: 84px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; }
.call-to-action-text h3 { color: #fff !important; font-size: 28px !important; font-weight: 800 !important; margin: 0 !important; width: calc(100% - 110px); }
.call-to-action-text p { color: #d8f3ef !important; margin: 0 !important; font-size: 17px; width: 100%; padding-right: 102px; }
.call-to-action-text p span { color: #fff !important; font-weight: 800; direction: ltr; display: inline-block; }
.call-to-action .default-btn { background: #fff !important; color: var(--brand) !important; float: none !important; }
.call-to-action .default-btn:hover { background: var(--accent) !important; color: #fff !important; }
@media (max-width: 991px) { .call-to-action-text p { padding-right: 0; } .call-to-action .default-btn { margin-top: 18px; } }

/* ===== Page title (inner pages) ===== */
.page-title {
    background: linear-gradient(120deg, var(--brand-dark), var(--brand)) !important;
    padding: 56px 0 50px !important; position: relative; overflow: hidden;
}
.page-title::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.07); left: -90px; bottom: -170px; }
.page-title h2 { color: #fff !important; font-size: 36px !important; font-weight: 800 !important; margin: 0 !important; position: relative; z-index: 1; }
.m-crumb { list-style: none; display: flex; gap: 8px; padding: 0; margin: 10px 0 0; position: relative; z-index: 1; }
.m-crumb li, .m-crumb a { color: #cdeeea !important; font-size: 14px; }
.m-crumb li + li::before { content: "‹"; margin-left: 8px; }
.m-crumb a:hover { color: #fff !important; }

/* ===== Department details ===== */
.m-dept-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.m-dept-card .img img { width: 100%; max-height: 460px; object-fit: cover; display: block; }
.m-dept-card .department-desc { padding: 28px 30px 32px; }
.m-dept-card .department-desc h2 { font-size: 28px !important; font-weight: 800 !important; color: var(--ink) !important; margin-bottom: 14px; }
.m-dept-card .department-desc p { font-size: 16px; line-height: 2.1; white-space: pre-line; }

/* ===== Contact ===== */
.m-contact { padding: 70px 0; }
.m-contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; height: 100%; }
.m-contact-card h3 { font-size: 22px !important; font-weight: 800 !important; color: var(--ink) !important; margin-bottom: 18px; }
.m-contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.m-contact-list li { display: flex; align-items: center; gap: 14px; background: var(--soft); border-radius: 14px; padding: 14px; }
.m-contact-list i { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--brand); color: #fff; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; margin: 0 !important; }
.m-contact-list span { color: var(--ink); font-weight: 700; word-break: break-word; }
.m-contact-list li.m-phone span { direction: ltr; }
.m-contact .form-group label { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.m-contact .form-control {
    border: 1px solid var(--line) !important; border-radius: 12px !important; padding: 12px 14px !important; height: auto !important;
    background: #fbfdfd; box-shadow: none !important;
}
.m-contact .form-control:focus { border-color: var(--brand) !important; background: #fff; box-shadow: 0 0 0 4px rgba(15,118,110,.12) !important; }
.m-btn-send {
    background: var(--brand) !important; color: #fff !important; border: 0 !important; border-radius: 12px !important;
    padding: 12px 34px !important; font-weight: 800; cursor: pointer; box-shadow: 0 10px 22px rgba(15,118,110,.25);
}
.m-btn-send:hover { background: var(--brand-dark) !important; }
.m-sent { display: inline-block; margin-right: 12px; color: #16a34a !important; font-weight: 700; }
.map_area { margin-top: 30px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map_area iframe { display: block; }

/* ===== Footer ===== */
footer {
    background: #0b2b2a !important; color: #b9d3d1 !important; padding-top: 70px !important; padding-bottom: 20px !important;
    position: relative;
}
footer::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--accent)); }
footer .footer-widget h3 { color: #fff !important; font-size: 18px !important; font-weight: 800 !important; margin-bottom: 18px !important; position: relative; padding-bottom: 10px; }
footer .footer-widget h3::after { content: ""; position: absolute; bottom: 0; right: 0; width: 36px; height: 3px; border-radius: 3px; background: var(--brand-2); }
footer .footer-widget ul { padding: 0; list-style: none; }
footer .footer-widget ul li { margin-bottom: 9px; }
footer .footer-widget ul li a { color: #b9d3d1 !important; }
footer .footer-widget ul li a:hover { color: #fff !important; padding-right: 4px; }
footer .footer-logo img { background: #fff; border-radius: 18px; padding: 8px; object-fit: contain; }
footer .socials-links { display: flex; gap: 8px; margin-top: 18px; }
footer .socials-links li a {
    width: 38px; height: 38px; border-radius: 10px; display: inline-flex !important; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08) !important; color: #fff !important; font-size: 16px;
}
footer .socials-links li a:hover { background: var(--brand) !important; padding: 0 !important; }
footer .foot-contact-info { display: flex; align-items: center; gap: 10px; }
footer .foot-contact-info i { position: static !important; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); color: var(--brand-2) !important; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
footer .foot-contact-info p { margin: 0 !important; padding: 0 !important; color: #e3f1f0 !important; }
footer .separate-line { border-top: 1px solid rgba(255,255,255,.08) !important; margin: 30px 0 18px !important; background: none !important; height: 0 !important; }
footer .bottom-footer p { color: #8fb0ad !important; font-size: 13.5px; text-align: center; margin: 0; }

/* ===== Floating buttons ===== */
.m-float { position: fixed; left: 18px; bottom: 18px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; }
.m-float a {
    width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    color: #fff !important; font-size: 24px; box-shadow: 0 10px 24px rgba(0,0,0,.2);
}
.m-float .m-wa { background: #25d366; }
.m-float .m-top { background: var(--brand); opacity: 0; pointer-events: none; transition: opacity .2s; }
.m-float .m-top.show { opacity: 1; pointer-events: auto; }
.m-float a:hover { transform: translateY(-3px); }

/* ===== Reveal on scroll ===== */
.m-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.m-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .m-reveal { opacity: 1; transform: none; transition: none; } }
