/* ============================================
   مجمع أوشن الطبي - Ocean Medical Complex
   التنسيقات الرئيسية - الإصدار النهائي المنظم
   ============================================ */

/* ---------- المتغيرات العامة (الألوان والظلال) ---------- */
:root {
    --primary-dark: #204289;      /* الأزرق الغامق للهيدر والفوتر والعناوين */
    --primary-light: #2b6cf5;     /* الأزرق الفاتح للأزرار والروابط */
    --green-whatsapp: #25D366;    /* أخضر واتساب */
    --gray-bg: #f3f4f6;           /* خلفية رمادية فاتحة للأقسام البديلة */
    --text-dark: #1f2937;         /* لون النص الأساسي */
    --text-light: #6b7280;        /* لون النص الثانوي */
    --white: #ffffff;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ---------- إعادة تعيين الهوامش والمسافات ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Readex Pro', 'Segoe UI', Tahoma, sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.5;
    /* direction يتحكم فيه html[dir] عبر i18n.js */
    background-image: url('/assets/ocean_logo-removebg-preview.webp');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 60% auto;
    background-attachment: fixed;
    position: relative;
}

/* زر تبديل اللغة */
.lang-toggle {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 2rem;
    padding: 0.25rem 0.65rem;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-toggle:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.1);
}

/* أيقونات الهيدر اليمين */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* زر اللغة داخل القائمة (مخفي على الديسكتوب) */
.lang-toggle-nav {
    display: none;
}

/* طبقة شفافة فوق الخلفية لتخفيف العلامة المائية أكثر */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    pointer-events: none;
    z-index: -1;
}

/* ---------- الحاوية الرئيسية ---------- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- الهيدر (Header) ---------- */
.header {
    background: var(--primary-dark);
    color: var(--white);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.logo-img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    white-space: nowrap;
}

/* قائمة الروابط (ديسكتوب) */
.nav-links {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    padding: 0.4rem 0;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #a0c4ff;
    transform: translateY(-2px);
}

/* أيقونة الواتساب في الهيدر */
.whatsapp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-icon:hover {
    transform: scale(1.1);
}

.whatsapp-icon img {
    width: 50px;
    height: auto;
    display: block;
}

/* زر الهامبرغر (يظهر فقط في الموبايل) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

/* ---------- إصلاحات اللغة الإنجليزية (LTR) ---------- */
html[dir="ltr"] .header .container {
    flex-wrap: nowrap;
}

html[dir="ltr"] .nav-links {
    gap: 0.6rem;
    font-size: 0.84rem;
    flex-wrap: nowrap;
}

html[dir="ltr"] .logo-text {
    font-size: 0.9rem;
    font-weight: 600;
}

html[dir="ltr"] .services-list {
    text-align: left;
}

html[dir="ltr"] .footer-grid {
    text-align: left;
}

/* الهامبرغر يظهر مبكراً في وضع الإنجليزي (شاشات ≤ 1080px) */
@media (max-width: 1080px) {
    html[dir="ltr"] .hamburger {
        display: flex;
    }
    html[dir="ltr"] .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--primary-dark);
        padding: 1rem;
        gap: 0.8rem;
        z-index: 999;
        box-shadow: var(--shadow-sm);
        font-size: 1rem;
    }
    html[dir="ltr"] .nav-links.open {
        display: flex;
    }
    html[dir="ltr"] .header .container {
        position: relative;
    }
    html[dir="ltr"] .logo-text {
        font-size: 0.88rem;
    }
    html[dir="ltr"] .header-actions {
        order: 3;
        flex-shrink: 0;
    }
    html[dir="ltr"] .logo-area {
        flex-shrink: 1;
        min-width: 0;
    }
    html[dir="ltr"] .lang-toggle-desktop {
        display: none;
    }
    html[dir="ltr"] .lang-toggle-nav {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
    }
}

/* ---------- الفوتر (Footer) ---------- */
.footer {
    background: var(--primary-dark);
    color: #e2e8f0;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: right;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #e2e8f0;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.footer-col a:hover {
    color: #a0c4ff;
    text-decoration: underline;
}

