/* ================================================= */
/* 1. Variables*/
/* ================================================= */
:root {
    --color-primary: #0A3D62;
    --color-primary-light: #1565A8;
    --color-primary-dark: #072C46;

    --color-secondary: #2B9DA3;
    --color-secondary-light: #4DB8BD;
    --color-secondary-dark: #1F7B7F;

    --color-accent: #C5A572;
    --color-accent-light: #D6BC8F;
    --color-accent-dark: #A88C5C;

    --color-bg-main: #FFFFFF;
    --color-bg-surface: #F7F9FB;
    --color-bg-soft: #EEF3F7;

    --color-text-main: #1A2332;
    --color-text-muted: #6B7280;
    --color-text-light: #9AA5B1;

    --color-border: #D9E2EC;
    --color-border-soft: #E6EDF3;

    --color-success: #2E7D6B;
    --color-warning: #F2A541;
    --color-danger: #D64545;
    --color-info: #3182CE;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.10);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;

    --font-latin: 'Inter', sans-serif;
    --font-arabic: 'Noto Kufi Arabic', sans-serif;
}


/* ================================================= */
/* 2. Reset & Base                */
/* ================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-latin);
    line-height: 1.7;
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    -webkit-font-smoothing: antialiased;
}

/* Arabic overrides */
html[lang="ar"] body,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6,
html[lang="ar"] p,
html[lang="ar"] a,
html[lang="ar"] button,
html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] select {
    font-family: var(--font-arabic);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text-main);
}

p {
    color: var(--color-text-muted);
    line-height: 1.8;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}


/* ================================================= */
/* 3. Scrollbar                                      */
/* ================================================= */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-soft);
}

::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

::selection {
    background: var(--color-secondary);
    color: #fff;
}


/* ================================================= */
/* 4. Bootstrap Overrides                            */
/* ================================================= */
.container {
    max-width: 1280px;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    border-radius: var(--radius-md);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: all var(--transition-base);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-light);
    box-shadow: 0 4px 12px rgba(10, 61, 98, 0.3);
}

.btn-secondary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    border-radius: var(--radius-md);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: all var(--transition-base);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--color-secondary-dark);
    border-color: var(--color-secondary-dark);
    box-shadow: 0 4px 12px rgba(43, 157, 163, 0.3);
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
    border-radius: var(--radius-md);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: all var(--transition-base);
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(10, 61, 98, 0.2);
}


/* ================================================= */
/* 5. Utilities                                      */
/* ================================================= */
.text-primary-custom {
    color: var(--color-primary) !important;
}

.text-secondary-custom {
    color: var(--color-secondary) !important;
}

.text-accent {
    color: var(--color-accent) !important;
}

.text-muted-custom {
    color: var(--color-text-muted) !important;
}

.bg-primary-custom {
    background-color: var(--color-primary) !important;
}

.bg-secondary-custom {
    background-color: var(--color-secondary) !important;
}

.bg-surface {
    background-color: var(--color-bg-surface) !important;
}

.bg-soft {
    background-color: var(--color-bg-soft) !important;
}

.shadow-custom-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-custom-md {
    box-shadow: var(--shadow-md);
}

.shadow-custom-lg {
    box-shadow: var(--shadow-lg);
}

.section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}


/* ================================================= */
/* 6. Scroll Reveal Animation                        */
/* ================================================= */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}


/* ================================================= */
/* 7. Responsive                */
/* ================================================= */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }

    .section-padding {
        padding-top: 50px;
        padding-bottom: 50px;
    }
}


/* ================================================= */
/* NAVBAR                                            */
/* ================================================= */
#main-navbar {
    padding: 0;
    background: transparent;
    transition: background var(--transition-slow), box-shadow var(--transition-slow), padding var(--transition-slow);
    z-index: 1000;
}

#main-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: height var(--transition-slow);
}

/* Scrolled State */
#main-navbar.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(10, 61, 98, 0.10);
}

#main-navbar.navbar-scrolled .container {
    height: 64px;
}

/* On hero (transparent bg) - white text */
#main-navbar:not(.navbar-scrolled) .nav-link-custom,
#main-navbar:not(.navbar-scrolled) .brand-name,
#main-navbar:not(.navbar-scrolled) .brand-tagline,
#main-navbar:not(.navbar-scrolled) .hamburger-line {
    color: #fff;
}

