/* ================================================= */
/* 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;
    }
}


/* --- TOP BANNER --- */
.top-banner {
    /* گرادیان بسیار شیک و تیره (سرمه‌ای به آبی نفتی) */
    background: linear-gradient(135deg, #072C46 0%, #0A3D62 100%);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 5%;
    /* ارتفاع بیشتر و استانداردتر برای باکس */
    font-size: 1rem;
    /* سایز فونت بزرگتر */
    position: relative;
    z-index: 1100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    /* سایه کمی قوی‌تر برای ایجاد عمق */
    transition: margin-top 0.4s ease, opacity 0.4s ease;
    direction: rtl;
    /* اطمینان از راست‌چین بودن دقیق متون فارسی */
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 15px;
    /* فاصله مناسب‌تر بین آیکون و متن */
}

.banner-content p {
    margin: 0;
    font-weight: 600;
    /* ضخامت بیشتر برای جلب توجه */
    line-height: 1.6;
    color: #ffffff !important;
    /* اجبار به سفید شدن متن */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    /* سایه نرم زیر متن برای جداسازی کامل از پس‌زمینه */
    font-size: 1.05rem;
    /* کمی بزرگتر شدن متن */
}


.banner-icon {
    width: 24px;
    /* آیکون بزرگ‌تر شد */
    height: 24px;
    color: #C5A572;
    /* رنگ طلایی (Accent) که روی سرمه‌ای تیره درخشش عالی دارد */
    flex-shrink: 0;
    animation: pulse 2.5s infinite ease-in-out;
}

.banner-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    /* دکمه بستن بزرگتر و واضح‌تر */
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    padding: 0 15px;
}

.banner-close:hover {
    opacity: 1;
    transform: scale(1.1);
    color: #C5A572;
    /* تغییر رنگ ضربدر به طلایی هنگام قرار گرفتن موس */
}

/* انیمیشن مخفی شدن بنر */
.top-banner.hidden {
    margin-top: -80px;
    opacity: 0;
    pointer-events: none;
}


@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .banner-content p {
        font-size: 0.9rem;
    }

    .top-banner {
        padding: 12px 15px;
    }

    .banner-icon {
        width: 20px;
        height: 20px;
    }
}


/* ================================================= */
/* 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;
    }
}


/* ================================================= */
/* HERO                */
/* ================================================= */
.hero {
    position: relative;
    height: 100dvh;
    min-height: 640px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* ---- Slides ---- */
.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.2s ease, transform 6s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* ---- Overlay ---- */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
    rgba(10, 61, 98, 0.72) 0%,
    rgba(10, 61, 98, 0.45) 50%,
    rgba(43, 157, 163, 0.25) 100%);
    z-index: 1;
}

/* ---- Content ---- */
.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    max-width: 720px;
}

html[dir="rtl"] .hero-content {
    text-align: right;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-bottom: 24px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--color-secondary);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.4);
    }
}

/* Title */
.hero-title {
    display: flex;
    flex-direction: column;
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.title-accent {
    color: var(--color-secondary);
    -webkit-text-stroke: 0px;
}

/* Description */
.hero-desc {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 560px;
}

/* Actions */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 52px;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--color-secondary);
    color: #fff !important;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition-base);
    box-shadow: 0 8px 24px rgba(43, 157, 163, 0.4);
}

.hero-btn-primary:hover {
    background: var(--color-secondary-dark, #1f8a8f);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(43, 157, 163, 0.5);
}

.hero-btn-primary svg {
    transition: transform var(--transition-base);
}

.hero-btn-primary:hover svg {
    transform: translateX(4px);
}

html[dir="rtl"] .hero-btn-primary:hover svg {
    transform: translateX(-4px);
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 13px 28px;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    color: #fff !important;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.08);
    transition: all var(--transition-base);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.7);
}

/* Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

html[dir="rtl"] .hero-stat {
    align-items: flex-end;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-plus {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-secondary);
    vertical-align: super;
    margin-inline-start: 2px;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    margin-top: 2px;
    letter-spacing: 0.02em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* ---- Controls ---- */
