/* Base Styles */
body {
    font-family: 'Vazirmatn', sans-serif;
    scroll-behavior: smooth;
    background-color: #f8fafc;
    overflow-x: hidden;
    color: #374151;
}

html[lang="en"] body, html[dir="ltr"] body {
    font-family: 'Roboto', 'Vazirmatn', sans-serif;
}

:root {
    --color-primary-blue: #002f55;
    --color-primary-red: #ad0004;
    --color-accent-teal: #14b8a6;
    --color-accent-sky: #38bdf8;
    --color-accent-amber: #f59e0b;
    --color-accent-rose: #f43f5e;
    --color-accent-indigo: #6366f1;
    --color-whatsapp-green: #25D366;
    --color-phone-green: #4CAF50;
}

/* Animations */
@keyframes fadeInSimple { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pulseLogo { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }

.logo-container:hover .logo-img { animation: pulseLogo 0.7s ease-in-out; }
.logo-img { max-height: 40px; width: auto; transition: transform 0.3s ease; }

.animate-fade-in { opacity: 0; animation: fadeInSimple 0.8s ease-out forwards; }
.animate-slide-in-up { opacity: 0; animation: slideInUp 0.7s ease-out forwards; }
.animate-slide-in-up.is-visible { opacity: 1; transform: translateY(0); }
.animate-pulse-custom { animation: pulse 2.5s ease-in-out infinite; }

/* Header and Navigation */
header { transition: box-shadow 0.3s ease-in-out; }
nav#desktop-nav { display: none; }
nav#desktop-nav.rtl-nav { gap: 0.7rem; }
nav#desktop-nav.ltr-nav { gap: 0.4rem; }
nav#desktop-nav a { padding-left: 0.35rem; padding-right: 0.35rem; font-size: 0.85rem; }
nav#desktop-nav.ltr-nav a { font-size: 0.8rem; }
@media (min-width: 1024px) {
    nav#desktop-nav { display: flex; }
}

nav#mobile-menu { 
    display: none;
    flex-direction: column;
    background-color: white;
    border-top: 1px solid #e5e7eb;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
nav#mobile-menu:not(.hidden) { 
    display: flex; 
    opacity: 1;
    transform: translateY(0);
}
@media (min-width: 1024px) {
    nav#mobile-menu { display: none !important; }
}

/* Fullscreen Search */
#fullscreen-search-overlay { transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out; }
#fullscreen-search-overlay.hidden { opacity: 0; visibility: hidden; }
#fullscreen-search-input::placeholder { color: rgba(255,255,255,0.6); }
#fullscreen-search-input { caret-color: var(--color-primary-red); }
#close-fullscreen-search { transition: transform 0.2s ease-in-out; }
#close-fullscreen-search:hover { transform: scale(1.1) rotate(90deg); }

/* Hero Sections */
#hero-blog { position: relative; min-height: 40vh; padding-top: 6rem; padding-bottom: 2rem; display: flex; align-items: center; justify-content: center; text-align: center; color: white; overflow: hidden; }
.hero-blog-bg-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.1; z-index: -1; }
.hero-blog-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(0, 47, 85, 0.8) 0%, rgba(173, 0, 4, 0.7) 100%); z-index: 0; }

#hero-contact { position: relative; min-height: 50vh; padding-top: 7rem; padding-bottom: 3rem; display: flex; align-items: center; justify-content: center; text-align: center; color: white; overflow: hidden; }
.hero-contact-bg-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.1; z-index: -1; }
.hero-contact-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(0, 47, 85, 0.85) 0%, rgba(173, 0, 4, 0.7) 100%); z-index: 0; }

#hero, #hero-health-tourism, #hero-jobs, #hero-consultation, #hero-training { position: relative; min-height: 70vh; padding-top: 7rem; padding-bottom: 3rem; display: flex; align-items: center; justify-content: center; text-align: center; color: white; overflow: hidden; }
.hero-main-image, .hero-ht-bg-img, .hero-main-image-jobs, .hero-main-image-consultation, .hero-training-bg-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.15; z-index: -1; }
.hero-dark-layer, .hero-ht-overlay, .hero-dark-layer-jobs, .hero-dark-layer-consultation, .hero-training-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-dark-layer, .hero-dark-layer-jobs, .hero-dark-layer-consultation { background: rgba(0, 20, 40, 0.7); }
.hero-ht-overlay { background: linear-gradient(135deg, rgba(0, 47, 85, 0.7) 0%, rgba(173, 0, 4, 0.6) 100%); }
.hero-training-overlay { background: linear-gradient(135deg, rgba(0, 47, 85, 0.75) 0%, rgba(173, 0, 4, 0.65) 100%); }

.hero-about-bg-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.1; z-index: -1; }
.hero-about-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(0, 47, 85, 0.85) 0%, rgba(173, 0, 4, 0.7) 100%); z-index: 0; }

.typing-text-hero-container { display: inline-block; }
.typing-text-hero { display: inline-block; vertical-align: bottom; }

