/* Sudan Clinic - Global Styles */
/* Color Palette from App */
:root {
    --transparent: transparent;
    --crystal-blue: #58AFFF;
    --dark-sky-blue: #4D92E2;
    --havelock-blue: #4E93E2;
    --tufts-blue: #4680CF;
    --tufts-blue-100: #4378C8;

    /* Extended palette */
    --primary: #4E93E2;
    --primary-dark: #4378C8;
    --primary-light: #58AFFF;
    --primary-gradient: linear-gradient(135deg, #58AFFF 0%, #4378C8 100%);

    /* Neutrals */
    --white: #FFFFFF;
    --bg-light: #F5F7FA;
    --bg-gray: #F0F2F5;
    --text-dark: #1A1A2E;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border-light: #E5E7EB;
    --border-medium: #D1D5DB;

    /* Accents */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --star: #FBBF24;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 8px 24px rgba(78, 147, 226, 0.15);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body[dir="rtl"] {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.8;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-top {
    background: var(--primary);
    padding: 8px 0;
    text-align: center;
}

.header-top-text {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.header-top-text svg {
    width: 16px;
    height: 16px;
}

.header-main {
    padding: 16px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-text span {
    color: var(--primary);
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-links a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.nav-links a.active {
    background: var(--primary);
    color: var(--white);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.language-switch {
    display: flex;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 4px;
    z-index: 50;
}

.language-switch a {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.language-switch a.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.language-switch a:hover:not(.active) {
    color: var(--text-dark);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background: var(--bg-light);
}

/* Dropdown Menu */
.nav-item-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.nav-item-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    padding: 8px 0;
    z-index: 1000;
    flex-direction: column;
    margin-top: 0px;
    border: 1px solid var(--border-light);
}

.nav-item-dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu .dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    text-align: start;
    /* Align text start for RTL/LTR */
    width: 100%;
    text-decoration: none !important;
}

.dropdown-menu .dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    opacity: 0.5;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    z-index: 100;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-dark);
}

.mobile-menu-btn:hover {
    background: var(--primary);
}

.mobile-menu-btn:hover svg {
    stroke: var(--white);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    /* Fix: clicks pass through when hidden */
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
    /* Fix: capture clicks when visible */
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: var(--white);
    z-index: 2000;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    overflow-y: auto;
}

[dir="rtl"] .mobile-nav {
    right: auto;
    left: -300px;
    transition: left 0.3s ease;
}

.mobile-nav.active {
    right: 0;
}

[dir="rtl"] .mobile-nav.active {
    left: 0;
    right: auto;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.mobile-nav-close svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-dark);
}

.mobile-nav-close:hover {
    background: var(--error);
}

.mobile-nav-close:hover svg {
    stroke: var(--white);
}

.mobile-nav-links {
    padding: 20px;
}

.mobile-nav-links a {
    display: block;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    margin-bottom: 4px;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background: var(--primary);
    color: var(--white);
}

.mobile-nav-footer {
    padding: 20px;
    border-top: 1px solid var(--border-light);
}

.mobile-nav-footer .btn {
    width: 100%;
    margin-bottom: 12px;
}

.mobile-lang-switch {
    display: flex;
    gap: 10px;
}

.mobile-lang-switch a {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.mobile-lang-switch a.active {
    background: var(--primary);
    color: var(--white);
}

/* Responsive Header */
@media (max-width: 992px) {
    .nav {
        display: none;
    }

    .nav-actions .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-nav-overlay,
    .mobile-nav {
        display: block;
    }
}

@media (max-width: 576px) {
    .header-top {
        display: none;
    }

    .logo-text {
        font-size: 18px;
    }

    /* .language-switch {
        display: none;
    } */
}


.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-full);
    background: var(--bg-light);
    color: var(--text-dark);
}

.btn-icon:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-arrow {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--white);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-arrow:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-arrow svg {
    color: var(--text-dark);
    /* Default: Dark arrow on white button */
    stroke: currentColor;
    /* Use the color defined above */
    width: 20px;
    height: 20px;
}

