:root {
    --medical-primary: #2563eb;
    --medical-secondary: #8b5cf6;
    --medical-accent: #06b6d4;
    --medical-success: #10b981;
    --medical-warning: #f59e0b;
    --medical-danger: #ef4444;
    --medical-dark: #0f172a;
    --medical-light: #f8fafc;
    --medical-glass: rgba(255, 255, 255, 0.08);
    --medical-glass-border: rgba(255, 255, 255, 0.12);
    --medical-glow: 0 0 20px rgba(37, 99, 235, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.medical-theme {
    font-family: 'Vazirmatn', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    overflow-x: hidden;
    line-height: 1.7;
}

/* Medical Background Animations */
.medical-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.heartbeat-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--medical-primary), transparent);
    animation: heartbeat 2s ease-in-out infinite;
}

.pulse-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pulse-dots::before,
.pulse-dots::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--medical-accent);
    border-radius: 50%;
    animation: pulseDot 3s ease-in-out infinite;
}

.pulse-dots::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.pulse-dots::after {
    top: 70%;
    left: 85%;
    animation-delay: 1.5s;
}

.dna-helix {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--medical-secondary), transparent);
    animation: dnaRotate 20s linear infinite;
}

.dna-helix::before,
.dna-helix::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--medical-primary);
    border-radius: 50%;
    animation: dnaNode 2s ease-in-out infinite;
}

.dna-helix::before {
    top: 30%;
    animation-delay: 0s;
}

.dna-helix::after {
    top: 60%;
    animation-delay: 1s;
}

.ecg-wave {
    position: absolute;
    bottom: 20%;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,60 C200,10 400,110 600,60 C800,10 1000,110 1200,60" fill="none" stroke="rgba(37,99,235,0.1)" stroke-width="2"/></svg>');
    animation: ecgMove 4s linear infinite;
}

/* Preloader */
#medical-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--medical-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.medical-symbol {
    text-align: center;
    margin-bottom: 2rem;
}

.heart-beat {
    font-size: 4rem;
    color: var(--medical-primary);
    margin-bottom: 1.5rem;
    animation: heartBeat 1.5s ease-in-out infinite;
}

.pulse-loader {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.pulse-bar {
    width: 4px;
    height: 20px;
    background: var(--medical-accent);
    animation: pulseBar 1.4s ease-in-out infinite;
}

.pulse-bar:nth-child(2) { animation-delay: 0.2s; }
.pulse-bar:nth-child(3) { animation-delay: 0.4s; }

.preloader-text {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--medical-primary), var(--medical-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preloader-subtext {
    color: #94a3b8;
    font-size: 1rem;
}

/* Navigation */
.navbar-medical {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--medical-glass-border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-medical.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.medical-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--medical-primary), var(--medical-secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.brand-text {
    color: white;
}

.brand-text strong {
    background: linear-gradient(135deg, var(--medical-primary), var(--medical-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.medical-link {
    color: #cbd5e1 !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.medical-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.2), transparent);
    transition: left 0.5s ease;
}

.medical-link:hover {
    color: white !important;
    background: var(--medical-glass);
    transform: translateY(-2px);
}

.medical-link:hover::before {
    left: 100%;
}

.medical-link i {
    margin-left: 0.5rem;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--medical-primary), var(--medical-secondary));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--medical-glow);
    color: white;
}

.nav-btn:hover::before {
    left: 100%;
}

.btn-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: btnPulse 2s ease-out infinite;
}

.medical-toggler {
    border: none;
    background: transparent;
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
}

.toggler-icon {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Animations */
@keyframes heartbeat {
    0%, 100% { opacity: 0.3; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.2); }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes pulseBar {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(2); }
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 1; }
}

@keyframes dnaRotate {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

@keyframes dnaNode {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.5); }
}

@keyframes ecgMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes btnPulse {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 100px; height: 100px; opacity: 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .medical-brand {
        font-size: 1.2rem;
    }

    .brand-icon {
        width: 35px;
        height: 35px;
    }

    .nav-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .heart-beat {
        font-size: 3rem;
    }

    .preloader-text {
        font-size: 1.5rem;
    }
}
/* حل مشکل نوبار و اسکرول */
body.medical-theme {
    padding-top: 80px; /* ارتفاع نوبار */
    min-height: 100vh;
}

/* مطمئن شویم محتوا زیر نوبار نرود */
main {
    min-height: calc(100vh - 80px);
    position: relative;
}

/* برای صفحات دشبورد */
.doctor-complete-profile-wrapper,
.doctor-education-wrapper,
.doctor-experience-wrapper,
.doctor-photo-upload-wrapper {
    min-height: calc(100vh - 80px);
    padding: 20px 0;
}

/* مطمئن شویم فوترها در پایین بمانند */
.completion-section {
    margin-top: auto;
}

/* حل مشکل اسکرول عمودی */
html {
    scroll-padding-top: 80px; /* برای anchor links */
}