/* أيقونات التواصل الاجتماعي في الفوتر */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    transition: var(--transition);
    margin: 0 4px;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.social-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #2d4a8a;
}

/* ---------- الأقسام العامة ---------- */
.section {
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

/* الأزرار العامة */
.btn {
    display: inline-block;
    background: var(--primary-light);
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 1rem;
}

.btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ---------- بطاقات الأطباء والعيادات (عامة) ---------- */
.doctors-grid,
.clinics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;   /* جميع الكروت في الصف تأخذ نفس الارتفاع */
}

/* على الشاشات الكبيرة جداً، نحدد 3 أعمدة كحد أقصى */
@media (min-width: 1024px) {
    .doctors-grid,
    .clinics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* الكارت نفسه */
.doctor-card,
.clinic-card {
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.doctor-card:hover,
.clinic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.15);
}

/* صورة الطبيب - دائرية مع ضبط نقطة التركيز على الوجه */
.doctor-img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: #e2e8f0;
}

/* صورة العيادة - مربعة بزوايا دائرية */
.clinic-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.specialty {
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.doctor-degree {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 0.6rem;
    line-height: 1.4;
    font-style: italic;
}

/* قائمة الخدمات داخل الكارت */
.services-list {
    text-align: right;
    margin: 1rem 0;
    list-style: none;
    font-size: 0.9rem;
    flex-grow: 1;          /* يدفع الزر إلى الأسفل */
}

.services-list li {
    margin: 0.5rem 0;
}

/* زر الحجز أو عرض التفاصيل في أسفل الكارت */
.doctor-card .btn,
.clinic-card .btn {
    margin-top: auto;
}

/* ---------- تنسيق خاص لكروت الأطباء في الصفحة الرئيسية (عمودين متساويين) ---------- */
.home .doctors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch;
    justify-items: center;
}

.home .doctor-card {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ---------- قسم Hero (الصفحة الرئيسية) ---------- */
.hero {
    position: relative;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    width: 100%;
    min-height: 550px;
    border-radius: 1.5rem;
    margin: 1rem 0;
    overflow: hidden;
    background-color: #204289;  /* لون الخلفية عند وجود فراغات (أزرق غامق) */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

/* الصور المتحركة (الدكتور والدكتورة) */
.moving-doctor {
    position: absolute;
    bottom: 0;
    height: auto;
    opacity: 0;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.2, 0.9, 0.4, 1.1);
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.4));
    pointer-events: none;
}

.doctor-left {
    width: 440px;
    transition-duration: 4s;
    transition-delay: 0.3s;
    left: -500px;
}

.doctor-right {
    width: 300px;
    transition-duration: 4s;
    transition-delay: 0.6s;
    right: -500px;
}

.doctor-left.visible {
    left: 200px;
    opacity: 1;
}

.doctor-right.visible {
    right: 230px;
    opacity: 1;
}

.hero-text {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 1.8rem;
    border-radius: 1.2rem;
    color: var(--white);
    text-align: center;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.hero-text h1 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.hero-text p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* ---------- تأثير ظهور البطاقات عند التمرير (Fade + Scale) ---------- */
.clinic-card,
.doctor-card {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.clinic-card.appear,
.doctor-card.appear {
    opacity: 1;
    transform: scale(1);
}

/* ---------- نماذج الحجز والتواصل ---------- */
.form-card {
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    padding: 2rem;
    transition: var(--transition);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.8rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(43, 108, 245, 0.2);
}

/* أزرار اختيار الفترة (صباحي/مسائي) */
.time-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.time-btn {
    flex: 1;
    padding: 0.7rem;
    text-align: center;
    background: #f1f5f9;
    border-radius: 2rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.time-btn.selected {
    background: var(--primary-light);
    color: var(--white);
    border-color: var(--primary-light);
}

/* معلومات الاتصال والخريطة */
.contact-info-box {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.map-embed {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 1rem;
}

/* ---------- صفحة حسابات التواصل ---------- */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 1024px) {
    .social-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.social-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: block;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.social-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 0.8rem;
}

.social-card span {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
}

/* ---------- صفحة من نحن (About) ---------- */
.about-heart {
    font-size: 2.5rem;
    color: #e74c3c;
    margin: 1rem 0;
}

.values-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.value-item {
    text-align: center;
    padding: 1rem;
}

/* ---------- تحسينات التركيز لضعاف البصر (Accessibility) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* ---------- تنسيق صفحة خدماتنا (3 كروت متجاورة مع تجاوب) ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* شاشات متوسطة (تابلت) -> صفين */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* شاشات صغيرة (موبايل) -> عمود واحد */
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- ضبط كروت الأطباء في الصفحة الرئيسية (طبيبين جنباً إلى جنب) ---------- */
/* نستخدم المعرف #doctorsSampleGrid للتأكد من عدم تعارض مع قواعد أخرى */
#doctorsSampleGrid {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 2rem !important;
    flex-wrap: wrap !important;
}

#doctorsSampleGrid .doctor-card {
    flex: 1 1 300px !important;   /* يتمدد لملء المساحة ويحافظ على العرض الأساسي */
    min-width: 280px !important;
    max-width: 350px !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
}

/* جعل قائمة الخدمات تدفع الزر للأسفل */
#doctorsSampleGrid .doctor-card .services-list {
    flex-grow: 1 !important;
}