/* Slider Styles */
.hero-slider { width: 100%; height: 85vh; min-height: 480px; position: relative; }
@media (min-width: 768px) { .hero-slider { height: 100vh; min-height: 650px; } }
.swiper-slide { display: flex; align-items: center; justify-content: center; text-align: center; position: relative; background-size: cover; background-position: center; overflow: hidden; }
.slide-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 47, 85, 0.65); z-index: 1; }
.slide-content { position: relative; z-index: 2; color: white; max-width: 800px; padding: 20px; opacity: 1; }
.swiper-slide-active .slide-content { opacity: 1; }
.swiper-button-next, .swiper-button-prev { color: white !important; background-color: rgba(0,0,0,0.25); border-radius: 50%; width: 48px !important; height: 48px !important; transition: background-color 0.3s ease, transform 0.2s ease; }
.swiper-button-next:hover, .swiper-button-prev:hover { background-color: rgba(173, 0, 4, 0.6); transform: scale(1.1); }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 22px !important; font-weight: bold; }
.swiper-pagination-bullet { background-color: rgba(255,255,255,0.4) !important; opacity: 1 !important; width: 11px !important; height: 11px !important; transition: background-color 0.3s ease, transform 0.3s ease !important; margin: 0 5px !important; }
.swiper-pagination-bullet-active { background-color: var(--color-primary-red) !important; transform: scale(1.25); }

