/* =====================================================================
   صفحه اصلی - نسخه ۲
   فقط در صفحه اصلی بارگذاری می‌شود (Views/Main/Index.cshtml)
   ===================================================================== */

:root {
    --hv2-navy: #0b3d5c;
    --hv2-navy-deep: #082c43;
    --hv2-teal: #1a7a6d;
    --hv2-teal-soft: #e6f3f1;
    --hv2-ink: #183247;
    --hv2-muted: #5d7184;
    --hv2-line: #e3eaef;
    --hv2-surface: #f5f8fa;
    --hv2-gold: #c59b27;
    --hv2-radius: 18px;
    --hv2-shadow: 0 1px 2px rgba(11, 61, 92, 0.05), 0 8px 24px rgba(11, 61, 92, 0.07);
    --hv2-shadow-hover: 0 2px 4px rgba(11, 61, 92, 0.06), 0 18px 36px rgba(11, 61, 92, 0.14);
}

/* ---------- عمومی ---------- */
.hv2-section {
    padding-top: 3rem;
    padding-bottom: 1rem;
}

.hv2-head {
    text-align: center;
    margin-bottom: 1.75rem;
}

.hv2-head--start {
    text-align: right;
    margin-bottom: 1.25rem;
}

.hv2-head--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    text-align: right;
}

.hv2-title {
    position: relative;
    display: inline-block;
    margin: 0;
    padding-bottom: 0.7rem;
    color: var(--hv2-navy) !important;
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px;
    line-height: 1.5;
}

.hv2-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 56px;
    height: 4px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--hv2-teal), var(--hv2-navy));
}

.hv2-head--start .hv2-title::after,
.hv2-head--split .hv2-title::after {
    right: 0;
    transform: none;
}

.hv2-subtitle {
    margin: 0.4rem 0 0;
    color: var(--hv2-muted);
    font-size: 0.92rem;
}

.hv2-head--light .hv2-title {
    color: #fff !important;
}

.hv2-head--light .hv2-title::after {
    background: linear-gradient(90deg, #7fd3c4, rgba(255, 255, 255, 0.6));
}

.hv2-link-more,
.hv2-panel-more {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1rem;
    border-radius: 99px;
    border: 1px solid var(--hv2-line);
    background: #fff;
    color: var(--hv2-navy) !important;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hv2-link-more i,
.hv2-panel-more i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.hv2-link-more:hover,
.hv2-panel-more:hover {
    background: var(--hv2-navy);
    border-color: var(--hv2-navy);
    color: #fff !important;
}

.hv2-link-more:hover i,
.hv2-panel-more:hover i {
    transform: translateX(-3px);
}

/* ---------- اسلایدر ---------- */
.hv2-slider {
    position: relative;
}

.hv2-slider #owl-mainslider {
    margin-bottom: 0;
}

.hv2-slider #owl-mainslider .item a {
    position: relative;
    display: block;
}

.hv2-slider #owl-mainslider .item a::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 38%;
    background: linear-gradient(180deg, rgba(8, 44, 67, 0) 0%, rgba(8, 44, 67, 0.45) 100%);
    pointer-events: none;
}

.hv2-slider #owl-mainslider .item img {
    border-radius: 0 !important;
}

.hv2-noslider {
    height: 120px;
}

.hv2-noslider + .hv2-daynote-wrap {
    margin-top: 0;
}

/* ---------- پیام روز (زیر اسلایدر) ---------- */
.hv2-daynote-wrap {
    position: relative;
    z-index: 5;
    margin-top: -38px;
}

.hv2-daynote {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0.85rem 0.85rem 1.1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(227, 234, 239, 0.9);
    box-shadow: 0 14px 40px rgba(8, 44, 67, 0.16);
    backdrop-filter: blur(8px);
    animation: hv2-rise 0.6s ease 0.15s both;
}

.hv2-daynote-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--hv2-navy), var(--hv2-teal));
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(11, 61, 92, 0.25);
}

.hv2-daynote-badge i {
    font-size: 1rem;
}

.hv2-daynote-pulse {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7fe0cf;
}

.hv2-daynote-pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #7fe0cf;
    animation: hv2-pulse 1.8s ease-out infinite;
}

