﻿/* ==================== ROOT ==================== */
:root {
    --primary-color: #1F1FA8;
    --primary-dark: #16168A;
    --primary-light: #4040C7;
    --secondary-color: #E30613;
    --secondary-dark: #B80510;
    --accent-color: #E30613;
    --dark-color: #2B2D42;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: clip;
    width: 100%;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    color: var(--dark-color);
    background-color: var(--white);
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
    overflow-x: clip; /* ← تغییر از hidden به clip */
    width: 100%;
    max-width: 100vw;
    position: static !important;
    top: 0 !important;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==================== FONT ==================== */
@font-face {
    font-family: 'Vazirmatn';
    src: url('/lib/vazirmatn/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/lib/vazirmatn/fonts/webfonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/lib/vazirmatn/fonts/webfonts/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

/* ==================== GOOGLE TRANSLATE FIX ==================== */
.skiptranslate iframe {
    display: none !important;
}

#goog-gt-tt {
    display: none !important;
}

.goog-te-banner-frame {
    display: none !important;
}

iframe.goog-te-banner-frame {
    display: none !important;
    height: 0 !important;
}

.goog-tooltip {
    display: none !important;
}

    .goog-tooltip:hover {
        display: none !important;
    }

.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

#google_translate_element {
    display: none;
}

/* ==================== TOP BAR ==================== */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

    .top-bar i {
        margin-left: 5px;
    }

.social-link {
    color: var(--white);
    margin-right: 12px;
    font-size: 16px;
    transition: 0.3s;
}

    .social-link:hover {
        color: var(--secondary-color);
    }

/* ==================== HEADER (2 ROWS) ==================== */
.main-header {
    position: relative;
    z-index: auto;
    background: white;
}

/* ========== ROW 1: Logo + Search + CTA ========== */
.header-top-row {
    background: white;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.header-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    justify-content: flex-start;
}

    .header-logo img {
        height: 70px;
        width: auto;
        object-fit: contain;
        flex-shrink: 0;
    }

.header-logo-text {
    display: flex;
    flex-direction: column;
    text-align: right;
    line-height: 1.2;
    min-width: 0;
}

    .header-logo-text h1 {
        font-size: 22px;
        font-weight: 800;
        color: var(--primary-color);
        margin: 0;
        line-height: 1.3;
        white-space: nowrap;
    }

    .header-logo-text small {
        font-size: 14px;
        color: var(--secondary-color);
        font-weight: 600;
        line-height: 1.2;
        margin-top: 3px;
        white-space: nowrap;
    }
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.header-search {
    position: relative;
    width: 260px;
    max-width: 100%;
    margin: 0;
}

    .header-search i {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--primary-color);
        font-size: 14px;
        pointer-events: none;
    }

    .header-search input {
        width: 100%;
        padding: 10px 40px 10px 15px;
        border: 2px solid #e5e5e5;
        border-radius: 25px;
        font-size: 13px;
        font-family: 'Vazirmatn', Tahoma, sans-serif;
        transition: 0.3s;
        outline: none;
        background: #f8f9fa;
    }

        .header-search input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(31,31,168,0.1);
            background: white;
        }

.header-cta {
    padding: 10px 22px;
    font-size: 14px;
    white-space: nowrap;
}

/* ========== ROW 2: Navigation Bar ========== */
.header-bottom-row {
    background: var(--primary-color);
    padding: 0;
    min-height: 50px;
}

    .header-bottom-row .navbar-nav .nav-link {
        color: white !important;
        font-weight: 500;
        padding: 15px 18px !important;
        font-size: 14px;
        transition: 0.3s;
        white-space: nowrap;
        position: relative;
        border-radius: 0;
    }

        .header-bottom-row .navbar-nav .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            left: 0;
            height: 3px;
            background: var(--secondary-color);
            transform: scaleX(0);
            transition: 0.3s;
        }

        .header-bottom-row .navbar-nav .nav-link:hover::after {
            transform: scaleX(1);
        }

        .header-bottom-row .navbar-nav .nav-link:hover {
            background: rgba(255,255,255,0.08);
            color: white !important;
        }

    .header-bottom-row .navbar-toggler {
        border-color: rgba(255,255,255,0.5);
        padding: 6px 10px;
        margin: 8px 0;
    }

    .header-bottom-row .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(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .header-bottom-row .dropdown-menu {
        border: none;
        border-radius: 12px;
        box-shadow: 0 5px 25px rgba(0,0,0,0.2);
        padding: 8px;
        margin-top: 0;
    }

    .header-bottom-row .dropdown-item {
        padding: 10px 15px;
        border-radius: 8px;
        font-size: 14px;
        transition: 0.2s;
    }

        .header-bottom-row .dropdown-item:hover {
            background: var(--light-bg);
            color: var(--primary-color);
        }

    .header-bottom-row .dropdown-divider {
        margin: 5px 0;
    }

/* ==================== LANGUAGE SWITCHER ==================== */
.language-switcher .nav-link {
    color: white !important;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    padding: 12px 15px !important;
    border-radius: 0;
    transition: 0.3s;
}

    .language-switcher .nav-link:hover {
        background: rgba(255,255,255,0.1);
    }

.language-switcher .dropdown-toggle::after {
    margin-right: 5px;
}

/* ==================== BTN APPOINTMENT ==================== */
.btn-appointment {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 25px;
    transition: 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

    .btn-appointment:hover {
        background-color: var(--secondary-dark);
        border-color: var(--secondary-dark);
        color: var(--white);
        transform: translateY(-2px);
    }

/* ==================== MAIN ==================== */
main {
    min-height: 500px;
}

/* ==================== FOOTER ==================== */
.main-footer {
    background-color: var(--dark-color);
    color: #ccc;
    padding: 50px 0 20px;
    margin-top: 60px;
}

    .main-footer h5 {
        color: var(--white);
        font-weight: 700;
        margin-bottom: 20px;
        position: relative;
        padding-bottom: 10px;
    }

        .main-footer h5::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 40px;
            height: 3px;
            background-color: var(--secondary-color);
        }

    .main-footer p {
        line-height: 1.9;
    }

    .main-footer i {
        color: var(--secondary-color);
        margin-left: 8px;
    }

.footer-links {
    list-style: none;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        color: #ccc;
        transition: 0.3s;
    }

        .footer-links a:hover {
            color: var(--secondary-color);
            padding-right: 5px;
        }

.main-footer hr {
    border-color: #444;
    margin: 30px 0 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.footer-social-link {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: 0.3s;
    text-decoration: none;
}

    .footer-social-link:hover {
        background: var(--secondary-color);
        color: white;
        transform: translateY(-3px);
    }

/* ==================== HERO SLIDER ==================== */
.hero-section {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

    .hero-section .carousel,
    .hero-section .carousel-inner,
    .hero-section .carousel-item {
        height: 550px;
    }

.hero-slide {
    height: 550px;
    display: flex !important;
    align-items: center;
    color: white;
    position: relative; /* برای لایه‌بندی */
    overflow: hidden;
}

    /* لایه اول: عکس محو شده برای پر کردن پس‌زمینه */
    .hero-slide::before {
        content: "";
        position: absolute;
        inset: -10px; /* کمی بزرگتر از کادر برای جلوگیری از لبه‌های تیز */
        background-image: inherit; /* عکس رو از والدش می‌گیره */
        background-size: cover;
        background-position: center;
        filter: blur(15px) brightness(0.6); /* محو کردن و کمی تاریک کردن */
        z-index: 0;
    }

    /* لایه دوم: عکس اصلی که کامل و بریده نشده دیده میشه */
    .hero-slide::after {
        content: "";
        position: absolute;
        inset: 0;
        background-image: inherit;
        background-size: contain; /* عکس کامل دیده میشه */
        background-position: center;
        background-repeat: no-repeat;
        z-index: 1;
    }

    /* محتوای متنی روی عکس قرار بگیره */
    .hero-slide .container {
        position: relative;
        z-index: 2; /* بالاتر از لایه‌های عکس */
        height: 100%;
        display: flex;
        align-items: center;
    }

    .hero-slide .container {
        height: 100%;
        display: flex;
        align-items: center;
    }

.hero-content {
    max-width: 750px;
    text-align: right;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.4;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 2px 5px rgba(0, 0, 0, 0.6); /* سایه قوی برای خوانایی */
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.8;
    color: #FFFFFF;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.6); /* سایه برای خوانایی */
}

    .hero-content .btn-light {
        padding: 12px 30px;
        font-weight: 700;
        border-radius: 25px;
        color: var(--primary-color);
        background-color: #FFFFFF;
        border: none;
        box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    }

        .hero-content .btn-light:hover {
            transform: translateY(-3px);
            background-color: #FFFFFF;
            color: var(--primary-color);
        }

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.9;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    padding: 25px;
    background-size: 50%;
    transition: 0.3s;
}

/* ==================== WATERMARK ==================== */
.home-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    max-width: 600px;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
    user-select: none;
    overflow: hidden;
}

    .home-watermark img {
        width: 100%;
        height: auto;
    }

.home-content {
    position: relative;
    z-index: 1;
}

/* ==================== QUICK ACCESS ==================== */
.quick-access {
    padding: 50px 0;
    background: white;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.quick-card {
    display: block;
    padding: 30px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: 0.3s;
    border-bottom: 3px solid transparent;
}

    .quick-card:hover {
        transform: translateY(-8px);
        border-bottom-color: var(--primary-color);
        box-shadow: 0 10px 30px rgba(31,31,168,0.15);
    }

    .quick-card i {
        font-size: 40px;
        color: var(--primary-color);
        margin-bottom: 15px;
    }

    .quick-card h5 {
        font-size: 16px;
        font-weight: 700;
        margin: 0;
        color: var(--dark-color);
    }

/* ==================== SECTIONS ==================== */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.section-subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

/* ==================== STATS ==================== */
.stat-box h3 {
    color: var(--primary-color);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-box p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* ==================== CARDS ==================== */
.dept-card,
.doctor-card,
.news-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: 0.3s;
    height: 100%;
}

.dept-card, .doctor-card {
    padding: 30px 25px;
    text-align: center;
}

.news-card {
    overflow: hidden;
}

    .dept-card:hover, .doctor-card:hover, .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(31,31,168,0.15);
    }

.dept-icon, .doctor-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    overflow: hidden;
    flex-shrink: 0;
}

    .dept-icon i {
        color: white;
        font-size: 28px;
    }

