﻿/* ===================================================
   تظیمات عمومی و فونت
   =================================================== */
body {
    font-family: 'Tahoma', 'Segoe UI', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* ===================================================
   هدر بالا (Top Bar)
   =================================================== */
.top-bar {
    background: linear-gradient(90deg, #0B2D52 0%, #145296 16%, #0C315A 82%);
    border-bottom: 1px solid #082B48;
    padding: 1rem 0;
}

.site-logo {
    height: 80px;
    width: 300px;
    max-width: 100%;
    object-fit: contain;
}

.phone-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

    .phone-link:hover {
        color: #38ef7d;
    }

.phone-icon {
    font-size: 1.2rem;
}
.fa-phone-R {
    transform: rotate(240deg);
}
/* ===================================================
   منوی اصلی (Navbar - وسط‌چین)
   =================================================== */
.navbar {
    margin-bottom: 0;
    background: linear-gradient(0deg, #0B2D52 0%, #155E9C 0%, #0F4C75 72%);
    color: #fff;
    border: none;
    border-radius: 0;
    padding: 0.3rem 0;
}

    .navbar .nav-link {
        color: rgba(255, 255, 255, 0.9) !important;
        padding: 0.8rem 1.4rem !important;
        font-weight: 500;
        transition: all 0.3s ease;
    }

        .navbar .nav-link:hover,
        .navbar .nav-link.active {
            color: #ffffff !important;
            background-color: rgba(255, 255, 255, 0.15);
            border-radius: 4px;
        }

.custom-toggler.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    padding: 0.4rem 0.6rem;
}

.custom-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
/* ===================================================
   اصلاح و یکپارچه‌سازی منوی چندسطحی
   =================================================== */

/* حذف فلش پیش‌فرض بوت‌استراپ از آیتم‌های سطح ۲ */
.dropdown-submenu > .dropdown-toggle::after {
    display: none !important;
}

/* ساخت فلش تمیز اختصاصی برای منوهای دارای زیرمنو (سطح ۳) */
.dropdown-submenu > .submenu-toggle {
    position: relative;
    padding-left: 2rem !important; /* ایجاد فضای خالی برای فلش در سمت چپ */
}

    /* فلش سمت چپ در حالت RTL دسکتاپ */
    .dropdown-submenu > .submenu-toggle::after {
        content: "\f104"; /* کد آیکون angle-left در Font Awesome */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
    }

/* حالت دسکتاپ (Min Width: 992px) */
@media (min-width: 992px) {
    .navbar .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .dropdown-submenu {
        position: relative;
    }

        .dropdown-submenu > .dropdown-menu {
            top: 0;
            right: 100%; /* باز شدن زیرمنو به سمت چپ */
            margin-top: -6px;
            display: none;
        }

        .dropdown-submenu:hover > .dropdown-menu {
            display: block;
        }
}

/* حالت موبایل و تبلت (Max Width: 991.98px) */
@media (max-width: 991.98px) {
    /* تغییر جهت فلش به سمت پایین در موبایل */
    .dropdown-submenu > .submenu-toggle::after {
        content: "\f107"; /* کد آیکون angle-down */
    }

    /* چرخش فلش هنگام باز شدن در موبایل */
    .dropdown-submenu.show > .submenu-toggle::after {
        transform: translateY(-50%) rotate(180deg);
    }

    .dropdown-submenu > .dropdown-menu {
        position: static;
        margin-right: 1rem;
        background-color: #08223e;
        border-right: 2px solid #38ef7d;
        border-left: none;
        box-shadow: none;
    }
}

/* بهینه‌سازی منوی چندسطحی برای موبایل و تبلت */
@media (max-width: 991.98px) {
    .dropdown-submenu > .dropdown-menu {
        position: static;
        margin-right: 1rem;
        background-color: #08223e;
        border-right: 2px solid #38ef7d;
        border-left: none;
    }

    .submenu-icon {
        transform: rotate(-90deg);
        float: left;
        transition: transform 0.3s ease;
    }

    .dropdown-submenu.show .submenu-icon {
        transform: rotate(0deg);
    }
}
/* ===================================================
   بخش محتوای اصلی
   =================================================== */
.main-content {
    min-height: 60vh;
}

/* ===================================================
   فوتر (Footer)
   =================================================== */
.site-footer {
    background-color: #08223e;
    color: #ffffff;
    margin-top: 3rem;
}

/* نوار تماس بالای فوتر (با استایل گرادینت منو) */
.footer-info-bar {
    background: linear-gradient(0deg, #0B2D52 0%, #155E9C 0%, #0F4C75 72%);
    padding: 1rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .footer-info-bar i {
        color: #38ef7d;
    }

/* بدنه فوتر */
.footer-body {
    background-color: #0B2D52;
}

.footer-logo-img {
    max-height: 90px;
    width: auto;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

    .footer-logo-img:hover {
        transform: translateY(-3px);
    }

.footer-menu a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

    .footer-menu a:hover {
        color: #38ef7d;
    }

/* دکمه‌های شبکه‌های اجتماعی */
.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .social-btn:hover {
        color: #fff;
        transform: translateY(-4px);
    }

    .social-btn.telegram:hover {
        background-color: #0088cc;
    }

    .social-btn.whatsapp:hover {
        background-color: #25D366;
    }

    .social-btn.instagram:hover {
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    }

    .social-btn.rubika:hover {
        background-color: #8a2be2;
    }

    .social-btn.bale:hover {
        background-color: #118c7e;
    }

/* نوار کپی‌رایت */
.copyright-bar {
    background-color: #06192e;
    font-size: 0.85rem;
    color: #b0c4de;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.company-link {
    color: #38ef7d;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

    .company-link:hover {
        color: #ffffff;
        text-decoration: underline;
    }

/* ===================================================
   بهینه‌سازی برای موبایل و تبلت
   =================================================== */
@media (max-width: 991.98px) {
    .site-logo {
        height: 60px;
        width: 200px;
    }

    .phone-number {
        font-size: 0.95rem;
    }

    .navbar-collapse {
        background-color: #0B2D52;
        padding: 1rem;
        border-radius: 8px;
        margin-top: 10px;
    }
}

@media (max-width: 575.98px) {
    .top-bar {
        padding: 0.75rem 0;
    }

    .footer-info-bar .info-item {
        margin-bottom: 0.5rem;
    }
}
/* ===================================================
   استایل‌های طرح جدید صفحه اصلی (ویرایش شده با فونت بزرگ‌تر و تراز دقیق)
   =================================================== */

.text-navy {
    color: #0B2D52;
}

.bg-primary-soft {
    background-color: rgba(21, 94, 156, 0.1);
}

/* ---------------------------------------------------
   ۱. کارت‌های دسترسی سریع (Quick Action Cards)
   --------------------------------------------------- */
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #38ef7d;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(56, 239, 125, 0.7);
    animation: pulse-green 2s infinite;
}

.quick-action-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.bg-soft-primary {
    background: rgba(20, 82, 150, 0.08);
    border: 1px solid rgba(20, 82, 150, 0.15);
    font-size: 0.85rem;
}
.rounded-pill {
    border-radius: var(--bs-border-radius-pill) !important;
}
.quick-actions-header h2 {
    font-size: 1.35rem;
    position: relative;
    display: inline-block;
}


.action-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 1.25rem 1.1rem;
    height: 100%;
    text-decoration: none;
    color: #333;
    box-shadow: 0 10px 25px rgba(11, 45, 82, 0.04);
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

    .action-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 4px;
        background: transparent;
        transition: background 0.3s ease;
    }
    .action-card .card-icon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem; /* افزایش سایز آیکون */
        margin-bottom: 0.8rem;
        transition: all 0.3s ease;
    }

    /* افزایش سایز فونت عنوان و توضیحات کارت‌ها */
    .action-card .card-info h5 {
        font-size: 1.1rem; /* بزرگ‌تر از قبل (قبلاً 0.95rem بود) */
        font-weight: 700;
        margin-bottom: 6px;
        color: #0B2D52;
    }

    .action-card .card-info p {
        font-size: 0.88rem; /* بزرگ‌تر از قبل (قبلاً 0.75rem بود) */
        color: #666;
        margin: 0;
        line-height: 1.4;
    }

    .action-card .card-arrow {
        position: absolute;
        left: 14px;
        bottom: 14px;
        font-size: 1rem;
        opacity: 0;
        transform: translateX(10px);
        transition: all 0.3s ease;
    }

/* رنگ‌بندی کارت‌ها */
.card-appointment .card-icon {
    background: #e3f2fd;
    color: #0d6efd;
}

.card-faq .card-icon {
    background: #e8f5e9;
    color: #198754;
}

.card-support .card-icon {
    background: #fff3cd;
    color: #ffc107;
}

.card-records .card-icon {
    background: #f3e5f5;
    color: #9c27b0;
}
/* رنگ نوار بالای کارت‌ها در حالت Hover */
.card-appointment:hover::before { background: #0d6efd; }
.card-faq:hover::before { background: #198754; }
.card-support:hover::before { background: #ffc107; }
.card-records:hover::before { background: #9c27b0; }
/* افکت Hover کارت‌ها */

.action-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(11, 45, 82, 0.12);
    border-color: transparent;
}
    .action-card:hover .card-icon {
        transform: scale(1.1);
    }
    .action-card:hover .card-arrow {
        opacity: 1;
        transform: translateX(0);
        color: #155E9C;
    }

/* ---------------------------------------------------
   ۲. اسلایدر اصلی (Hero Carousel - هم‌تراز شده)
   --------------------------------------------------- */
.hero-slider-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .hero-slider-wrapper .carousel-inner {
        height: 100%;
    }

    .hero-slider-wrapper .carousel-item {
        height: 420px;
        min-height: 420px;
        object-fit: fill;
    }

    /* تنظیم ارتفاع تصویر بر اساس ۱00% ارتفاع ستون جهت تراز کامل با سمت راست */
    .hero-slider-wrapper .hero-img {
        height: 420px;
        min-height: 420px;
        object-fit: fill;
    }

    .hero-slider-wrapper .carousel-caption {
        background: linear-gradient(0deg, rgba(11, 45, 82, 0.88) 0%, rgba(0,0,0,0) 100%);
        left: 0;
        right: 0;
        bottom: 0;
        padding: 2.5rem 1.8rem 1.2rem;
        text-align: right;
    }

        /* افزایش سایز فونت متن‌های روی اسلایدر */
        .hero-slider-wrapper .carousel-caption h3 {
            font-size: 1.4rem; /* بزرگ‌تر شده */
            font-weight: bold;
            color: #ffffff;
            margin-bottom: 6px;
        }

        .hero-slider-wrapper .carousel-caption p {
            font-size: 0.98rem; /* بزرگ‌تر شده */
            color: #f0f0f0;
            margin: 0;
        }

/* ---------------------------------------------------
   ۳. کارت‌های خدمات تصویری (Services Section)
   --------------------------------------------------- */
.section-title .sub-title {
    color: #155E9C;
    font-size: 0.95rem; /* بزرگ‌تر شده */
    font-weight: bold;
    letter-spacing: 1px;
}

.section-title h2 {
    font-size: 1.6rem; /* بزرگ‌تر شدن عنوان اصلی بخش */
}

.service-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}

.service-img-wrapper {
    position: relative;
    height: 300px; 
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.5s ease;
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 45, 82, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-content {
    padding: 1.1rem 0.6rem;
}

    /* افزایش سایز فونت عناوین ۵ خدمت */
    .service-content h5 {
        font-size: 1.05rem; /* بزرگ‌تر و خواناتر (قبلاً 0.88rem بود) */
        font-weight: bold;
        color: #0B2D52;
        margin-bottom: 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.service-more {
    font-size: 0.85rem; /* بزرگ‌تر شده */
    color: #155E9C;
    font-weight: 600;
}

/* افکت Hover خدمات */
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

    .service-card:hover .service-img {
        transform: scale(1.08);
    }

    .service-card:hover .service-overlay {
        opacity: 1;
    }

/* ---------------------------------------------------
   بهینه‌سازی ریسپانسو برای تراز در دسکتاپ و موبایل
   --------------------------------------------------- */
@media (min-width: 992px) {
    /* تنظیم هم‌ارتفاعی کامل (Equal Height) برای دو ستون اصلی در دسکتاپ */
    .hero-section .row {
        display: flex;
        align-items: stretch;
    }
}

@media (max-width: 991.98px) {
    .hero-slider-wrapper .hero-img {
        height: 280px;
        min-height: auto;
    }

    .action-card {
        min-height: 145px;
        padding: 1rem;
    }

        .action-card .card-info h5 {
            font-size: 0.98rem;
        }
}
/* ===================================================
   استایل بخش معرفی کلینیک
   =================================================== */
.intro-main-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    box-shadow: 0 15px 35px rgba(11, 45, 82, 0.06) !important;
}

.intro-description p {
    text-align: justify;
    line-height: 1.95;
    font-size: 1.02rem;
    color: #4a5568 !important;
}

.intro-stats-box {
    background: linear-gradient(135deg, #0B2D52 0%, #155E9C 100%);
    box-shadow: 0 10px 25px rgba(21, 94, 156, 0.25);
    overflow: hidden;
}
.text-green {
    color: #38ef7d;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #38ef7d;
    flex-shrink: 0;
}

.intro-stats-box ul li span {
    font-size: 0.98rem;
    font-weight: 500;
}
.intro-header h3 {
    font-size: 1.25rem !important;  
    letter-spacing: -0.2px;
}

.intro-header .badge {
    font-size: 0.8rem;
}
.title-line {
    width: 65px;
    height: 3px;
    background: #155E9C;
    border-radius: 2px;
}
/* ===================================================
   استایل بخش اخبار و مجله سلامت
   =================================================== */

/* دکمه‌های تب‌بندی */
.news-tabs .nav-link {
    color: #4a5568;
    background-color: #f1f5f9;
    border-radius: 20px;
    padding: 0.5rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .news-tabs .nav-link.active,
    .news-tabs .nav-link:hover {
        background-color: #0B2D52;
        color: #ffffff;
    }

/* کارت عمومی مقاله */
.news-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

    .news-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 25px rgba(11, 45, 82, 0.08);
        border-color: #cbd5e1;
    }

/* عکس مقاله */
.news-img-wrapper {
    position: relative;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.news-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #38ef7d;
    color: #0B2D52;
    font-weight: bold;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 12px;
}

/* کارت اصلی (Featured) */
.featured-news .news-img-wrapper {
    height: 230px;
}

.featured-news .news-body {
    padding: 1.25rem;
}

/* کارت افقی (Horizontal) */
.horizontal-news .news-img-wrapper {
    height: 110px;
}

.news-title a {
    color: #0B2D52;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s ease;
}

    .news-title a:hover {
        color: #155E9C;
    }

.news-meta {
    font-size: 0.78rem;
    color: #888;
}

.btn-read-more {
    color: #155E9C;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
}

    .btn-read-more:hover {
        color: #0B2D52;
        transform: translateX(-4px);
    }

