/* ============================================================
   همدرد اول - یکپارچه‌سازی ظاهر سایت (Redesign)
   این فایل بعد از site.min.css بارگذاری می‌شود.
   ============================================================ */

:root {
    --hd-primary: #4f46e5;
    --hd-primary-dark: #3730a3;
    --hd-primary-light: #6d7df8;
    --hd-secondary: #1b3a5c;
    --hd-accent: #9333ea;
    --hd-accent-dark: #7e22ce;
    --hd-bg: #f4f7fa;
    --hd-text: #26364a;
    --hd-muted: #6c7a89;
    --hd-white: #ffffff;
    --hd-border: #e7eef4;
    --hd-shadow: 0 12px 32px -12px rgba(79, 70, 229, 0.22);
    --hd-shadow-hover: 0 22px 44px -14px rgba(79, 70, 229, 0.32);
    --hd-radius: 16px;
    --hd-gradient: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    --hd-gradient-soft: linear-gradient(135deg, #eef2ff 0%, #eff6ff 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--hd-text);
    background-color: var(--hd-bg);
}

.body-background {
    background-color: var(--hd-bg) !important;
    background-image: none !important;
}

/* ---------- عنوان و جایگزینی تصاویر عنوان بخش‌ها ---------- */
.home-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--hd-secondary);
    margin: 10px 0 22px;
    text-align: center;
}

    .home-section-title::before,
    .home-section-title::after {
        content: "";
        height: 2px;
        width: 18%;
        min-width: 40px;
        background: linear-gradient(90deg, transparent, var(--hd-accent));
        border-radius: 2px;
    }

    .home-section-title::after {
        background: linear-gradient(270deg, transparent, var(--hd-accent));
    }

@media (max-width: 767px) {
    .home-section-title {
        font-size: 1.25rem;
    }
}

/* ---------- هدر و نوار بالا ---------- */
.hd-topbar {
    background: var(--hd-secondary);
    color: #dfeaf3;
    font-size: 0.82rem;
    padding: 6px 0;
}

.hd-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 16px;
}

.hd-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hd-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 22px;
}

    .hd-topbar-item .fa {
        color: var(--hd-accent);
    }

.hd-topbar-social {
    display: flex;
    align-items: center;
    gap: 4px;
}

    .hd-topbar-social a {
        color: #dfeaf3 !important;
        background: rgba(255, 255, 255, 0.08);
        width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-size: 0.9rem;
        transition: all 0.25s ease;
    }

        .hd-topbar-social a:hover {
            background: var(--hd-accent);
            color: var(--hd-secondary) !important;
            transform: translateY(-2px);
        }

@media (max-width: 767px) {
    .hd-topbar-social {
        display: none;
    }

    .hd-topbar-inner {
        justify-content: center;
        text-align: center;
    }
}

/* ---------- نوار ناوبری ---------- */
.hd-navbar.navbar {
    background: var(--hd-white);
    border-bottom: 1px solid var(--hd-border);
    border-top: 3px solid var(--hd-primary);
    box-shadow: 0 6px 24px -18px rgba(27, 58, 92, 0.45);
    padding: 0.55rem 1.2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.hd-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
}

    .hd-brand img.logo {
        width: 58px;
        height: 58px;
        object-fit: contain;
        border-radius: 14px;
        background: var(--hd-gradient-soft);
        padding: 6px;
        position: static !important;
    }

.hd-brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--hd-secondary) !important;
    white-space: nowrap;
}

.hd-brand-tagline {
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--hd-muted);
}

.hd-navbar .nav-list-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 8px;
}

.hd-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.hd-navbar .btnCustom {
    color: var(--hd-secondary) !important;
    background: transparent;
    border-radius: 12px;
    padding: 9px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.22s ease;
    position: relative;
}

    .hd-navbar .btnCustom:hover {
        background: var(--hd-gradient-soft);
        color: var(--hd-primary) !important;
        transform: translateY(-2px);
    }

    .hd-navbar .btnCustom.register {
        background: var(--hd-gradient);
        color: #fff !important;
        box-shadow: 0 8px 18px -8px rgba(14, 124, 121, 0.65);
    }

        .hd-navbar .btnCustom.register:hover {
            background: linear-gradient(135deg, #0a5a58 0%, #155a8a 100%);
            color: #fff !important;
        }

    .hd-navbar .btnCustom#loginBtn,
    .hd-navbar a#loginBtn {
        color: var(--hd-primary) !important;
        border: 1.5px solid var(--hd-primary);
        background: transparent;
    }

        .hd-navbar .btnCustom#loginBtn:hover,
        .hd-navbar a#loginBtn:hover {
            background: var(--hd-primary);
            color: #fff !important;
        }

.hd-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hd-navbar .searchIcon {
    color: var(--hd-secondary) !important;
    font-size: 1.15rem;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--hd-gradient-soft);
    cursor: pointer;
    transition: all 0.25s ease;
}

    .hd-navbar .searchIcon:hover {
        background: var(--hd-primary);
        color: #fff !important;
    }