.doctor-avatar {
    width: 100px;
    height: 100px;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(31,31,168,0.15);
}

    .doctor-avatar i {
        color: white;
        font-size: 45px;
    }

    .doctor-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        display: block;
        border-radius: 50%;
    }

.news-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.news-card .card-body {
    padding: 25px;
}

/* ==================== SERVICES ==================== */
.services-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.service-item {
    background: white;
    padding: 18px 22px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
    border-right: 3px solid var(--primary-color);
    height: 100%;
}

    .service-item:hover {
        transform: translateX(-5px);
        box-shadow: 0 5px 20px rgba(31,31,168,0.15);
    }

    .service-item i {
        color: var(--accent-color);
        font-size: 20px;
        flex-shrink: 0;
    }

    .service-item span {
        font-weight: 500;
        color: var(--dark-color);
        font-size: 15px;
        line-height: 1.6;
    }

/* ==================== CTA ==================== */
.cta-section {
    padding: 40px 0 80px;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 50px;
    border-radius: 20px;
}

    .cta-box h3 {
        font-weight: 800;
        font-size: 28px;
    }

    .cta-box p {
        margin-bottom: 0;
        font-size: 16px;
    }

/* ==================== PAGE HEADER ==================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 60px 0 40px;
}

    .page-header h1 {
        font-size: 36px;
        font-weight: 800;
        margin-bottom: 15px;
    }

.breadcrumb-custom {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    opacity: 0.95;
}

    .breadcrumb-custom a {
        color: white;
        transition: 0.3s;
    }

        .breadcrumb-custom a:hover {
            opacity: 0.8;
        }

    .breadcrumb-custom i {
        font-size: 12px;
        opacity: 0.7;
    }

/* ==================== FILTER BOX ==================== */
.filter-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

    .filter-box .form-control,
    .filter-box .form-select {
        padding: 12px 15px;
        border-radius: 8px;
        border: 1px solid #ddd;
    }

        .filter-box .form-control:focus,
        .filter-box .form-select:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(31,31,168,0.1);
        }

/* ==================== DOCTOR CARDS (FULL) ==================== */
.doctor-card-full {
    background: white;
    padding: 30px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: 0.3s;
    height: 100%;
    border-top: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .doctor-card-full:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(31,31,168,0.15);
    }

.doctor-avatar-lg {
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    overflow: hidden;
    flex-shrink: 0;
    border: 4px solid white;
    box-shadow: 0 5px 20px rgba(31,31,168,0.15);
}

    .doctor-avatar-lg i {
        color: white;
        font-size: 60px;
    }

    .doctor-avatar-lg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        display: block;
        border-radius: 50%;
    }

/* ==================== DOCTOR PROFILE ==================== */
.doctor-profile-card {
    background: white;
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    border-top: 5px solid var(--primary-color);
    position: sticky;
    top: 100px;
}

.doctor-avatar-xl {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    overflow: hidden;
    flex-shrink: 0;
    border: 5px solid white;
    box-shadow: 0 8px 30px rgba(31,31,168,0.2);
}

    .doctor-avatar-xl i {
        color: white;
        font-size: 80px;
    }

    .doctor-avatar-xl img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        display: block;
        border-radius: 50%;
    }

.doctor-profile-card h3 {
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 8px;
}

.doctor-info-list {
    list-style: none;
    padding: 0;
    text-align: right;
    margin: 0;
}

    .doctor-info-list li {
        padding: 12px 0;
        border-bottom: 1px solid #eee;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
    }

        .doctor-info-list li:last-child {
            border-bottom: none;
        }

    .doctor-info-list i {
        color: var(--primary-color);
        width: 20px;
        font-size: 16px;
    }

    .doctor-info-list span {
        color: #666;
    }

.doctor-details-box {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

    .doctor-details-box h4 {
        font-weight: 700;
        color: var(--dark-color);
        padding-bottom: 15px;
        border-bottom: 2px solid var(--light-bg);
        margin-bottom: 20px;
    }

        .doctor-details-box h4 i {
            color: var(--primary-color);
            margin-left: 8px;
        }

    .doctor-details-box p {
        line-height: 2;
        color: #444;
    }

/* ==================== DEPT FULL CARD ==================== */
.dept-card-full {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
    height: 100%;
}

    .dept-card-full:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(31,31,168,0.2);
    }