.btn-arrow:hover svg {
    color: var(--white);
    /* Hover: White arrow on primary button */
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #4E93E2 0%, #2563EB 50%, #1D4ED8 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="3" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="2" fill="white" opacity="0.1"/></svg>');
    background-size: 200px 200px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    max-width: 550px;
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
}

.hero-btn-primary {
    background: var(--white);
    color: var(--primary);
}

.hero-btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-btn svg {
    width: 20px;
    height: 20px;
}

.hero-images {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    position: relative;
}

.hero-phone {
    max-height: 500px;
    width: auto;
    border-radius: 20px;
    transform: scale(1.5);
    transform-origin: center;
}

/* RTL: Natural order - text on right, image on left */

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: start;
        /* Fix: Align text to start (Right in AR, Left in EN) */
        align-items: flex-start;
        /* Fix: Align flex items to start */
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-buttons {
        justify-content: flex-start;
        /* Fix: Align buttons to start */
        width: 100%;
        gap: 12px;
    }

    .hero-images {
        margin-top: 40px;
        align-self: center;
        /* Center image is usually fine, or flex-start? Keep center for image looks better */
        justify-content: center;
        width: 100%;
    }

    .hero-phone {
        max-height: 350px;
    }

    [dir="rtl"] .hero-content {
        flex-direction: column;
        /* text-align: right is automatic with 'start' */
    }
}

/* Fix for buttons on small screens */
@media (max-width: 480px) {
    .hero-buttons {
        flex-wrap: nowrap;
        /* Force single line */
        overflow-x: auto;
        /* Allow scroll if extremely small */
        padding-bottom: 4px;
    }

    .hero-btn {
        padding: 12px 16px;
        /* Reduce padding */
        font-size: 14px;
        /* Reduce text size */
        white-space: nowrap;
        /* Prevent text wrap inside button */
        flex-shrink: 0;
        /* Prevent button squishing */
        flex: 1;
        /* Make buttons equal width if they fit */
        justify-content: center;
    }
}

/* Search Bar */
.search-section {
    padding: 60px 0 40px;
    text-align: center;
}

.search-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-dark);
}

.search-box {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    background: var(--white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(78, 147, 226, 0.1);
}

.search-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    font-size: 16px;
    color: var(--text-dark);
    background: transparent;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
}

.search-btn {
    padding: 12px 28px;
    margin: 8px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* Quick Tags */
.quick-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.quick-tag {
    padding: 10px 20px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
}

.quick-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(78, 147, 226, 0.05);
}

/* Hero Slider */
.hero-slider {
    padding: 40px 0;
    overflow: hidden;
}

.slider-container {
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
    transition: transform 0.5s ease;
}

.slider-wrapper::-webkit-scrollbar {
    display: none;
}

.slide-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: calc(33.333% - 14px);
    height: 420px;
    border-radius: var(--radius-xl);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.slide-card-blue {
    background: linear-gradient(135deg, #58AFFF 0%, #4378C8 100%);
    color: var(--white);
}

.slide-card-light {
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    color: var(--text-dark);
}

.slide-card-green {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: var(--white);
}

.slide-card-purple {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    color: var(--white);
}

.slide-card-orange {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: var(--white);
}

.slide-card-pink {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
    color: var(--white);
}

.slide-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    width: fit-content;
}

.slide-card-light .slide-badge {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    color: var(--primary);
}

.slide-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 20px 0 14px;
}

.slide-text {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.5;
}

.slide-image {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 180px;
    height: 180px;
    object-fit: contain;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.slider-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.slider-nav:hover svg {
    stroke: var(--white);
}

.slider-nav svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-dark);
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

[dir="rtl"] .slider-prev {
    right: 10px;
    left: auto;
}

[dir="rtl"] .slider-next {
    left: 10px;
    right: auto;
}