/* توحيد ارتفاع الصورة */
#doctorsSampleGrid .doctor-img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    object-position: top center;
}

/* في الموبايل: عمود واحد */
@media (max-width: 768px) {
    #doctorsSampleGrid .doctor-card {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
}

/* ============================================================
   ████████ تنسيقات الموبايل (جميع القواعد الخاصة بالشاشات الصغيرة) ████████
   ============================================================ */
@media (max-width: 768px) {

    /* --- تعديلات قسم Hero --- */
    .hero {
        margin: 0;
        border-radius: 0;
        min-height: auto;
        background-color: transparent !important;
    }
    .hero-bg,
    .hero {
        background-size: cover !important;
        background-position: center 30% !important;
        background-repeat: no-repeat;
        height: 50vh;
        width: 100%;
    }
    .hero-text {
        display: none;      /* إخفاء النص والزر فوق الصورة في الموبايل */
    }

    /* --- تعديلات الهيدر (ترتيب العناصر) --- */
    .header .container {
        justify-content: space-between;
        position: relative;
        flex-wrap: nowrap;
    }
    .hamburger {
        display: flex;
        order: 1;           /* أقصى اليمين في RTL */
    }
    .logo-area {
        order: 2;
        margin: 0 auto;
        flex-shrink: 1;
        min-width: 0;
    }
    .header-actions {
        order: 3;
        flex-shrink: 0;
    }
    .lang-toggle-desktop {
        display: none;
    }
    .lang-toggle-nav {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--primary-dark);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem;
        gap: 0.8rem;
        z-index: 999;
        box-shadow: var(--shadow-sm);
        order: 4;
    }
    .nav-links.open {
        display: flex;
    }
    .logo-img {
        height: 35px;
    }
    .logo-text {
        font-size: 1.1rem;
    }
    html[dir="ltr"] .logo-text {
        font-size: 0.8rem;
    }
    .whatsapp-icon img {
        width: 25px;
        height: auto;
    }

    /* --- تعديل أحجام الصور المتحركة (الدكتور والدكتورة) --- */
    .doctor-left {
        width: 220px;
        left: -150px;
    }
    .doctor-right {
        width: 150px;
        right: -150px;
    }
    .doctor-left.visible {
        left: 10px;
    }
    .doctor-right.visible {
        right: 10px;
    }

    /* --- عناوين الأقسام --- */
    .section-title {
        font-size: 1.5rem;
    }

    /* --- شبكات الكروت: تصبح عموداً واحداً (باستثناء الصفحة الرئيسية) --- */
    .doctors-grid,
    .clinics-grid {
        grid-template-columns: 1fr !important;
    }

    /* --- الصفحة الرئيسية: كروت الأطباء عمود واحد (تم ضبطها أعلاه) --- */
    /* ملاحظة: لا نحتاج إلى تكرار القواعد هنا لأن #doctorsSampleGrid تم ضبطها بالفعل للموبايل */

    /* --- الفوتر: عمود واحد ومركز --- */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* --- تصغير المسافات الداخلية للنموذج --- */
    .form-card {
        padding: 1.2rem;
    }

    /* --- صفحة حسابات التواصل: 2 أعمدة في الموبايل --- */
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* شاشات ضيقة جداً: تصغير طفيف للوغو */
@media (max-width: 380px) {
    .logo-img {
        height: 30px;
    }
    .logo-text {
        font-size: 0.95rem;
    }
    html[dir="ltr"] .logo-text {
        font-size: 0.72rem;
    }
}