.dept-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.dept-body {
    padding: 25px;
}

.dept-icon-overlay {
    position: absolute;
    bottom: 15px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

    .dept-icon-overlay i {
        font-size: 26px;
        color: var(--secondary-color);
    }

/* ==================== SIDEBAR ==================== */
.sidebar-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    margin-bottom: 25px;
}

    .sidebar-box h5 {
        font-weight: 700;
        color: var(--dark-color);
        padding-bottom: 15px;
        margin-bottom: 18px;
        border-bottom: 2px solid var(--light-bg);
        font-size: 17px;
    }

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .sidebar-list li {
        padding: 10px 0;
        border-bottom: 1px dashed #eee;
    }

        .sidebar-list li:last-child {
            border-bottom: none;
        }

    .sidebar-list a {
        color: var(--dark-color);
        font-size: 14px;
        transition: 0.3s;
        display: block;
    }

        .sidebar-list a:hover {
            color: var(--primary-color);
            padding-right: 5px;
        }

        .sidebar-list a i {
            color: var(--primary-color);
            font-size: 10px;
            margin-left: 8px;
        }

.contact-box {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

/* ==================== NEWS LIST ==================== */
.news-list-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    margin-bottom: 25px;
    transition: 0.3s;
}

    .news-list-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

.news-list-img {
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
}

    .news-list-img i {
        font-size: 80px;
        color: white;
        opacity: 0.4;
    }

.news-list-body {
    padding: 25px;
}

/* ==================== NEWS DETAILS ==================== */
.news-details-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.news-feature-image {
    height: 350px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

    .news-feature-image i {
        font-size: 150px;
        color: white;
        opacity: 0.3;
    }

.news-summary {
    background: var(--light-bg);
    padding: 25px;
    border-right: 4px solid var(--primary-color);
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.9;
    color: #444;
    margin-bottom: 30px;
}

.news-content {
    font-size: 16px;
    line-height: 2.2;
    color: #333;
    text-align: justify;
}

/* ==================== CONTACT ==================== */
.contact-info-card {
    background: white;
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: 0.3s;
    height: 100%;
    border-top: 4px solid var(--primary-color);
}

    .contact-info-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(31,31,168,0.15);
    }

.contact-icon {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

    .contact-icon i {
        color: white;
        font-size: 30px;
    }

.contact-form-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

    .contact-form-box .form-control {
        padding: 12px 15px;
        border-radius: 8px;
        border: 1px solid #ddd;
        font-size: 14px;
    }

    .contact-form-box textarea {
        resize: vertical;
        min-height: 130px;
    }

.contact-map-box {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    position: sticky;
    top: 100px;
}

/* ==================== SUCCESS ==================== */
.success-box {
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.success-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #06A77D, #0ac988);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    animation: pulse-success 2s infinite;
}

    .success-icon i {
        color: white;
        font-size: 60px;
    }

@keyframes pulse-success {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(6,167,125,0.4);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(6,167,125,0);
    }
}

/* ==================== GALLERY ==================== */
.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 22px;
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 25px;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
    text-decoration: none;
}

    .filter-btn:hover {
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    .filter-btn.active {
        background: var(--primary-color);
        border-color: var(--primary-color);
        color: white;
    }

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    aspect-ratio: 4/3;
    transition: 0.3s;
}

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: 0.5s;
    }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(31,31,168,0.9), rgba(31,31,168,0.2) 60%, transparent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    opacity: 0;
    transition: 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(31,31,168,0.25);
}

    .gallery-item:hover img {
        transform: scale(1.1);
    }

    .gallery-item:hover .gallery-overlay {
        opacity: 1;
    }

.gallery-overlay i {
    font-size: 40px;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
}

/* ==================== MODAL ==================== */
.modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: var(--primary-color);
    color: white;
    border-bottom: none;
    padding: 20px 25px;
}

    .modal-header .btn-close {
        filter: invert(1);
        opacity: 1;
    }

.modal-body {
    padding: 25px;
    background: var(--light-bg);
}

.modal-footer {
    border-top: none;
    padding: 15px 25px;
}

/* ==================== APPOINTMENT ==================== */
.appointment-form-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.form-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 25px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--light-bg);
}

.form-header-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .form-header-icon i {
        color: white;
        font-size: 28px;
    }

.form-section {
    margin-bottom: 35px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.form-actions {
    display: flex;
    gap: 15px;
    padding-top: 25px;
    border-top: 2px solid var(--light-bg);
    flex-wrap: wrap;
}

    .form-actions .btn {
        padding: 12px 30px;
        border-radius: 10px;
        font-weight: 600;
    }

.appointment-info-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    margin-bottom: 25px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .info-list li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 0;
        border-bottom: 1px dashed #eee;
        font-size: 14px;
        line-height: 1.7;
    }

.appointment-contact-box {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.contact-btn {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    margin-top: 10px;
    transition: 0.3s;
    text-decoration: none;
}

    .contact-btn:hover {
        background: #f0f0f0;
        transform: translateY(-3px);
    }

/* ==================== AUTH ==================== */
.auth-box {
    max-width: 480px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(31,31,168,0.1);
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 40px 30px 30px;
    text-align: center;
}

.auth-box form {
    padding: 35px 40px 30px;
}

.input-group-custom {
    position: relative;
}

    .input-group-custom i {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--primary-color);
        font-size: 16px;
        z-index: 1;
        pointer-events: none;
    }

    .input-group-custom .form-control {
        padding: 13px 45px 13px 15px;
        border-radius: 10px;
        border: 2px solid #e5e5e5;
        font-size: 14px;
        transition: 0.3s;
    }

.btn-auth {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    margin-top: 10px;
}

/* ==================== PROFILE SIDEBAR ==================== */
.profile-sidebar {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    text-align: center;
    position: sticky;
    top: 100px;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

    .profile-avatar i {
        color: white;
        font-size: 50px;
    }

.profile-sidebar h5 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
    font-size: 16px;
    word-break: break-all;
}

.profile-menu {
    list-style: none;
    padding: 0;
    margin: 25px 0 0;
    text-align: right;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

    .profile-menu li {
        margin-bottom: 5px;
    }

    .profile-menu a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 15px;
        border-radius: 10px;
        color: var(--dark-color);
        font-size: 14px;
        font-weight: 500;
        transition: 0.3s;
    }

        .profile-menu a:hover {
            background: var(--light-bg);
            color: var(--primary-color);
        }

        .profile-menu a.active {
            background: var(--primary-color);
            color: white;
        }

        .profile-menu a i {
            width: 18px;
            text-align: center;
        }

.profile-content-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

    .profile-content-box h3 {
        font-weight: 800;
        color: var(--dark-color);
        padding-bottom: 20px;
        margin-bottom: 30px;
        border-bottom: 2px solid var(--light-bg);
        font-size: 20px;
    }

        .profile-content-box h3 i {
            color: var(--primary-color);
            margin-left: 10px;
        }

    .profile-content-box .form-label {
        font-weight: 600;
        color: var(--dark-color);
        font-size: 14px;
        margin-bottom: 8px;
    }

    .profile-content-box .form-control {
        padding: 12px 15px;
        border-radius: 10px;
        border: 2px solid #e5e5e5;
        font-size: 14px;
        transition: 0.3s;
    }

        .profile-content-box .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 4px rgba(31,31,168,0.08);
        }

        .profile-content-box .form-control:disabled {
            background-color: #f5f5f5;
            cursor: not-allowed;
        }