/* مطمئن شویم محتوای کافی وجود دارد */
.container-fluid {
    min-height: 100%;
}
/* استایل‌های dropdown نوبار */
.medical-dropdown {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    padding: 8px !important;
    margin-top: 10px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.medical-dropdown .dropdown-item {
    color: #e2e8f0 !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    margin: 2px 0 !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
}

.medical-dropdown .dropdown-item:hover {
    background: rgba(37, 99, 235, 0.2) !important;
    color: white !important;
    transform: translateX(5px) !important;
}

.medical-dropdown .dropdown-item i {
    width: 20px !important;
    margin-left: 8px !important;
    color: var(--medical-accent) !important;
}

.medical-dropdown .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1) !important;
    margin: 8px 0 !important;
}

/* بهبود responsive نوبار */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(15, 23, 42, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        border-radius: 0 0 15px 15px !important;
        padding: 15px !important;
        margin-top: 10px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .medical-dropdown {
        background: rgba(255, 255, 255, 0.05) !important;
        margin: 10px 0 !important;
    }
}

/* انیمیشن dropdown */
.dropdown-menu {
    animation: dropdownFade 0.3s ease !important;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* استایل‌های بخش کاربر سمت چپ */
.navbar-nav.ms-0 {
    margin-right: 0 !important;
    margin-left: auto !important;
}

/* بهبود فاصله‌ها در بخش کاربر */
.navbar-nav.ms-0 .nav-item {
    margin-left: 8px !important;
}

.navbar-nav.ms-0 .nav-link {
    padding: 8px 12px !important;
}

/* استایل‌های dropdown سمت چپ */
.medical-dropdown {
    background: rgba(15, 23, 42, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    padding: 8px !important;
    margin-top: 10px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
    left: 0 !important;
    right: auto !important;
}

.medical-dropdown .dropdown-item {
    color: #e2e8f0 !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    margin: 2px 0 !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    text-align: right !important;
}

.medical-dropdown .dropdown-item:hover {
    background: rgba(37, 99, 235, 0.3) !important;
    color: white !important;
    transform: translateX(-5px) !important;
}

.medical-dropdown .dropdown-item i {
    width: 20px !important;
    margin-left: 10px !important;
    color: var(--medical-accent) !important;
}

.medical-dropdown .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.15) !important;
    margin: 8px 0 !important;
}

/* بهبود responsive برای بخش کاربر */
@media (max-width: 991px) {
    .navbar-nav.ms-0 {
        margin-left: 0 !important;
        margin-top: 15px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding-top: 15px !important;
    }

    .navbar-nav.ms-0 .nav-item {
        margin-left: 0 !important;
        margin-bottom: 8px !important;
    }

    .medical-dropdown {
        left: auto !important;
        right: 0 !important;
    }
}

/* استایل‌های خاص برای دکمه ثبت‌نام در بخش کاربر */
.navbar-nav.ms-0 .nav-btn {
    margin-right: 5px !important;
}

/* انیمیشن‌های بخش کاربر */
.navbar-nav.ms-0 .nav-link,
.navbar-nav.ms-0 .nav-btn {
    transition: all 0.3s ease !important;
}

.navbar-nav.ms-0 .nav-link:hover,
.navbar-nav.ms-0 .nav-btn:hover {
    transform: translateY(-2px) !important;
}

