/*
Theme Name: Alkholafaa Hospital
Theme URI: https://alkholafaa.com/
Author: OpenAI
Description: Arabic RTL custom WordPress theme starter for Al-Kholafaa Al-Rashideen Hospital.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: alkholafaa
*/
:root{--blue:#168bc4;--blue-dark:#0874a9;--green:#5caf60;--ink:#172d3b;--muted:#657785;--pale:#f2f8fa;--white:#fff;--radius:18px;--shadow:0 14px 40px rgba(10,47,67,.10)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Tahoma,Arial,sans-serif;color:var(--ink);background:#fff;line-height:1.8;direction:rtl}a{color:var(--blue-dark);text-decoration:none}a:hover{color:var(--green)}img{max-width:100%;height:auto;display:block}.container{width:min(1160px,calc(100% - 36px));margin-inline:auto}.topline{background:#f4f8fa;color:#527080;font-size:13px;padding:7px 0}.topline .container{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}.site-header{background:#fff;position:relative;z-index:20;box-shadow:0 3px 16px rgba(0,0,0,.06)}.header-inner{min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:12px;color:var(--blue-dark);font-weight:700;font-size:21px}.brand img{width:66px;height:66px;object-fit:contain}.brand small{display:block;font-size:12px;color:#6c8794;font-weight:400;line-height:1.4}.main-nav ul{display:flex;align-items:center;gap:22px;list-style:none;margin:0;padding:0}.main-nav a{color:#314c5a;font-size:15px;font-weight:600}.header-actions{display:flex;align-items:center;gap:10px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 22px;border-radius:8px;background:var(--green);color:#fff;font-weight:700;border:1px solid var(--green);transition:.2s}.btn:hover{background:#469c4c;color:#fff;transform:translateY(-1px)}.btn-outline{background:transparent;border-color:#fff;color:#fff}.btn-outline:hover{background:#fff;color:var(--blue-dark)}.menu-toggle{display:none;border:0;background:transparent;font-size:27px;color:var(--blue-dark)}.hero{min-height:560px;display:flex;align-items:center;background:linear-gradient(90deg,rgba(4,45,61,.58),rgba(4,45,61,.72)),url('assets/images/medical-team-specialists-hospital-corridor-professional.jpg') center/cover no-repeat;color:#fff}.hero-content{max-width:690px;padding:90px 0}.eyebrow{display:inline-block;color:#d9f3ff;font-weight:700;margin-bottom:12px}.hero h1{font-size:clamp(34px,5vw,60px);line-height:1.22;margin:0 0 18px;font-weight:800}.hero p{font-size:clamp(17px,2vw,22px);margin:0 0 28px;color:#edf8fb}.hero-buttons{display:flex;gap:14px;flex-wrap:wrap}.section{padding:76px 0}.section-soft{background:var(--pale)}.section-head{text-align:center;max-width:720px;margin:0 auto 38px}.section-head .kicker{color:var(--green);font-weight:700}.section-head h2{font-size:clamp(27px,3vw,38px);margin:5px 0 10px;color:#153d51}.section-head p{margin:0;color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.card{background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);border:1px solid #eaf1f4}.card img{width:100%;height:230px;object-fit:cover}.card-body{padding:22px}.card h3{font-size:20px;margin:0 0 8px}.card p{color:var(--muted);margin:0 0 12px}.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}.about-grid img{border-radius:22px;box-shadow:var(--shadow);width:100%;max-height:440px;object-fit:cover}.about-grid h2{font-size:36px;line-height:1.35;margin:8px 0 16px}.feature-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0}.feature{background:#f5fafb;padding:13px 15px;border-radius:10px;font-weight:700;color:#31586a}.feature:before{content:"✓";color:var(--green);font-weight:900;margin-left:9px}.cta-band{background:linear-gradient(110deg,#087eae,#0e9bc4);color:#fff;padding:42px;border-radius:22px;display:flex;align-items:center;justify-content:space-between;gap:25px}.cta-band h2{margin:0;font-size:30px}.cta-band p{margin:5px 0 0;color:#e7f7fb}.cta-band .btn{background:#fff;color:#0879a6;border-color:#fff}.page-hero{
    padding:65px 0;
    background:
    linear-gradient(100deg,rgba(5,61,82,.82),rgba(7,126,164,.76)),
    url('https://new.alkholafaa.com/wp-content/uploads/2026/11/unnamed.webp') center/cover no-repeat;
    color:#fff;
}.page-hero h1{font-size:38px;margin:0}.breadcrumbs{font-size:13px;color:#d8eef5}.content-area{padding:55px 0;min-height:380px}.entry-content{font-size:17px}.entry-content img{border-radius:14px}.post-card img,.doctor-card img{height:250px;object-fit:cover}.doctor-card{text-align:center}.doctor-card img{object-position:center top}.doctor-card .card-body{padding:18px}.doctor-card .specialty{color:var(--green);font-weight:700}.single-layout{max-width:850px;margin:auto}.single-layout .featured{width:100%;max-height:480px;object-fit:cover;border-radius:20px;margin-bottom:25px}.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}.contact-panel{padding:28px;background:#f5fafb;border-radius:18px}.contact-panel h3{margin-top:0}.site-footer{background:#102f40;color:#d9e9ee;padding:55px 0 20px}.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:35px}.site-footer h3{color:#fff;margin-top:0}.site-footer a{color:#d9e9ee}.footer-bottom{border-top:1px solid rgba(255,255,255,.15);margin-top:35px;padding-top:18px;font-size:13px;color:#b5cbd3}.whatsapp-float{position:fixed;left:22px;bottom:22px;z-index:50;background:#20b95a;color:white;padding:13px 18px;border-radius:50px;box-shadow:0 8px 25px #0002;font-weight:700}.whatsapp-float:hover{color:#fff;background:#169b49}.pagination{margin-top:35px}.pagination .page-numbers{padding:8px 13px;background:#f1f6f8;border-radius:7px;margin:3px}.no-content{padding:30px;background:#f6fafb;border-radius:14px;text-align:center;color:var(--muted)}
@media(max-width:900px){.main-nav{display:none;position:absolute;top:88px;right:0;left:0;background:#fff;padding:18px 24px;box-shadow:var(--shadow)}.main-nav.open{display:block}.main-nav ul{display:block}.main-nav li{padding:9px 0}.menu-toggle{display:block}.header-actions .btn{padding:9px 12px;font-size:13px}.grid{grid-template-columns:repeat(2,1fr)}.hero{min-height:510px}.about-grid{gap:28px}.footer-grid{grid-template-columns:1fr 1fr}}@media(max-width:600px){.container{width:min(100% - 26px,1160px)}.topline .container{justify-content:center}.header-inner{min-height:76px}.brand{font-size:17px}.brand img{width:54px;height:54px}.main-nav{top:76px}.header-actions .btn{display:none}.hero{min-height:540px;background-position:55% center}.hero-content{padding:70px 0}.hero h1{font-size:35px}.hero-buttons{display:grid}.hero-buttons .btn{width:100%}.section{padding:55px 0}.grid,.about-grid,.contact-grid,.footer-grid{grid-template-columns:1fr}.about-grid h2{font-size:29px}.feature-list{grid-template-columns:1fr}.cta-band{padding:27px;display:block}.cta-band .btn{margin-top:18px}.page-hero{padding:48px 0}.page-hero h1{font-size:30px}.whatsapp-float{left:12px;bottom:12px;padding:10px 14px}}


/* v1.1 content templates */
.services-grid .card img{height:205px}.service-icon{font-size:28px;color:var(--green);margin-bottom:8px}.doctor-meta{font-size:14px;color:var(--muted);margin:8px 0}.contact-list{list-style:none;padding:0;margin:0}.contact-list li{padding:10px 0;border-bottom:1px solid #e0ebef}.contact-list strong{color:#1a536b}.map-frame{width:100%;min-height:340px;border:0;border-radius:16px}.article-meta{font-size:13px;color:var(--muted);margin-bottom:16px}.department-feature{display:flex;gap:18px;align-items:flex-start}.department-feature img{width:112px;height:112px;border-radius:14px;object-fit:cover}.notice{padding:16px 20px;background:#eef8fb;border-right:4px solid var(--blue);border-radius:10px;margin:20px 0;color:#31586a}

/* ضبط عرض وتوسيط كروت الأقسام الطبية */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

/* قسم واحد */
.services-grid:has(> .card:only-child) {
    grid-template-columns: minmax(280px, 360px);
    justify-content: center;
}

/* قسمان */
.services-grid:has(> .card:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(280px, 360px));
    justify-content: center;
}

/* الموبايل والتابلت */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-grid:has(> .card:only-child) {
        grid-template-columns: minmax(280px, 360px);
    }
}

@media (max-width: 600px) {
    .services-grid,
    .services-grid:has(> .card:nth-child(2):last-child) {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* صفحة تفاصيل الخبر */
.news-single {
    background: #fff;
}

.news-single-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 22px;
}

.news-single-image {
    margin-bottom: 30px;
}

.news-single-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.news-single-content {
    font-size: 18px;
    line-height: 2.1;
    color: #344f5d;
    padding: 10px 0 30px;
}

.news-single-content h2,
.news-single-content h3 {
    color: #153d51;
    margin-top: 28px;
}

.news-single-content p {
    margin-bottom: 20px;
}

.news-share {
    border-top: 1px solid #e5eef1;
    border-bottom: 1px solid #e5eef1;
    padding: 24px 0;
    margin: 25px 0 55px;
}

.news-share h3 {
    margin-top: 0;
    color: var(--ink);
}

.news-share a {
    display: inline-flex;
    padding: 11px 20px;
    border-radius: 8px;
    color: #fff;
    margin: 5px;
    font-weight: 700;
}

.share-facebook {
    background: #1877f2;
}

.share-whatsapp {
    background: #20b95a;
}

.related-news {
    margin-top: 65px;
}

.related-news .news-card img {
    height: 205px;
    object-fit: cover;
}

.back-to-news {
    text-align: center;
    margin: 45px 0 20px;
}

@media (max-width: 600px) {
    .news-single-content {
        font-size: 16px;
    }

    .news-share a {
        display: flex;
        justify-content: center;
    }
}


/* تحسين الخطوط لتكون أقرب للموقع القديم */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap');

body,
button,
input,
textarea,
select {
    font-family: 'Cairo', Tahoma, Arial, sans-serif !important;
    font-weight: 400;
}

/* العناوين */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', Tahoma, Arial, sans-serif !important;
    font-weight: 600 !important;
}

/* القائمة الرئيسية */
.main-nav a {
    font-weight: 500 !important;
}

/* اسم المستشفى */
.brand {
    font-weight: 600 !important;
}

/* عنوان الصفحة الرئيسية */
.hero h1 {
    font-weight: 700 !important;
}

/* النصوص والوصف */
p,
.entry-content,
.card p,
.about-grid p {
    font-weight: 400 !important;
    line-height: 1.9;
}

/* الأزرار */
.btn {
    font-weight: 600 !important;
}


/* تصميم صفحة حجز المواعيد - قريب من التصميم القديم */

.booking-hero {
    background: #3194b5;
    color: #fff;
    text-align: center;
    padding: 65px 20px 75px;
}

.booking-hero h1 {
    color: #fff;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 600 !important;
    margin: 0 0 12px;
}

.booking-hero p {
    color: #eaf7fb;
    font-size: 16px;
    margin: 0;
    font-weight: 400;
}

.booking-page {
    padding: 90px 0 80px;
    background: #fff;
}

.booking-options {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 38px;
    max-width: 900px;
    margin: auto;
}

.booking-option {
    width: 342px;
    min-height: 385px;
    padding: 45px 35px;
    border: 2px solid;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f7fafb;
}

.booking-clinics {
    border-color: #3198c0;
    background: #f3f9fb;
    color: #3198c0;
}

.booking-internal {
    border-color: #5caf60;
    background: #f6faf6;
    color: #5caf60;
}

.booking-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.booking-icon span {
    color: #fff;
    font-size: 29px;
    line-height: 1;
}

.booking-option h2 {
    font-size: 20px;
    font-weight: 600 !important;
    color: inherit;
    margin: 0 0 18px;
}

.booking-option p {
    color: #657785;
    font-size: 14px;
    line-height: 1.9;
    font-weight: 400 !important;
    margin: 0 0 28px;
    min-height: 58px;
}

.booking-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 60px;
    padding: 12px 15px;
    margin-top: auto;
    border-radius: 6px;
    background: currentColor;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    transition: .2s;
}

.booking-clinics .booking-button {
    background: #3198c0;
}

.booking-internal .booking-button {
    background: #5caf60;
}

.booking-button:hover {
    color: #fff !important;
    filter: brightness(.93);
    transform: translateY(-2px);
}

.booking-button span {
    font-size: 23px;
}

@media(max-width: 700px) {
    .booking-hero {
        padding: 50px 15px;
    }

    .booking-page {
        padding: 45px 0;
    }

    .booking-options {
        flex-direction: column;
        align-items: center;
        gap: 22px;
        padding-inline: 15px;
    }

    .booking-option {
        width: 100%;
        max-width: 400px;
        min-height: 340px;
        padding: 35px 25px;
    }
}