#main-navbar:not(.navbar-scrolled) .brand-icon {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

#main-navbar:not(.navbar-scrolled) .lang-switcher {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

#main-navbar:not(.navbar-scrolled) .btn-appointment {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    backdrop-filter: blur(8px);
}

#main-navbar:not(.navbar-scrolled) .btn-appointment:hover {
    background: #fff;
    color: var(--color-primary);
}

/* ---- Brand ---- */
.navbar-brand {
    padding: 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--color-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.navbar-brand:hover .brand-icon {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.01em;
    transition: color var(--transition-fast);
}

.brand-tagline {
    font-size: 0.68rem;
    color: var(--color-accent);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

/* ---- Nav Collapse ---- */
.navbar-collapse-custom {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---- Nav List ---- */
.navbar-nav-custom {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}

/* ---- Nav Link ---- */
.nav-link-custom {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-main);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
    position: relative;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--color-secondary);
    border-radius: var(--radius-full);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.nav-link-custom:hover,
.nav-link-custom.active {
    color: var(--color-primary);
    background: var(--color-bg-soft);
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
    transform: scaleX(1);
}

#main-navbar:not(.navbar-scrolled) .nav-link-custom:hover,
#main-navbar:not(.navbar-scrolled) .nav-link-custom.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.dropdown-arrow {
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

/* ---- Dropdown ---- */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 280px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border-soft);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--transition-base);
    z-index: 100;
}

html[dir="rtl"] .nav-dropdown-menu {
    left: auto;
    right: 50%;
    transform: translateX(50%) translateY(-8px);
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid var(--color-border-soft);
    border-top: 1px solid var(--color-border-soft);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

html[dir="rtl"] .nav-dropdown:hover .nav-dropdown-menu {
    transform: translateX(50%) translateY(0);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-inner {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-item-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
    color: var(--color-text-main);
}

.dropdown-item-custom:hover {
    background: var(--color-bg-soft);
    color: var(--color-primary);
}

.dropdown-item-icon {
    font-size: 1.4rem;
    width: 40px;
    height: 40px;
    background: var(--color-bg-soft);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition-fast);
}

.dropdown-item-custom:hover .dropdown-item-icon {
    background: rgba(43, 157, 163, 0.12);
}

.dropdown-item-title {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.dropdown-item-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 1px;
}

/* ---- Actions ---- */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-inline-start: 16px;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-main);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    letter-spacing: 0.03em;
}

.lang-switcher:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    background: rgba(43, 157, 163, 0.06);
}

.lang-globe {
    font-size: 0.9rem;
}

.lang-divider {
    width: 1px;
    height: 12px;
    background: currentColor;
    opacity: 0.3;
}

.lang-other {
    opacity: 0.5;
}

/* CTA Button */
.btn-appointment {
    padding: 9px 20px;
    background: var(--color-primary);
    color: #fff !important;
    border: 1.5px solid var(--color-primary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all var(--transition-base);
    letter-spacing: 0.01em;
}

.btn-appointment:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    box-shadow: 0 4px 16px rgba(10, 61, 98, 0.3);
    transform: translateY(-1px);
    color: #fff !important;
}

/* ---- Hamburger ---- */
.navbar-toggler-custom {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    position: relative;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    transform-origin: center;
}

.navbar-toggler-custom.open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggler-custom.open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.navbar-toggler-custom.open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- Mobile Overlay ---- */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 61, 98, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.nav-overlay.active {
    opacity: 1;
}

