* {
    font-family: 'Vazir', sans-serif;
    box-sizing: border-box;
}

body {
    direction: rtl;
    overflow-x: hidden;
}

/* Medical Pattern Background */
.medical-pattern {
    background: linear-gradient(135deg, #0F66C8 0%, #164e63 50%, #0F66C8 100%);
    position: relative;
}

.medical-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
radial-gradient(circle at 80% 20%, rgba(200, 168, 78, 0.1) 0%, transparent 40%),
radial-gradient(circle at 60% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 40%);
}

/* Gold Seal */
.gold-seal {
    background: linear-gradient(135deg, #d4af37 0%, #f4e4a6 25%, #c8a84e 50%, #a08030 75%, #d4af37 100%);
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
0 0 0 3px rgba(212, 175, 55, 0.3),
0 4px 20px rgba(212, 175, 55, 0.4),
inset 0 2px 4px rgba(255, 255, 255, 0.3);
    position: relative;
    animation: sealGlow 3s ease-in-out infinite;
}

@keyframes sealGlow {
    0%, 100% { box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3), 0 4px 20px rgba(212, 175, 55, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.2), 0 4px 30px rgba(212, 175, 55, 0.6); }
}

.gold-seal::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

/* Navigation */
.nav-pill {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: #c8a84e;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #f4e4a6;
}

/* ===== Hamburger Menu Styles ===== */
.hamburger-btn {
    display: none;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.hamburger-btn:active {
    transform: scale(0.95);
}

.hamburger-icon {
    width: 22px;
    height: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    height: 2.5px;
    width: 100%;
    background: white;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Hamburger to X animation */
.hamburger-btn.active .hamburger-icon span:nth-child(1) {
    transform: translateY(6.75px) rotate(45deg);
}

.hamburger-btn.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.active .hamburger-icon span:nth-child(3) {
    transform: translateY(-6.75px) rotate(-45deg);
}

@media (max-width: 767px) {
    .hamburger-btn {
display: flex;
    }
}

/* ===== Sidebar Overlay ===== */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== Sidebar ===== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -85%;
    width: 85%;
    max-width: 340px;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #0F66C8 0%, #164e63 100%);
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    padding-bottom: 100px; /* فاصله از bottom nav */
}

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

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
}

.sidebar-close-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-close-btn:hover {
    background: rgba(239, 68, 68, 0.8);
    transform: rotate(90deg);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c8a84e, #d4af37);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(200, 168, 78, 0.4);
}

.sidebar-menu {
    padding: 16px 12px;
}

.sidebar-menu-title {
    color: #c8a84e;
    font-size: 11px;
    font-weight: bold;
    padding: 12px 16px 8px;
    letter-spacing: 0.5px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    margin-bottom: 4px;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.25s ease;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: rgba(200, 168, 78, 0.15);
    transition: width 0.3s ease;
    border-radius: 12px;
}

.sidebar-link:hover::before,
.sidebar-link.active::before {
    width: 100%;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: #f4e4a6;
}

.sidebar-link.active {
    background: rgba(200, 168, 78, 0.2);
    border-right: 3px solid #c8a84e;
}

.sidebar-link i {
    width: 24px;
    text-align: center;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.sidebar-link span {
    position: relative;
    z-index: 1;
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(to left, transparent, rgba(255,255,255,0.15), transparent);
    margin: 12px 16px;
}

.sidebar-contact {
    margin: 20px 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    backdrop-filter: blur(10px);
}

.sidebar-contact-title {
    color: #c8a84e;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
}

.sidebar-contact-item i {
    color: #c8a84e;
    width: 16px;
}

.sidebar-emergency {
    margin: 0 16px 20px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.sidebar-emergency-icon {
    width: 42px;
    height: 42px;
    background: rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fca5a5;
    font-size: 18px;
    animation: pulseEmergency 2s ease-in-out infinite;
}

@keyframes pulseEmergency {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.sidebar-emergency-text {
    color: white;
}

.sidebar-emergency-label {
    font-size: 10px;
    color: #fca5a5;
}

.sidebar-emergency-phone {
    font-size: 15px;
    font-weight: bold;
    direction: ltr;
    text-align: right;
}

/* ===== Bottom Navigation ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 6px 8px 8px;
    display: none;
}

@media (max-width: 767px) {
    .bottom-nav {
display: block;
    }
    /* اضافه padding برای بدنه صفحه تا محتوا زیر bottom nav نرود */
    body {
padding-bottom: 72px;
    }
}

.bottom-nav-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 4px;
    text-decoration: none;
    color: #64748b;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.bottom-nav-item.active {
    color: #0F66C8;
}

.bottom-nav-item.active .bottom-nav-icon-wrap {
    background: rgba(15, 102, 200, 0.1);
}

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: -6px;
    width: 24px;
    height: 3px;
    background: #0F66C8;
    border-radius: 0 0 3px 3px;
}

.bottom-nav-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.bottom-nav-item i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.bottom-nav-item:active {
    transform: scale(0.92);
}

.bottom-nav-item:active .bottom-nav-icon-wrap {
    background: rgba(15, 102, 200, 0.15);
}

.bottom-nav-item:active i {
    transform: scale(0.85);
}

.bottom-nav-label {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
}

/* وسطی ویژه (نوبت‌دهی) */
.bottom-nav-item.featured {
    color: white;
}