/* ==================== SERVICE PAGE CARD ==================== */
.service-page-card {
    display: block;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: 0.3s;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

    .service-page-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(31,31,168,0.15);
    }

.service-page-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-page-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-color);
    color: white;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.service-page-body {
    padding: 20px;
}

    .service-page-body h5 {
        font-weight: 700;
        color: var(--dark-color);
        margin-bottom: 10px;
        font-size: 16px;
    }

    .service-page-body p {
        color: #666;
        font-size: 13px;
        line-height: 1.7;
        min-height: 45px;
        margin-bottom: 15px;
    }

.service-page-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.service-page-card:hover .service-page-more {
    padding-right: 5px;
}

/* ==================== PAGINATION ==================== */
.pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pagination {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 10px !important;
    border: 2px solid #e5e5e5;
    color: var(--dark-color);
    background: white;
    font-weight: 600;
    transition: 0.3s;
    text-decoration: none;
}

    .page-item .page-link:hover {
        background: var(--light-bg);
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ==================== ERROR PAGES ==================== */
.error-box {
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.error-code {
    font-size: 120px;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: 10px;
}

.error-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

    .error-icon i {
        color: white;
        font-size: 55px;
    }

/* ==================== WORKING HOURS ==================== */
.working-hours-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: var(--light-bg);
    border-right: 4px solid var(--primary-color);
    border-radius: 10px;
    padding: 20px 25px;
    font-size: 15px;
    line-height: 2;
    color: var(--dark-color);
}

    .working-hours-box i {
        color: var(--primary-color);
        font-size: 20px;
        margin-top: 5px;
        flex-shrink: 0;
    }

    .working-hours-box > div {
        flex: 1;
    }

/* ==================== LANGUAGE FLAGS ==================== */
.lang-flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    margin-left: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    vertical-align: middle;
    flex-shrink: 0;
}

.language-switcher .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
}

    .language-switcher .dropdown-item span {
        flex: 1;
        font-size: 14px;
    }

/* ==================== ADMIN LOGIN LINK ==================== */
.admin-login-link {
    color: rgba(255,255,255,0.15);
    margin-right: 10px;
    font-size: 12px;
    transition: 0.3s;
    text-decoration: none;
}

    .admin-login-link:hover {
        color: rgba(255,255,255,0.8);
    }

/* ==================== APPOINTMENT USER PROMPT ==================== */
.appointment-form-box .alert-info {
    background: linear-gradient(135deg, #e8eaf6, #c5cae9);
    border: none;
    border-right: 4px solid var(--primary-color);
    border-radius: 12px;
    padding: 18px 22px;
    color: var(--dark-color);
    font-size: 14px;
    line-height: 1.7;
}

    .appointment-form-box .alert-info strong {
        color: var(--primary-color);
    }

.appointment-form-box .alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: none;
    border-right: 4px solid #28a745;
    border-radius: 12px;
    padding: 15px 22px;
    color: #155724;
    font-size: 14px;
}

.appointment-form-box .alert-info .btn {
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* ==================== ABOUT PAGE ==================== */
.about-sidebar {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    position: sticky;
    top: 100px;
}

    .about-sidebar h5 {
        font-weight: 700;
        color: var(--dark-color);
        padding-bottom: 15px;
        margin-bottom: 20px;
        border-bottom: 2px solid var(--light-bg);
        font-size: 17px;
    }

        .about-sidebar h5 i {
            color: var(--primary-color);
            margin-left: 8px;
        }

.about-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .about-menu li {
        margin-bottom: 5px;
    }

.about-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 10px;
    color: var(--dark-color);
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
    text-decoration: none;
    border-right: 3px solid transparent;
}

    .about-link:hover {
        background: var(--light-bg);
        color: var(--primary-color);
        padding-right: 20px;
    }

    .about-link.active {
        background: var(--primary-color);
        color: white;
        border-right-color: var(--secondary-color);
    }

    .about-link i {
        width: 18px;
        text-align: center;
        font-size: 14px;
    }

.about-content-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.about-section {
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--light-bg);
    scroll-margin-top: 120px;
}

    .about-section:last-of-type {
        border-bottom: none;
        margin-bottom: 0;
    }

.about-section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--light-bg);
    display: flex;
    align-items: center;
    gap: 12px;
}

    .about-section-title i {
        color: var(--secondary-color);
        font-size: 22px;
    }

.about-text {
    color: #444;
    font-size: 15px;
    line-height: 2.2;
    text-align: justify;
}

    .about-text p {
        margin-bottom: 18px;
    }

/* ==================== ABOUT IMAGE ==================== */
.about-section-image {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(31,31,168,0.15);
    margin-bottom: 25px;
}

    .about-section-image img {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: cover;
        display: block;
        transition: 0.5s;
    }

    .about-section-image:hover img {
        transform: scale(1.02);
    }

/* ==================== MANAGER MESSAGE ==================== */
.manager-message-wrapper {
    display: flex;
    gap: 25px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 25px;
    border-radius: 15px;
    border-right: 5px solid var(--primary-color);
    align-items: flex-start;
    margin-top: 20px;
}

.manager-photo-column {
    flex-shrink: 0;
    width: 200px;
    text-align: center;
}

.manager-photo {
    width: 180px;
    height: 220px;
    object-fit: cover;
    border-radius: 15px;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(31,31,168,0.2);
    display: block;
    margin: 0 auto 12px;
}

.manager-photo-placeholder {
    width: 180px;
    height: 220px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(31,31,168,0.2);
}

    .manager-photo-placeholder i {
        color: white;
        font-size: 70px;
    }

.manager-info {
    text-align: center;
}

    .manager-info h4 {
        font-weight: 800;
        color: var(--primary-color);
        font-size: 15px;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .manager-info small {
        color: var(--secondary-color);
        font-weight: 600;
        font-size: 11px;
    }

.manager-text-column {
    flex: 1;
    position: relative;
    padding-right: 15px;
    min-width: 0;
}

.manager-text {
    font-size: 14px;
    line-height: 2.2;
    color: #333;
    text-align: justify;
    position: relative;
    z-index: 1;
}

    .manager-text p {
        margin-bottom: 12px;
    }

/* ==================== MISSION LIST ==================== */
.mission-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

    .mission-list li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 10px 0;
        border-bottom: 1px dashed rgba(31,31,168,0.15);
        font-size: 14px;
        line-height: 1.8;
    }

        .mission-list li:last-child {
            border-bottom: none;
        }

    .mission-list i {
        color: var(--primary-color);
        font-size: 18px;
        margin-top: 4px;
        flex-shrink: 0;
    }

/* ==================== LTR SUPPORT ==================== */
html[dir="ltr"] body {
    direction: ltr;
    text-align: left;
}

html[dir="ltr"] .top-bar .text-end {
    text-align: right !important;
}

html[dir="ltr"] .navbar-nav {
    direction: ltr;
}

html[dir="ltr"] .main-footer {
    text-align: left;
}