.hd-navbar .toggler .line {
    background: var(--hd-secondary);
}

/* جابجایی متن‌های قدیمی نوار */
.text-navbar {
    visibility: visible;
    color: inherit;
}

/* ---------- منوی کشویی دسکتاپ (از دیتابیس) ---------- */
.hd-menu-item {
    position: relative;
    display: inline-block;
}

.hd-menu-item.has-child > .btnCustom {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hd-chevron {
    font-size: 0.65rem;
    transition: transform 0.25s ease;
}

.hd-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: var(--hd-white);
    border: 1px solid var(--hd-border);
    border-top: 3px solid var(--hd-primary);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 18px 40px -18px rgba(27, 58, 92, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 1100;
}

.hd-dropdown-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--hd-secondary);
    font-size: 0.9rem;
    font-weight: 400;
    padding: 9px 12px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: background 0.18s ease, color 0.18s ease, padding-right 0.18s ease;
}

.hd-dropdown-link:hover {
    background: var(--hd-gradient-soft);
    color: var(--hd-primary) !important;
    padding-right: 16px;
}

.hd-menu-item.has-child:hover .hd-dropdown,
.hd-menu-item.has-child:focus-within .hd-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hd-menu-item.has-child:hover .hd-chevron {
    transform: rotate(180deg);
}