.hero-controls {
    position: absolute;
    bottom: 140px;
    right: 48px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
}

html[dir="rtl"] .hero-controls {
    right: auto;
    left: 48px;
}

.hero-prev,
.hero-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.hero-prev:hover,
.hero-next:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
}

.hero-dots {
    display: flex;
    gap: 6px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.hero-dot.active {
    background: var(--color-secondary);
    width: 24px;
    border-radius: var(--radius-full);
}

/* ---- Progress Bar ---- */
.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 3;
}

.hero-progress-bar {
    height: 100%;
    background: var(--color-secondary);
    width: 0%;
    transition: width linear;
}

/* ---- Wave ---- */
.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 4;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 120px;
    display: block;
}

.wave-path {
    fill: var(--color-bg-main, #f8fafc);
}

.wave-back {
    opacity: 0.35;
    animation: wave-move 8s ease-in-out infinite alternate;
}

.wave-front {
    opacity: 1;
    animation: wave-move 6s ease-in-out infinite alternate-reverse;
}

@keyframes wave-move {
    0% {
        d: path("M0,80 C200,40 400,100 600,70 C800,40 1000,90 1200,65 C1320,50 1400,80 1440,75 L1440,120 L0,120 Z");
    }

    100% {
        d: path("M0,65 C180,95 380,45 580,75 C780,105 980,45 1180,70 C1320,85 1400,55 1440,65 L1440,120 L0,120 Z");
    }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero-controls {
        bottom: 130px;
        right: 20px;
    }

    html[dir="rtl"] .hero-controls {
        left: 20px;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-num {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    html[dir="rtl"] .hero-actions {
        align-items: flex-end;
    }
}

/* ============================================================
   QUICK ACCESS SECTION - Redesigned
   ============================================================ */

.quick-access-section {
    padding: 110px 0 120px;
    background: linear-gradient(180deg, #f0f4f8 0%, #e8eef5 100%);
    position: relative;
    overflow: hidden;
}

/* subtle background decoration */
.quick-access-section::before {
    content: '';
    position: absolute;
    top: -180px;
    left: -180px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.quick-access-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ---------- Section Header ---------- */

.qa-header {
    text-align: center;
    margin-bottom: 64px;
}

.qa-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 18px;
    background: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 50px;
    border: 1px solid rgba(var(--color-primary-rgb), 0.18);
    margin-bottom: 20px;
}

.qa-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    display: inline-block;
}

.qa-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--color-text-1);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.qa-subtitle {
    color: var(--color-text-3);
    font-size: 16.5px;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- Cards Grid ---------- */

.qa-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 991px) {
    .qa-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .qa-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Card Base ---------- */

.qa-card {
    position: relative;
    padding: 32px 28px 28px;
    border-radius: 20px;
    background: #ffffff;
    border: 1.5px solid rgba(0, 0, 0, 0.055);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.045),
    0 8px 28px rgba(0, 0, 0, 0.06);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    border-color 0.35s ease;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.qa-card:hover {
    transform: translateY(-10px) scale(1.012);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07),
    0 20px 56px rgba(var(--color-primary-rgb), 0.14);
    border-color: rgba(var(--color-primary-rgb), 0.2);
}

/* ---------- Unique color accents per card ---------- */

.qa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 20px 20px 0 0;
}

.qa-card:hover::before {
    transform: scaleX(1);
}

/* Primary card (Book Appointment) */
.qa-card--primary {
    background: linear-gradient(145deg, var(--color-primary) 0%, #0a3d6b 100%);
    border-color: transparent;
    box-shadow: 0 4px 18px rgba(var(--color-primary-rgb), 0.25),
    0 16px 48px rgba(var(--color-primary-rgb), 0.3);
}

.qa-card--primary::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2));
}

.qa-card--primary:hover {
    transform: translateY(-10px) scale(1.012);
    box-shadow: 0 6px 24px rgba(var(--color-primary-rgb), 0.35),
    0 24px 60px rgba(var(--color-primary-rgb), 0.4);
    border-color: transparent;
}

