/**
 * تصميم مخصص لمستشفى الحياة
 * Custom Styles for Hayat Hospital
 *
 * نظام الألوان - Turquoise Color Scheme:
 * Primary:  #1cb4be
 * Dark:     #0891a0
 * Darker:   #065a63
 * Light:    #6ddbe3
 */

/* ===== CSS Variables ===== */
:root {
    --primary:          #1cb4be;
    --primary-dark:     #0891a0;
    --primary-darker:   #065a63;
    --primary-light:    #6ddbe3;
    --primary-lighter:  #d1f5f7;
    --text-dark:        #2c3e50;
    --text-light:       #6c757d;
    --bg-light:         #f8f9fa;
    --white:            #ffffff;
    --shadow-sm:        0 2px 10px rgba(0,0,0,0.05);
    --shadow-md:        0 5px 20px rgba(0,0,0,0.08);
    --shadow-lg:        0 10px 40px rgba(0,0,0,0.12);
    --shadow-primary:   0 8px 25px rgba(28,180,190,0.25);
    --transition:       all 0.3s cubic-bezier(0.4,0,0.2,1);
    /* legacy aliases kept for backward compat */
    --primary-color:    #1cb4be;
    --primary-gradient: linear-gradient(135deg,#1cb4be 0%,#0891a0 100%);
    --primary-gradient-reverse: linear-gradient(135deg,#0891a0 0%,#1cb4be 100%);
    --primary-gradient-light:   linear-gradient(135deg,#6ddbe3 0%,#1cb4be 100%);
    --shadow-color:     rgba(28,180,190,0.2);
    --shadow-hover:     rgba(28,180,190,0.3);
}

/* ===== Base ===== */
html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content { flex: 1; }

/* ===== Typography ===== */
h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { line-height: 1.7; margin-bottom: 1rem; }

a {
    color: var(--primary);
    transition: var(--transition);
}
a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

::selection        { background: var(--primary); color: #fff; }
::-moz-selection   { background: var(--primary); color: #fff; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar       { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary-gradient); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-gradient-reverse); }

/* ===== Navbar ===== */
.navbar {
    transition: var(--transition);
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 100%) !important;
    box-shadow: 0 3px 15px rgba(6,90,99,0.4);
    padding: 0.75rem 0;
    animation: navbarSlideDown 0.5s ease;
}

@keyframes navbarSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: linear-gradient(135deg, #054952 0%, #076e7a 100%) !important;
    box-shadow: 0 4px 25px rgba(6,90,99,0.6);
}

.navbar-brand {
    color: #e0f7f9 !important;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
}
.navbar-brand:hover { color: #fff !important; transform: scale(1.02); }
.navbar-brand img {
    height: 44px;
    filter: brightness(1.15) drop-shadow(0 0 6px rgba(109,219,227,0.3));
    transition: var(--transition);
}
.navbar-brand:hover img { transform: scale(1.05); filter: brightness(1.4); }

.navbar-toggler { border-color: rgba(109,219,227,0.3); padding: 7px 11px; }
.navbar-toggler:focus { box-shadow: 0 0 0 0.2rem rgba(109,219,227,0.3); }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(224,247,249,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
    position: relative;
    font-size: 0.92rem;
    font-weight: 500;
    color: #d1f5f7 !important;
    padding: 0.6rem 0.9rem;
    transition: var(--transition);
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 3px;
    background: linear-gradient(90deg, #6ddbe3 0%, #e0f7f9 100%);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { width: 80%; }
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #e0f7f9 !important;
    background: rgba(109,219,227,0.12);
    border-radius: 6px;
}
.navbar-nav .nav-link i { margin-right: 5px; font-size: 1rem; vertical-align: middle; }

/* Dropdown */
.dropdown-menu {
    border: 2px solid rgba(109,219,227,0.2);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 10px;
    margin-top: 10px;
    padding: 6px 0;
    animation: fadeInDown 0.25s ease;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.dropdown-item {
    font-size: 0.9rem;
    padding: 10px 18px;
    font-weight: 500;
    color: #333;
    transition: var(--transition);
}
.dropdown-item i { margin-right: 8px; width: 20px; text-align: center; }
.dropdown-item:hover,
.dropdown-item:focus {
    background: linear-gradient(135deg, #6ddbe3 0%, #1cb4be 100%);
    color: #fff;
    transform: translateX(4px);
}
.dropdown-item.active {
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 100%);
    color: #e0f7f9;
}
.dropdown-header { color: var(--primary-darker); font-weight: 600; font-size: 0.8rem; }
.dropdown-divider { border-top-color: rgba(28,180,190,0.15); }

/* Mobile Navbar */
@media (max-width: 991px) {
    .navbar-collapse {
        background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 100%);
        padding: 16px;
        border-radius: 10px;
        margin-top: 12px;
        box-shadow: 0 8px 25px rgba(6,90,99,0.5);
        border: 2px solid rgba(109,219,227,0.2);
        animation: slideDown 0.3s ease;
    }
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-15px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .navbar-nav .nav-link::after { display: none; }
    .navbar-nav .nav-link { padding: 12px 16px; margin: 3px 0; border-radius: 7px; }
    .dropdown-menu { background: rgba(255,255,255,0.98); }
}

@media (max-width: 576px) {
    .navbar { padding: 0.55rem 0; }
    .navbar-brand img { height: 36px !important; }
    .navbar-brand { font-size: 1rem; }
}

/* ===== Buttons ===== */
.btn {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.55rem 1.4rem;
    border-radius: 25px;
    transition: var(--transition);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px var(--shadow-hover); }
.btn:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 4px 14px var(--shadow-color);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-gradient-reverse);
    color: #fff;
    box-shadow: 0 6px 20px var(--shadow-hover);
}
.btn-info {
    background: var(--primary-gradient-light);
    border: none;
    color: #fff;
}
.btn-info:hover { background: var(--primary-gradient); color: #fff; }

.btn-lg { font-size: 1rem;   padding: 0.75rem 2rem; }
.btn-sm { font-size: 0.82rem; padding: 0.4rem 1rem; }

/* ===== Forms ===== */
.form-control,
select.form-control,
textarea.form-control,
input.form-control {
    font-size: 0.92rem;
    padding: 0.6rem 0.9rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: var(--transition);
}
.form-control:focus,
select.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem var(--shadow-color);
    outline: none;
    transform: translateY(-1px);
}
.form-group { margin-bottom: 1.1rem; }
.form-group label { font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; display: block; color: var(--text-dark); }
.form-text, .invalid-feedback, .valid-feedback { font-size: 0.8rem; }

/* ===== Alerts ===== */
.alert {
    border-radius: 10px;
    border: none;
    padding: 14px 18px;
    font-size: 0.9rem;
    animation: slideInRight 0.4s ease;
}
.alert i { font-size: 1.1rem; vertical-align: middle; margin-right: 7px; }

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.alert-success {
    background: linear-gradient(135deg, #d1f5f7 0%, #b8eef1 100%);
    border: 2px solid var(--primary);
    color: #0a5f66;
    box-shadow: 0 4px 14px var(--shadow-color);
}
.alert-danger {
    background: linear-gradient(135deg, #ffe5e8 0%, #ffd4d9 100%);
    border: 2px solid #ff6b7a;
    color: #8b1e2b;
    box-shadow: 0 4px 14px rgba(255,107,122,0.2);
}
.alert-info {
    background: linear-gradient(135deg, #e0f7f9 0%, #c7f0f3 100%);
    border: 2px solid var(--primary-light);
    color: #0a5f66;
    box-shadow: 0 4px 14px var(--shadow-color);
}
.alert-warning {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 2px solid #ffa726;
    color: #8b5e00;
    box-shadow: 0 4px 14px rgba(255,167,38,0.2);
}

.alert-fixed {
    position: fixed;
    top: 20px; right: 20px;
    z-index: 9999;
    min-width: 320px; max-width: 480px;
}
[dir="rtl"] .alert-fixed { right: auto; left: 20px; animation: slideInLeft 0.4s ease; }

@media (max-width: 576px) {
    .alert-fixed { min-width: auto; max-width: calc(100% - 32px); left: 16px; right: 16px; }
}

/* ===== Modals ===== */
.modal-content { border-radius: 14px; border: none; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.modal-header  { border-radius: 14px 14px 0 0; border-bottom: none; padding: 18px 22px; }
.modal-body    { padding: 22px; }
.modal-footer  { border-top: none; padding: 18px 22px; }
.modal-title   { font-size: 1.15rem; font-weight: 700; }
.modal .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 0.2rem var(--shadow-color); }

/* ===== Badges ===== */
.badge { font-size: 0.75rem; padding: 4px 9px; }
.badge-primary { background: var(--primary-gradient); }
.badge-info    { background: var(--primary-gradient-light); }

/* ===== Tables ===== */
table { font-size: 0.9rem; }
th    { font-size: 0.88rem; font-weight: 600; }
td    { font-size: 0.88rem; }

/* ===== Breadcrumb ===== */
.breadcrumb      { font-size: 0.85rem; }
.breadcrumb-item { font-size: 0.85rem; }

/* ===== Pagination ===== */
.pagination { font-size: 0.9rem; }

/* ===== Accessibility ===== */
.btn:focus,
.form-control:focus,
.nav-link:focus { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ===== Spinner ===== */
.zmdi-hc-spin { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 70px 0 55px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.page-header::before {
    content: '';
    position: absolute; inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}
.page-header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    text-shadow: 1px 2px 8px rgba(0,0,0,0.2);
}
.page-header p { position: relative; z-index: 1; font-size: 1.05rem; opacity: 0.95; }

@media (max-width: 768px) {
    .page-header { padding: 50px 0 38px; }
    .page-header h1 { font-size: 1.8rem; }
}
@media (max-width: 576px) {
    .page-header h1 { font-size: 1.5rem; }
}

/* ===== Section Titles ===== */
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    font-size: 1.9rem;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px; left: 50%;
    transform: translateX(-50%);
    width: 55px; height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
}
.section-title p { color: var(--text-light); font-size: 1rem; }

/* ===== Cards ===== */
.service-box, .team-box, .blog-box {
    transition: var(--transition);
    border-radius: 12px;
}
.service-box:hover, .team-box:hover, .blog-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px var(--shadow-hover);
    border-color: var(--primary-light);
}

/* Department Card */
.department-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}
.department-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition);
}
.department-card:hover { transform: translateY(-7px); box-shadow: 0 10px 30px rgba(8,145,160,0.2); }
.department-card:hover::before { transform: scaleX(1); }
.department-card:hover h4 { color: var(--primary-darker) !important; }
.department-card .department-icon { text-align: center; transition: var(--transition); }
.department-card:hover .department-icon { transform: scale(1.08); }
.department-services ul li { transition: var(--transition); padding: 7px 0; }
.department-services ul li:hover { padding-left: 10px; color: var(--primary-dark) !important; }

/* Service Card */
.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 12px 38px rgba(8,145,160,0.22); }
.service-card:hover .service-icon img { transform: scale(1.08) rotate(4deg); }
.service-card .service-icon img { transition: var(--transition); }

/* Content Card */
.content-card {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--primary-dark);
    margin-bottom: 20px;
}
.content-card:hover { box-shadow: 0 10px 35px rgba(8,145,160,0.2); border-left-width: 6px; }

/* Feature Box */
.feature-box {
    padding: 28px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}
.feature-box:hover { transform: translateY(-6px); box-shadow: 0 10px 30px rgba(8,145,160,0.2); }
.feature-box i { font-size: 2.8rem; color: var(--primary-dark); margin-bottom: 16px; display: block; transition: var(--transition); }
.feature-box:hover i { transform: scale(1.12); color: var(--primary-darker); }
.feature-box h4 { color: var(--primary-dark); font-weight: 700; margin-bottom: 10px; }
.feature-box p  { color: var(--text-light); font-size: 0.92rem; line-height: 1.65; }

/* Stat Card */
.stat-card { transition: var(--transition); position: relative; overflow: hidden; }
.stat-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 10px 35px rgba(8,145,160,0.25) !important; }