/* استایل برای حالت فعال در بخش کاربر */
.navbar-nav.ms-0 .nav-item.active .nav-link {
    background: rgba(37, 99, 235, 0.2) !important;
    border-radius: 8px !important;
}
/* استایل‌های کنترل سایز لوگو در نوبار - بزرگ */
.brand-logo {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.navbar-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* استایل‌های کنترل سایز لوگو در لودینگ - خیلی بزرگ */
.logo-loader {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* بهبود responsive */
@media (max-width: 768px) {
    .brand-logo {
        width: 60px;
        height: 60px;
    }

    .logo-loader {
        width: 150px;
        height: 150px;
    }
}
/* کاهش پدینگ نوبار */
.navbar-medical {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--medical-glass-border);
    padding: 0.1rem 0; /* کاهش از 1rem به 0.5rem */
    transition: all 0.3s ease;
}

/* استایل‌های کنترل سایز لوگو در نوبار - کمی بزرگتر */
.brand-logo {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.navbar-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* استایل‌های کنترل سایز لوگو در لودینگ - بزرگ و فاصله کم */
.logo-loader {
    width: 180px;
    height: 180px;
    margin: 0 auto 0.5rem auto; /* کاهش فاصله از 1.5rem به 0.5rem */
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* کاهش فاصله متن‌ها در لودینگ */
.preloader-text {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem; /* کاهش فاصله */
    background: linear-gradient(135deg, var(--medical-primary), var(--medical-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preloader-subtext {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 0; /* حذف فاصله اضافی */
}

/* بهبود responsive */
@media (max-width: 768px) {
    .navbar-medical {
        padding: 0.2rem 0; /* کاهش بیشتر در موبایل */
    }

    .brand-logo {
        width: 65px;
        height: 65px;
    }

    .logo-loader {
        width: 160px;
        height: 160px;
        margin: 0 auto 0.3rem auto; /* فاصله کمتر در موبایل */
    }

    .preloader-text {
        font-size: 1.8rem;
        margin-bottom: 0.2rem;
    }
}
/* سایزهای بزرگتر برای لودینگ */
.logo-loader {
    width: min(50vw, 400px);  /* حداکثر 50% عرض viewport یا 400px */
    height: min(50vh, 400px); /* حداکثر 50% ارتفاع viewport یا 400px */
    margin: 0 auto 0.3rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 768px) {
    .logo-loader {
        width: min(60vw, 250px);  /* در موبایل 60% عرض */
        height: min(60vw, 250px); /* در موبایل مربع باشه */
        margin: 0 auto 0.2rem auto;
    }
}
/* نوبار کل عرض */
.navbar-medical .container {
    max-width: 100% !important;
    padding: 0 1rem;
}

/* استایل‌های لودینگ با انیمیشن بزرگ و چسبیده */
.logo-loader {
    width: min(40vw, 350px);
    height: min(40vw, 350px);
    margin: 0 auto 0.1rem auto; /* فاصله خیلی کم */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.preloader-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* انیمیشن لودینگ بزرگ و چسبیده به لوگو */
.pulse-loader {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 0.5rem; /* فاصله کم از لوگو */
}

.pulse-bar {
    width: 8px; /* بزرگتر */
    height: 40px; /* بلندتر */
    background: var(--medical-accent);
    animation: pulseBar 1.4s ease-in-out infinite;
    border-radius: 4px;
}

.pulse-bar:nth-child(2) { animation-delay: 0.2s; }
.pulse-bar:nth-child(3) { animation-delay: 0.4s; }

/* انیمیشن بزرگتر */
@keyframes pulseBar {
    0%, 100% {
        transform: scaleY(1);
        height: 40px;
    }
    50% {
        transform: scaleY(2);
        height: 60px;
    }
}

/* متن‌های نزدیکتر */
.preloader-text {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, var(--medical-primary), var(--medical-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preloader-subtext {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .logo-loader {
        width: min(50vw, 200px);
        height: min(50vw, 200px);
        margin: 0 auto 0.05rem auto;
    }

    .pulse-loader {
        gap: 0.6rem;
        margin-top: 0.3rem;
    }

    .pulse-bar {
        width: 6px;
        height: 35px;
    }

    @keyframes pulseBar {
        0%, 100% {
            transform: scaleY(1);
            height: 35px;
        }
        50% {
            transform: scaleY(1.8);
            height: 50px;
        }
    }

    .preloader-text {
        font-size: 1.8rem;
        margin-top: 0.3rem;
        margin-bottom: 0.1rem;
    }
}


/*!* پیش‌لودر با رنگ‌های جدید *!*/
/*#medical-preloader {*/
/*    position: fixed;*/
/*    top: 0;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    background: #bfe8f7 !important; !* رنگ بک‌گراند جدید *!*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    z-index: 9999;*/
/*    transition: opacity 0.5s ease;*/
/*}*/

/*!* لوگو در لودینگ *!*/
/*.logo-loader {*/
/*    width: min(40vw, 350px);*/
/*    height: min(40vw, 350px);*/
/*    margin: 0 auto 0.1rem auto;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    position: relative;*/
/*}*/

/*.preloader-logo {*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    object-fit: contain;*/
/*    object-position: center;*/
/*    !* حذف فیلتر سفید کننده چون بک‌گراند روشنه *!*/
/*}*/

/*!* انیمیشن لودینگ با رنگ جدید *!*/
/*.pulse-loader {*/
/*    display: flex;*/
/*    gap: 0.8rem;*/
/*    justify-content: center;*/
/*    margin-top: 0.5rem;*/
/*}*/

/*.pulse-bar {*/
/*    width: 8px;*/
/*    height: 40px;*/
/*    background: #28C7D5 !important; !* رنگ جدید لودینگ *!*/
/*    animation: pulseBar 1.4s ease-in-out infinite;*/
/*    border-radius: 4px;*/
/*}*/

/*.pulse-bar:nth-child(2) { animation-delay: 0.2s; }*/
/*.pulse-bar:nth-child(3) { animation-delay: 0.4s; }*/

/*@keyframes pulseBar {*/
/*    0%, 100% {*/
/*        transform: scaleY(1);*/
/*        height: 40px;*/
/*    }*/
/*    50% {*/
/*        transform: scaleY(2);*/
/*        height: 60px;*/
/*    }*/
/*}*/

/*!* متن‌ها با رنگ‌های مناسب برای بک‌گراند روشن *!*/
/*.preloader-text {*/
/*    font-size: 2rem;*/
/*    font-weight: 700;*/
/*    margin-bottom: 0.2rem;*/
/*    margin-top: 0.5rem;*/
/*    background: linear-gradient(135deg, #2563eb, #28C7D5) !important; !* تطبیق با رنگ جدید *!*/
/*    -webkit-background-clip: text;*/
/*    -webkit-text-fill-color: transparent;*/
/*    background-clip: text;*/
/*}*/

/*.preloader-subtext {*/
/*    color: #475569 !important; !* رنگ تیره‌تر برای خوانایی روی بک‌گراند روشن *!*/
/*    font-size: 1rem;*/
/*    margin-bottom: 0;*/
/*}*/

/*!* حلقه پالس دور لوگو با رنگ جدید *!*/
/*.logo-loader::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    width: 110%;*/
/*    height: 110%;*/
/*    border: 3px solid #28C7D5;*/
/*    border-radius: 50%;*/
/*    animation: logoPulse 2s ease-out infinite;*/
/*    z-index: -1;*/
/*}*/

/*@keyframes logoPulse {*/
/*    0% {*/
/*        transform: scale(0.8);*/
/*        opacity: 1;*/
/*    }*/
/*    100% {*/
/*        transform: scale(1.3);*/
/*        opacity: 0;*/
/*    }*/
/*}*/

/*@media (max-width: 768px) {*/
/*    .logo-loader {*/
/*        width: min(50vw, 200px);*/
/*        height: min(50vw, 200px);*/
/*        margin: 0 auto 0.05rem auto;*/
/*    }*/

/*    .pulse-loader {*/
/*        gap: 0.6rem;*/
/*        margin-top: 0.3rem;*/
/*    }*/

/*    .pulse-bar {*/
/*        width: 6px;*/
/*        height: 35px;*/
/*        background: #28C7D5 !important;*/
/*    }*/

/*    @keyframes pulseBar {*/
/*        0%, 100% {*/
/*            transform: scaleY(1);*/
/*            height: 35px;*/
/*        }*/
/*        50% {*/
/*            transform: scaleY(1.8);*/
/*            height: 50px;*/
/*        }*/
/*    }*/

/*    .preloader-text {*/
/*        font-size: 1.8rem;*/
/*        margin-top: 0.3rem;*/
/*        margin-bottom: 0.1rem;*/
/*    }*/

/*    .preloader-subtext {*/
/*        color: #475569 !important;*/
/*    }*/
/*}*/

/*loding background image :#008894*/
/* پیش‌لودر با رنگ‌های جدید */
#medical-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #008894 !important; /* تغییر بک‌گراند به #008894 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

/* لوگو در لودینگ */
.logo-loader {
    width: min(40vw, 350px);
    height: min(40vw, 350px);
    margin: 0 auto 0.1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.preloader-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    /* حذف فیلتر سفید کننده چون بک‌گراند تیره‌تر شده */
}

/* انیمیشن لودینگ با رنگ جدید */
.pulse-loader {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.pulse-bar {
    width: 8px;
    height: 40px;
    background: #bfe8f7 !important; /* تغییر رنگ انیمیشن به #bfe8f7 (آبی روشن) */
    animation: pulseBar 1.4s ease-in-out infinite;
    border-radius: 4px;
}

.pulse-bar:nth-child(2) { animation-delay: 0.2s; }
.pulse-bar:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulseBar {
    0%, 100% {
        transform: scaleY(1);
        height: 40px;
    }
    50% {
        transform: scaleY(2);
        height: 60px;
    }
}

/* متن‌ها با رنگ‌های مناسب برای بک‌گراند جدید */
.preloader-text {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #bfe8f7, #ffffff) !important; /* تغییر گرادینت به رنگ‌های روشن */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preloader-subtext {
    color: #e2e8f0 !important; /* تغییر به رنگ روشن‌تر برای کنتراست بهتر */
    font-size: 1rem;
    margin-bottom: 0;
}

/* حلقه پالس دور لوگو با رنگ جدید */
.logo-loader::before {
    content: '';
    position: absolute;
    width: 110%;
    height: 110%;
    border: 3px solid #bfe8f7; /* تغییر رنگ حلقه به #bfe8f7 */
    border-radius: 50%;
    animation: logoPulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes logoPulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .logo-loader {
        width: min(50vw, 200px);
        height: min(50vw, 200px);
        margin: 0 auto 0.05rem auto;
    }

    .pulse-loader {
        gap: 0.6rem;
        margin-top: 0.3rem;
    }

    .pulse-bar {
        width: 6px;
        height: 35px;
        background: #bfe8f7 !important; /* تغییر رنگ در موبایل */
    }

    @keyframes pulseBar {
        0%, 100% {
            transform: scaleY(1);
            height: 35px;
        }
        50% {
            transform: scaleY(1.8);
            height: 50px;
        }
    }

    .preloader-text {
        font-size: 1.8rem;
        margin-top: 0.3rem;
        margin-bottom: 0.1rem;
    }

    .preloader-subtext {
        color: #e2e8f0 !important; /* تغییر رنگ در موبایل */
    }
}
/* استایل‌های جدید برای منوی ساده‌شده */

/* استایل آیتم فعال */
.nav-link.medical-link.active {
    color: var(--medical-primary) !important;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 8px;
    position: relative;
}

.nav-link.medical-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--medical-primary), var(--medical-secondary));
    border-radius: 2px;
    animation: navPulse 2s ease-in-out infinite;
}

/* انیمیشن برای نشانگر فعال */
@keyframes navPulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1);
    }
    50% {
        opacity: 0.7;
        transform: translateX(-50%) scaleX(0.8);
    }
}

/* هایلایت روی هاور */
.nav-link.medical-link:hover:not(.active) {
    color: var(--medical-primary) !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .nav-link.medical-link.active::after {
        bottom: -5px;
        width: 20px;
    }

    .navbar-nav.mx-auto {
        text-align: center;
        margin: 1rem 0;
    }

    .nav-link.medical-link {
        padding: 0.8rem 1rem;
        margin: 0.2rem 0;
    }
}

/* بهبود ظاهر دکمه ثبت‌نام */
.nav-btn.medical-cta {
    position: relative;
    overflow: hidden;
}

.nav-btn.medical-cta .btn-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, transparent 70%);
    animation: ctaPulse 3s ease-out infinite;
    border-radius: 8px;
}

@keyframes ctaPulse {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.3);
    }
}