.qa-card--primary .qa-card__title,
.qa-card--primary .qa-card__desc {
    color: rgba(255, 255, 255, 0.9);
}

.qa-card--primary .qa-card__title {
    color: #fff;
}

.qa-card--primary .qa-card__number {
    color: rgba(255, 255, 255, 0.12);
}

.qa-card--primary .qa-card__action {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.25);
}

.qa-card--primary .qa-card__action:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.qa-card--primary .qa-card__tag {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
}

/* Emergency card */
.qa-card--emergency {
    background: linear-gradient(145deg, #fff5f5 0%, #fff 60%);
    border-color: rgba(220, 53, 69, 0.12);
}

.qa-card--emergency::before {
    background: linear-gradient(90deg, #dc3545, #ff6b6b);
}

.qa-card--emergency:hover {
    border-color: rgba(220, 53, 69, 0.3);
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.1),
    0 20px 56px rgba(220, 53, 69, 0.18);
}

.qa-card--emergency .qa-card__icon {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.qa-card--emergency:hover .qa-card__icon {
    background: #dc3545;
    color: #fff;
}

.qa-card--emergency .qa-card__icon-ring {
    border-color: rgba(220, 53, 69, 0.3);
}

.qa-card--emergency .qa-card__action {
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.18);
}

.qa-card--emergency .qa-card__action:hover {
    background: rgba(220, 53, 69, 0.07);
    border-color: rgba(220, 53, 69, 0.35);
}

.qa-card--emergency .qa-card__number {
    color: rgba(220, 53, 69, 0.1);
}

/* ---------- Background glow (subtle) ---------- */

.qa-card__glow {
    position: absolute;
    width: 200px;
    height: 200px;
    top: -60px;
    right: -60px;
    border-radius: 50%;
    background: radial-gradient(circle,
    rgba(var(--color-primary-rgb), 0.08) 0%,
    transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: scale(0.7);
    pointer-events: none;
}

.qa-card:hover .qa-card__glow {
    opacity: 1;
    transform: scale(1.3);
}

/* ---------- Icon ---------- */

.qa-card__icon-wrap {
    position: relative;
    margin-bottom: 22px;
    width: fit-content;
}

.qa-card__icon {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: rgba(var(--color-primary-rgb), 0.09);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-primary);
    transition: background 0.35s ease,
    color 0.35s ease,
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease;
}

.qa-card__icon svg {
    width: 26px;
    height: 26px;
    transition: transform 0.35s ease;
}

.qa-card:hover .qa-card__icon {
    background: var(--color-primary);
    color: #fff;
    transform: scale(1.1) rotate(-4deg);
    box-shadow: 0 8px 24px rgba(var(--color-primary-rgb), 0.35);
}

.qa-card:hover .qa-card__icon svg {
    transform: scale(1.08);
}

/* Primary card icon */
.qa-card--primary .qa-card__icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.qa-card--primary:hover .qa-card__icon {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ---------- Icon Ring ---------- */

.qa-card__icon-ring {
    position: absolute;
    inset: -7px;
    border-radius: 22px;
    border: 2px dashed rgba(var(--color-primary-rgb), 0.25);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: scale(0.9);
}

.qa-card:hover .qa-card__icon-ring {
    opacity: 1;
    transform: scale(1);
    animation: ring-spin 10s linear infinite;
}

@keyframes ring-spin {
    to {
        transform: scale(1) rotate(360deg);
    }
}

/* ---------- Emergency Pulse ---------- */

.qa-card__pulse {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: rgba(220, 53, 69, 0.3);
    animation: qa-pulse 2s ease-out infinite;
}

@keyframes qa-pulse {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* ---------- Content ---------- */

.qa-card__content {
    flex: 1;
}

.qa-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-1);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.qa-card__desc {
    color: var(--color-text-3);
    font-size: 14.5px;
    line-height: 1.65;
    margin-bottom: 16px;
}

.qa-card__meta {
    margin-bottom: 4px;
}

.qa-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(var(--color-primary-rgb), 0.08);
    border: 1px solid rgba(var(--color-primary-rgb), 0.15);
    letter-spacing: 0.02em;
}

.qa-card__tag::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}