/* Buttons */
.glowing-button { position: relative; overflow: hidden; transition: all 0.3s ease; border-radius: 1.5rem; box-shadow: 0 3px 12px rgba(0,0,0,0.08); }
.glowing-button:hover { box-shadow: 0 5px 20px rgba(173, 0, 4, 0.5); transform: scale(1.03) translateY(-2px); }
.glowing-button.primary-red-bg { background-color: var(--color-primary-red); border-color: var(--color-primary-red); color: white; }
.glowing-button.primary-red-bg:hover { background-color: #8a0003; }
.glowing-button.primary-blue-bg { background-color: var(--color-primary-blue); border-color: var(--color-primary-blue); color: white; }
.glowing-button.primary-blue-bg:hover { background-color: #001f3a; }

/* Cards */
.blog-post-card { background-color: #fff; border-radius: 0.75rem; box-shadow: 0 4px 12px rgba(0,0,0,0.07); overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.blog-post-card:hover { transform: translateY(-6px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.blog-post-card img.featured-image { height: 200px; object-fit: cover; width: 100%; }
.blog-post-card .card-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.blog-post-card .post-title { font-size: 1.25rem; font-weight: 600; color: var(--color-primary-blue); margin-bottom: 0.5rem; line-height: 1.4; }
.blog-post-card .post-title a:hover { color: var(--color-primary-red); }
.blog-post-card .post-meta { font-size: 0.8rem; color: #6b7280; margin-bottom: 0.75rem; }
.blog-post-card .post-excerpt { font-size: 0.9rem; color: #4b5563; line-height: 1.6; margin-bottom: 1rem; flex-grow: 1; }
.blog-post-card .read-more-btn { display: inline-block; padding: 0.5rem 1.25rem; background-color: var(--color-primary-red); color: white; border-radius: 2rem; font-weight: 500; text-decoration: none; transition: background-color 0.3s ease, transform 0.2s ease; align-self: flex-start; }
.blog-post-card .read-more-btn:hover { background-color: #8a0003; transform: scale(1.05); }

.custom-card { transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.35s ease; border: 1px solid #e5e7eb; background-color: #ffffff; border-radius: 1rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04); display: flex; flex-direction: column; }
.custom-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 15px 20px -5px rgba(0,0,0,0.1), 0 8px 8px -5px rgba(0,0,0,0.06); border-color: var(--color-primary-red); }
.custom-card .card-icon { transition: transform 0.3s ease-out; padding: 1rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; width: 72px; height: 72px; }
.custom-card:hover .card-icon { transform: scale(1.1); }
.custom-card .card-icon i { font-size: 2.25rem; }
.custom-card .learn-more-btn { transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; border: 1px solid var(--color-primary-blue); color: var(--color-primary-blue); background-color: transparent; padding: 0.65rem 1.5rem; border-radius: 0.75rem; margin-top: auto; }
.custom-card:hover .learn-more-btn { background-color: var(--color-primary-red); border-color: var(--color-primary-red); color: white; transform: scale(1.05); box-shadow: 0 4px 10px rgba(173, 0, 4, 0.4); }

.contact-info-card { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; border: 1px solid #e5e7eb; background-color: #ffffff; border-radius: 1rem; padding: 1.5rem; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.contact-info-card:hover { transform: translateY(-6px); box-shadow: 0 10px 20px rgba(0, 47, 85, 0.1); border-color: var(--color-primary-blue); }
.contact-info-card .icon-bg { width: 3.5rem; height: 3.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-left: auto; margin-right: auto; margin-bottom: 1rem; background-color: var(--color-primary-blue); }
.contact-info-card .icon-bg i { font-size: 1.75rem; color: white; }
.contact-info-card h3 { font-size: 1.25rem; font-weight: 600; color: var(--color-primary-blue); margin-bottom: 0.75rem; }
.contact-info-card p, .contact-info-card address { font-size: 0.9375rem; color: #4b5563; line-height: 1.6; margin-bottom: 0.25rem; }
.contact-info-card p.contact-group-spacing { margin-top: 0.5rem; }
.contact-info-card a { color: var(--color-primary-red); text-decoration: none; transition: color 0.2s ease; display: inline-block; margin: 0 0.25rem; }
.contact-info-card a:hover { color: #8a0003; text-decoration: underline; }
.contact-info-card.address-card .icon-bg { background-color: #4A5568; }

.profile-card { background-color: white; border-radius: 1rem; box-shadow: 0 8px 16px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid #e5e7eb; }
.profile-card:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(0,0,0,0.15); border-color: var(--color-primary-red); }
.profile-card img { width: 120px; height: 120px; border-radius: 50%; margin: -60px auto 0; border: 4px solid white; box-shadow: 0 4px 8px rgba(0,0,0,0.1); object-fit: cover; }
.profile-card .profile-name { color: var(--color-primary-blue); }
.profile-card .profile-specialty { color: var(--color-primary-red); }

.testimonial-card { background-color: #ffffff; border-radius: 0.75rem; padding: 2rem; box-shadow: 0 6px 12px rgba(0,0,0,0.08); border-left: 5px solid var(--color-primary-red); }
html[dir="rtl"] .testimonial-card { border-left: none; border-right: 5px solid var(--color-primary-red); }
.testimonial-card .quote-icon { color: var(--color-primary-red); opacity: 0.3; }
.testimonial-card .doctor-name, .testimonial-card .patient-name, .testimonial-card .trainee-name { color: var(--color-primary-blue); }
.testimonial-slider-controls button { background-color: rgba(0, 47, 85, 0.1); color: var(--color-primary-blue); transition: background-color 0.3s ease, color 0.3s ease; }
.testimonial-slider-controls button:hover { background-color: var(--color-primary-blue); color: white; }
.testimonial-slide { display: none; }
.testimonial-slide.active { display: block; animation: fadeInSimple 0.5s; }
html[dir="rtl"] #prev-training-testimonial-slide i.fa-chevron-left, html[dir="rtl"] #next-training-testimonial-slide i.fa-chevron-right { transform: scaleX(-1); }

.service-card-jobs, .country-card, .success-story-card { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; border: 1px solid #e5e7eb; background-color: #ffffff; border-radius: 1rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04); }
.service-card-jobs:hover, .country-card:hover, .success-story-card:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0, 47, 85, 0.15); border-color: var(--color-primary-blue); }
.country-card img, .success-story-card img.profile-image { transition: transform 0.3s ease; }
.country-card:hover img, .success-story-card:hover img.profile-image { transform: scale(1.05); }
.success-story-card img.profile-image { width: 100px; height: 100px; border-radius: 50%; margin: -50px auto 0; border: 4px solid white; box-shadow: 0 4px 8px rgba(0,0,0,0.1); position: relative; z-index: 1; object-fit: cover; }
.success-story-card .card-content { padding-top: 60px; }

.feature-card { border: 1px solid #e5e7eb; background-color: #ffffff; border-radius: 0.75rem; padding: 1.5rem; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.feature-card .card-icon { width: 3rem; height: 3rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; background-color: rgba(0, 47, 85, 0.1); }
.feature-card .card-icon i { font-size: 1.5rem; color: var(--color-primary-blue); }
.feature-card h3 { font-size: 1.125rem; font-weight: 600; color: var(--color-primary-blue); margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.875rem; color: #4b5563; line-height: 1.6; }

.step-card { background-color: #fff; border-radius: 1rem; box-shadow: 0 6px 15px rgba(0,0,0,0.07); transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid #e5e7eb; padding: 1.5rem; }
.step-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-color: var(--color-primary-red); }
.step-card .step-icon i { color: var(--color-primary-red); }

.treatment-card-details { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 1rem; }
.treatment-detail-link { background-color: #f3f4f6; color: var(--color-primary-blue); padding: 0.35rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; transition: all 0.2s ease-in-out; border: 1px solid #e5e7eb; }
.treatment-detail-link:hover { background-color: var(--color-primary-red); color: white; border-color: var(--color-primary-red); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.treatment-detail-link i { font-size: 0.65rem; opacity: 0.8; }
html[dir="ltr"] .treatment-detail-link i { margin-right: 0.25rem; }
html[dir="rtl"] .treatment-detail-link i { margin-left: 0.25rem; }

.course-card { background-color: #ffffff; border-radius: 1rem; box-shadow: 0 6px 18px rgba(0, 47, 85, 0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e5e7eb; }
.course-card:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(0, 47, 85, 0.12); }
.course-card .card-icon-bg { width: 100%; height: 120px; display: flex; align-items: center; justify-content: center; background-image: linear-gradient(to top right, var(--color-primary-blue), #00509e); }
.course-card .card-icon-bg i { font-size: 3rem; color: white; opacity: 0.8; }
.course-card .card-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.course-card h3 { font-size: 1.375rem; font-weight: 600; color: var(--color-primary-blue); margin-bottom: 0.75rem; }
.course-card p { font-size: 0.9rem; color: #4b5563; line-height: 1.6; margin-bottom: 1.25rem; flex-grow: 1; }
.course-card .details-button { background-color: var(--color-primary-red); color: white; padding: 0.65rem 1.5rem; border-radius: 2rem; text-align: center; font-weight: 500; transition: background-color 0.3s ease, transform 0.2s ease; margin-top: auto; }
.course-card .details-button:hover { background-color: #8a0003; transform: scale(1.05); }

.feature-card-training { background-color: #ffffff; border-radius: 1rem; padding: 2rem; text-align: center; box-shadow: 0 8px 24px rgba(16, 24, 40, 0.07); transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid #e5e7eb; display: flex; flex-direction: column; align-items: center; }
.feature-card-training:hover { transform: translateY(-8px); box-shadow: 0 12px 30px rgba(16, 24, 40, 0.1); }
.feature-card-training .icon-wrapper-training { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; transition: transform 0.3s ease; }
.feature-card-training:hover .icon-wrapper-training { transform: scale(1.1); }
.feature-card-training .icon-wrapper-training i { font-size: 2.5rem; color: white; }
.feature-card-training h3 { font-size: 1.375rem; font-weight: 700; color: var(--color-primary-blue); margin-bottom: 0.75rem; }
.feature-card-training p { font-size: 0.9375rem; color: #4b5563; line-height: 1.65; }
.feature-card-training.feat1 .icon-wrapper-training { background-color: var(--color-accent-teal); }
.feature-card-training.feat2 .icon-wrapper-training { background-color: var(--color-accent-sky); }
.feature-card-training.feat3 .icon-wrapper-training { background-color: var(--color-accent-amber); }

.service-card-redesigned { background-color: #ffffff; border-radius: 1rem; padding: 2rem 1.5rem; text-align: center; box-shadow: 0 8px 16px rgba(0, 47, 85, 0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; align-items: center; border: 1px solid #e5e7eb; }
.service-card-redesigned:hover { transform: translateY(-10px); box-shadow: 0 12px 24px rgba(0, 47, 85, 0.12); }
.service-card-redesigned .icon-wrapper { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; transition: transform 0.3s ease; }
.service-card-redesigned:hover .icon-wrapper { transform: scale(1.1) rotate(5deg); }
.service-card-redesigned .icon-wrapper i { font-size: 2.75rem; color: white; }
.service-card-redesigned h3 { font-size: 1.375rem; font-weight: 700; color: var(--color-primary-blue); margin-bottom: 0.75rem; }
.service-card-redesigned p { font-size: 0.9375rem; color: #4b5563; line-height: 1.6; margin-bottom: 1.5rem; flex-grow: 1; }
.service-card-redesigned .learn-more-btn-redesigned, .service-card-redesigned .open-modal-btn-redesigned { display: inline-block; padding: 0.75rem 1.75rem; border-radius: 2rem; font-weight: 600; text-decoration: none; transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease; margin-top: auto; cursor: pointer; }
.service-card-redesigned.ht-card .icon-wrapper { background-color: var(--color-accent-amber); }
.service-card-redesigned.ht-card .learn-more-btn-redesigned { background-color: var(--color-accent-amber); color: white; }
.service-card-redesigned.ht-card .learn-more-btn-redesigned:hover { background-color: #d97706; transform: scale(1.05); }
.service-card-redesigned.da-card .icon-wrapper { background-color: var(--color-accent-sky); }
.service-card-redesigned.da-card .learn-more-btn-redesigned { background-color: var(--color-accent-sky); color: white; }
.service-card-redesigned.da-card .learn-more-btn-redesigned:hover { background-color: #0ea5e9; transform: scale(1.05); }
.service-card-redesigned.mr-card .icon-wrapper { background-color: var(--color-accent-indigo); }
.service-card-redesigned.mr-card .learn-more-btn-redesigned { background-color: var(--color-accent-indigo); color: white; }
.service-card-redesigned.mr-card .learn-more-btn-redesigned:hover { background-color: #4f46e5; transform: scale(1.05); }
.service-card-redesigned.st-card .icon-wrapper { background-color: var(--color-accent-teal); }
.service-card-redesigned.st-card .learn-more-btn-redesigned { background-color: var(--color-accent-teal); color: white; }
.service-card-redesigned.st-card .learn-more-btn-redesigned:hover { background-color: #0d9488; transform: scale(1.05); }
.service-card-redesigned.oc-card .icon-wrapper { background-color: var(--color-accent-rose); }
.service-card-redesigned.oc-card .learn-more-btn-redesigned { background-color: var(--color-accent-rose); color: white; }
.service-card-redesigned.oc-card .learn-more-btn-redesigned:hover { background-color: #e11d48; transform: scale(1.05); }
.service-card-redesigned.consult-cta-card .icon-wrapper { background-color: var(--color-primary-red); }
.service-card-redesigned.consult-cta-card .open-modal-btn-redesigned { background-color: var(--color-primary-red); color: white; }
.service-card-redesigned.consult-cta-card .open-modal-btn-redesigned:hover { background-color: #8a0003; transform: scale(1.05); }

.related-post-card { background-color: #fff; border-radius: 0.75rem; box-shadow: 0 3px 10px rgba(0,0,0,0.07); overflow: hidden; transition: box-shadow 0.3s ease, transform 0.3s ease; }
.related-post-card:hover { box-shadow: 0 8px 16px rgba(0,0,0,0.1); transform: translateY(-4px); }
.related-post-card img { height: 150px; object-fit: cover; width: 100%; }
.related-post-card .post-title { font-size: 1.1rem; line-height: 1.4; }
.related-post-card .post-title a { text-decoration: none; }

.search-result-item { background-color: #fff; border-radius: 0.5rem; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.07); border: 1px solid #e5e7eb; transition: box-shadow 0.3s ease, border-color 0.3s ease; }
.search-result-item:hover { box-shadow: 0 6px 15px rgba(0,0,0,0.1); border-color: var(--color-primary-blue); }
.search-result-title a { color: var(--color-primary-blue); text-decoration: none; }
.search-result-title a:hover { color: var(--color-primary-red); text-decoration: underline; }
.search-result-url { color: #059669; font-size: 0.875rem; margin-bottom: 0.25rem; word-break: break-all; }
.search-result-snippet { color: #4b5563; font-size: 0.9375rem; line-height: 1.6; }

/* Forms */
.form-input, .form-textarea, .form-select { border: 1px solid #cbd5e1; border-radius: 0.5rem; padding: 0.8rem 1rem; width: 100%; transition: all 0.3s ease; background-color: #f3f4f6; color: #374151; }
.form-input::placeholder, .form-textarea::placeholder { color: #9ca3af; }
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--color-primary-blue); box-shadow: 0 0 0 3px rgba(0, 47, 85, 0.15); outline: none; background-color: white; }
.form-checkbox { color: var(--color-primary-blue); border-color: #cbd5e1; }
.form-checkbox:checked { background-color: var(--color-primary-blue); border-color: var(--color-primary-blue); }
.form-checkbox:focus { ring-color: var(--color-primary-blue); }

#blog-search-filter .form-input { padding-right: 3rem; }
html[dir="rtl"] #blog-search-filter .form-input { padding-left: 3rem; padding-right: 1.25rem; }

/* FAQ */
.faq-item { transition: all 0.3s ease; background-color: white; border-radius: 0.75rem; box-shadow: 0 3px 10px rgba(0,0,0,0.07); }
.faq-item.active .faq-answer { max-height: 500px; padding-top: 1rem; padding-bottom: 1.5rem; opacity: 1; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out, opacity 0.4s ease-in-out; opacity: 0; padding-left: 1.5rem; padding-right: 1.5rem; color: #4b5563; }
.faq-item button i { transition: transform 0.3s ease; color: var(--color-primary-blue); }
.faq-item.active button i { transform: rotate(180deg); }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 20, 40, 0.75); display: none; align-items: center; justify-content: center; z-index: 1050; opacity: 0; transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content { background-color: white; padding: 0; border-radius: 0.75rem; box-shadow: 0 15px 30px rgba(0,0,0,0.2); width: 90%; max-width: 600px; max-height: 90vh; display: flex; flex-direction: column; transform: translateY(-50px) scale(0.9); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }
.modal-header { padding: 1.5rem 2rem; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; }
.modal-header .modal-title { font-size: 1.75rem; font-weight: 700; color: var(--color-primary-blue); display: flex; align-items: center; }
.modal-header .modal-title i { margin-right: 0.75rem; color: var(--color-primary-red); }
html[dir="rtl"] .modal-header .modal-title i { margin-right: 0; margin-left: 0.75rem; }
.modal-close-button { background: none; border: none; font-size: 1.75rem; color: #9ca3af; cursor: pointer; padding: 0.25rem; line-height: 1; transition: color 0.2s ease; }
.modal-close-button:hover { color: var(--color-primary-red); }
.modal-body { padding: 2rem; overflow-y: auto; flex-grow: 1; }
.modal-description { color: #4b5563; margin-bottom: 1.5rem; line-height: 1.7; }
.modal-content .form-group { margin-bottom: 1.25rem; }
.modal-content .form-group label { display: flex; align-items: center; margin-bottom: 0.5rem; font-weight: 500; color: #374151; }
.modal-content .form-group label i { margin-right: 0.5rem; color: #6b7280; }
html[dir="rtl"] .modal-content .form-group label i { margin-right: 0; margin-left: 0.5rem; }
.modal-content input, .modal-content textarea { background-color: #f3f4f6; border: 1px solid #d1d5db; border-radius: 0.5rem; padding: 0.875rem 1rem; }
.modal-content input:focus, .modal-content textarea:focus { border-color: var(--color-primary-red); box-shadow: 0 0 0 3px rgba(173, 0, 4, 0.15); outline: none; background-color: white; }
.modal-content .glowing-button { padding-top: 0.875rem; padding-bottom: 0.875rem; font-size: 1rem; }

/* Language Dropdown */
.language-dropdown { position: relative; display: inline-block; }
.language-dropdown-button { background-color: transparent; color: #374151; border: 1px solid #d1d5db; padding: 0.45rem 0.65rem; border-radius: 0.375rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color 0.2s ease, box-shadow 0.2s ease; min-width: 44px; height: 38px; }
.language-dropdown-button:hover, .language-dropdown-button:focus { border-color: var(--color-primary-red); box-shadow: 0 0 0 2px rgba(173, 0, 4, 0.2); outline: none; }
.language-dropdown-button .flag-img { width: 20px; height: 15px; object-fit: cover; border-radius: 2px; }
.language-dropdown-content { display: none; position: absolute; background-color: white; min-width: 180px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 100; border-radius: 0.375rem; border: 1px solid #d1d5db; margin-top: 0.25rem; }
html[dir="ltr"] .language-dropdown-content { right: 0; }
html[dir="rtl"] .language-dropdown-content { left: 0; }
#language-dropdown-mobile-header .language-dropdown-content { left: auto; right: -20px; }
html[dir="rtl"] #language-dropdown-mobile-header .language-dropdown-content { right: auto; left: -20px; }
.language-dropdown-content button { color: var(--color-primary-blue); padding: 10px 14px; text-decoration: none; display: flex; align-items: center; width: 100%; background: none; border: none; cursor: pointer; font-size: 0.875rem; }
html[dir="ltr"] .language-dropdown-content button { text-align: left; }
html[dir="rtl"] .language-dropdown-content button { text-align: right; }
.language-dropdown-content button:hover { background-color: #f1f1f1; }
.language-dropdown-content button .flag-img { width: 20px; height: 15px; object-fit: cover; border-radius: 2px; }
html[dir="ltr"] .language-dropdown-content button .flag-img { margin-right: 0.75rem; }
html[dir="rtl"] .language-dropdown-content button .flag-img { margin-left: 0.75rem; }
.language-dropdown.active .language-dropdown-content { display: block; }

/* Footer */
.section-title { color: var(--color-primary-blue); }
.section-subtitle { color: #4b5563; line-height: 1.7; }

#language-selector-footer { background-color: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3); color: white; padding: 0.6rem; border-radius: 0.5rem; }
#language-selector-footer:focus { outline: none; box-shadow: 0 0 0 2px rgba(173, 0, 4, 0.4); border-color: var(--color-primary-red); }
#language-selector-footer option { background-color: white; color: var(--color-primary-blue); }

.footer-logos-container { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 1.5rem; }
.footer-logos-container img { max-height: 130px; width: auto; opacity: 0.8; transition: filter 0.3s ease, opacity 0.3s ease; }
.footer-logos-container img:hover { filter: grayscale(0%) brightness(100%); opacity: 1; }

.partner-logo img { max-height: 70px; filter: grayscale(100%); transition: filter 0.3s ease, opacity 0.3s ease; opacity: 0.7; }
.partner-logo:hover img { filter: grayscale(0%); opacity: 1; }

/* Sticky Buttons and Chat */
#sticky-chat-button-container, #back-to-top-container, #mobile-quick-actions-container { position: fixed; z-index: 1000; display: flex; flex-direction: column; gap: 0.65rem; }
html[dir="ltr"] #sticky-chat-button-container { left: 1.5rem; bottom: 1.5rem; }
html[dir="ltr"] #back-to-top-container { right: 1.5rem; bottom: 1.5rem; }
html[dir="ltr"] #mobile-quick-actions-container { right: 1.5rem; bottom: calc(1.5rem + 3rem + 0.65rem); }
html[dir="rtl"] #sticky-chat-button-container { right: 1.5rem; bottom: 1.5rem; }
html[dir="rtl"] #back-to-top-container { left: 1.5rem; bottom: 1.5rem; }
html[dir="rtl"] #mobile-quick-actions-container { left: 1.5rem; bottom: calc(1.5rem + 3rem + 0.65rem); }

#sticky-chat-button, #back-to-top, .mobile-quick-action-btn { color: white; box-shadow: 0 4px 12px rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out; cursor: pointer; }
#sticky-chat-button { background-color: var(--color-primary-red); padding: 0.75rem 1rem; border-radius: 9999px; font-size: 0.875rem; width: auto; }
#back-to-top { background-color: var(--color-primary-red); width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.125rem; }
.mobile-quick-action-btn { width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.25rem; }
.mobile-quick-action-btn.phone-btn { background-color: var(--color-phone-green); }
.mobile-quick-action-btn.whatsapp-btn { background-color: var(--color-whatsapp-green); }
#sticky-chat-button:hover { background-color: #8a0003; transform: scale(1.05); }
#back-to-top:hover { background-color: #8a0003; transform: scale(1.05); }
.mobile-quick-action-btn.phone-btn:hover { background-color: #3e8e41; transform: scale(1.05); }
.mobile-quick-action-btn.whatsapp-btn:hover { background-color: #1ebe57; transform: scale(1.05); }
#sticky-chat-button i { font-size: 1.25rem; }
html[dir="ltr"] #sticky-chat-button i { margin-right: 0.5rem; }
html[dir="rtl"] #sticky-chat-button i { margin-left: 0.5rem; }

#chat-modal { position: fixed; bottom: 0; width: 100%; max-width: 380px; height: 70%; max-height: 500px; background-color: white; box-shadow: 0 -5px 20px rgba(0,0,0,0.15); border-top-left-radius: 1rem; border-top-right-radius: 1rem; z-index: 1100; display: flex; flex-direction: column; transform: translateY(100%); transition: transform 0.3s ease-in-out, width 0.3s ease, height 0.3s ease, border-radius 0.3s ease, top 0.3s ease, left 0.3s ease, right 0.3s ease; }
html[dir="ltr"] #chat-modal:not(.active-mobile-fullscreen) { left: 1.5rem; }
html[dir="rtl"] #chat-modal:not(.active-mobile-fullscreen) { right: 1.5rem; }
#chat-modal.active { transform: translateY(0); }
.chat-modal-header { background-color: var(--color-primary-blue); color: white; padding: 0.75rem 1rem; display: flex; justify-content: space-between; align-items: center; border-top-left-radius: 1rem; border-top-right-radius: 1rem; }
.chat-modal-header h3 { font-size: 1rem; font-weight: 600; }
#close-chat-modal { background: none; border: none; color: white; font-size: 1.25rem; cursor: pointer; }
.chat-modal-body { flex-grow: 1; padding: 1rem; overflow-y: auto; background-color: #f9fafb; }
.chat-message { margin-bottom: 0.75rem; padding: 0.5rem 0.75rem; border-radius: 0.5rem; max-width: 80%; word-wrap: break-word; }
.chat-message.user { background-color: var(--color-primary-red); color: white; }
html[dir="ltr"] .chat-message.user { margin-left: auto; }
html[dir="rtl"] .chat-message.user { margin-right: auto; }
.chat-message.support { background-color: #e5e7eb; color: #374151; }
html[dir="ltr"] .chat-message.support { margin-right: auto; }
html[dir="rtl"] .chat-message.support { margin-left: auto; }
.chat-modal-footer { padding: 0.75rem; border-top: 1px solid #e5e7eb; display: flex; gap: 0.5rem; }
#chat-message-input { flex-grow: 1; border: 1px solid #d1d5db; border-radius: 0.5rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; }
#chat-message-input:focus { outline: none; border-color: var(--color-primary-blue); box-shadow: 0 0 0 2px rgba(0, 47, 85, 0.2); }
#send-chat-message { background-color: var(--color-primary-blue); color: white; border: none; padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; cursor: pointer; transition: background-color 0.2s ease; }
#send-chat-message:hover { background-color: #001f3a; }

/* Page-Specific Styles */
.error-page-container { text-align: center; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.error-title { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; color: var(--color-primary-blue); margin-bottom: 1rem; }
html[lang="en"] .error-title, html[dir="ltr"] .error-title { font-size: 3rem; }
.error-subtitle { font-size: 1.125rem; color: #4b5563; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.suggested-links a { color: var(--color-primary-red); text-decoration: none; padding: 0.5rem 1rem; border: 1px solid transparent; border-radius: 0.375rem; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.suggested-links a:hover { background-color: rgba(173, 0, 4, 0.05); color: #8a0003; border-color: rgba(173, 0, 4, 0.2); }
dotlottie-player { margin-left: auto; margin-right: auto; }

#main-services { padding-top: 4rem; padding-bottom: 4rem; background-color: #f0f4f8; }
@media (min-width: 768px) { #main-services { padding-top: 6rem; padding-bottom: 6rem; } }

.article-header { padding-top: 6rem; padding-bottom: 3rem; background-color: var(--color-primary-blue); color: white; }
.article-header .post-title { color: white; line-height: 1.3; }
.article-header .post-meta-single { color: #e0e0e0; font-size: 0.9rem; }
.article-header .post-meta-single a { color: #f0f0f0; transition: color 0.2s ease; }
.article-header .post-meta-single a:hover { color: var(--color-primary-red); text-decoration: underline; }
.featured-image-single { max-height: 500px; width: 100%; object-fit: cover; border-radius: 0.75rem; margin-top: 1.5rem; box-shadow: 0 10px 25px rgba(0,0,0,0.15); }

.article-content { text-align: justify; }
.article-content h2 { font-size: 1.75rem; font-weight: 700; color: var(--color-primary-blue); margin-top: 2.5rem; margin-bottom: 1.25rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--color-primary-red); }
.article-content h3 { font-size: 1.375rem; font-weight: 600; color: var(--color-primary-blue); margin-top: 2rem; margin-bottom: 1rem; }
.article-content p { margin-bottom: 1.25rem; line-height: 1.8; color: #374151; }
.article-content ul, .article-content ol { margin-left: 1.75rem; margin-bottom: 1.25rem; list-style-position: outside; padding-left: 0.5rem; }
html[dir="rtl"] .article-content ul, html[dir="rtl"] .article-content ol { margin-left: 0; margin-right: 1.75rem; padding-left: 0; padding-right: 0.5rem; }
.article-content ul li { list-style-type: disc; margin-bottom: 0.6rem; }
.article-content ol li { list-style-type: decimal; margin-bottom: 0.6rem; }
.article-content blockquote { border-left: 5px solid var(--color-primary-red); margin: 2rem 0; padding: 1rem 1.5rem; font-style: italic; color: #4b5563; background-color: #f3f4f6; border-radius: 0.25rem; }
html[dir="rtl"] .article-content blockquote { border-left: none; border-right: 5px solid var(--color-primary-red); padding-left: 1.5rem; padding-right: 1.5rem; }
.article-content blockquote p { margin-bottom: 0 !important; }
.article-content a { color: var(--color-primary-red); text-decoration: underline; font-weight: 500; }
.article-content a:hover { color: #8a0003; }
.article-content img.inline-image { border-radius: 0.5rem; margin: 2rem auto; display: block; max-width: 100%; height: auto; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.social-share-buttons a { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background-color: #e5e7eb; color: #4b5563; transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease; margin: 0 0.3rem; }
.social-share-buttons a:hover { background-color: var(--color-primary-blue); color: white; transform: scale(1.1); }

.author-bio-box { background-color: #f3f4f6; border-left: 5px solid var(--color-primary-blue); border-radius: 0.5rem; }
html[dir="rtl"] .author-bio-box { border-left: none; border-right: 5px solid var(--color-primary-blue); }
.author-bio-box img { width: 80px; height: 80px; object-fit: cover; }

.comments-section h2, .comments-section h3 { color: var(--color-primary-blue); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { background-color: #f9fafb; border: 1px solid #d1d5db; border-radius: 0.5rem; padding: 0.75rem 1rem; width: 100%; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--color-primary-blue); box-shadow: 0 0 0 3px rgba(0, 47, 85, 0.15); outline: none; }
.comment-list .comment { border-bottom: 1px solid #e5e7eb; }
.comment-list .comment:last-child { border-bottom: none; }
.comment-list .comment-author img { width: 48px; height: 48px; object-fit: cover; }
.comment-list .comment-author .author-name { color: var(--color-primary-blue); }
.comment-list .comment-date { color: #6b7280; font-size: 0.8rem; }
.comment-list .comment-text { color: #374151; line-height: 1.7; }
.comment-list .comment-reply-link { color: var(--color-primary-red); font-weight: 500; transition: color 0.2s ease; }
.comment-list .comment-reply-link:hover { color: #8a0003; }
.comment-list .children { margin-right: 2.5rem; padding-right: 1.5rem; border-right: 2px solid #e5e7eb; margin-top: 1rem; padding-top: 1rem; }
html[dir="ltr"] .comment-list .children { margin-left: 2.5rem; margin-right: 0; padding-left: 1.5rem; padding-right: 0; border-left: 2px solid #e5e7eb; border-right: none; }

/* Pagination */
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 1rem; margin: 0 0.25rem; border: 1px solid #d1d5db; border-radius: 0.375rem; color: var(--color-primary-blue); transition: background-color 0.2s ease, color 0.2s ease; }
.pagination a:hover { background-color: #e5e7eb; }
.pagination span.current { background-color: var(--color-primary-blue); color: white; border-color: var(--color-primary-blue); }
.pagination span.disabled { color: #9ca3af; cursor: not-allowed; }

/* Media Queries */
@media (max-width: 639px) {
    #sticky-chat-button { width: 3rem; height: 3rem; padding: 0; border-radius: 50%; }
    #sticky-chat-button i { margin: 0 !important; }
}

@media (max-width: 767px) {
    #chat-modal.active { width: 100vw !important; height: 100vh !important; max-width: 100% !important; max-height: 100% !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; border-radius: 0 !important; transform: translateY(0) !important; }
    #chat-modal .chat-modal-header { border-top-left-radius: 0; border-top-right-radius: 0; }
}

/* Form Message Styles */
#form-message-contact,
#form-message-consultation,
#form-message-online-consultation,
#form-message-doctor-telemedicine,
#form-message-job-application,
#form-message-doctor-membership,
#form-message-quick-ht-consult,
#form-message-health-tourism {
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: all 0.3s ease;
}

#form-message-contact.text-green-500,
#form-message-consultation.text-green-500,
#form-message-online-consultation.text-green-500,
#form-message-doctor-telemedicine.text-green-500,
#form-message-job-application.text-green-500,
#form-message-doctor-membership.text-green-500,
#form-message-quick-ht-consult.text-green-500,
#form-message-health-tourism.text-green-500 {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

#form-message-contact.text-red-500,
#form-message-consultation.text-red-500,
#form-message-online-consultation.text-red-500,
#form-message-doctor-telemedicine.text-red-500,
#form-message-job-application.text-red-500,
#form-message-doctor-membership.text-red-500,
#form-message-quick-ht-consult.text-red-500,
#form-message-health-tourism.text-red-500 {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}