/*انیمیشن های جدید لندینگ*/
/* Container اصلی دایره‌ها */
.concentric-circles {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.main-circle {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* هسته مرکزی با انیمیشن پالس */
.circle-core {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--medical-primary), var(--medical-accent));
    border-radius: 50%;
    position: relative;
    z-index: 20;
    animation: corePulse 2s ease-in-out infinite;
    box-shadow:
        0 0 30px rgba(37, 99, 235, 0.8),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* حلقه‌های متحدالمرکز با انیمیشن‌های مختلف */
.concentric-ring {
    position: absolute;
    border-style: solid;
    border-radius: 50%;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.ring-1 {
    width: 100px;
    height: 100px;
    border-width: 1.5px;
    border-color: rgba(37, 99, 235, 0.8);
    animation: ringPulse1 4s ease-in-out infinite,
               ringRotate1 15s linear infinite;
    box-shadow:
        0 0 20px rgba(37, 99, 235, 0.4),
        inset 0 0 10px rgba(37, 99, 235, 0.2);
}

.ring-2 {
    width: 160px;
    height: 160px;
    border-width: 2px;
    border-color: rgba(6, 182, 212, 0.7);
    animation: ringPulse2 5s ease-in-out infinite,
               ringRotate2 20s linear infinite reverse;
    box-shadow:
        0 0 25px rgba(6, 182, 212, 0.3),
        inset 0 0 15px rgba(6, 182, 212, 0.15);
}

.ring-3 {
    width: 220px;
    height: 220px;
    border-width: 1.5px;
    border-color: rgba(139, 92, 246, 0.6);
    animation: ringPulse3 6s ease-in-out infinite,
               ringRotate3 25s linear infinite;
    box-shadow:
        0 0 30px rgba(139, 92, 246, 0.25),
        inset 0 0 20px rgba(139, 92, 246, 0.1);
}

.ring-4 {
    width: 280px;
    height: 280px;
    border-width: 2px;
    border-color: rgba(16, 185, 129, 0.5);
    animation: ringPulse4 7s ease-in-out infinite,
               ringRotate4 30s linear infinite reverse;
    box-shadow:
        0 0 35px rgba(16, 185, 129, 0.2),
        inset 0 0 25px rgba(16, 185, 129, 0.08);
}

/* المان‌های شناور حرفه‌ای */
.floating-medical-icon {
    position: absolute;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 15;
}

.floating-medical-icon:hover {
    transform: scale(1.25) rotate(10deg);
    box-shadow:
        0 15px 35px rgba(37, 99, 235, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.floating-medical-icon i {
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--medical-primary), var(--medical-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.floating-medical-icon:hover i {
    transform: scale(1.2);
}

/* موقعیت‌های استراتژیک برای آیکون‌ها */
.icon-1 {
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    animation: floatIcon1 5s ease-in-out infinite;
}

.icon-2 {
    top: 30%;
    right: 20%;
    animation: floatIcon2 6s ease-in-out infinite;
}

.icon-3 {
    bottom: 30%;
    right: 20%;
    animation: floatIcon3 7s ease-in-out infinite;
}

.icon-4 {
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    animation: floatIcon4 5.5s ease-in-out infinite;
}

.icon-5 {
    bottom: 30%;
    left: 20%;
    animation: floatIcon5 6.5s ease-in-out infinite;
}

.icon-6 {
    top: 30%;
    left: 20%;
    animation: floatIcon6 7.5s ease-in-out infinite;
}

/* پرتوهای محدود و شیک */
.circle-rays {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotateRays 40s linear infinite;
    opacity: 0.6;
}

.circle-ray {
    position: absolute;
    width: 1.5px;
    height: 100px;
    background: linear-gradient(to bottom,
        transparent 0%,
        var(--medical-primary) 20%,
        var(--medical-accent) 50%,
        var(--medical-primary) 80%,
        transparent 100%);
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
    filter: blur(0.5px);
}

/* فقط 6 پرتو برای ظاهر شیک‌تر */
.circle-ray:nth-child(1) { transform: rotate(0deg); }
.circle-ray:nth-child(2) { transform: rotate(60deg); }
.circle-ray:nth-child(3) { transform: rotate(120deg); }
.circle-ray:nth-child(4) { transform: rotate(180deg); }
.circle-ray:nth-child(5) { transform: rotate(240deg); }
.circle-ray:nth-child(6) { transform: rotate(300deg); }

/* انیمیشن‌های اصلی */
@keyframes corePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 0 30px rgba(37, 99, 235, 0.8),
            inset 0 2px 0 rgba(255, 255, 255, 0.3);
    }
    25% {
        transform: scale(1.08);
        box-shadow:
            0 0 40px rgba(37, 99, 235, 0.9),
            inset 0 2px 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.15);
        box-shadow:
            0 0 50px rgba(37, 99, 235, 1),
            inset 0 2px 0 rgba(255, 255, 255, 0.5);
    }
    75% {
        transform: scale(1.08);
        box-shadow:
            0 0 40px rgba(37, 99, 235, 0.9),
            inset 0 2px 0 rgba(255, 255, 255, 0.4);
    }
}

/* انیمیشن‌های پالس برای حلقه‌ها */
@keyframes ringPulse1 {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes ringPulse2 {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.9;
    }
}

@keyframes ringPulse3 {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.06);
        opacity: 0.8;
    }
}