/* ---- Mobile ---- */
@media (max-width: 991px) {
    .navbar-toggler-custom {
        display: flex;
    }

    .navbar-collapse-custom {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        background: #ffffff !important;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 90px 20px 30px;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        overflow-y: auto;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.10);
    }

    html[dir="rtl"] .navbar-collapse-custom {
        right: auto;
        left: 0;
        transform: translateX(-100%);
    }

    /* ✅ اصلاح باگ: specificity بالاتر برای حالت open در هر دو جهت */
    .navbar-collapse-custom.open {
        transform: translateX(0) !important;
    }

    .nav-overlay {
        display: block;
        pointer-events: none;
    }

    .nav-overlay.active {
        pointer-events: auto;
    }

    .navbar-nav-custom {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        width: 100%;
    }

    .nav-item-custom {
        display: block;
    }

    .nav-link-custom {
        display: flex;
        padding: 12px 16px;
        font-size: 0.95rem;
        justify-content: space-between;
        white-space: normal;
    }

    .nav-link-custom::after {
        display: none;
    }

    /* Mobile Dropdown Fix */
    .nav-dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        border: none;
        background: var(--color-bg-soft);
        border-radius: var(--radius-md);
        margin-top: 4px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        min-width: 0 !important;
        width: 100% !important;
    }

    .nav-dropdown-menu::before {
        display: none !important;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        max-height: 500px;
    }

    .nav-dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }

    /* Dropdown items - fix overflow */
    .dropdown-inner {
        padding: 6px;
        width: 100%;
    }

    .dropdown-item-custom {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        width: 100%;
        overflow: hidden;
    }

    .dropdown-item-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        flex-shrink: 0;
        font-size: 1.2rem;
    }

    .dropdown-item-custom > div:last-child {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .dropdown-item-title {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dropdown-item-desc {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .navbar-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        margin-inline-start: 0;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--color-border-soft);
        gap: 10px;
    }

    .lang-switcher {
        justify-content: center;
    }

    .btn-appointment {
        text-align: center;
    }

    /* Fix colors when navbar is transparent (on hero) */
    #main-navbar:not(.navbar-scrolled) .navbar-collapse-custom .nav-link-custom,
    #main-navbar:not(.navbar-scrolled) .navbar-collapse-custom .lang-current,
    #main-navbar:not(.navbar-scrolled) .navbar-collapse-custom .lang-other,
    #main-navbar:not(.navbar-scrolled) .navbar-collapse-custom .lang-switcher {
        color: var(--color-text-main) !important;
    }

    #main-navbar:not(.navbar-scrolled) .navbar-collapse-custom .lang-switcher {
        border-color: var(--color-border) !important;
    }

    #main-navbar:not(.navbar-scrolled) .navbar-collapse-custom .dropdown-item-title {
        color: var(--color-text-main) !important;
    }

    #main-navbar:not(.navbar-scrolled) .navbar-collapse-custom .dropdown-item-desc {
        color: var(--color-text-muted) !important;
    }

    #main-navbar:not(.navbar-scrolled) .navbar-collapse-custom .dropdown-item-icon {
        color: var(--color-primary) !important;
    }

    /* RTL specific fixes for mobile */
    html[dir="rtl"] .nav-link-custom {
        flex-direction: row-reverse;
        text-align: right;
    }

    html[dir="rtl"] .dropdown-item-custom {
        flex-direction: row-reverse;
        text-align: right;
    }

    html[dir="rtl"] .dropdown-item-custom > div:last-child {
        text-align: right;
    }
}


/* ================================================= */
/* 🩺 DOCTORS LIST SECTION                           */
/* ================================================= */
.doctors-list-section {
    position: relative;
    min-height: 100vh;
}

/* ================================================= */
/* 🌑 DARK LUXURY HEADER                             */
/* ================================================= */
.dl-dark-header {
    position: relative;
    padding: 140px 0 60px;
    overflow: hidden;
}

.dl-dark-header-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a1628 0%, #0d2137 25%, #0f2b45 45%, #122a40 60%, #0e1f33 80%, #091420 100%);
    z-index: 0;
}

.dl-dark-header-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 600px 300px at 20% 50%, rgba(197, 165, 114, 0.08), transparent),
    radial-gradient(ellipse 500px 250px at 80% 30%, rgba(43, 157, 163, 0.06), transparent);
    z-index: 1;
}

.dl-dark-header-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(197, 165, 114, 0.3), rgba(43, 157, 163, 0.2), transparent);
}

.dl-dark-header .container {
    position: relative;
    z-index: 2;
}

/* ---- Breadcrumb ---- */
.dl-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.dl-breadcrumb a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.dl-breadcrumb a:hover {
    color: #c5a572;
}

.dl-breadcrumb-sep {
    color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
}

.dl-breadcrumb-current {
    color: #c5a572;
    font-weight: 500;
}

/* ---- Title Row ---- */
.dl-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.dl-title-block {
    flex: 1;
    min-width: 240px;
}

.dl-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #c5a572 50%, #e8d5b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dl-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    font-weight: 400;
}