.qa-card__tag--live {
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.2);
    animation: tag-blink 1.6s ease-in-out infinite;
}

@keyframes tag-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.65;
    }
}

/* ---------- Action Button ---------- */

.qa-card__action {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
    padding: 9px 16px;
    border-radius: 10px;
    border: 1.5px solid rgba(var(--color-primary-rgb), 0.18);
    background: transparent;
    transition: background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    gap 0.3s ease,
    box-shadow 0.3s ease;
    width: fit-content;
}

.qa-card__action svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qa-card__action:hover {
    background: rgba(var(--color-primary-rgb), 0.07);
    border-color: rgba(var(--color-primary-rgb), 0.35);
    gap: 12px;
    box-shadow: 0 3px 12px rgba(var(--color-primary-rgb), 0.1);
}

.qa-card__action:hover svg {
    transform: translateX(4px);
}

/* ---------- Card Number ---------- */

.qa-card__number {
    position: absolute;
    bottom: 14px;
    right: 20px;
    font-size: 42px;
    font-weight: 900;
    opacity: 0.055;
    color: var(--color-primary);
    line-height: 1;
    pointer-events: none;
    font-variant-numeric: tabular-nums;
    transition: opacity 0.35s ease;
}

[dir="rtl"] .qa-card__number {
    right: auto;
    left: 20px;
}

.qa-card:hover .qa-card__number {
    opacity: 0.1;
}

/* ---------- Wide Card (Location & Hours) ---------- */

.qa-card--wide {
    grid-column: span 2;
}

@media (max-width: 991px) {
    .qa-card--wide {
        grid-column: span 2;
    }
}

@media (max-width: 575px) {
    .qa-card--wide {
        grid-column: span 1;
    }
}

.qa-card__inner {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 26px;
}

.qa-card__inner .qa-card__content {
    flex: 1;
}

.qa-card__info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 4px;
}

@media (max-width: 767px) {
    .qa-card__info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575px) {
    .qa-card__info-grid {
        grid-template-columns: 1fr;
    }
}

.qa-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 14px 16px;
    border-radius: 14px;
    transition: background 0.3s ease,
    border-color 0.3s ease,
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qa-card:hover .qa-info-item {
    background: rgba(var(--color-primary-rgb), 0.035);
    border-color: rgba(var(--color-primary-rgb), 0.12);
}

.qa-info-item:hover {
    transform: translateY(-3px);
}

.qa-info-item svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.qa-info-item > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qa-info-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-1);
    display: block;
}

.qa-info-value {
    font-size: 13px;
    color: var(--color-text-3);
    display: block;
}

/* ---------- Reveal Animation ---------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* staggered delay via JS inline style */


/* ================================================ABOUT SECTION
================================================ */
.about-section {
    background: linear-gradient(150deg, #f5f9ff 0%, #fff 55%, #f0f7ff 100%);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(43, 157, 163, .07) 0%, transparent 70%);
    top: -80px;
    right: -80px;
    pointer-events: none;
}

/* Badge */
.about-badge {
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(43, 157, 163, .3);
    background: rgba(43, 157, 163, .07);
    color: var(--color-secondary);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.ab-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-secondary);
    animation: abPulse 2s infinite;
}

@keyframes abPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .4;
        transform: scale(1.7);
    }
}

/* H2 */
.about-h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.25;
}

.about-h2 em {
    font-style: normal;
    background: linear-gradient(90deg, var(--color-secondary), #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-p {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    max-width: 520px;
}

/* Stats */
.about-stats {
    background: #fff;
    border: 1px solid var(--color-border-soft);
    border-radius: 16px;
    padding: 18px 24px;
    box-shadow: 0 4px 20px rgba(10, 61, 98, .06);
}

.stat-box strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-box span {
    font-size: .75rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 44px;
    background: var(--color-border-soft);
    margin: 0 8px;
}


/* CTA */
.btn-primary-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    background: var(--color-primary);
    color: #fff !important;
    border-radius: 12px;
    font-weight: 700;
    font-size: .9rem;
    transition: .3s ease;
}