.hv2-daynote-text {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: var(--hv2-ink) !important;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.8;
    text-decoration: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

a.hv2-daynote-text:hover {
    color: var(--hv2-teal) !important;
}

.hv2-daynote-more {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: var(--hv2-teal-soft);
    color: var(--hv2-teal) !important;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.hv2-daynote-more:hover {
    background: var(--hv2-teal);
    color: #fff !important;
}

/* ---------- ریاست + دسترسی سریع ---------- */
.hv2-intro {
    padding-top: 2.25rem !important;
}

.hv2-intro .home-leader-link {
    max-width: none;
}

.hv2-intro .executive-card {
    margin-top: 0;
}

.hv2-quicknav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 1rem;
}

.hv2-quicknav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 50px;
    padding: 0.55rem 0.75rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--hv2-line);
    color: var(--hv2-ink) !important;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(11, 61, 92, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hv2-quicknav-link i {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--hv2-teal-soft);
    color: var(--hv2-teal);
    font-size: 1rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.hv2-quicknav-link:hover {
    transform: translateY(-2px);
    border-color: transparent;
    background: var(--hv2-navy);
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(11, 61, 92, 0.22);
}

.hv2-quicknav-link:hover i {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

/* کاشی‌ها */
.hv2-tiles > [class*="col-"] {
    margin-bottom: 1.25rem;
}

.hv2-tile {
    display: block;
    height: 100%;
    min-height: 205px;
    text-decoration: none !important;
    color: #fff !important;
}

.hv2-tile-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.55rem;
    height: 100%;
    min-height: 205px;
    padding: 1.35rem 1.4rem;
    text-align: right;
}

.hv2-tile .home-tile-overlay {
    background: linear-gradient(200deg, rgba(8, 36, 54, 0.25) 0%, rgba(8, 36, 54, 0.82) 100%);
    transition: background 0.3s ease;
}

.hv2-tile:hover .home-tile-overlay {
    background: linear-gradient(200deg, rgba(11, 61, 92, 0.35) 0%, rgba(8, 44, 67, 0.9) 100%);
}

.hv2-tile-icon {
    flex: 0 0 auto;
    margin-bottom: auto;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    font-size: 1.25rem;
    color: #fff;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hv2-tile:hover .hv2-tile-icon {
    background: var(--hv2-teal);
    border-color: var(--hv2-teal);
    transform: rotate(-6deg) scale(1.05);
}

.hv2-tile-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    min-width: 0;
    max-width: 100%;
}

.hv2-tile-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hv2-tile-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.9rem;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    transition: background 0.25s ease, color 0.25s ease;
}

.hv2-tile-btn i {
    font-size: 0.75rem;
    transition: transform 0.25s ease;
}

.hv2-tile:hover .hv2-tile-btn {
    background: #fff;
    color: var(--hv2-navy);
}

.hv2-tile:hover .hv2-tile-btn i {
    transform: translateX(-3px);
}

/* کاشی‌های فشرده (وقتی تعداد زیاد است): آیکون کنار عنوان، ارتفاع کم */
.hv2-tiles--compact > [class*="col-"] {
    margin-bottom: 0.85rem;
}

.hv2-tiles--compact .hv2-tile,
.hv2-tiles--compact .hv2-tile-body {
    min-height: 88px;
}

.hv2-tiles--compact .hv2-tile {
    border-radius: 14px !important;
}

.hv2-tiles--compact .hv2-tile-body {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
    padding: 0.8rem 0.9rem;
}

.hv2-tiles--compact .hv2-tile-icon {
    margin-bottom: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.1rem;
}

.hv2-tiles--compact .hv2-tile-text {
    flex: 1 1 auto;
    gap: 0.25rem;
}

.hv2-tiles--compact .hv2-tile-title {
    font-size: 0.95rem;
    line-height: 1.55;
    -webkit-line-clamp: 2;
}

.hv2-tiles--compact .hv2-tile-btn {
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0.76rem;
    font-weight: 600;
    opacity: 0.85;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hv2-tiles--compact .hv2-tile:hover .hv2-tile-btn {
    background: transparent;
    color: #fff;
    opacity: 1;
}

/* اگر ردیف آخر کامل نباشد، کاشی آخر فضای خالی همان ردیف را پر می‌کند */
.hv2-tiles--compact > [class*="col-"]:last-child {
    flex-grow: 1;
    max-width: 100%;
}

/* دکمه آمار آنلاین در ستون ریاست (حالت فشرده) */
.hv2-quicknav-link--accent {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--hv2-navy), var(--hv2-teal));
    border-color: transparent;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(11, 61, 92, 0.2);
}