/* ===== Unified Stats Strip Component ===== */
.stats-strip, .stats-bar-services, .stats-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(6, 90, 99, 0.12), 0 2px 10px rgba(0, 0, 0, 0.02);
    margin-top: -50px;
    margin-bottom: 35px;
    padding: 30px 25px;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(28, 180, 190, 0.25);
    transition: var(--transition);
}

.stat-item-box {
    padding: 18px 22px;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid rgba(8, 145, 160, 0.08);
    height: 100%;
}

.stat-item-box:hover {
    transform: translateY(-5px);
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(8, 145, 160, 0.14);
    border-color: rgba(28, 180, 190, 0.35);
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(8, 145, 160, 0.12), rgba(28, 180, 190, 0.25));
    color: #0891a0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.8);
}

.stat-number {
    font-size: 2.1rem;
    font-weight: 900;
    background: linear-gradient(135deg, #065a63, #0891a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    color: #475569;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
}

/* ===== Status Badges ===== */
.status-confirmed {
    background: linear-gradient(135deg, #d1f5f7 0%, #b8eef1 100%);
    color: var(--primary-dark);
    border: 1px solid var(--primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}
.status-pending {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    color: #8b5e00;
    border: 1px solid #ffa726;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* ===== Appointment Item ===== */
.appointment-item:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(28,180,190,0.04) 0%, rgba(109,219,227,0.04) 100%);
}
.appointment-item h5 { color: var(--primary-dark); }

/* ===== Footer ===== */
.unified-footer {
    background: var(--primary-darker) !important;
    color: var(--primary-lighter) !important;
    font-size: 0.88rem;
    position: relative;
    z-index: 100;
}
.footer-text { font-size: 0.88rem; }
.footer-links a { position: relative; }
.footer-links a:hover { color: var(--primary-light); }
.footer-logo img {
    filter: brightness(1.3) drop-shadow(0 0 8px rgba(109,219,227,0.4));
    transition: var(--transition);
}
.footer-logo:hover img { transform: scale(1.06); filter: brightness(1.5); }

/* ===== Progress Bar ===== */
.progress-bar { background: var(--primary-gradient); }

/* ===== Text Utilities ===== */
.text-primary   { color: var(--primary) !important; }
.text-turquoise { color: var(--primary); }
.bg-turquoise   { background: var(--primary-gradient); }
.border-primary { border-color: var(--primary) !important; }

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeInUp 0.6s ease forwards; }

/* ===== Global Directional Text Alignment (RTL vs LTR) ===== */

/* --- Arabic Mode (RTL): Text Right / Center --- */
html[dir="rtl"],
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] body,
[dir="rtl"] p,
[dir="rtl"] .about-text-lead,
[dir="rtl"] .pillar-desc,
[dir="rtl"] .pillar-title,
[dir="rtl"] .value-desc,
[dir="rtl"] .value-title,
[dir="rtl"] .service-visual-desc,
[dir="rtl"] .dept-desc-expanded,
[dir="rtl"] .doctor-bio,
[dir="rtl"] .news-content-modern,
[dir="rtl"] .faq-answer-content,
[dir="rtl"] .content-card,
[dir="rtl"] .feature-box,
[dir="rtl"] .card,
[dir="rtl"] .form-label,
[dir="rtl"] .modal-body {
    text-align: right;
}