.btn-primary-modern svg {
    width: 17px;
    transition: transform .3s;
}

.btn-primary-modern:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(43, 157, 163, .35);
}

.btn-primary-modern:hover svg {
    transform: translateX(4px);
}

[dir="rtl"] .btn-primary-modern:hover svg {
    transform: translateX(-4px);
}

.btn-ghost-modern {
    display: inline-flex;
    align-items: center;
    padding: 12px 22px;
    border: 2px solid var(--color-border-soft);
    color: var(--color-text-main) !important;
    border-radius: 12px;
    font-weight: 600;
    font-size: .9rem;
    transition: .3s ease;
}

.btn-ghost-modern:hover {
    border-color: var(--color-primary);
    color: var(--color-primary) !important;
    transform: translateY(-3px);
}

/* ================================================
   VIDEO GALLERY — staggered layout
================================================ */
.vg-wrap {
    padding: 8px 8px 32px;
}

/* Portrait items */
.vg-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #1a2535;
    box-shadow: 0 8px 32px rgba(10, 40, 80, .18);
    cursor: pointer;
    transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s ease;
}

/* Stagger: short = 3:4, tall = 9:16 */
.vg-short {
    aspect-ratio: 3 / 4;
}

.vg-tall {
    aspect-ratio: 9 / 16;
}

.vg-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(10, 40, 80, .28);
}

.vg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.vg-item:hover .vg-video {
    transform: scale(1.05);
}

/* Overlay */
.vg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 20, 50, .85) 0%, rgba(5, 20, 50, .3) 45%, transparent 75%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    transition: .3s ease;
}

.vg-overlay.is-playing {
    opacity: 0;
    pointer-events: none;
}

/* Play btn */
.vg-play-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
    transition: .3s ease;
    z-index: 2;
}

.vg-play-btn svg {
    width: 20px;
    margin-left: 3px;
}

.vg-play-btn:hover {
    transform: scale(1.15);
    background: var(--color-secondary);
    color: #fff;
}

/* Meta */
.vg-meta {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    color: #fff;
}

.vg-cat {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .05em;
    background: rgba(43, 157, 163, .85);
    backdrop-filter: blur(6px);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.vg-name {
    font-size: .8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .4);
}

/* Expand btn */
.vg-expand {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(.8) translateY(-4px);
    transition: .3s ease;
    z-index: 3;
}

.vg-expand svg {
    width: 14px;
}

.vg-item:hover .vg-expand {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.vg-expand:hover {
    background: rgba(255, 255, 255, .3);
}

/* Floating badge */
.vg-badge {
    position: absolute;
    bottom: 0;
    right: 16px;
    background: #fff;
    border-radius: 14px;
    padding: 10px 16px;
    box-shadow: 0 10px 36px rgba(10, 40, 80, .14);
    border: 1px solid rgba(10, 61, 98, .07);
    animation: badgeFloat 4s ease-in-out infinite;
    z-index: 5;
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

.vg-badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .9rem;
}

.vg-badge strong {
    font-size: .9rem;
    font-weight: 800;
    color: var(--color-primary);
}

.vg-badge small {
    font-size: .7rem;
    color: var(--color-text-muted);
}

/* ================================================
   MODAL
================================================ */
.vg-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
}

.vg-modal.is-open {
    opacity: 1;
    pointer-events: all;
}

.vg-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(4, 12, 28, .95);
    backdrop-filter: blur(14px);
}

.vg-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s ease;
    z-index: 10;
}

.vg-modal-close svg {
    width: 20px;
}

.vg-modal-close:hover {
    background: rgba(255, 255, 255, .2);
    transform: rotate(90deg);
}

.vg-modal-inner {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 400px;
}

.vg-modal-video {
    width: 100%;
    max-height: 88vh;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
    object-fit: contain;
    background: #000;
}

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 991px) {
    .vg-wrap {
        margin-bottom: 16px;
    }
}