.hv2-quicknav-link--accent i {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.hv2-quicknav-link--accent .hv2-quicknav-arrow {
    width: auto;
    height: auto;
    margin-right: auto;
    background: transparent;
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.hv2-quicknav-link--accent:hover .hv2-quicknav-arrow {
    transform: translateX(-4px);
}

/* ---------- کارت‌های آیکون‌دار (حوزه‌ها و گروه‌های تخصصی) ---------- */
.hv2-depts {
    padding-bottom: 2rem;
}

.hv2-iconcard {
    margin: 0.5rem 0.4rem 1rem;
    border-radius: var(--hv2-radius);
    background: #fff;
    border: 1px solid var(--hv2-line);
    box-shadow: var(--hv2-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hv2-iconcard:hover {
    transform: translateY(-4px);
    border-color: rgba(26, 122, 109, 0.35);
    box-shadow: var(--hv2-shadow-hover);
}

.hv2-iconcard a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    padding: 1.4rem 1rem 1.25rem;
    min-height: 168px;
    text-decoration: none !important;
}

.hv2-iconcard-icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, var(--hv2-teal-soft) 70%);
    border: 1px solid rgba(26, 122, 109, 0.15);
    transition: transform 0.3s ease;
}

.hv2-iconcard:hover .hv2-iconcard-icon {
    transform: scale(1.06);
}

.owl-carousel .hv2-iconcard-icon img {
    width: 44px !important;
    height: 44px;
    object-fit: contain;
}

.hv2-iconcard-title {
    margin: 0;
    color: var(--hv2-ink) !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    line-height: 1.6;
}

.hv2-iconcard:hover .hv2-iconcard-title {
    color: var(--hv2-teal) !important;
}

/* گروه‌های تخصصی روی پس‌زمینه تیره */
.hv2-specialties {
    margin-top: 3rem;
    padding-top: 3rem !important;
    padding-bottom: 2.5rem !important;
    margin-bottom: 0 !important;
}

.hv2-specialties .hv2-iconcard {
    border-color: transparent;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

/* ---------- سامانه‌ها و پیوندها ---------- */
.hv2-systems {
    padding-top: 2.5rem;
    padding-bottom: 0.5rem;
    background: linear-gradient(180deg, var(--hv2-surface) 0%, #ffffff 100%);
}

.hv2-syscard {
    height: 100%;
    padding: 0.75rem 0.75rem 1rem;
    border-radius: var(--hv2-radius);
    background: #fff;
    border: 1px solid var(--hv2-line);
    box-shadow: var(--hv2-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hv2-syscard:hover {
    transform: translateY(-4px);
    box-shadow: var(--hv2-shadow-hover);
}

.hv2-syscard-media {
    overflow: hidden;
    border-radius: 13px;
    aspect-ratio: 16 / 10;
}

.hv2-syscard-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.hv2-syscard:hover .hv2-syscard-media img {
    transform: scale(1.05);
}

.hv2-syscard-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.9rem 0 0.6rem;
    padding: 0.55rem 0.85rem;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--hv2-navy), var(--hv2-teal));
    color: #fff !important;
    font-size: 0.98rem !important;
    font-weight: 800 !important;
}

.hv2-syscard-list {
    list-style: none;
    margin: 0;
    padding: 0 0.25rem;
}

.hv2-syscard-list li a {
    position: relative;
    display: block;
    padding: 0.42rem 1.1rem 0.42rem 0.25rem;
    border-radius: 8px;
    color: #14384f !important;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.6;
    text-decoration: none !important;
    transition: color 0.2s ease, background 0.2s ease, padding 0.2s ease;
}

.hv2-syscard-list li a::before {
    content: "";
    position: absolute;
    right: 0.25rem;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 2px;
    transform: rotate(45deg);
    background: var(--hv2-teal);
    transition: background 0.2s ease;
}

.hv2-syscard-list li a:hover {
    background: var(--hv2-teal-soft);
    color: var(--hv2-teal) !important;
    padding-right: 1.35rem;
}

/* ---------- کارت خبر و وبلاگ ---------- */
.hv2-post {
    display: flex;
    flex-direction: column;
    height: 410px;
    margin: 0.5rem 0.5rem 1.25rem;
    overflow: hidden;
    border-radius: var(--hv2-radius);
    background: #fff;
    border: 1px solid var(--hv2-line);
    box-shadow: var(--hv2-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hv2-post:hover {
    transform: translateY(-4px);
    box-shadow: var(--hv2-shadow-hover);
}

.hv2-post-media {
    position: relative;
    display: block;
    flex: 0 0 auto;
    height: 190px;
    overflow: hidden;
    background: var(--hv2-surface);
}

.owl-carousel .hv2-post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hv2-post:hover .hv2-post-media img {
    transform: scale(1.05);
}

.hv2-post-date {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--hv2-navy);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(8, 44, 67, 0.15);
}

.hv2-post-date i {
    color: var(--hv2-teal);
}

.hv2-post-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 1rem 1.1rem 1rem;
}

.hv2-post-title {
    margin: 0 0 0.5rem;
    font-size: 0.98rem !important;
    font-weight: 800 !important;
    line-height: 1.7 !important;
}

.hv2-post-title a {
    color: var(--hv2-ink) !important;
    text-decoration: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.hv2-post:hover .hv2-post-title a {
    color: var(--hv2-teal) !important;
}

.hv2-post-excerpt {
    margin: 0;
    color: var(--hv2-muted);
    font-size: 0.85rem;
    line-height: 1.85;
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hv2-post-more {
    display: inline-flex;
    align-items: center;
    align-self: flex-end;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.6rem;
    color: var(--hv2-teal) !important;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none !important;
}

.hv2-post-more i {
    font-size: 0.78rem;
    transition: transform 0.2s ease;
}

.hv2-post:hover .hv2-post-more i {
    transform: translateX(-4px);
}

/* ---------- پنل تب‌ها ---------- */
.hv2-panel {
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--hv2-line);
    box-shadow: var(--hv2-shadow);
}

.hv2-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--hv2-line);
    background: linear-gradient(180deg, #fbfcfd, #f5f8fa);
}

.hv2-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.hv2-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.95rem !important;
    border: 0 !important;
    border-radius: 11px;
    color: var(--hv2-muted) !important;
    font-size: 0.88rem;
    font-weight: 700;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease;
}

.hv2-tabs .nav-link:hover {
    background: rgba(11, 61, 92, 0.06);
    color: var(--hv2-navy) !important;
}

.hv2-tabs .nav-link.active {
    background: var(--hv2-navy) !important;
    color: #fff !important;
    box-shadow: 0 6px 14px rgba(11, 61, 92, 0.22);
}

.hv2-panel-body {
    padding: 0.75rem;
}

.hv2-tablist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 0.75rem;
    max-height: 372px;
    margin: 0;
    padding: 0.25rem;
    overflow-y: auto;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(11, 61, 92, 0.25) transparent;
}