/* ---- Search Box ---- */
.dl-search-box {
    position: relative;
    width: 340px;
    flex-shrink: 0;
}

.dl-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #c5a572;
    pointer-events: none;
    z-index: 2;
}

[dir="rtl"] .dl-search-icon {
    left: auto;
    right: 16px;
}

.dl-search-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1.5px solid rgba(197, 165, 114, 0.2);
    border-radius: 14px;
    font-size: 0.95rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

[dir="rtl"] .dl-search-input {
    padding: 14px 48px 14px 16px;
}

.dl-search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

.dl-search-input:focus {
    border-color: #c5a572;
    box-shadow: 0 0 0 4px rgba(197, 165, 114, 0.1), 0 4px 24px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

/* ================================================= */
/* 🃏 CARDS AREA                                     */
/* ================================================= */
.dl-cards-area {
    padding: 40px 0 80px;
    background: linear-gradient(180deg, #f8fafb 0%, rgba(43, 157, 163, 0.03) 30%, rgba(197, 165, 114, 0.02) 60%, #ffffff 100%);
}

.dl-results-bar {
    display: flex;
    align-items: center;
    padding: 0 0 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(43, 157, 163, 0.08);
}

.dl-results-count {
    font-size: 0.88rem;
    color: #8a9bae;
}

.dl-results-count strong {
    color: #0a3d62;
    font-weight: 600;
}

/* ================================================= */
/* 🃏 DOCTOR CARDS GRID                              */
/* ================================================= */
.dl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.dl-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(43, 157, 163, 0.08);
    box-shadow: 0 2px 16px rgba(10, 61, 98, 0.04), 0 1px 4px rgba(10, 61, 98, 0.02);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
    position: relative;
}

.dl-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0a3d62, #c5a572);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    border-radius: 18px 18px 0 0;
}

.dl-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(10, 61, 98, 0.10), 0 4px 16px rgba(43, 157, 163, 0.06);
    border-color: rgba(197, 165, 114, 0.2);
}

.dl-card:hover::before {
    opacity: 1;
}

/* ---- Card Image ---- */
.dl-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #eef3f7, #f5f0eb);
}

.dl-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dl-card:hover .dl-card-img {
    transform: scale(1.06);
}

.dl-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(10, 61, 98, 0.06), transparent);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.dl-card:hover .dl-card-overlay {
    opacity: 0.6;
}

/* ---- Card Body ---- */
.dl-card-body {
    padding: 18px 20px 22px;
    text-align: center;
}

.dl-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0a3d62;
    margin: 0 0 6px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.dl-card:hover .dl-card-name {
    color: #c5a572;
}