[dir="rtl"] .text-start,
[dir="rtl"] .text-md-start,
[dir="rtl"] .text-lg-start {
    text-align: right !important;
}

/* Centered elements in RTL */
[dir="rtl"] .text-center,
[dir="rtl"] .section-title,
[dir="rtl"] .section-header-modern,
[dir="rtl"] .about-hero,
[dir="rtl"] .page-header,
[dir="rtl"] .dept-hero-header,
[dir="rtl"] .faq-hero,
[dir="rtl"] .cta-banner-modern,
[dir="rtl"] .cta-modern,
[dir="rtl"] .value-card-modern,
[dir="rtl"] .stat-item-box {
    text-align: center !important;
}

[dir="rtl"] .navbar-nav .nav-link i { margin-right: 0; margin-left: 5px; }
[dir="rtl"] .dropdown-item i        { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .dropdown-item:hover    { transform: translateX(-4px); }
[dir="rtl"] .navbar-brand img       { margin-right: 0; margin-left: 10px; }
[dir="rtl"] .content-card           { border-left: none; border-right: 4px solid var(--primary-dark); }
[dir="rtl"] .content-card:hover     { border-right-width: 6px; }

/* --- English Mode (LTR): Text Left / Center --- */
html[dir="ltr"],
[dir="ltr"] {
    text-align: left;
}

[dir="ltr"] body,
[dir="ltr"] p,
[dir="ltr"] .about-text-lead,
[dir="ltr"] .pillar-desc,
[dir="ltr"] .pillar-title,
[dir="ltr"] .value-desc,
[dir="ltr"] .value-title,
[dir="ltr"] .service-visual-desc,
[dir="ltr"] .dept-desc-expanded,
[dir="ltr"] .doctor-bio,
[dir="ltr"] .news-content-modern,
[dir="ltr"] .faq-answer-content,
[dir="ltr"] .content-card,
[dir="ltr"] .feature-box,
[dir="ltr"] .card,
[dir="ltr"] .form-label,
[dir="ltr"] .modal-body {
    text-align: left;
}

[dir="ltr"] .text-start,
[dir="ltr"] .text-md-start,
[dir="ltr"] .text-lg-start {
    text-align: left !important;
}

/* Centered elements in LTR */
[dir="ltr"] .text-center,
[dir="ltr"] .section-title,
[dir="ltr"] .section-header-modern,
[dir="ltr"] .about-hero,
[dir="ltr"] .page-header,
[dir="ltr"] .dept-hero-header,
[dir="ltr"] .faq-hero,
[dir="ltr"] .cta-banner-modern,
[dir="ltr"] .cta-modern,
[dir="ltr"] .value-card-modern,
[dir="ltr"] .stat-item-box {
    text-align: center !important;
}

/* ===== Print ===== */
@media print {
    .navbar, footer, .btn { display: none; }
    .unified-footer { background: var(--primary-darker) !important; color: var(--primary-lighter) !important; }
}

/* ===== About Page ===== */
.content-section .content-card { animation: fadeInUp 0.7s ease forwards; opacity: 0; }
.content-section .content-card:nth-child(2) { animation-delay: 0.15s; }
.content-section .content-card:nth-child(3) { animation-delay: 0.3s; }
.content-section img { transition: var(--transition); }
.content-section img:hover { transform: scale(1.02); box-shadow: 0 10px 35px rgba(8,145,160,0.25) !important; }

/* ===== Quick Action Buttons ===== */
.quick-action-btn.btn-book    { background: var(--primary-gradient); }
.quick-action-btn.btn-book:hover { background: var(--primary-gradient-reverse); }
.quick-action-btn.btn-contact { background: var(--primary-gradient-light); }
.quick-action-btn.btn-history { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%); }