@keyframes ringPulse4 {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.04);
        opacity: 0.7;
    }
}

/* انیمیشن‌های چرخش برای حلقه‌ها */
@keyframes ringRotate1 {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes ringRotate2 {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(-360deg) scale(1); }
}

@keyframes ringRotate3 {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes ringRotate4 {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(-360deg) scale(1); }
}

/* انیمیشن‌های شناورسازی برای آیکون‌ها */
@keyframes floatIcon1 {
    0%, 100% {
        transform: translateX(-50%) translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateX(-50%) translateY(-12px) rotate(3deg);
    }
    50% {
        transform: translateX(-50%) translateY(-20px) rotate(0deg);
    }
    75% {
        transform: translateX(-50%) translateY(-12px) rotate(-3deg);
    }
}

@keyframes floatIcon2 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(4deg);
    }
    50% {
        transform: translateY(-25px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(-4deg);
    }
}

@keyframes floatIcon3 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(12px) rotate(-3deg);
    }
    50% {
        transform: translateY(20px) rotate(0deg);
    }
    75% {
        transform: translateY(12px) rotate(3deg);
    }
}

@keyframes floatIcon4 {
    0%, 100% {
        transform: translateX(-50%) translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateX(-50%) translateY(10px) rotate(-2deg);
    }
    50% {
        transform: translateX(-50%) translateY(18px) rotate(0deg);
    }
    75% {
        transform: translateX(-50%) translateY(10px) rotate(2deg);
    }
}