html[dir="ltr"] .footer-links {
    padding-left: 0;
}

html[dir="ltr"] .breadcrumb-custom i {
    transform: rotate(180deg);
}

html[dir="ltr"] .dropdown-menu-end {
    right: auto;
    left: 0;
}

html[dir="ltr"] .form-control,
html[dir="ltr"] .form-select {
    text-align: left;
    direction: ltr;
}

    html[dir="ltr"] .form-control::placeholder {
        text-align: left;
    }

html[dir="ltr"] .footer-social {
    justify-content: flex-start;
}

html[dir="ltr"] .header-logo-text {
    text-align: left;
}

html[dir="ltr"] .header-logo img {
    order: -1;
}

html[dir="ltr"] .header-logo-text h1 {
    font-size: 16px;
    white-space: normal;
    line-height: 1.3;
    word-break: break-word;
}

html[dir="ltr"] .header-logo-text small {
    font-size: 10px;
    white-space: normal;
    line-height: 1.3;
    word-break: break-word;
}

html[dir="ltr"] .header-search {
    margin-left: auto;
    margin-right: 0;
}

    html[dir="ltr"] .header-search i {
        right: auto;
        left: 15px;
    }

    html[dir="ltr"] .header-search input {
        padding: 10px 15px 10px 40px;
        direction: ltr;
        text-align: left;
    }

html[dir="ltr"] .header-bottom-row .navbar-nav .nav-link::after {
    right: 0;
    left: 0;
}

html[dir="ltr"] .language-switcher .nav-link {
    direction: ltr;
}