/* ===== Responsive ===== */
@media (max-width: 992px) {
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.6rem; }
    .section-title h2 { font-size: 1.65rem; }
}
@media (max-width: 768px) {
    body { font-size: 14px; }
    h1 { font-size: 1.65rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }
    .section-title h2 { font-size: 1.4rem; }
    .department-card, .service-card, .content-card, .feature-box { margin-bottom: 18px; }
}
@media (max-width: 576px) {
    .row {
        margin-right: 0;
        margin-left: 0;
    }

    body { font-size: 13.5px; }
    h1 { font-size: 1.45rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.1rem; }
    .section-title h2 { font-size: 1.25rem; }

/* ===== High Contrast & Visible Elements System ===== */
body {
    color: #334155 !important;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: #065a63;
}

.medical-card h4,
.service-visual-card h3,
.dept-title-expanded,
.doctor-name,
.pillar-title,
.value-title,
.stat-number {
    color: #065a63 !important;
}

.medical-card p,
.dept-desc-expanded,
.pillar-desc,
.value-desc,
.stat-label {
    color: #475569 !important;
}

/* Icons Visibility & Color Contrast Guarantee */
.zmdi {
    display: inline-block !important;
    vertical-align: middle;
}


/* ===== Testimonial Login Hint ===== */
.testimonial-login-hint {
    background: #e0f7f8 !important;
    border: 2px solid #1cb4be !important;
    border-radius: 50px !important;
    padding: 12px 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.testimonial-login-hint p,
.testimonial-login-hint span {
    color: #065a63 !important;
    font-weight: 800 !important;
    margin: 0 !important;
}

.testimonial-login-hint a {
    background: #065a63 !important;
    color: #e0f7f8 !important;
    border-radius: 30px !important;
    padding: 8px 20px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

/* ===== CTA Buttons ===== */
.cta-buttons {
    display: flex !important;
    gap: 16px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    margin-top: 24px !important;
}

.cta-buttons .btn-modern {
    border-radius: 50px !important;
    padding: 14px 34px !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
}

/* ===== Section Header Modern Badges & Distinct Titles ===== */
.section-header-modern .badge {
    background: #e0f7f8 !important;
    color: #065a63 !important;
    border: 1px solid #1cb4be !important;
    padding: 6px 18px !important;
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    text-transform: none !important;
    border-radius: 50px !important;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ===== Extensible semantic icon system ===== */
.ui-icon {
    --ui-icon-size: 42px;
    --ui-icon-font-size: 21px;
    --ui-icon-color: #087f8c;
    --ui-icon-bg: rgba(28, 180, 190, 0.13);
    width: var(--ui-icon-size);
    height: var(--ui-icon-size);
    flex: 0 0 var(--ui-icon-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ui-icon-color);
    background: var(--ui-icon-bg);
    border: 1px solid rgba(28, 180, 190, 0.18);
    border-radius: 14px;
    line-height: 1;
    vertical-align: middle;
}

.ui-icon > i {
    color: inherit;
    font-size: var(--ui-icon-font-size);
    line-height: 1;
}

.ui-icon--xs { --ui-icon-size: 26px; --ui-icon-font-size: 14px; border-radius: 8px; }
.ui-icon--sm { --ui-icon-size: 34px; --ui-icon-font-size: 18px; border-radius: 10px; }
.ui-icon--lg { --ui-icon-size: 54px; --ui-icon-font-size: 27px; border-radius: 17px; }
.ui-icon--xl { --ui-icon-size: 68px; --ui-icon-font-size: 34px; border-radius: 21px; }
.ui-icon--circle { border-radius: 50%; }
.ui-icon--solid { --ui-icon-color: #fff; --ui-icon-bg: linear-gradient(135deg, #087f8c, #1cb4be); }
.ui-icon--danger { --ui-icon-color: #b91c1c; --ui-icon-bg: #fee2e2; border-color: #fecaca; }
.ui-icon--warning { --ui-icon-color: #a16207; --ui-icon-bg: #fef3c7; border-color: #fde68a; }
.ui-icon--success { --ui-icon-color: #047857; --ui-icon-bg: #d1fae5; border-color: #a7f3d0; }
.ui-icon--neutral { --ui-icon-color: #475569; --ui-icon-bg: #f1f5f9; border-color: #e2e8f0; }

button:hover .ui-icon,
a:hover .ui-icon {
    transform: translateY(-1px);
    transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
    button:hover .ui-icon,
    a:hover .ui-icon {
        transform: none;
        transition: none;
    }
}