.bottom-nav-item.featured .bottom-nav-icon-wrap {
    background: linear-gradient(135deg, #c8a84e, #d4af37);
    box-shadow: 0 4px 15px rgba(200, 168, 78, 0.4);
    margin-top: -14px;
    width: 52px;
    height: 52px;
    border: 3px solid white;
}

.bottom-nav-item.featured i {
    font-size: 22px;
}

.bottom-nav-item.featured .bottom-nav-label {
    color: #c8a84e;
    font-weight: bold;
    margin-top: 2px;
}

.bottom-nav-item.featured::before {
    display: none;
}

/* Badge روی آیکون */
.bottom-nav-badge {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-4px);
    background: #ef4444;
    color: white;
    font-size: 9px;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Hero Slider */
.hero-slide {
    position: relative;
    overflow: hidden;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(22, 78, 99, 0.95) 0%, rgba(22, 78, 99, 0.4) 50%, transparent 100%);
    z-index: 1;
}

.hero-slide img {
    transition: transform 8s ease;
}

.hero-slide:hover img {
    transform: scale(1.05);
}

/* Wave Separator */
.wave-separator {
    position: relative;
    margin-top: -2px;
    overflow: hidden;
}

.wave-separator img {
    width: 100%;
    height: auto;
    display: block;
}

/* Doctor Cards */
.doctor-avatar {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.doctor-avatar::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c8a84e, #0F66C8, #c8a84e);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.doctor-card:hover .doctor-avatar::before {
    opacity: 1;
}

.doctor-card:hover .doctor-avatar img {
    transform: scale(1.08);
}

.doctor-card:hover {
    transform: translateY(-8px);
}

/* News Cards */
.news-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 3px solid transparent;
}

.news-item:hover {
    border-right-color: #c8a84e;
    transform: translateX(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.news-thumb-img {
    transition: transform 0.5s ease;
}

.news-item:hover .news-thumb-img {
    transform: scale(1.1);
}

/* Featured News */
.featured-news {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.featured-news:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.featured-news::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #c8a84e, #d4af37, #c8a84e);
}

/* Quick Access */
.quick-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.quick-card:hover::before {
    opacity: 1;
}

.quick-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.quick-icon {
    position: relative;
    transition: all 0.4s ease;
}

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

.quick-icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

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

/* Service Cards */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.service-card img {
    transition: transform 0.6s ease;
}

.service-card:hover img {
    transform: scale(1.1);
}

/* Social Icons */
.social-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-btn:hover::before {
    opacity: 1;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Owl Carousel Custom */
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: white !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
    background: #c8a84e !important;
    color: white !important;
    transform: translateY(-50%) scale(1.1);
}

.owl-carousel .owl-nav button.owl-prev {
    right: 20px;
}

.owl-carousel .owl-nav button.owl-next {
    left: 20px;
}

.owl-carousel .owl-dots {
    margin-top: 20px;
}

.owl-carousel .owl-dot span {
    width: 10px !important;
    height: 10px !important;
    background: #cbd5e1 !important;
    transition: all 0.3s ease;
}

.owl-carousel .owl-dot.active span {
    background: #c8a84e !important;
    width: 30px !important;
    border-radius: 5px !important;
}

/* Scroll Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0F66C8, #c8a84e);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #c8a84e, #0F66C8);
}

/* Portrait Images */
.portrait-frame {
    position: relative;
    overflow: hidden;
    border-radius: 50% 50% 0 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.portrait-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(14, 116, 144, 0.5));
}

/* Button Continue */
.btn-continue {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.btn-continue:hover::before {
    right: 100%;
}

.btn-continue:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(14, 116, 144, 0.4);
}

/* Skyline Section */
.skyline-section {
    position: relative;
    height: 220px;
    background:#f3f4f6 url('../images/tehran.png') repeat-x center top;
    background-size:auto 100%;
    overflow: hidden;
}

.skyline-img {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
}

/* Tooth Animation */
@keyframes toothFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.tooth-float {
    animation: toothFloat 3s ease-in-out infinite;
}

/* ===== Responsive Header ===== */
@media (max-width: 767px) {
    .desktop-nav {
display: none !important;
    }
    .header-content-mobile {
gap: 12px;
    }
    .mobile-logo-title {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
    }
    .mobile-logo-title img {
height: 50px;
    }
    .mobile-logo-title h1 {
color: white;
font-size: 14px;
font-weight: bold;
    }
    .mobile-logo-title p {
color: rgba(255, 255, 255, 0.7);
font-size: 10px;
    }
}

@media (max-width: 768px) {
    .mobile-logo-title {
display: none;
    }
    html body .container,html body .row{
margin:auto!important;
    }
}
.desktop-nav ul.menu li.item a{
  color:#FFF;
}
/* Navbar Custom */
.desktop-nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 0.5rem 1rem;
}

.desktop-nav li a {
    color: white !important;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
}

.desktop-nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 60%;
    right: 20%;
}

.desktop-nav a:hover,
.desktop-nav li.active a{
    color: #FFF !important;
    background: rgba(255, 255, 255, 0.1);
}

.desktop-nav .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
}

.desktop-nav .dropdown-menu li {
    color: var(--primary-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    margin: 0.25rem 0.5rem;
    transition: all 0.3s ease;
}

.desktop-nav .dropdown-menu li:hover {
    background: var(--primary);
    color: white;
    transform: translateX(-5px);
}

/* Hamburger Menu Custom */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(200, 168, 78, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