html[dir="ltr"] .lang-flag {
    margin-left: 0;
    margin-right: 10px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
    .header-top-row {
        padding: 10px 0;
    }

    .header-logo img {
        height: 55px;
    }

    .header-logo-text h1 {
        font-size: 14px;
    }

    .header-logo-text small {
        font-size: 10px;
    }

    .header-search {
        max-width: 100%;
    }

    .header-cta {
        padding: 8px 15px;
        font-size: 12px;
    }

    /* ==================== RESPONSIVE ==================== */
    @media (max-width: 991px) {
        .header-top-row {
            padding: 10px 0;
        }

        .header-logo img {
            height: 55px;
        }

        .header-logo-text h1 {
            font-size: 14px;
        }

        .header-logo-text small {
            font-size: 10px;
        }

        .header-search {
            max-width: 100%;
        }

        .header-cta {
            padding: 8px 15px;
            font-size: 12px;
        }

        .header-bottom-row .navbar-nav {
            flex-direction: column !important;
            width: 100%;
        }

            .header-bottom-row .navbar-nav .nav-link {
                padding: 12px 15px !important;
                border-radius: 8px;
                text-align: right;
            }

                .header-bottom-row .navbar-nav .nav-link::after {
                    display: none;
                }

        .about-sidebar {
            position: static;
            margin-bottom: 25px;
        }

        .about-content-box {
            padding: 25px 20px;
        }

        .about-info-grid, .goals-list, .values-grid {
            grid-template-columns: 1fr;
        }
    }

    .header-bottom-row .navbar-nav {
        flex-direction: column !important;
        width: 100%;
    }

        .header-bottom-row .navbar-nav .nav-link {
            padding: 12px 15px !important;
            border-radius: 8px;
            text-align: right;
        }

            .header-bottom-row .navbar-nav .nav-link::after {
                display: none;
            }

    .about-sidebar {
        position: static;
        margin-bottom: 25px;
    }

    .about-content-box {
        padding: 25px 20px;
    }

    .about-info-grid, .goals-list, .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-section .carousel,
    .hero-section .carousel-inner,
    .hero-section .carousel-item,
    .hero-slide {
        height: 400px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .quick-access {
        margin-top: 0;
        padding: 30px 0;
    }

    .doctor-profile-card,
    .contact-map-box,
    .dept-doctors-box {
        position: static;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .news-details-box {
        padding: 25px 20px;
    }

    .news-feature-image {
        height: 200px;
    }

        .news-feature-image i {
            font-size: 80px;
        }

    .news-list-img {
        min-height: 150px;
    }

        .news-list-img i {
            font-size: 60px;
        }

    .contact-form-box {
        padding: 25px 20px;
    }

    .success-box {
        padding: 40px 20px;
    }

    .success-icon {
        width: 90px;
        height: 90px;
    }

        .success-icon i {
            font-size: 45px;
        }

    .filter-btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    .gallery-overlay i {
        font-size: 30px;
    }

    .gallery-overlay h5 {
        font-size: 14px;
    }

    .home-watermark {
        width: 85%;
        opacity: 0.03;
    }

    .appointment-form-box {
        padding: 25px 20px;
    }

    .appointment-success-box {
        padding: 35px 20px;
    }

    .form-actions {
        flex-direction: column;
    }

        .form-actions .btn {
            width: 100%;
        }

    .success-actions {
        flex-direction: column;
    }

        .success-actions .btn {
            width: 100%;
        }

    .form-header {
        flex-direction: column;
        text-align: center;
    }

    .auth-box form {
        padding: 25px 20px 20px;
    }

    .profile-content-box {
        padding: 25px 20px;
    }

    .error-box {
        padding: 40px 20px;
    }

    .error-code {
        font-size: 80px;
    }

    .error-icon {
        width: 90px;
        height: 90px;
    }

        .error-icon i {
            font-size: 40px;
        }

    /* Manager Message Mobile */
    .manager-message-wrapper {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .manager-photo-column {
        width: 100%;
    }

    .manager-photo,
    .manager-photo-placeholder {
        width: 140px;
        height: 170px;
    }

        .manager-photo-placeholder i {
            font-size: 55px;
        }

    .manager-text-column {
        padding-right: 0;
        padding-top: 15px;
        border-top: 2px dashed rgba(31,31,168,0.2);
    }
}

@media (max-width: 767px) {
    .header-top-row {
        padding: 8px 0;
    }

        .header-top-row .row {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 8px;
        }

        .header-top-row .col-lg-5,
        .header-top-row .col-md-5,
        .header-top-row .col-lg-4,
        .header-top-row .col-md-4,
        .header-top-row .col-lg-3,
        .header-top-row .col-md-3 {
            width: 100%;
            text-align: center !important;
        }

    .header-logo {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 8px !important;
        margin-bottom: 5px;
    }

        .header-logo img {
            height: 45px !important;
        }

    .header-logo-text {
        text-align: right !important;
    }

        .header-logo-text h1 {
            font-size: 12px !important;
            line-height: 1.3 !important;
        }

        .header-logo-text small {
            font-size: 9px !important;
            margin-top: 2px;
        }

    .header-search {
        max-width: 100% !important;
        margin: 0 auto;
    }

        .header-search input {
            padding: 8px 35px 8px 12px !important;
            font-size: 12px !important;
        }

        .header-search i {
            font-size: 12px !important;
            right: 12px !important;
        }

    .header-cta {
        padding: 8px 15px !important;
        font-size: 12px !important;
        width: 100%;
        display: block;
        text-align: center;
    }

    .header-bottom-row {
        min-height: 45px;
    }

        .header-bottom-row .container {
            padding: 0 10px;
        }

        .header-bottom-row .navbar-toggler {
            padding: 4px 8px;
            margin: 5px 0;
            border: none;
        }

        .header-bottom-row .navbar-toggler-icon {
            width: 22px;
            height: 22px;
        }


        .header-bottom-row .navbar-nav {
            flex-direction: column !important;
            width: 100%;
            gap: 3px;
        }

            .header-bottom-row .navbar-nav .nav-link {
                padding: 10px 15px !important;
                border-radius: 8px;
                text-align: right;
                font-size: 13px !important;
                background: rgba(255,255,255,0.05);
            }

                .header-bottom-row .navbar-nav .nav-link:hover {
                    background: rgba(255,255,255,0.15);
                }

                .header-bottom-row .navbar-nav .nav-link::after {
                    display: none;
                }

            .header-bottom-row .navbar-nav.flex-row {
                flex-direction: column !important;
                margin-top: 10px;
            }

    .language-switcher .nav-link {
        padding: 10px 15px !important;
        border-radius: 8px;
        background: rgba(255,255,255,0.05);
        color: white !important;
    }
}

@media (max-width: 576px) {
    .header-logo img {
        height: 38px !important;
    }

    .header-logo-text h1 {
        font-size: 11px !important;
    }

    .header-logo-text small {
        display: none;
    }

    .header-cta {
        font-size: 11px !important;
        padding: 6px 12px !important;
    }

    .appointment-form-box .alert-info .d-flex {
        flex-direction: column;
        align-items: stretch !important;
    }

    .appointment-form-box .alert-info .btn {
        width: 100%;
    }
}

/* ==================== TOP BAR CLOCKS ==================== */
.top-clocks {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.clock-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
}

    .clock-item i {
        color: var(--secondary-color);
        font-size: 14px;
    }

    .clock-item span {
        font-family: 'Courier New', monospace;
        font-weight: 700;
        letter-spacing: 1px;
        font-size: 15px;
        color: var(--white);
        direction: ltr;
        min-width: 80px;
        text-align: center;
    }

    .clock-item small {
        font-size: 11px;
        opacity: 0.85;
        font-weight: 500;
    }

/* جداکننده بین دو ساعت */
.clock-target {
    padding-right: 20px;
    border-right: 1px solid rgba(255,255,255,0.3);
    direction: ltr;
}

/* حالت LTR */
html[dir="ltr"] .clock-target {
    padding-right: 0;
    padding-left: 20px;
    border-right: none;
    border-left: 1px solid rgba(255,255,255,0.3);
}

/* موبایل */
@media (max-width: 767px) {
    .top-clocks {
        gap: 10px;
        justify-content: center;
        margin-top: 5px;
    }

    .clock-item {
        font-size: 12px;
    }

        .clock-item span {
            font-size: 13px;
            min-width: 70px;
        }

        .clock-item small {
            font-size: 10px;
        }

    .clock-target {
        padding-right: 10px;
    }

    .top-bar .col-md-6 {
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .top-clocks {
        flex-direction: column;
        gap: 5px;
    }

    .clock-target {
        padding-right: 0;
        border-right: none;
        padding-top: 5px;
        border-top: 1px solid rgba(255,255,255,0.2);
    }
}
/* ============ Submenu (منوی چندسطحی) ============ */

/* زیرمنوی سطح ۲ — موقعیت کنار منوی والد */
.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        right: 100%; /* RTL: کنار منوی والد باز میشه */
        margin-top: -6px;
        margin-right: -1px;
        border-radius: 8px;
        display: none;
        position: absolute;
        min-width: 240px;
    }

    /* هاور روی منوی والد — زیرمنو باز میشه */
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }

    /* فلش کنار منوی والد — RTL */
    .dropdown-submenu > .dropdown-toggle::after {
        float: left;
        margin-top: 6px;
        border-right: 0.3em solid transparent;
        border-left: 0.3em solid;
        border-top: 0.3em solid transparent;
        border-bottom: 0.3em solid transparent;
    }

/* در حالت موبایل — زیرمنو به صورت collapse باز میشه */
@media (max-width: 991.98px) {
    .dropdown-submenu > .dropdown-menu {
        position: static;
        margin: 0;
        padding-right: 20px;
        border: none;
        background-color: rgba(255, 255, 255, 0.05);
        box-shadow: none;
        display: block;
    }

    .dropdown-submenu > .dropdown-toggle::after {
        display: none;
    }
}
/* ============ PDF Download Box ============ */
.pdf-download-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 12px;
    padding: 20px 24px;
}

    .pdf-download-box .pdf-info {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

        .pdf-download-box .pdf-info strong {
            color: #1F1FA8;
            font-size: 1.05rem;
            margin-bottom: 4px;
        }

        .pdf-download-box .pdf-info small {
            color: #777;
            font-size: 0.85rem;
        }

    .pdf-download-box .btn-download {
        border-radius: 8px;
        padding: 10px 20px;
        font-weight: 600;
    }

@media (max-width: 575.98px) {
    .pdf-download-box {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
}
.education-image img {
    border: 1px solid #e9ecef;
    padding: 6px;
    background: #fff;
    transition: transform 0.3s ease;
}

    .education-image img:hover {
        transform: scale(1.02);
    }
/* ============ کارت اطلاعات تماس ============ */
.contact-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 24px;
    height: 100%;
}

    .contact-card h5 {
        color: #1F1FA8;
        font-weight: 700;
        margin-bottom: 24px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .contact-card h5 i {
            color: #E30613;
        }

.contact-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

    .contact-item:last-child {
        border-bottom: none;
    }

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(31, 31, 168, 0.08);
    color: #1F1FA8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

    .contact-icon.emergency {
        background: rgba(227, 6, 19, 0.1);
        color: #E30613;
    }

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

    .contact-info small {
        color: #888;
        font-size: 0.8rem;
        margin-bottom: 2px;
    }

    .contact-info strong {
        color: #333;
        font-size: 1rem;
        font-weight: 600;
        word-break: break-word;
    }

        .contact-info strong a {
            color: #1F1FA8;
            text-decoration: none;
            transition: color 0.2s;
        }

            .contact-info strong a:hover {
                color: #E30613;
            }

/* ============ کارت نقشه ============ */
.map-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    height: 100%;
}

.map-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

    .map-card-header h5 {
        margin: 0;
        color: #1F1FA8;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .map-card-header h5 i {
            color: #E30613;
        }

.map-card-body {
    padding: 20px;
}

.btn-map-open {
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 18px;
    transition: all 0.2s;
}

    .btn-map-open:hover {
        background: #1F1FA8;
        color: #fff;
        border-color: #1F1FA8;
    }

.map-embed {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    line-height: 0;
}

    .map-embed iframe {
        display: block;
    }

/* ============ موبایل ============ */
@media (max-width: 767.98px) {
    .contact-card,
    .map-card {
        margin-bottom: 16px;
    }

    .map-embed iframe {
        height: 280px !important;
    }
}
/* ============ آیکون‌های سوشال فوتر ============ */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #fff !important;
    position: relative;
    overflow: hidden;
}

    .footer-social-link i {
        font-size: 22px !important;
        line-height: 1 !important;
        display: inline-block !important;
        color: #fff !important;
        font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", "FontAwesome" !important;
    }

    /* ============ اینستاگرام ============ */
    .footer-social-link.instagram,
    .footer-social-link[title*="اینستا"],
    .footer-social-link[title*="Instagram"] {
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    }

        .footer-social-link.instagram:hover {
            box-shadow: 0 6px 20px rgba(220, 39, 67, 0.5);
            transform: translateY(-3px);
        }

    /* ============ واتساپ ============ */
    .footer-social-link.whatsapp,
    .footer-social-link[title*="واتساپ"],
    .footer-social-link[title*="WhatsApp"] {
        background: #25D366;
    }

        .footer-social-link.whatsapp:hover {
            box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
            transform: translateY(-3px);
        }

    /* ============ تلگرام ============ */
    .footer-social-link.telegram,
    .footer-social-link[title*="تلگرام"],
    .footer-social-link[title*="Telegram"] {
        background: #0088cc;
    }

        .footer-social-link.telegram:hover {
            box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
            transform: translateY(-3px);
        }
/* ========== TODAY CARD ========== */
.today-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #f4f5ff 0%, #ffffff 100%);
    border: 1px solid #e3e5f7;
    border-radius: 14px;
}