/* تعطيل تأثير الاختفاء للكروت في صفحات العيادات فقط (تظهر فوراً) */
.clinic-details-page .doctor-card {
    opacity: 1 !important;
    transform: scale(1) !important;
}




/* ========== تنسيق صفحة خدماتنا - 3 كروت متجاورة مع تجاوب كامل ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* للشاشات المتوسطة (تابلت) */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* للشاشات الصغيرة (موبايل) - استخدام نفس breakpoint الخاص بتنسيقات الموبايل */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr !important;  /* كارت واحد يملأ العرض */
        gap: 1.5rem !important;
    }
}




/* أزرار اختيار الوقت */
.time-slot-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
}
.time-slot-btn:hover {
    background: #e2e8f0;
}
.time-slot-btn.selected {
    background: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
}
.date-btn.active {
    background: var(--primary-light);
    color: white;
    border: none;
}




/* تنسيق حاوية الأزرار */
.date-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
}

/* الأزرار بشكل عام */
.date-btn,
#specificDateBtn {
    background: linear-gradient(145deg, #ffffff, #f0f4f8);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 3rem;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Tajawal', 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #1e293b;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.02);
}

/* أيقونات الأزرار (تضاف في HTML) */
.date-btn i,
#specificDateBtn i {
    font-size: 1.1rem;
    color: #0284c7;
    transition: color 0.2s;
}

/* تأثير المرور (hover) */
.date-btn:hover,
#specificDateBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1), 0 0 0 1px #cbd5e1;
    background: #ffffff;
}

.date-btn:hover i,
#specificDateBtn:hover i {
    color: #0369a1;
    transform: scale(1.05);
}

/* تأثير الضغط (active) */
.date-btn:active,
#specificDateBtn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: 0.05s;
}

/* الزر النشط (عند اختيار اليوم أو غداً أو تاريخ محدد) */
.date-btn.active,
#specificDateBtn.active {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: white;
    box-shadow: 0 6px 14px rgba(2, 132, 199, 0.35);
    border: none;
}

.date-btn.active i,
#specificDateBtn.active i {
    color: white;
}

/* تنسيق خاص لزر "تاريخ محدد" (في الوضع العادي) */
#specificDateBtn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    box-shadow: none;
}

#specificDateBtn i {
    color: #0284c7;
}

#specificDateBtn:hover {
    background: #eef2ff;
    border-color: #0284c7;
}

#specificDateBtn.active {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    border: none;
    color: white;
}

/* منتقي التاريخ (عند الضغط على "تاريخ محدد") */
.date-picker-wrapper {
    margin-top: 0.8rem;
}

#datePicker {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 1.5rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    background: white;
    transition: 0.2s;
}

#datePicker:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}







/* صندوق النص العائم (ثابت) */


/* إخفاء الزر الأصلي داخل الهيرو في الصفحة الرئيسية */
.home .hero-text .btn {
    display: none;
}

/* زر احجز موعد عائم (يظهر في أسفل الشاشة) */
.floating-book-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background: var(--primary-light);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-family: inherit;
}

/* أحجام مختلفة حسب الشاشة */
@media (min-width: 1024px) {
    .floating-book-btn {
        padding: 14px 28px;
        font-size: 1.1rem;
        bottom: 30px;
        right: 30px;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .floating-book-btn {
        padding: 12px 24px;
        font-size: 1rem;
        bottom: 25px;
        right: 25px;
    }
}
@media (max-width: 767px) {
    .floating-book-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        bottom: 15px;
        right: 15px;
    }
}

.floating-book-btn i {
    font-size: 1.2em;
}

.floating-book-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}