@keyframes floatIcon5 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(14px) rotate(3deg);
    }
    50% {
        transform: translateY(22px) rotate(0deg);
    }
    75% {
        transform: translateY(14px) rotate(-3deg);
    }
}

@keyframes floatIcon6 {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-16px) rotate(-4deg);
    }
    50% {
        transform: translateY(-26px) rotate(0deg);
    }
    75% {
        transform: translateY(-16px) rotate(4deg);
    }
}

@keyframes rotateRays {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* افکت‌های ویژه */
.concentric-circles::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at center,
        rgba(37, 99, 235, 0.1) 0%,
        rgba(6, 182, 212, 0.05) 30%,
        transparent 70%);
    border-radius: 50%;
    animation: glowPulse 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .concentric-circles {
        width: 280px;
        height: 280px;
    }

    .ring-1 { width: 80px; height: 80px; }
    .ring-2 { width: 130px; height: 130px; }
    .ring-3 { width: 180px; height: 180px; }
    .ring-4 { width: 230px; height: 230px; }

    .floating-medical-icon {
        width: 40px;
        height: 40px;
    }

    .floating-medical-icon i {
        font-size: 1.1rem;
    }
}

/* بهینه‌سازی عملکرد */
.concentric-circles * {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .concentric-circles * {
        animation: none !important;
    }
}
/*footer*/
/* ==================== */
/* FOOTER STYLES */
/* ==================== */
.medical-footer {
    background: linear-gradient(135deg, #0a1429 0%, #0f172a 100%);
    position: relative;
    margin-top: auto;
    border-top: 1px solid var(--medical-glass-border);
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 45px;
}

.footer-wave .shape-fill {
    fill: rgba(37, 99, 235, 0.15);
}

.footer-content {
    padding: 3rem 0 1.5rem;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* بخش لوگو و برند */
.footer-brand-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo-wrapper {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.footer-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-brand-info {
    text-align: right;
}

.footer-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.brand-accent {
    background: linear-gradient(135deg, var(--medical-primary), var(--medical-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: #cbd5e1;
    line-height: 1.8;
    font-size: 1rem;
    max-width: 250px;
}

/* بخش لینک‌ها */
.footer-links-section {
    display: flex;
    justify-content: center;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-link-group {
    text-align: right;
}

.footer-group-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-group-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--medical-primary), var(--medical-accent));
    border-radius: 2px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 0.8rem;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    position: relative;
}

.footer-link i {
    font-size: 0.9rem;
    color: var(--medical-accent);
    width: 16px;
}

.footer-link::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-right: 5px solid var(--medical-primary);
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--medical-primary);
    transform: translateX(-5px);
}

.footer-link:hover::before {
    opacity: 1;
    right: -15px;
}

/* بخش شبکه‌های اجتماعی */
.footer-social-section {
    text-align: right;
}

.social-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.social-link:hover {
    transform: translateX(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-link:hover::before {
    left: 100%;
}

.social-link.telegram:hover {
    background: rgba(0, 136, 204, 0.2);
    border-color: #0088cc;
}

.social-link.whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: #25d366;
}

.social-link i {
    font-size: 1.5rem;
    width: 24px;
}

.social-link.telegram i {
    color: #0088cc;
}

.social-link.whatsapp i {
    color: #25d366;
}

.social-text {
    font-weight: 500;
}

/* بخش پایینی */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright p {
    color: #94a3b8;
    margin: 0;
    font-size: 0.9rem;
}

.footer-made-with span {
    color: #64748b;
    font-size: 0.9rem;
}

/* انیمیشن‌های فوتر */
.medical-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    animation: footerGlow 10s ease-in-out infinite alternate;
}

@keyframes footerGlow {
    0% {
        opacity: 0.3;
    }
    100% {
        opacity: 0.6;
    }
}

/* ریسپانسیو */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-social-section {
        grid-column: 1 / -1;
        text-align: center;
    }

    .social-links {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand-section {
        align-items: center;
    }

    .footer-brand-info {
        text-align: center;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-link-group {
        text-align: center;
    }

    .footer-group-title::after {
        right: 50%;
        transform: translateX(50%);
    }

    .footer-link {
        justify-content: center;
    }

    .footer-link::before {
        display: none;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

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

@media (max-width: 480px) {
    .footer-logo-wrapper {
        width: 100px;
        height: 100px;
    }

    .footer-title {
        font-size: 1.7rem;
    }

    .footer-links-grid {
        gap: 1rem;
    }

    .social-link {
        padding: 0.8rem 1.2rem;
    }
}
/* ==================== */
/* FOOTER LOGO STYLES - شیک و بزرگ */
/* ==================== */

.footer-logo-wrapper {
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 25px;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* افکت نور پس‌زمینه */
.footer-logo-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    animation: logoRotate 8s linear infinite;
    z-index: -1;
}

.footer-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* بدون هیچ فیلتری - لوگو به صورت اصلی نمایش داده میشه */
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

/* انیمیشن‌ها برای لوگو */
.footer-logo-wrapper:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow:
        0 20px 40px rgba(37, 99, 235, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.footer-logo-wrapper:hover .footer-logo {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 20px rgba(37, 99, 235, 0.6));
}

/* حلقه پالس دور لوگو */
.footer-logo-wrapper::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(37, 99, 235, 0.3);
    border-radius: 35px;
    animation: logoPulse 3s ease-in-out infinite;
    opacity: 0;
}

.footer-logo-wrapper:hover::after {
    animation: logoPulseActive 2s ease-in-out infinite;
    opacity: 1;
}

/* انیمیشن‌های کلیدی */
@keyframes logoRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

@keyframes logoPulseActive {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

/* استایل برای موبایل */
@media (max-width: 768px) {
    .footer-logo-wrapper {
        width: 120px;
        height: 120px;
        padding: 15px;
        border-radius: 20px;
    }

    .footer-logo-wrapper:hover {
        transform: translateY(-5px) scale(1.03);
    }
}

@media (max-width: 480px) {
    .footer-logo-wrapper {
        width: 100px;
        height: 100px;
        padding: 12px;
        border-radius: 18px;
    }
}
/* =========================================
   HEADER GLASS LOGO STYLES - مستطیل کشیده
   ========================================= */

/* کانتینر لوگو در هدر */
.medical-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

/* مستطیل شیشه‌ای کشیده برای هدر */
.header-logo-wrapper {
    width: 180px; /* عرض بیشتر برای لوگوی کشیده */
    height: 60px; /* ارتفاع متوسط */
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 10px 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    margin-right: 15px;
}

/* افکت نور پس‌زمینه هدر */
.header-logo-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        ellipse at center,
        rgba(37, 99, 235, 0.2) 0%,
        rgba(6, 182, 212, 0.1) 25%,
        transparent 70%
    );
    animation: headerGlowRotate 10s linear infinite;
    z-index: -1;
}

/* لوگو در هدر */
.header-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter:
        brightness(1.1)
        contrast(1.15)
        drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

/* هاور افکت هدر */
.header-logo-wrapper:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.18);
    box-shadow:
        0 15px 40px rgba(37, 99, 235, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.header-logo-wrapper:hover .header-logo {
    transform: scale(1.05);
    filter:
        brightness(1.2)
        contrast(1.2)
        drop-shadow(0 4px 15px rgba(37, 99, 235, 0.5));
}

/* حلقه پالس دور هدر */
.header-logo-wrapper::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid rgba(37, 99, 235, 0.4);
    border-radius: 20px;
    animation: headerPulse 4s ease-in-out infinite;
    opacity: 0;
}

.header-logo-wrapper:hover::after {
    animation: headerPulseActive 2s ease-in-out infinite;
    opacity: 1;
}

@keyframes headerGlowRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes headerPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.5;
    }
}