.today-date {
    display: flex;
    align-items: center;
    gap: 10px;
}

.today-day {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    color: var(--primary-color);
}

.today-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.today-month {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.today-info small {
    font-size: 12px;
    color: #777;
}

.today-event {
    padding-right: 18px;
    border-right: 2px solid #e3e5f7;
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary-color);
    max-width: 260px;
}

    .today-event i {
        margin-left: 4px;
        font-size: 12px;
    }
/* ============================================
   کارت «امروز» توی هدر
   ============================================ */

.today-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(31, 31, 168, 0.05), rgba(227, 6, 19, 0.03));
    border-radius: 12px;
    border: 1px solid rgba(31, 31, 168, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    white-space: nowrap;
}

    .today-card:hover {
        box-shadow: 0 4px 16px rgba(31, 31, 168, 0.1);
        transform: translateY(-1px);
    }

    /* ============ بخش تاریخ ============ */
    .today-card .today-date {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .today-card .today-day {
        font-size: 2rem;
        font-weight: 800;
        color: #1F1FA8;
        line-height: 1;
        min-width: 42px;
        text-align: center;
    }

    .today-card .today-info {
        display: flex;
        flex-direction: column;
        gap: 1px;
        line-height: 1.2;
    }

    .today-card .today-month {
        font-size: 0.95rem;
        font-weight: 700;
        color: #333;
    }

    .today-card .today-info small {
        font-size: 0.72rem;
        color: #888;
        font-weight: 500;
    }

    /* ============ بخش مناسبت‌ها ============ */
    .today-card .today-event {
        display: flex;
        flex-direction: column;
        gap: 3px;
        padding-right: 16px;
        border-right: 1px solid rgba(31, 31, 168, 0.15);
        max-width: 220px;
    }

        .today-card .today-event > div {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.75rem;
            color: #E30613;
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

            .today-card .today-event > div i {
                font-size: 0.6rem;
                flex-shrink: 0;
            }

    /* ============ اگه مناسبت تعطیل باشه ============ */
    .today-card.has-holiday {
        background: linear-gradient(135deg, rgba(227, 6, 19, 0.06), rgba(227, 6, 19, 0.02));
        border-color: rgba(227, 6, 19, 0.2);
    }

        .today-card.has-holiday .today-day {
            color: #E30613;
        }

/* ============ Responsive ============ */
@media (max-width: 1399.98px) {
    .today-card .today-event {
        max-width: 160px;
    }
}

@media (max-width: 1199.98px) {
    .today-card .today-event > div:not(:first-child) {
        display: none; /* فقط اولین مناسبت */
    }
}
/* ============ فرم بین‌الملل ============ */
.int-form-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.int-form-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1F1FA8, #2a2ac7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.int-form-header h2 {
    margin: 0 0 4px 0;
    color: #1F1FA8;
    font-size: 1.4rem;
    font-weight: 700;
}

.int-form-header p {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
}

/* ============ بخش‌ها ============ */
.int-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.int-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1F1FA8;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(31, 31, 168, 0.1);
}

.int-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1F1FA8;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.int-section .form-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.int-section .form-control,
.int-section .form-select {
    border-radius: 8px;
    padding: 10px 14px;
}

    .int-section .form-control:focus,
    .int-section .form-select:focus {
        border-color: #1F1FA8;
        box-shadow: 0 0 0 3px rgba(31, 31, 168, 0.1);
    }

/* ============ دکمه ============ */
.int-form-actions {
    text-align: center;
    margin-top: 24px;
}

    .int-form-actions .btn {
        padding: 14px 40px;
        border-radius: 10px;
        font-weight: 700;
    }
/* ==================== NEWS TICKER BAR ==================== */
.news-ticker-bar {
    background: linear-gradient(90deg, #0d1554 0%, #1a237e 50%, #0d1554 100%);
    color: #fff;
    padding: 8px 0;
    font-size: 13.5px;
    font-weight: 500;
    position: relative;
    z-index: 100;
    border-bottom: 2px solid #ffd54f; /* ← خط طلایی جداکننده */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

    .news-ticker-bar .ticker-item {
        display: inline-block;
        margin-inline-end: 18px;
        white-space: nowrap;
        color: #fff;
    }

        .news-ticker-bar .ticker-item i {
            color: #ffd54f; /* ← آیکون‌ها طلایی */
            margin-inline-end: 5px;
        }

    .news-ticker-bar .ticker-slogan {
        color: #ffd54f; /* ← شعار سال طلایی */
        font-weight: 700;
    }

    .news-ticker-bar strong {
        color: #fff;
        font-weight: 700;
    }

    /* تلفن کلیک‌پذیر */
    .news-ticker-bar .ticker-phone {
        color: #fff;
        text-decoration: none;
        background: rgba(255, 255, 255, 0.12);
        padding: 3px 10px;
        border-radius: 15px;
        margin-inline-start: 8px;
        transition: all 0.3s;
        font-weight: 700;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

        .news-ticker-bar .ticker-phone:hover {
            background: #ffd54f;
            color: #1a237e;
            transform: translateY(-1px);
        }

    /* اورژانس با انیمیشن */
    .news-ticker-bar .ticker-emergency {
        color: #fff;
        background: #d32f2f;
        padding: 3px 10px;
        border-radius: 15px;
        margin-inline-start: 6px;
        font-weight: 600;
        animation: pulse-emergency 2s infinite;
    }

@keyframes pulse-emergency {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.6);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(211, 47, 47, 0);
    }
}

.ticker-right {
    text-align: right;
}

.ticker-center {
    text-align: center;
}

.ticker-left {
    text-align: left;
}

/* ============ موبایل ============ */
@media (max-width: 991px) {
    .news-ticker-bar {
        font-size: 12px;
        padding: 6px 0;
    }

    .ticker-right, .ticker-center, .ticker-left {
        text-align: center;
        padding: 3px 0;
    }

    .news-ticker-bar .ticker-item {
        margin-inline-end: 10px;
    }

    .news-ticker-bar .ticker-slogan {
        display: block;
        margin-top: 3px;
    }
}

@media (max-width: 575px) {
    .news-ticker-bar {
        font-size: 11px;
        padding: 5px 0;
    }

        .news-ticker-bar .ticker-phone,
        .news-ticker-bar .ticker-emergency {
            display: inline-block;
            margin-top: 3px;
            margin-inline-start: 3px;
            padding: 2px 8px;
        }
}
.dept-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    height: 100%;
    transition: 0.3s;
    box-shadow: 0 2px 12px rgba(26, 35, 126, 0.08);
    border: 1px solid #eef0f5;
}

    .dept-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(26, 35, 126, 0.15);
    }