@media (max-width: 575px) {
    .about-stats {
        flex-direction: column;
        gap: 14px;
    }

    .stat-divider {
        display: none;
    }

    .vg-modal-inner {
        max-width: 95vw;
    }
}


/* ================================================
   SERVICES SECTION
   ================================================ */

.services-section {
    position: relative;
    background: #f8faff;
    isolation: isolate;
}

/* ── Animated Background ── */
.srv-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.srv-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    animation: blobFloat 12s ease-in-out infinite;
}

.srv-blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #2563eb, #7c3aed);
    top: -120px;
    left: -100px;
    animation-delay: 0s;
}

.srv-blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #06b6d4, #3b82f6);
    bottom: -80px;
    right: -80px;
    animation-delay: -4s;
}

.srv-blob-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #8b5cf6, #ec4899);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -8s;
}

@keyframes blobFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* Grid lines */
.srv-bg-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Floating dots */
.srv-bg-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(37, 99, 235, 0.12) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    background-position: 15px 15px;
    animation: dotsShift 20s linear infinite;
}

@keyframes dotsShift {
    0% {
        background-position: 15px 15px;
    }

    100% {
        background-position: 45px 45px;
    }
}

/* ── Section Badge ── */
.srv-badge {
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #2563eb;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.srv-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2563eb;
    display: inline-block;
    animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

/* ── Section Heading ── */
.srv-h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.srv-h2 em {
    font-style: normal;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.srv-sub {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
}

/* ── Slider Wrapper ── */
.srv-slider-wrap {
    overflow: hidden;
}

.srv-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.srv-slide {
    min-width: 100%;
    padding: 0 4px;
}

/* ── Service Cards ── */
.srv-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 20px;
    padding: 32px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.srv-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15),
    0 0 0 1px rgba(37, 99, 235, 0.1) inset;
    background: rgba(255, 255, 255, 0.98);
}

/* Card appear animation */
.srv-card[data-delay="0"] {
    animation: cardIn 0.6s ease both;
}