.hv2-tablist::-webkit-scrollbar {
    width: 6px;
}

.hv2-tablist::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: rgba(11, 61, 92, 0.25);
}

.hv2-tablist-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.55rem 0.65rem;
    border-radius: 13px;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.hv2-tablist-item:hover {
    background: var(--hv2-surface);
}

.hv2-tablist-item img {
    flex: 0 0 auto;
    width: 84px;
    height: 58px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--hv2-surface);
}

.hv2-tablist-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.hv2-tablist-title {
    color: var(--hv2-ink);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.hv2-tablist-item:hover .hv2-tablist-title {
    color: var(--hv2-teal);
}

.hv2-tablist-date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--hv2-muted);
    font-size: 0.76rem;
}

.hv2-tablist-date i {
    color: var(--hv2-teal);
}

.hv2-tablist-arrow {
    flex: 0 0 auto;
    color: #b7c5cf;
    font-size: 0.8rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.hv2-tablist-item:hover .hv2-tablist-arrow {
    color: var(--hv2-teal);
    transform: translateX(-3px);
}

.hv2-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 3rem 1rem;
    color: var(--hv2-muted);
    font-size: 0.92rem;
}

.hv2-empty i {
    font-size: 2rem;
    color: #b7c5cf;
}

/* ---------- گالری ---------- */
.hv2-gallery {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--hv2-radius);
    box-shadow: var(--hv2-shadow);
    background: var(--hv2-surface);
}