.dept-image {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

    .dept-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
.doctor-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid #eef0f5;
    box-shadow: 0 3px 10px rgba(26, 35, 126, 0.15);
}

    .doctor-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.doctor-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a237e 0%, #232fa3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 50px;
    margin: 0 auto 15px;
    box-shadow: 0 3px 10px rgba(26, 35, 126, 0.25);
}
/* ==================== HEADER STICKY (فقط دسکتاپ) ==================== */
@media (min-width: 992px) {
    .header-bottom-row {
        position: sticky;
        top: 0;
        z-index: 999;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
}

/* ==================== منوی موبایل ==================== */
@media (max-width: 991px) {
    /* دکمه همبرگری */
    .header-bottom-row .navbar-toggler {
        border: 2px solid rgba(255, 255, 255, 0.5) !important;
        padding: 6px 10px;
        border-radius: 6px;
        background: transparent;
        box-shadow: none !important;
    }

        .header-bottom-row .navbar-toggler:focus {
            box-shadow: none !important;
        }

    /* منو (وقتی بسته) - پیش‌فرض بوت‌استرپ */
    .header-bottom-row .navbar-collapse {
        background: #1a237e;
        border-radius: 10px;
        margin-top: 10px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.1);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

        /* منو (وقتی باز) */
        .header-bottom-row .navbar-collapse.show {
            display: block !important;
            padding: 15px;
        }

    /* چیدمان عمودی */
    .header-bottom-row .main-menu {
        flex-direction: column;
        width: 100%;
        margin-bottom: 10px;
        gap: 0;
    }

        .header-bottom-row .main-menu .nav-item {
            width: 100%;
            text-align: right;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }

        .header-bottom-row .main-menu .nav-link {
            color: #fff !important;
            padding: 12px 10px;
            display: block;
            border-bottom: none;
        }

            .header-bottom-row .main-menu .nav-link:hover {
                background: rgba(255, 255, 255, 0.1);
                border-bottom-color: transparent;
            }

            /* حذف خط قرمز زیر منوها در موبایل */
            .header-bottom-row .main-menu .nav-link::after {
                display: none !important;
            }

    /* منوی کاربر */
    .header-bottom-row .user-menu {
        flex-direction: row !important;
        justify-content: center;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 12px;
        margin-top: 8px;
    }

        .header-bottom-row .user-menu::before {
            display: none;
        }

    /* Dropdownها */
    .header-bottom-row .dropdown-menu {
        position: static !important;
        background: rgba(255, 255, 255, 0.05);
        box-shadow: none;
        border-radius: 6px;
        margin: 5px 10px;
    }

    .header-bottom-row .dropdown-item {
        color: #fff;
        padding: 8px 12px;
    }

        .header-bottom-row .dropdown-item:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #ffd54f;
        }

    /* زیرمنو در موبایل */
    .dropdown-submenu > .dropdown-menu {
        position: static;
        margin: 0;
        padding-right: 20px;
        border: none;
        background-color: rgba(255, 255, 255, 0.05);
        box-shadow: none;
        display: block;
    }

    .dropdown-submenu > .dropdown-toggle::after {
        display: none;
    }

    /* رفع مشکل اسکرول */
    body {
        overflow-y: auto !important;
    }

    .header-bottom-row {
        overflow: visible !important;
    }
}
/* ==================== استایل اسلایدر پزشکان ==================== */
.doctors-swiper {
    width: 100%;
    padding-bottom: 50px;
    padding-top: 20px;
}

    .doctors-swiper .swiper-slide {
        width: 300px; /* عرض هر کارت */
        transition: transform 0.3s ease;
    }

        /* افکت هاور برای کارت‌ها */
        .doctors-swiper .swiper-slide:hover .doctor-card {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
        }

    /* استایل دکمه‌های ناوبری */
    .doctors-swiper .swiper-button-next,
    .doctors-swiper .swiper-button-prev {
        color: #1a237e; /* رنگ آبی تیره */
        background: #fff;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }

        .doctors-swiper .swiper-button-next::after,
        .doctors-swiper .swiper-button-prev::after {
            font-size: 16px;
            font-weight: bold;
        }

    /* استایل نقطه‌های پایین اسلایدر */
    .doctors-swiper .swiper-pagination-bullet-active {
        background: #1a237e;
    }
/* ==================== استایل مدرن پزشکان ==================== */
.doctors-swiper {
    width: 100%;
    padding-bottom: 20px;
}

    .doctors-swiper .swiper-slide {
        width: 240px; /* عرض هر کارت */
        transition: transform 0.4s ease;
    }

/* کارت پزشک */
.doctor-card-modern {
    position: relative;
    width: 100%;
    height: 360px; /* ارتفاع کارت */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: #fff;
    transition: all 0.3s ease;
}

/* تصویر پزشک (پورتال) */
.doctor-img-box {
    width: 100%;
    height: 100%;
}

    .doctor-img-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center; /* تمرکز روی چهره */
    }

/* کادر اطلاعات (پایین عکس) */
.doctor-info-box {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 60%, transparent 100%);
    color: #fff;
    text-align: center;
    border-radius: 0 0 16px 16px;
}

    .doctor-info-box h5 {
        margin: 0 0 5px 0;
        font-weight: 700;
        font-size: 1.1rem;
    }

    .doctor-info-box .specialty {
        margin: 0;
        font-size: 0.85rem;
        color: #d1d5db; /* رنگ خاکستری روشن */
    }

    .doctor-info-box .experience {
        margin: 5px 0 0 0;
        font-size: 0.75rem;
        color: #9ca3af;
    }

/* دکمه‌های ناوبری سفارشی (مربع‌های گرد) */
.custom-nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
}

    .custom-nav-btn:hover {
        background: #f3f4f6;
        border-color: #9ca3af;
    }

/* دکمه مشاهده همه */
.btn-view-all {
    display: inline-flex;
    align-items: center;
    padding: 10px 25px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

    .btn-view-all:hover {
        background: #f3f4f6;
        color: #1a237e;
    }

/* افکت هاور روی کارت‌های وسط */
.swiper-slide-active .doctor-card-modern {
    transform: scale(1.05); /* کارت وسط کمی بزرگ‌تر */
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    z-index: 10;
}
/* ==================== استایل اسلایدر اخبار ==================== */
.newsSwiper .swiper-slide {
    height: auto;
}

.news-modern-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

    .news-modern-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

.news-modern-image {
    display: block;
    height: 200px;
    overflow: hidden;
}

    .news-modern-image img,
    .news-modern-image video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.news-modern-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

    .news-modern-body h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
        line-height: 1.5;
    }

        .news-modern-body h3 a {
            color: #333;
            text-decoration: none;
            transition: color 0.3s;
        }

            .news-modern-body h3 a:hover {
                color: #1a237e;
            }

    .news-modern-body p {
        font-size: 0.9rem;
        color: #666;
        margin-bottom: 15px;
        flex: 1;
    }

.news-read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a237e;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}