.srv-card[data-delay="1"] {
    animation: cardIn 0.6s 0.12s ease both;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Icon ── */
.srv-card-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.srv-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.srv-card:hover .srv-card-icon {
    transform: rotate(-8deg) scale(1.15);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(124, 58, 237, 0.2));
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.srv-card-icon svg {
    width: 26px;
    height: 26px;
    stroke: #2563eb;
    transition: stroke 0.3s ease;
}

.srv-card:hover .srv-card-icon svg {
    stroke: #7c3aed;
}

.srv-card-num {
    font-size: 2.8rem;
    font-weight: 900;
    color: rgba(37, 99, 235, 0.07);
    line-height: 1;
    letter-spacing: -0.04em;
    font-feature-settings: "tnum";
    transition: color 0.3s ease;
}

.srv-card:hover .srv-card-num {
    color: rgba(37, 99, 235, 0.14);
}

/* ── Title ── */
.srv-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.srv-card:hover .srv-card-title {
    color: #2563eb;
}

/* ── Text ── */
.srv-card-text {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.75;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Tags ── */
.srv-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.srv-card-tags span {
    font-size: 0.72rem;
    font-weight: 600;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    padding: 3px 10px;
    border-radius: 100px;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

.srv-card:hover .srv-card-tags span {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

/* ── Bottom Line ── */
.srv-card-line {
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.srv-card:hover .srv-card-line {
    transform: scaleX(1);
}

/* ── Navigation Arrows ── */
.srv-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.srv-nav svg {
    width: 20px;
    height: 20px;
    stroke: #2563eb;
    transition: stroke 0.3s ease;
}

.srv-nav:hover {
    background: #2563eb;
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.35);
    transform: translateY(-50%) scale(1.08);
}

.srv-nav:hover svg {
    stroke: #fff;
}

.srv-prev {
    left: -22px;
}

.srv-next {
    right: -22px;
}

.srv-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Dots ── */
.srv-dot {
    width: 8px;
    height: 8px;
    border-radius: 100px;
    background: #cbd5e1;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.35s ease;
}

.srv-dot.active {
    width: 28px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
}

/* ── Progress Bar ── */
.srv-progress-wrap {
    height: 3px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 3px;
    overflow: hidden;
    max-width: 300px;
    margin: 0 auto;
}

.srv-progress-bar {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    width: 33.33%;
}

/* ── RTL ── */
[dir="rtl"] .srv-card-line {
    transform-origin: right;
}

[dir="rtl"] .srv-prev {
    left: auto;
    right: -22px;
}

[dir="rtl"] .srv-next {
    right: auto;
    left: -22px;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .srv-card {
        padding: 24px 20px;
    }

    .srv-prev {
        left: -10px;
    }

    .srv-next {
        right: -10px;
    }

    [dir="rtl"] .srv-prev {
        right: -10px;
    }

    [dir="rtl"] .srv-next {
        left: -10px;
    }

    .srv-card-text {
        -webkit-line-clamp: 4;
    }
}

/* ================================================= */
/* HOSPITAL GUIDE SECTION                            */
/* ================================================= */

.guide-section {
    background: #fff;
    overflow: hidden;
}

/* ---- Layout ---- */
.guide-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* ---- Left: Content ---- */
.guide-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.guide-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-heading, #0f172a);
    margin-bottom: 1.25rem;
}

.guide-divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.guide-text {
    font-size: 0.97rem;
    line-height: 1.85;
    color: var(--color-text-muted, #64748b);
    margin-bottom: 1.25rem;
}

.guide-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
}

.guide-cta:hover {
    background: var(--color-secondary, #0369a1);
    transform: translateX(3px);
    color: #fff;
}

/* ---- Right: Visual Panel ---- */
.guide-visual {
    position: relative;
    background: linear-gradient(145deg, var(--color-primary) 0%, #1e40af 100%);
    border-radius: 2rem;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}

.guide-stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.75rem 0;
}

.guide-stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
}

.guide-stat-plus {
    font-size: 2rem;
    color: var(--color-accent, #38bdf8);
    vertical-align: super;
}

.guide-stat-label {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.guide-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

/* Decorative background text */
.guide-visual-bg-text {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.04);
    letter-spacing: -0.05em;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

/* ---- RTL ---- */
html[dir="rtl"] .guide-wrapper {
    direction: rtl;
}

html[dir="rtl"] .guide-divider {
    background: linear-gradient(270deg, var(--color-secondary), var(--color-accent));
}

html[dir="rtl"] .guide-cta {
    flex-direction: row-reverse;
}

html[dir="rtl"] .guide-cta:hover {
    transform: translateX(-3px);
}

html[dir="rtl"] .guide-visual-bg-text {
    right: auto;
    left: -1rem;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .guide-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .guide-visual {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 2rem;
        gap: 0;
        justify-content: space-around;
    }

    .guide-stat-item {
        padding: 1rem;
        align-items: center;
        text-align: center;
        flex: 1;
        min-width: 120px;
    }

    .guide-separator {
        display: none;
    }

    .guide-visual-bg-text {
        display: none;
    }
}

/* ================================================= */
/* 📰 NEWS & ARTICLES SECTION                        */
/* ================================================= */
.news-section {
    background-color: var(--color-bg-surface, #F7F9FB);
    /* یک بک‌گراند ملایم برای تفکیک بخش */
}

.news-card {
    background-color: #ffffff;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform var(--transition-base, 0.3s ease), box-shadow var(--transition-base, 0.3s ease);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.news-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.news-card:hover .news-img {
    transform: scale(1.08);
    /* زوم ملایم و شیک هنگام هاور */
}

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    /* پیش‌فرض برای LTR (انگلیسی) */
    padding: 6px 18px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    /* افکت شیشه‌ای مدرن */
}

/* اصلاح جایگاه Badge در حالت عربی (RTL) */
html[lang="ar"] .news-badge {
    left: auto;
    right: 15px;
}

.news-body {
    padding: 1.8rem;
}

.news-title a {
    color: var(--color-text-main, #1A2332);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.4;
    transition: color var(--transition-base, 0.3s ease);
}

.news-title a:hover {
    color: var(--color-secondary, #2B9DA3);
}

.news-desc {
    color: var(--color-text-muted, #6B7280);
    font-size: 0.95rem;
    line-height: 1.7;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-secondary, #2B9DA3);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: gap var(--transition-base, 0.3s), color var(--transition-base, 0.3s);
}

.news-read-more .read-more-icon {
    transition: transform var(--transition-base, 0.3s);
}

.news-read-more:hover {
    color: var(--color-primary, #0A3D62);
    gap: 12px;
    /* انیمیشن فاصله گرفتن فلش در هاور */
}

/*
  چرخش فلش دکمه "ادامه مطلب" در حالت عربی (RTL)
  چون فلش در انگلیسی به راست است، در عربی باید به چپ اشاره کند.
*/
html[lang="ar"] .news-read-more .read-more-icon {
    transform: scaleX(-1);
}


/* ================================================= */
/* 📞 CONTACT & MAP SECTION (LUXURY STYLE)         */
/* ================================================= */

.contact-section {
    background-color: #f8fafc;
    overflow: hidden;
    position: relative;
}

/* 🎇 1. Decorative Blurred Shapes */
.contact-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
    animation: floatShape 12s infinite alternate ease-in-out;
    pointer-events: none;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background-color: var(--color-primary);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background-color: var(--color-secondary);
    bottom: -50px;
    right: -50px;
    animation-delay: -6s;
}

/* 🎇 2. Floating Particles */
.particle {
    position: absolute;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.15;
    animation: floatParticle 15s infinite ease-in-out;
    pointer-events: none;
    z-index: 0;
}

.p-1 {
    width: 12px;
    height: 12px;
    top: 15%;
    left: 15%;
    animation-duration: 10s;
}

.p-2 {
    width: 8px;
    height: 8px;
    top: 60%;
    right: 10%;
    animation-duration: 14s;
    animation-delay: -3s;
}

.p-3 {
    width: 16px;
    height: 16px;
    bottom: 15%;
    left: 45%;
    animation-duration: 18s;
    animation-delay: -7s;
}

@keyframes floatParticle {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -40px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes floatShape {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 30px) scale(1.05);
    }
}

/* --- Contact Info Items (Left) --- */
.contact-item {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.contact-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 86, 179, 0.08);
    border-color: rgba(0, 86, 179, 0.1);
}

.contact-icon-box {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(0, 86, 179, 0.05);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    flex-shrink: 0;
}

.contact-item:hover .contact-icon-box {
    background: var(--color-primary);
    color: #ffffff;
    transform: scale(1.1) rotate(10deg);
}

/* --- 🗺️ Luxury Map Box (Right) --- */
.lux-map-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 1);
    transition: all 0.4s ease;
}

.lux-map-card:hover {
    box-shadow: 0 25px 50px rgba(0, 86, 179, 0.12);
}

.map-img-wrapper {
    height: 400px;
    /* ثابت نگه داشتن ارتفاع عکس مپ */
}

.map-image {
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lux-map-card:hover .map-image {
    transform: scale(1.08);
    /* زوم شدن عکس مپ روی هاور */
}

/* Hover Overlay & Button */
.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 86, 179, 0.3);
    /* هاله آبی ملایم */
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: all 0.4s ease;
}

.lux-map-card:hover .map-overlay {
    opacity: 1;
}

.lux-map-btn {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 50px;
    padding: 12px 28px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.lux-map-card:hover .lux-map-btn {
    transform: translateY(0);
    opacity: 1;
}

.lux-map-btn:hover {
    background-color: var(--color-primary);
    color: #fff !important;
}

.lux-map-btn:hover span,
.lux-map-btn:hover svg {
    color: #fff !important;
    stroke: #fff !important;
}

/* ================================================= */
/* 🌐 RTL SUPPORT FOR CONTACT SECTION              */
/* ================================================= */
html[dir="rtl"] .contact-text.ms-4 {
    margin-right: 1.5rem !important;
    margin-left: 0 !important;
}


/* ================================================= */
/* 🌟 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;
}