/* Responsive Slider */
@media (max-width: 1200px) {
    .slide-card {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .slide-card {
        flex: 0 0 100%;
        min-width: 100%;
        height: 300px;
    }

    .slider-wrapper {
        gap: 0;
    }

    .slider-nav {
        width: 36px;
        height: 36px;
    }

    .slider-prev {
        left: 5px;
    }

    .slider-next {
        right: 5px;
    }

    [dir="rtl"] .slider-prev {
        right: 5px;
        left: auto;
    }

    [dir="rtl"] .slider-next {
        left: 5px;
        right: auto;
    }

    .slide-title {
        font-size: 22px;
    }
}

/* Categories Section */
.categories {
    padding: 60px 0;
    background: var(--bg-light);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 32px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.category-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon svg {
    width: 36px;
    height: 36px;
    color: var(--primary);
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

/* Top Doctors Section */
.top-doctors {
    padding: 80px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-header .section-title {
    margin-bottom: 0;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
}

.view-all:hover {
    gap: 12px;
}

.view-all svg {
    width: 20px;
    height: 20px;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.doctor-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.doctor-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.doctor-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    object-fit: cover;
    margin-bottom: 16px;
    background: var(--bg-light);
}

.doctor-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.doctor-rating svg {
    width: 18px;
    height: 18px;
    color: var(--star);
}

.doctor-rating span {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.doctor-rating .reviews {
    color: var(--text-muted);
    font-weight: 400;
}

.doctor-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    min-height: 2.6em;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doctor-specialty {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    min-height: 1.4em;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doctor-experience {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.doctor-experience svg {
    width: 16px;
    height: 16px;
}

.doctor-price {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.price-label {
    font-size: 13px;
    color: var(--text-muted);
}

.btn-book {
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
}

.btn-book:hover {
    background: var(--primary-dark);
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--bg-light) 25%, var(--bg-gray) 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.doctor-card.loading .doctor-photo {
    aspect-ratio: 1;
}

.doctor-card.loading .doctor-name {
    height: 20px;
    width: 80%;
}

.doctor-card.loading .doctor-specialty {
    height: 16px;
    width: 60%;
}

/* Promo Cards */
.promo-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.promo-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.promo-card {
    border-radius: var(--radius-xl);
    padding: 40px;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.promo-card-primary {
    background: var(--primary-gradient);
    color: var(--white);
}

.promo-card-light {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border-light);
}

.promo-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    max-width: 60%;
}

.promo-text {
    font-size: 16px;
    opacity: 0.9;
    max-width: 60%;
    margin-top: 12px;
}

.promo-image {
    position: absolute;
    right: 30px;
    bottom: 30px;
    width: 200px;
    height: 200px;
    object-fit: contain;
}

/* Apps Download Section */
.apps-section {
    padding: 80px 0;
}

.apps-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.apps-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.apps-text p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.app-features-list {
    margin-bottom: 32px;
}

.app-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 16px;
    color: var(--text-dark);
}

.app-features-list li svg {
    width: 24px;
    height: 24px;
    color: var(--success);
    flex-shrink: 0;
}

.store-buttons {
    display: flex;
    gap: 16px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--text-dark);
    color: var(--white);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.store-btn:hover {
    background: #000;
    transform: translateY(-2px);
}

.store-btn svg {
    width: 28px;
    height: 28px;
}

.store-btn-text {
    text-align: left;
}

.store-btn-text small {
    font-size: 11px;
    opacity: 0.8;
    display: block;
}

.store-btn-text span {
    font-size: 16px;
    font-weight: 600;
}

.apps-image {
    text-align: center;
}

.apps-image img {
    max-width: 100%;
    height: auto;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
    max-width: 280px;
    line-height: 1.7;
    font-size: 14px;
}

.footer-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--crystal-blue);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
}

.social-links svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
    color: var(--text-dark);
}

/* Responsive */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .doctors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .header-top {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .nav-actions .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-grid {
        grid-template-columns: 1fr;
    }

    .apps-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .apps-text {
        order: 2;
    }

    .apps-image {
        order: 1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .search-title {
        font-size: 24px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-btn {
        margin: 0 8px 8px;
    }

    .slide-card {
        flex: 0 0 100%;
        /* Full width */
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        flex-shrink: 0;
        /* Prevent shrinking */
        height: 480px;
        /* Increased height x2 */
        padding: 32px;
        scroll-snap-align: center;
        margin-right: 0;
    }

    .slider-wrapper {
        padding: 10px 0px;
        /* Add padding to wrapper allows showing edges */
        scroll-padding: 0 0px;
        gap: 20px;
        /* Gap between slides */
    }

    .slide-title {
        font-size: 22px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-card {
        padding: 20px 16px;
    }

    .category-icon {
        width: 56px;
        height: 56px;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .store-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .header-inner {
        gap: 12px;
    }

    .logo {
        gap: 8px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
        border-radius: 8px;
    }

    .logo-text {
        font-size: 16px;
    }

    .logo-text span {
        display: inline-block;
    }

    .nav-actions {
        gap: 8px;
    }

    .language-switch a {
        padding: 4px 8px;
        font-size: 12px;
    }

    .mobile-menu-btn {
        width: 36px;
        height: 36px;
    }

    .mobile-menu-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Page Transitions */
.page-content {
    padding-top: 120px;
}

@media (max-width: 992px) {
    .page-content {
        padding-top: 80px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.bg-light {
    background: var(--bg-light);
}

.bg-white {
    background: var(--white);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-32 {
    margin-bottom: 32px;
}

.mt-24 {
    margin-top: 24px;
}

.mt-32 {
    margin-top: 32px;
}

.py-40 {
    padding-top: 40px;
    padding-bottom: 40px;
}

.py-60 {
    padding-top: 60px;
    padding-bottom: 60px;
}

.py-80 {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Slider Card with Image */
.slide-card {
    position: relative;
    overflow: hidden;
}

.slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.slide-image {
    position: absolute;
    bottom: -10px;
    z-index: 1;
    width: 140px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.slide-card:hover .slide-image {
    transform: scale(1.05) translateY(-5px);
}

/* LTR Styles */
body:not([dir="rtl"]) .slide-image {
    right: -10px;
}

/* RTL Styles */
[dir="rtl"] .slide-image {
    left: -10px;
    right: auto;
}

[dir="rtl"] .slide-card:hover .slide-image {
    transform: scale(1.05) translateY(-5px);
}

/* Map Locate Me Button */
.btn-locate-me {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: white;
    border: none;
    padding: 10px 16px;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

[dir="rtl"] .btn-locate-me {
    right: auto;
    left: 20px;
}

.btn-locate-me:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-locate-me svg {
    width: 18px;
    height: 18px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slide-image {
        width: 100px;
        bottom: -5px;
    }
}

@media (max-width: 768px) {
    .slide-illustration svg {
        width: 80px;
        height: 80px;
    }
}

.slide-illustration {
    position: absolute;
    bottom: -15px;
    z-index: 1;
    opacity: 0.15;
    transition: transform 0.3s ease;
}

[dir="ltr"] .slide-illustration {
    right: -15px;
}

[dir="rtl"] .slide-illustration {
    left: -15px;
}

.slide-illustration svg {
    width: 140px;
    height: 140px;
    color: currentColor;
}

.slide-card:hover .slide-illustration {
    transform: scale(1.1) rotate(5deg);
}

/ *   P r o c e s s   A c c o r d i o n   S e c t i o n   * /     . p r o c e s s - s e c t i o n    {
                 p a d d i n g :    8 0 p x   0 ;
                 b a c k g r o u n d - c o l o r :    v a r ( - - w h i t e ) ;
         
}

         . p r o c e s s - c o n t a i n e r    {
                 d i s p l a y :    g r i d ;
                 g r i d - t e m p l a t e - c o l u m n s :    1 f r   1 f r ;
                 g a p :    6 0 p x ;
                 a l i g n - i t e m s :    c e n t e r ;
         
}

         . p r o c e s s - i m a g e - c o n t a i n e r    {
                 p o s i t i o n :    r e l a t i v e ;
                 b o r d e r - r a d i u s :    v a r ( - - r a d i u s - l g ) ;
                 o v e r f l o w :    h i d d e n ;
                 b o x - s h a d o w :    v a r ( - - s h a d o w - l g ) ;
                 a s p e c t - r a t i o :    4 / 3 ;
                 b a c k g r o u n d :    v a r ( - - b g - l i g h t ) ;
         
}

         . p r o c e s s - i m a g e    {
                 w i d t h :    1 0 0 % ;
                 h e i g h t :    1 0 0 % ;
                 o b j e c t - f i t :    c o v e r ;
                 t r a n s i t i o n :    o p a c i t y   0 . 3 s   e a s e ;
         
}

         . p r o c e s s - c o n t e n t _ _ t i t l e    {
                 f o n t - s i z e :    3 2 p x ;
                 f o n t - w e i g h t :    8 0 0 ;
                 m a r g i n - b o t t o m :    4 0 p x ;
                 c o l o r :    v a r ( - - t e x t - d a r k ) ;
         
}

         . p r o c e s s - a c c o r d i o n    {
                 d i s p l a y :    f l e x ;
                 f l e x - d i r e c t i o n :    c o l u m n ;
                 g a p :    2 4 p x ;
                 p o s i t i o n :    r e l a t i v e ;
         
}

         / *   V e r t i c a l   d e c o r a t i v e   l i n e   * /     . p r o c e s s - a c c o r d i o n : : b e f o r e    {
                 c o n t e n t :    ' '  ;
                 p o s i t i o n :    a b s o l u t e ;
                 t o p :    2 0 p x ;
                 b o t t o m :    2 0 p x ;
                 l e f t :    2 4 p x ;
                 w i d t h :    2 p x ;
                 b a c k g r o u n d :    v a r ( - - b o r d e r - l i g h t ) ;
                 z - i n d e x :    0 ;
         
}

         [ d i r = " r t l "  ]   . p r o c e s s - a c c o r d i o n : : b e f o r e    {
                 l e f t :    a u t o ;
                 r i g h t :    2 4 p x ;
         
}

         . a c c o r d i o n - i t e m    {
                 p o s i t i o n :    r e l a t i v e ;
                 z - i n d e x :    1 ;
                 b a c k g r o u n d :    v a r ( - - w h i t e ) ;
                 b o r d e r :    1 p x   s o l i d   v a r ( - - b o r d e r - l i g h t ) ;
                 b o r d e r - r a d i u s :    v a r ( - - r a d i u s - m d ) ;
                 p a d d i n g :    2 4 p x ;
                 c u r s o r :    p o i n t e r ;
                 t r a n s i t i o n :    v a r ( - - t r a n s i t i o n ) ;
                 p a d d i n g - l e f t :    6 0 p x ;
       / *   S p a c e   f o r   l i n e / i c o n   * /     
}

         [ d i r = " r t l "  ]   . a c c o r d i o n - i t e m    {
                 p a d d i n g - l e f t :    2 4 p x ;
                 p a d d i n g - r i g h t :    6 0 p x ;
         
}

         . a c c o r d i o n - i t e m . a c t i v e    {
                 b o r d e r - c o l o r :    v a r ( - - p r i m a r y ) ;
                 b o x - s h a d o w :    v a r ( - - s h a d o w - m d ) ;
                 t r a n s f o r m :    t r a n s l a t e X ( 1 0 p x ) ;
         
}

         [ d i r = " r t l "  ]   . a c c o r d i o n - i t e m . a c t i v e    {
                 t r a n s f o r m :    t r a n s l a t e X ( - 1 0 p x ) ;
         
}

         . a c c o r d i o n - m a r k e r    {
                 p o s i t i o n :    a b s o l u t e ;
                 l e f t :    1 4 p x ;
                 t o p :    2 4 p x ;
                 w i d t h :    2 2 p x ;
                 h e i g h t :    2 2 p x ;
                 b a c k g r o u n d :    v a r ( - - w h i t e ) ;
                 b o r d e r :    2 p x   s o l i d   v a r ( - - b o r d e r - m e d i u m ) ;
                 b o r d e r - r a d i u s :    5 0 % ;
                 t r a n s i t i o n :    v a r ( - - t r a n s i t i o n ) ;
                 d i s p l a y :    f l e x ;
                 a l i g n - i t e m s :    c e n t e r ;
                 j u s t i f y - c o n t e n t :    c e n t e r ;
         
}

         [ d i r = " r t l "  ]   . a c c o r d i o n - m a r k e r    {
                 l e f t :    a u t o ;
                 r i g h t :    1 4 p x ;
         
}

         . a c c o r d i o n - m a r k e r : : a f t e r    {
                 c o n t e n t :    ' '  ;
                 w i d t h :    1 0 p x ;
                 h e i g h t :    1 0 p x ;
                 b a c k g r o u n d :    v a r ( - - p r i m a r y ) ;
                 b o r d e r - r a d i u s :    5 0 % ;
                 o p a c i t y :    0 ;
                 t r a n s f o r m :    s c a l e ( 0 ) ;
                 t r a n s i t i o n :    v a r ( - - t r a n s i t i o n ) ;
         
}

         . a c c o r d i o n - i t e m . a c t i v e   . a c c o r d i o n - m a r k e r    {
                 b o r d e r - c o l o r :    v a r ( - - p r i m a r y ) ;
         
}

         . a c c o r d i o n - i t e m . a c t i v e   . a c c o r d i o n - m a r k e r : : a f t e r    {
                 o p a c i t y :    1 ;
                 t r a n s f o r m :    s c a l e ( 1 ) ;
         
}

         . a c c o r d i o n - h e a d e r    {
                 d i s p l a y :    f l e x ;
                 a l i g n - i t e m s :    c e n t e r ;
                 j u s t i f y - c o n t e n t :    s p a c e - b e t w e e n ;
         
}

         . a c c o r d i o n - t i t l e    {
                 f o n t - s i z e :    2 0 p x ;
                 f o n t - w e i g h t :    7 0 0 ;
                 c o l o r :    v a r ( - - t e x t - d a r k ) ;
         
}

         . a c c o r d i o n - i t e m . a c t i v e   . a c c o r d i o n - t i t l e    {
                 c o l o r :    v a r ( - - p r i m a r y ) ;
         
}

         . a c c o r d i o n - b o d y    {
                 m a x - h e i g h t :    0 ;
                 o p a c i t y :    0 ;
                 o v e r f l o w :    h i d d e n ;
                 t r a n s i t i o n :    a l l   0 . 3 s   c u b i c - b e z i e r ( 0 . 4 ,    0 ,    0 . 2 ,    1 ) ;
                 c o l o r :    v a r ( - - t e x t - s e c o n d a r y ) ;
                 f o n t - s i z e :    1 6 p x ;
                 l i n e - h e i g h t :    1 . 6 ;
         
}

         . a c c o r d i o n - i t e m . a c t i v e   . a c c o r d i o n - b o d y    {
                 m a x - h e i g h t :    2 0 0 p x ;
       / *   A p p r o x i m a t e   m a x   h e i g h t   * /             o p a c i t y :    1 ;
                 m a r g i n - t o p :    1 6 p x ;
         
}

         @ m e d i a   ( m a x - w i d t h :   9 9 2 p x )    {
                 . p r o c e s s - c o n t a i n e r    {
                             g r i d - t e m p l a t e - c o l u m n s :    1 f r ;
                     
    }

                             . p r o c e s s - i m a g e - c o n t a i n e r    {
                             o r d e r :    - 1 ;
           / *   I m a g e   o n   t o p   * /                     h e i g h t :    3 0 0 p x ;
                     
    }

         
}

     