.dl-card-clinic {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    color: #7a8a9e;
    font-weight: 400;
    letter-spacing: 0.01em;
    padding: 4px 12px;
    background: rgba(43, 157, 163, 0.06);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.dl-card:hover .dl-card-clinic {
    background: rgba(197, 165, 114, 0.1);
    color: #c5a572;
}

/* ---- No Results ---- */
.dl-no-results {
    text-align: center;
    padding: 80px 20px;
    color: #8a9bae;
}

.dl-no-results svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.dl-no-results p {
    font-size: 1.1rem;
    margin: 0;
}

/* ================================================= */
/* 📄 PAGINATION                                     */
/* ================================================= */
.dl-pagination {
    display: flex;
    justify-content: center;
    margin-top: 56px;
}

.dl-pagination-list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dl-page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 6px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #5a6d80;
    background: #fff;
    border: 1.5px solid rgba(43, 157, 163, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.dl-page-link:hover {
    color: #c5a572;
    border-color: rgba(197, 165, 114, 0.3);
    background: rgba(197, 165, 114, 0.06);
    box-shadow: 0 2px 12px rgba(197, 165, 114, 0.1);
    text-decoration: none;
}

.dl-page-item.active .dl-page-link {
    background: linear-gradient(135deg, #0a3d62, #0f4c75);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(10, 61, 98, 0.2);
    font-weight: 600;
}

.dl-page-item.active .dl-page-link:hover {
    background: linear-gradient(135deg, #0d4a6e, #13587f);
    color: #fff;
}

.dl-page-item.disabled .dl-page-link {
    color: #c0c8d0;
    border-color: rgba(0, 0, 0, 0.04);
    background: #f5f7f9;
    cursor: not-allowed;
    pointer-events: none;
}

.dl-page-dots .dl-page-link {
    border: none;
    background: transparent;
    color: #8a9bae;
    cursor: default;
    min-width: 32px;
}

.dl-page-dots .dl-page-link:hover {
    background: transparent;
    box-shadow: none;
    color: #8a9bae;
}

/* ================================================= */
/* 📱 RESPONSIVE                                     */
/* ================================================= */
@media (max-width: 1200px) {
    .dl-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .dl-dark-header {
        padding: 120px 0 48px;
    }

    .dl-title {
        font-size: 2.1rem;
    }

    .dl-title-row {
        flex-direction: column;
        align-items: stretch;
    }

    .dl-search-box {
        width: 100%;
    }

    .dl-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .dl-dark-header {
        padding: 110px 0 36px;
    }

    .dl-title {
        font-size: 1.7rem;
    }

    .dl-subtitle {
        font-size: 0.92rem;
    }

    .dl-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .dl-card-body {
        padding: 14px 12px 16px;
    }

    .dl-card-name {
        font-size: 0.92rem;
    }

    .dl-card-clinic {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .dl-page-link {
        min-width: 36px;
        height: 36px;
        font-size: 0.84rem;
        border-radius: 10px;
    }

    .dl-pagination {
        margin-top: 40px;
    }
}


[dir="rtl"] .dl-page-prev .dl-page-link,
[dir="rtl"] .dl-page-next .dl-page-link {
    transform: scaleX(-1);
}


/* ================================================= */
/* 🌟 LUXURY UNIQUE FOOTER                         */
/* ================================================= */

.footer-lux {
    background: linear-gradient(135deg, #061121 0%, #0d284a 50%, #081e3a 100%);
    color: #cbd5e1;
    overflow: hidden;
    position: relative;
}

/* --- 🌊 Top SVG Wave --- */
.custom-shape-divider-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: translateY(-1px);
}

.custom-shape-divider-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.custom-shape-divider-top .shape-fill {
    fill: #f8fafc;
}

/* --- 🎇 Footer Glowing Orbs --- */
.footer-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

.glow-left {
    width: 300px;
    height: 300px;
    background: var(--color-primary);
    top: -50px;
    left: -100px;
}

.glow-right {
    width: 400px;
    height: 400px;
    background: #0ea5e9;
    bottom: -150px;
    right: -150px;
}

/* --- Typography & Elements --- */
.footer-text {
    color: #94a3b8;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.footer-logo-icon {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* --- Social Buttons (Glassmorphism) --- */
.social-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.social-btn:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.4);
}

/* --- Footer Links with Hover Animation --- */
.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    font-weight: 500;
}

.footer-links a::before {
    content: "•";
    position: absolute;
    left: -15px;
    color: #38bdf8;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(8px);
}

.footer-links a:hover::before {
    opacity: 1;
    left: -12px;
}

/* --- Separator Line --- */
.border-bottom-lux {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-links a:hover {
    color: #fff;
}

/* --- 👑 Davinci Signature --- */
.davinci-signature {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
}

.davinci-signature::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #38bdf8, #c084fc);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.davinci-signature:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ================================================= */
/* 🌐 RTL SUPPORT FOR FOOTER                       */
/* ================================================= */
html[dir="rtl"] .custom-shape-divider-top {
    transform: rotateY(180deg) translateY(-1px);
}

html[dir="rtl"] .footer-logo-icon {
    margin-right: 0 !important;
    margin-left: 1rem !important;
}

html[dir="rtl"] .davinci-signature {
    margin-left: 0 !important;
    margin-right: 0.25rem !important;
}

html[dir="rtl"] .footer-links a:hover {
    transform: translateX(-8px);
}

html[dir="rtl"] .footer-links a::before {
    left: auto;
    right: -15px;
}

html[dir="rtl"] .footer-links a:hover::before {
    right: -12px;
    left: auto;
}

/* ================================================= */
/* AJAX Search — Loading & Enter Animation           */
/* ================================================= */
.dl-grid-loading {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Card enter animation */
@keyframes dlCardEnter {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dl-card-enter {
    animation: dlCardEnter 0.4s ease forwards;
    opacity: 0;
}