@keyframes headerPulseActive {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

/* =========================================
   FOOTER GLASS LOGO STYLES - بزرگ و شیشه‌ای
   ========================================= */

/* کانتینر لوگو در فوتر - بزرگ‌تر */
.footer-logo-wrapper {
    width: 180px !important; /* بزرگ‌تر */
    height: 180px !important; /* بزرگ‌تر */
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(25px) !important;
    border-radius: 25px !important;
    padding: 25px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2) !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* لوگو در فوتر - بزرگ و واضح */
.footer-logo {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    filter:
        brightness(1.15)
        contrast(1.2)
        drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5)) !important;
    transition: all 0.4s ease !important;
}

/* افکت نور فوتر */
.footer-logo-wrapper::before {
    content: '' !important;
    position: absolute !important;
    top: -60% !important;
    left: -60% !important;
    width: 220% !important;
    height: 220% !important;
    background: radial-gradient(
        circle at center,
        rgba(37, 99, 235, 0.25) 0%,
        rgba(6, 182, 212, 0.15) 30%,
        transparent 70%
    ) !important;
    animation: footerGlowRotate 12s linear infinite !important;
    z-index: -1 !important;
}

@keyframes footerGlowRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* هاور افکت فوتر */
.footer-logo-wrapper:hover {
    transform: translateY(-10px) scale(1.08) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow:
        0 25px 60px rgba(37, 99, 235, 0.4),
        0 10px 30px rgba(6, 182, 212, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

.footer-logo-wrapper:hover .footer-logo {
    transform: scale(1.12) !important;
    filter:
        brightness(1.25)
        contrast(1.3)
        drop-shadow(0 8px 30px rgba(37, 99, 235, 0.7)) !important;
}

/* حلقه پالس دور فوتر */
.footer-logo-wrapper::after {
    content: '' !important;
    position: absolute !important;
    top: -15px !important;
    left: -15px !important;
    right: -15px !important;
    bottom: -15px !important;
    border: 3px solid rgba(37, 99, 235, 0.5) !important;
    border-radius: 35px !important;
    animation: footerPulse 3s ease-in-out infinite !important;
    opacity: 0.8 !important;
    z-index: -2 !important;
}

.footer-logo-wrapper:hover::after {
    animation: footerPulseActive 2s ease-in-out infinite !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
    opacity: 1 !important;
}

@keyframes footerPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

@keyframes footerPulseActive {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

/* متن برند در هدر */
.brand-text {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.brand-text strong {
    background: linear-gradient(135deg, var(--medical-primary), var(--medical-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* =========================================
   RESPONSIVE - ریسپانسیو
   ========================================= */

@media (max-width: 1200px) {
    .header-logo-wrapper {
        width: 160px;
        height: 55px;
    }

    .footer-logo-wrapper {
        width: 160px !important;
        height: 160px !important;
        padding: 20px !important;
    }
}

@media (max-width: 992px) {
    .header-logo-wrapper {
        width: 140px;
        height: 50px;
        padding: 8px 15px;
    }

    .brand-text {
        font-size: 1.2rem;
    }

    .footer-logo-wrapper {
        width: 140px !important;
        height: 140px !important;
        padding: 15px !important;
    }
}

@media (max-width: 768px) {
    .medical-brand {
        gap: 0.5rem;
    }

    .header-logo-wrapper {
        width: 120px;
        height: 45px;
        padding: 6px 12px;
        border-radius: 12px;
    }

    .brand-text {
        font-size: 1.1rem;
    }

    .footer-logo-wrapper {
        width: 120px !important;
        height: 120px !important;
        padding: 12px !important;
        border-radius: 20px !important;
    }

    .footer-logo-wrapper:hover {
        transform: translateY(-5px) scale(1.05) !important;
    }
}

@media (max-width: 576px) {
    .header-logo-wrapper {
        width: 100px;
        height: 40px;
        padding: 5px 10px;
    }

    .brand-text {
        font-size: 1rem;
    }

    .footer-logo-wrapper {
        width: 100px !important;
        height: 100px !important;
        padding: 10px !important;
        border-radius: 18px !important;
    }
}