/* ---------- منوی کشویی موبایل ---------- */
@media (max-width: 900px) {
    .hd-navbar.navbar {
        flex-wrap: wrap;
        min-height: 66px;
    }

    .hd-navbar .nav-list-container {
        position: fixed;
        top: 0;
        right: 0;
        width: min(86vw, 340px);
        height: 100vh;
        height: 100dvh;
        background: var(--hd-white);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 88px 20px 24px;
        gap: 8px;
        transform: translateX(110%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.35s ease, opacity 0.3s ease, visibility 0.3s;
        box-shadow: -18px 0 40px -20px rgba(0, 0, 0, 0.35);
        z-index: 998;
        overflow-y: auto;
        border-radius: 0 24px 24px 0;
    }

        .hd-navbar .nav-list-container.nav-active {
            transform: translateX(0);
            opacity: 1;
            visibility: visible;
        }

    .hd-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin-bottom: 16px;
    }

    .hd-menu-item.has-child .hd-chevron {
        display: none;
    }

    .hd-menu-item.has-child > .btnCustom {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .hd-dropdown {
        position: static;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        border-top: 1px dashed var(--hd-border);
        border-radius: 0;
        box-shadow: none;
        padding: 4px 0 6px 0;
        margin: 0 8px 0 0;
    }

    .hd-dropdown-link {
        padding: 10px 14px;
    }

        .hd-dropdown-link:hover {
            padding-right: 18px;
        }

    .hd-navbar .btnCustom {
        display: block;
        text-align: right;
        padding: 12px 16px;
        border-radius: 12px;
        background: var(--hd-bg);
        color: var(--hd-secondary) !important;
        width: 100%;
    }

        .hd-navbar .btnCustom:hover {
            background: var(--hd-gradient-soft);
        }

        .hd-navbar .btnCustom.register {
            color: #fff !important;
        }

    .hd-nav-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .hd-navbar .searchIcon {
        width: 100%;
        height: 46px;
        border-radius: 14px;
        justify-content: center;
        gap: 8px;
        background: var(--hd-bg);
    }

    .hd-navbar .toggler {
        display: block !important;
        order: 3;
        margin-inline-start: auto;
    }

    .hd-brand-name {
        font-size: 1rem;
    }

    .hd-brand .hd-brand-tagline {
        display: none;
    }
}

@media (max-width: 767px) {
    .hd-navbar.navbar {
        padding: 0.5rem 0.8rem;
    }

    .hd-brand img.logo {
        width: 46px;
        height: 46px;
    }
}

/* ---------- پاپ‌اور و مودال جستجو ---------- */
.search-div {
    background: rgba(27, 58, 92, 0.96);
    backdrop-filter: blur(4px);
}

.search-div form.form-search {
    color: #fff;
}

.search-div .search {
    border-radius: 30px;
    padding: 12px 18px;
    border: none;
}

.search-div .close {
    background: var(--hd-accent) !important;
    color: var(--hd-secondary) !important;
}

/* ---------- کارت‌ها و محتوا ---------- */
.WhiteCard {
    color: var(--hd-text);
    background-color: var(--hd-white);
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius);
    box-shadow: var(--hd-shadow);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

    .WhiteCard:hover {
        transform: translateY(-6px);
        box-shadow: var(--hd-shadow-hover);
    }

    .WhiteCard > a > .carouselImg,
    .WhiteCard .carouselImg {
        height: 150px !important;
        width: 100%;
        object-fit: cover;
        border-radius: 0;
        transition: transform 0.4s ease;
    }

    .WhiteCard > a:hover .carouselImg {
        transform: scale(1.04);
    }

    .WhiteCard a p {
        color: var(--hd-text);
        font-weight: 600;
    }

    .WhiteCard a:hover p {
        color: var(--hd-primary);
    }

.equalRow {
    min-height: 44px;
    line-height: 1.6;
}

/* اسلایدر */
.slick .bannerHeader {
    color: var(--hd-secondary);
}

.slick .slide {
    border-radius: 20px;
    overflow: hidden;
}

[dir='rtl'] .slick .slick-next,
[dir='rtl'] .slick .slick-prev {
    background: rgba(255, 255, 255, 0.7);
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

/* ---------- دکمه‌ها ---------- */
.btn-info,
.btn-info:hover,
.btn-info:focus {
    background: var(--hd-gradient) !important;
    border-color: var(--hd-primary) !important;
    color: #fff !important;
    border-radius: 12px;
    box-shadow: 0 8px 18px -8px rgba(14, 124, 121, 0.6);
}

/* لینک آرشیو */
.hd-archive-row {
    text-align: left;
    margin-top: 18px;
}

.hd-archive-btn {
    padding: 10px 24px;
    font-weight: 700;
}

.btn-success {
    background: var(--hd-primary) !important;
    border-color: var(--hd-primary) !important;
    border-radius: 10px;
}

.btn-reserve {
    background: var(--hd-gradient) !important;
    border: none;
}

.badge-primary {
    background: var(--hd-primary) !important;
}

.badge-success {
    background: #1c8a6c !important;
}

/* عنوان بخش‌ها در صفحات داخلی */
.card-title {
    color: var(--hd-secondary);
}

/* ---------- فوتر ---------- */
.hd-footer {
    margin-top: 40px;
    color: #d7e3ee;
    direction: rtl;
}

.hd-footer-main {
    background: linear-gradient(160deg, #12283c 0%, #0f2133 55%, #0e7c79 160%);
    padding: 48px 0 32px;
}

.hd-fcol h5 {
    color: var(--hd-accent);
    font-size: 1.02rem;
    margin-bottom: 18px;
    font-weight: 800;
    position: relative;
    padding-bottom: 10px;
}

    .hd-fcol h5::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        width: 42px;
        height: 3px;
        border-radius: 3px;
        background: var(--hd-accent);
    }

.hd-fcol p,
.hd-fcol li {
    color: #c6d4e1;
    font-size: 0.88rem;
    line-height: 2;
}

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

    .hd-footer-links li {
        margin-bottom: 4px;
    }

    .hd-footer-links a {
        color: #c6d4e1 !important;
        text-decoration: none;
        transition: all 0.22s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

        .hd-footer-links a:hover {
            color: var(--hd-accent) !important;
            padding-right: 6px;
        }

        .hd-footer-links a .fa {
            color: var(--hd-primary-light);
            font-size: 0.75rem;
        }

.hd-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

    .hd-footer-brand img {
        width: 58px;
        height: 58px;
        object-fit: contain;
        border-radius: 14px;
        background: #fff;
        padding: 6px;
    }

    .hd-footer-brand h4 {
        color: #fff;
        font-weight: 800;
        margin: 0;
    }

.hd-footer-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

    .hd-footer-social a {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.1);
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        font-size: 1.05rem;
        transition: all 0.25s ease;
    }

        .hd-footer-social a:hover {
            background: var(--hd-accent);
            color: var(--hd-secondary) !important;
            transform: translateY(-3px);
        }

.hd-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

    .hd-footer-contact li .fa {
        color: var(--hd-accent);
        margin-top: 5px;
        min-width: 18px;
    }

.hd-footer-enamad {
    margin-top: 16px;
}

.hd-footer-bottom {
    background: #0b1d2e;
    padding: 16px 0;
    font-size: 0.8rem;
    color: #9fb2c4;
}

    .hd-footer-bottom .hd-footer-bottom-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 6px 12px;
    }

    .hd-footer-bottom a {
        color: var(--hd-accent) !important;
    }

@media (max-width: 575px) {
    .hd-footer-main {
        padding-top: 36px;
    }

    .hd-fcol {
        margin-bottom: 26px;
    }

    .hd-footer-bottom .hd-footer-bottom-inner {
        justify-content: center;
        text-align: center;
    }
}

/* ---------- وضوح فضای اصلی ---------- */
.container {
    padding-right: 15px;
    padding-left: 15px;
}

.container h2 {
    border-bottom: 2px solid var(--hd-border);
    padding-bottom: 10px;
}

/* ---------- رفع مشکل عرض تصاویر در موبایل ---------- */
@media only screen and (max-width: 480px) {
    .hd-brand img.logo,
    .hd-footer-brand img,
    .hd-topbar img {
        width: auto !important;
        max-width: 90% !important;
    }

    .hd-footer-brand img {
        width: 52px !important;
    }
}

/* ---------- پیام‌ها و فرم‌ها ---------- */
.form-control:focus {
    border-color: var(--hd-primary);
    box-shadow: 0 0 0 0.2rem rgba(14, 124, 121, 0.18);
}

.modal-title,
h6.modal-title {
    color: var(--hd-secondary);
}

/* ---------- براکامپ نهان برای دسترس‌پذیری ---------- */
.hd-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}