.hv2-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hv2-gallery::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 44, 67, 0) 40%, rgba(8, 44, 67, 0.85) 100%);
    transition: opacity 0.3s ease;
}

.hv2-gallery:hover img {
    transform: scale(1.06);
}

.hv2-gallery-caption {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.6;
}

/* ---------- ناوبری کاروسل‌ها ---------- */
.hv2-section .owl-carousel .owl-nav button.owl-prev,
.hv2-section .owl-carousel .owl-nav button.owl-next {
    border-radius: 50% !important;
    box-shadow: 0 6px 16px rgba(11, 61, 92, 0.15);
}

/* ---------- انیمیشن ---------- */
@keyframes hv2-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hv2-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* ---------- واکنش‌گرا ---------- */
@media (max-width: 991.98px) {
    .hv2-section {
        padding-top: 2.25rem;
    }

    .hv2-intro .home-leader-link {
        max-width: 460px;
        margin: 0 auto;
    }

    .hv2-quicknav {
        max-width: 460px;
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 767.98px) {
    .hv2-daynote-wrap {
        margin-top: -18px;
    }

    .hv2-daynote {
        flex-wrap: wrap;
        gap: 0.65rem;
        padding: 0.8rem;
    }

    .hv2-daynote-text {
        flex-basis: 100%;
        order: 2;
        font-size: 0.92rem;
        -webkit-line-clamp: 3;
    }

    .hv2-daynote-more {
        order: 3;
        margin-right: auto;
    }

    .hv2-title {
        font-size: 1.2rem !important;
    }

    .hv2-tablist {
        grid-template-columns: 1fr;
    }

    .hv2-panel-head {
        flex-direction: column;
        align-items: stretch;
    }

    .hv2-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .hv2-tabs .nav-link {
        white-space: nowrap;
    }

    .hv2-panel-more {
        align-self: flex-start;
    }

    .hv2-tile,
    .hv2-tile-body {
        min-height: 170px;
    }
}

@media (max-width: 420px) {
    .hv2-quicknav {
        gap: 0.45rem;
    }

    .hv2-quicknav-link {
        gap: 0.4rem;
        padding: 0.45rem 0.5rem;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .hv2-quicknav-link i {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        font-size: 0.85rem;
    }
}

/* دسکتاپ: ستون ریاست هم‌قد ستون کاشی‌ها می‌شود و دکمه‌های دسترسی سریع فضای باقی‌مانده را پر می‌کنند */
@media (min-width: 992px) {
    .hv2-intro > .row > .col-lg-4 {
        display: flex;
        flex-direction: column;
    }

    .hv2-intro .hv2-quicknav {
        flex: 1 1 auto;
        grid-auto-rows: 1fr;
        max-width: none;
    }

    .hv2-intro .hv2-quicknav-link {
        height: 100%;
    }

    /* هم‌ترازی پایین دو ستون با فاصله زیر کاشی‌ها */
    .hv2-intro .home-mainlinks {
        padding-bottom: 0;
    }

    .hv2-intro > .row > .col-lg-4 {
        padding-bottom: 1.25rem;
    }

    .hv2-intro--compact > .row > .col-lg-4 {
        padding-bottom: 0.85rem;
    }
}

/* موبایل: کاشی‌های فشرده دوستونه با آیکون بالای عنوان تا فهرست نصف شود */
@media (max-width: 575.98px) {
    .hv2-tiles--compact {
        margin-right: -6px;
        margin-left: -6px;
    }

    .hv2-tiles--compact > [class*="col-"] {
        padding-right: 6px;
        padding-left: 6px;
        margin-bottom: 12px;
    }

    .hv2-tiles--compact .hv2-tile,
    .hv2-tiles--compact .hv2-tile-body {
        min-height: 118px;
    }

    .hv2-tiles--compact .hv2-tile-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
        padding: 0.8rem;
    }

    .hv2-tiles--compact .hv2-tile-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 0.95rem;
    }

    .hv2-tiles--compact .hv2-tile-title {
        font-size: 0.86rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hv2-daynote,
    .hv2-daynote-pulse::after {
        animation: none;
    }

    .hv2-post,
    .hv2-iconcard,
    .hv2-syscard,
    .hv2-tile,
    .hv2-quicknav-link,
    .hv2-post-media img,
    .hv2-gallery img,
    .hv2-syscard-media img {
        transition: none;
    }
}
