/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   دانشگاه حضرت معصومه (س) — طراحی مدرن ۱۴۰۴
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── فونت ── */
@font-face {
    font-family: Sahel;
    font-style: normal;
    font-weight: bold;
    src: url("fonts/Sahel-Bold-FD.eot");
    src: url("fonts/Sahel-Bold-FD.eot?#iefix") format("embedded-opentype"),
         url("fonts/Sahel-Bold-FD.woff") format("woff"),
         url("fonts/Sahel-Bold-FD.ttf") format("truetype");
}
@font-face {
    font-family: Sahel;
    font-style: normal;
    font-weight: normal;
    src: url("fonts/Sahel-FD.eot");
    src: url("fonts/Sahel-FD.eot?#iefix") format("embedded-opentype"),
         url("fonts/Sahel-FD.woff") format("woff"),
         url("fonts/Sahel-FD.ttf") format("truetype");
}

/* ── ریست پایه ── */
*, *::before, *::after { box-sizing: border-box; }
body, ul, li, h1, h2, h3, h4, h5, h6, div, p, a, span,
input, select, textarea, img, figure, section, header, footer, article {
    font-family: Sahel, Tahoma, Arial, sans-serif;
    font-weight: normal;
    text-decoration: none;
}
strong { font-weight: bold; }
body {
    padding: 0;
    margin: 0;
    background: #f5f6f8;
    color: #1a1a2e;
}
a { text-decoration: none; }
a:hover { text-decoration: none; }

/* ── متغیرهای رنگ ── */
:root {
    --c-primary: #084562;
    --c-primary-dark: #052e45;
    --c-gold: #c8a951;
    --c-white: #ffffff;
    --c-bg: #f5f6f8;
    --c-bg-card: #ffffff;
    --c-text: #1a2030;
    --c-text-light: #5a6a7e;
    --c-border: #e4e8ed;
    --c-shadow: 0 2px 16px rgba(8,69,98,0.09);
    --c-shadow-hover: 0 8px 32px rgba(8,69,98,0.16);
    --radius: 12px;
    --radius-sm: 8px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   هدر
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
section.myheader {
    position: relative;
    z-index: 1;
}
section.myheader .hmu-header-row {
    height: auto !important;
    min-height: 90px;
    padding: 10px 0;
    align-items: center;
}
section.myheader img {
    max-height: 110px;
    width: auto;
    max-width: 100%;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   اسلایدر
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hmu-slider { width: 100%; overflow: hidden; }
.hmu-slide {
    width: 100%;
    aspect-ratio: 16 / 5;
    overflow: hidden;
    background: var(--c-primary);
}
.hmu-slide a { display: block; width: 100%; height: 100%; }
.hmu-slide picture { display: block; width: 100%; height: 100%; }
.hmu-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
@supports not (aspect-ratio: 16/5) { .hmu-slide { height: 450px; } }
@media (max-width: 991px) {
    .hmu-slide { aspect-ratio: 16 / 6; }
    @supports not (aspect-ratio: 16/6) { .hmu-slide { height: 340px; } }
}
@media (max-width: 575px) {
    .hmu-slide { aspect-ratio: 4 / 3; }
    @supports not (aspect-ratio: 4/3) { .hmu-slide { height: 240px; } }
}
.slider1 img { display: block; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   دسترسی سریع (Quick Links)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hmu-quicklinks-section {
    background: var(--c-primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    position: relative;
    z-index: 2;
}
.carousel8 {
    width: 100%;
    height: 90px;
    overflow: hidden;
    background: transparent;
}
.carousel8 .flickity-viewport {
    height: 90px !important;
}
.carousel8 .carousel-cell {
    width: 140px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    border-left: 1px solid rgba(255,255,255,0.08);
    padding: 0 6px;
}
.carousel8 .carousel-cell:hover {
    background: rgba(255,255,255,0.1);
}
.carousel8 .carousel-cell.is-selected {
    background: none;
}
.carousel8 .carousel-cell a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: white;
}
.carousel8 .carousel-cell img {
    width: 36px !important;
    height: 36px !important;
    object-fit: contain;
    margin-bottom: 5px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: transform 0.2s, opacity 0.2s;
}
.carousel8 .carousel-cell:hover img {
    transform: translateY(-2px) scale(1.08);
    opacity: 1;
}
.carousel8 h6, .carousel8 .carousel-cell h6 {
    font-size: 10.5px !important;
    color: rgba(255,255,255,0.92) !important;
    text-align: center !important;
    margin: 0 !important;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}
.carousel8 .flickity-button {
    background: rgba(255,255,255,0.15);
    color: white;
    width: 28px;
    height: 28px;
}
.carousel8 .flickity-button:hover { background: rgba(255,255,255,0.3); }
.carousel8 .flickity-button svg { fill: white; width: 14px; height: 14px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   عنوان بخش‌ها
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.selected {
    font-size: 1.25rem !important;
    font-weight: bold;
    color: var(--c-primary) !important;
    border-bottom: 3px solid var(--c-gold) !important;
    padding-bottom: 6px;
    display: inline-block;
}
.flow .selected, .flow1 .selected {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--c-primary) !important;
    border-bottom: 3px solid var(--c-gold);
    padding-bottom: 6px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   بخش اخبار
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ThumbData.FrameBox {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--c-shadow);
}

/* کارت خبر — ردیف اول (با عکس) */
.ItemThumbData section.IntraFrameBox {
    background: var(--c-bg-card) !important;
    border-radius: var(--radius) !important;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(8,69,98,0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid var(--c-border);
}
.ItemThumbData section.IntraFrameBox:hover {
    transform: translateY(-5px);
    box-shadow: var(--c-shadow-hover);
}
.ItemThumbData .card-img-top {
    width: 100% !important;
    height: 185px !important;
    object-fit: cover !important;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important;
    display: block;
}

/* — اصلاح رنگ متن کارت‌های خبری — */
.ItemThumbData .card-title.text-danger {
    color: var(--c-gold) !important;
    font-size: 11px !important;
    font-weight: bold;
    background: rgba(200,169,81,0.1);
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 4px;
}
.ItemThumbData .card-title.text-warning,
.ItemThumbData .card-title.bold,
.ItemThumbData p.card-title:not(.text-danger) {
    color: var(--c-text) !important;
    font-size: 13px !important;
    font-weight: bold;
    line-height: 1.7;
    margin-bottom: 4px;
}
.ItemThumbData .card-subtitle,
.ItemThumbData p.card-subtitle {
    color: var(--c-text-light) !important;
    font-size: 12px !important;
    line-height: 1.8;
}
.ItemThumbData .pt-1 {
    padding: 10px 12px 12px !important;
}

/* کارت خبر — ردیف دوم (کوچک با عکس کناری) */
.row.pt-2.text-justify .col-md-6 a section {
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
    transition: box-shadow 0.2s, border-color 0.2s;
    overflow: hidden;
}
.row.pt-2.text-justify .col-md-6 a section:hover {
    box-shadow: 0 4px 16px rgba(8,69,98,0.12);
    border-color: var(--c-primary);
}
.row.pt-2.text-justify .col-md-6 a section img {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.row.pt-2.text-justify .col-md-6 a section p.card-title {
    color: var(--c-text) !important;
    font-size: 12px !important;
    line-height: 1.7;
    padding: 8px !important;
}

/* پیوند "سایر اخبار" */
.w-100 a[href="/آرشیو"] div,
.w-100 a[title="آرشیو اخبار"] div {
    color: var(--c-primary);
    font-size: 13px;
    border-bottom: 1px solid var(--c-gold);
    padding-bottom: 2px;
    transition: color 0.2s;
}
.w-100 a[href="/آرشیو"]:hover div,
.w-100 a[title="آرشیو اخبار"]:hover div {
    color: var(--c-gold);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   بخش اطلاعیه
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.col-md-6.col-lg-3.col-xl-3.ThumbData.FrameBox .item {
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
    padding: 10px 14px;
    transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
    margin-bottom: 4px;
    position: relative;
}
.col-md-6.col-lg-3.col-xl-3.ThumbData.FrameBox .item::before {
    content: '›';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--c-gold);
    font-size: 18px;
    line-height: 1;
}
.col-md-6.col-lg-3.col-xl-3.ThumbData.FrameBox .item:hover {
    box-shadow: 0 4px 16px rgba(8,69,98,0.12);
    border-color: var(--c-primary);
    background: rgba(8,69,98,0.03);
}
.col-md-6.col-lg-3.col-xl-3.ThumbData.FrameBox .item a {
    color: var(--c-text) !important;
    font-size: 12.5px;
    line-height: 1.8;
    display: block;
    padding-right: 18px;
    transition: color 0.2s;
}
.col-md-6.col-lg-3.col-xl-3.ThumbData.FrameBox .item a:hover {
    color: var(--c-primary) !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   پیوند مفید
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.row.mt-2 .col-md-6.col-lg-3.col-xl-3 {
    padding: 8px;
}
.row.mt-2 .col-md-6.col-lg-3.col-xl-3 a {
    display: block;
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
    padding: 12px;
    transition: box-shadow 0.2s, border-color 0.2s;
    text-align: center;
}
.row.mt-2 .col-md-6.col-lg-3.col-xl-3 a:hover {
    box-shadow: var(--c-shadow);
    border-color: var(--c-primary);
}
.row.mt-2 .col-md-6.col-lg-3.col-xl-3 img {
    width: auto !important;
    max-height: 70px !important;
    height: auto !important;
    object-fit: contain !important;
    padding: 4px !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   نشریات (Swiper)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.swiper.courses .swiper-slide {
    padding: 8px;
}
.swiper.courses .swiper-slide > div {
    background: white !important;
    border-radius: var(--radius) !important;
    border: 1px solid var(--c-border) !important;
    box-shadow: var(--c-shadow) !important;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    padding: 0 !important;
    gap: 0 !important;
}
.swiper.courses .swiper-slide > div:hover {
    transform: translateY(-4px);
    box-shadow: var(--c-shadow-hover) !important;
}
.swiper.courses section.IntraFrameBox.card {
    border: none !important;
    border-radius: 0 !important;
}
.swiper.courses section.card img {
    height: 220px !important;
    object-fit: cover !important;
}
.swiper.courses section.card p {
    font-size: 12px !important;
    color: var(--c-text) !important;
    padding: 10px 12px !important;
    line-height: 1.6;
    text-align: center;
}
/* مرز رنگی سمت راست کارت نشریه */
.border-primary.border-5.border-start {
    border-color: var(--c-primary) !important;
    border-right: 4px solid var(--c-primary) !important;
    border-left: none !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   گزارش تصویری
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.imgsource {
    max-height: 350px;
    max-width: 100%;
    height: auto;
    width: auto;
    display: block;
    margin: auto;
    border-radius: var(--radius-sm);
}
.slidershow1 {
    border-radius: var(--radius-sm);
    transition: opacity 0.2s;
    cursor: pointer;
}
.slidershow1:hover { opacity: 0.85; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   فوتر
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
section[style*="background:#084562"] {
    padding: 40px 0 0 !important;
}
footer, section.Clearfix[style*="background:#084562"] {
    background: var(--c-primary) !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   کاروسل‌های قدیمی (owl/flickity misc)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.carousel .carousel-cell { font-size: 0; }
.carousel9 { width: 100%; }
.carousel9 .carousel-cell { width: 100%; margin-right: 10px; }
.carousel9 .carousel-cell img { width: 100%; height: auto; }

.carousel1 { width: 100%; }
.carousel1 .carousel-cell { width: 100%; margin-right: 10px; }
.carousel1 .carousel-cell img { width: 100%; height: auto; }

.carousel7 { width: 100%; }
.carousel7 .carousel-cell { width: 31.33%; margin-right: 3%; background: none; }
.carousel7 .carousel-cell.is-selected { background: none; }
.carousel7 .carousel-cell img { width: 100%; height: auto; }
@media (max-width: 700px) { .carousel7 .carousel-cell { width: 100%; } }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Misc
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.text-justify { text-align: justify; }
.bold { font-weight: bold; }
.mtb30 { margin: 30px 0; }
.pb20 { padding-bottom: 20px; }
.img-fluid { width: 100%; }
.img-responsive { display: block; height: auto; max-width: 100%; margin: 0 auto; }
.more-link { text-align: left; border-top: 1px solid #d9d9d9; }

.panel-heading {
    border: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    color: #333;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.panel-body {
    border: 1px solid #e0e0e0;
    border-top: none;
    background-color: #f8f9fa;
    color: #333;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
}

#rpid { background: #1a1a2e; }

/* ── ویژه بخش اصلی ── */
.body.w-100 { background: var(--c-bg); }
.body.w-100 > .content { background: white; }
.body.w-100 section.col-sm-12.px-0 { padding: 0 !important; }

/* ── پس‌زمینه بخش اخبار/اطلاعیه ── */
section:not(.myheader):not(.sticky-top):not(.Clearfix):not(.hmu-quicklinks-section) > .container {
    background: transparent;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   بخش اصلی محتوا
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hmu-news-section {
    background: white;
    padding: 0 0 48px;
}

/* ── کارت خبر (ساختار جدید) ── */
.hmu-news-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--c-border);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(8,69,98,0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}
.hmu-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(8,69,98,0.14);
}
.hmu-news-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}
.hmu-news-img-wrap {
    width: 100%;
    height: 185px;
    overflow: hidden;
    background: #e8ecf0;
}
.hmu-news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.35s ease;
}
.hmu-news-card:hover .hmu-news-img {
    transform: scale(1.04);
}
.hmu-news-body {
    padding: 14px 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.hmu-news-cat {
    display: inline-block;
    font-size: 10.5px;
    font-weight: bold;
    color: var(--c-primary);
    background: rgba(8,69,98,0.07);
    border-radius: 20px;
    padding: 2px 10px;
    margin-bottom: 8px;
}
.hmu-news-title {
    font-size: 13px;
    font-weight: bold;
    color: var(--c-text);
    line-height: 1.75;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hmu-news-excerpt {
    font-size: 11.5px;
    color: var(--c-text-light);
    line-height: 1.8;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── آیتم اطلاعیه ── */
.hmu-notice-item {
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px 10px 36px;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.hmu-notice-item::before {
    content: '›';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--c-gold);
    font-size: 20px;
    line-height: 1;
}
.hmu-notice-item:hover {
    border-color: var(--c-primary);
    box-shadow: 0 3px 12px rgba(8,69,98,0.1);
    background: rgba(8,69,98,0.02);
}
.hmu-notice-item a {
    font-size: 12.5px;
    color: var(--c-text);
    line-height: 1.7;
    display: block;
    transition: color 0.2s;
}
.hmu-notice-item a:hover { color: var(--c-primary); }

/* ── کارت پیوند مفید ── */
.hmu-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: 12px 8px 8px;
    text-align: center;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
    min-height: 80px;
}
.hmu-link-card:hover {
    box-shadow: 0 4px 16px rgba(8,69,98,0.12);
    border-color: var(--c-primary);
    transform: translateY(-2px);
}
.hmu-link-card img {
    max-height: 52px;
    max-width: 100%;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    margin-bottom: 6px;
}
.hmu-link-card span {
    font-size: 10.5px;
    color: var(--c-text-light);
    line-height: 1.3;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   گزارش تصویری
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hmu-gallery-wrap {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 12px;
    min-height: 340px;
    direction: rtl;
}

/* ── تصویر اصلی ── */
.hmu-gallery-main {
    position: relative;
    background: #0d1f2d;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 300px;
}
.hmu-gallery-feature {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}
.hmu-gallery-feature-img {
    width: 100% !important;
    height: 340px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
    max-width: 100% !important;
    max-height: none !important;
    margin: 0 !important;
}
.hmu-gallery-feature:hover .hmu-gallery-feature-img {
    transform: scale(1.03);
}
.hmu-gallery-feature-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 48px 20px 18px;
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}
.hmu-gallery-feature-title {
    color: white;
    font-size: 13.5px;
    font-weight: bold;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    flex: 1;
}
.hmu-gallery-feature-badge {
    background: rgba(200,169,81,0.9);
    color: #1a1a2e;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s;
}
.hmu-gallery-feature:hover .hmu-gallery-feature-badge {
    background: var(--c-gold);
}

/* placeholder قبل از کلیک */
.hmu-gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 100%;
    min-height: 300px;
    color: rgba(255,255,255,0.35);
    padding: 40px;
    text-align: center;
}
.hmu-gallery-placeholder span {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    direction: rtl;
}

/* ── نوار تامب‌نیل‌ها ── */
.hmu-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 356px;
    padding-left: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(200,169,81,0.3) transparent;
}
.hmu-gallery-thumbs::-webkit-scrollbar { width: 4px; }
.hmu-gallery-thumbs::-webkit-scrollbar-track { background: transparent; }
.hmu-gallery-thumbs::-webkit-scrollbar-thumb { background: rgba(200,169,81,0.3); border-radius: 4px; }

.hmu-gallery-thumb {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
    background: #e8ecf0;
}
.hmu-gallery-thumb:hover {
    border-color: var(--c-gold);
    transform: translateX(-2px);
}
.hmu-gallery-thumb.selected {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 2px rgba(8,69,98,0.2);
}
.hmu-gallery-thumb-img {
    width: 100% !important;
    height: 75px !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.3s ease;
}
.hmu-gallery-thumb:hover .hmu-gallery-thumb-img {
    transform: scale(1.06);
}
.hmu-gallery-thumb-cap {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 20px 8px 6px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: white;
    font-size: 10.5px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: rtl;
}

/* پیوند "همه گزارش‌ها" */
.hmu-more-link {
    font-size: 12.5px;
    color: var(--c-primary);
    border-bottom: 1px solid var(--c-gold);
    padding-bottom: 2px;
    transition: color 0.2s;
    white-space: nowrap;
}
.hmu-more-link:hover { color: var(--c-gold); }

/* واکنش‌گرا */
@media (max-width: 767px) {
    .hmu-gallery-wrap {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    .hmu-gallery-feature-img { height: 220px; }
    .hmu-gallery-thumbs {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        padding-bottom: 4px;
    }
    .hmu-gallery-thumb { flex: 0 0 140px; }
    .hmu-gallery-thumb-img { height: 90px !important; width: 140px !important; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   بخش نشریات / رویدادها
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.container.flow1 {
    background: white;
    border-radius: var(--radius);
    padding-top: 32px !important;
    padding-bottom: 32px !important;
    margin-bottom: 16px;
}
.container.flow1 .selected {
    font-size: 1.25rem !important;
}

/* ── swiper ناوبری ── */
.swiper-button-prev, .swiper-button-next {
    color: var(--c-primary) !important;
    background: white;
    border-radius: 50%;
    width: 36px !important;
    height: 36px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.swiper-button-prev::after, .swiper-button-next::after {
    font-size: 14px !important;
}

/* ── دکمه سایر گزارش/اخبار ── */
a[href="/آرشیو"] div,
a[href="Default.aspx?pid=42"] div,
a[title="سایر گزارش"] div {
    color: var(--c-primary);
    font-size: 13px !important;
    padding: 4px 0;
    border-bottom: 1px solid var(--c-gold);
    transition: color 0.2s;
}
a[href="/آرشیو"]:hover div,
a[href="Default.aspx?pid=42"]:hover div,
a[title="سایر گزارش"]:hover div {
    color: var(--c-gold);
}

/* ── چت هوش مصنوعی (سمت چپ) ── */
#chat-toggle {
    z-index: 9999;
}
#chat-sidebar {
    z-index: 99999;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Responsive
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 991px) {
    section.myheader .hmu-header-row { min-height: 100px; }
    section.myheader img { max-height: 90px; }
    .carousel8 { height: 85px; }
    .carousel8 .flickity-viewport { height: 85px !important; }
    .carousel8 .carousel-cell { height: 85px; width: 125px; }
    .ItemThumbData .card-img-top { height: 160px !important; }
    .hmu-news-img-wrap { height: 165px; }
    .swiper.courses section.card img { height: 180px !important; }
}
@media (max-width: 767px) {
    section.myheader .hmu-header-row { min-height: 80px; }
    section.myheader img { max-height: 80px; }
    .ThumbData.FrameBox { padding: 16px; }
    .hmu-news-img-wrap { height: 180px; }
    .hmu-link-card img { max-height: 44px; }
}
@media (max-width: 575px) {
    .carousel8 { height: 80px; }
    .carousel8 .flickity-viewport { height: 80px !important; }
    .carousel8 .carousel-cell { height: 80px; width: 110px; }
    .carousel8 h6 { font-size: 9.5px !important; }
    .hmu-news-img-wrap { height: 200px; }
    .hmu-news-col { margin-bottom: 16px; }
}
@media (max-width: 768px) {
    #showcontent { padding: 10px; }
    .pull-right, .pull-left { float: none !important; width: 100% !important; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   بهبود ظاهر صفحه خبر (showcontent)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#showcontent {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px 48px !important;
    direction: rtl;
}

/* عنوان دسته‌بندی خبر */
#showcontent #page6 {
    display: inline-block;
    background: rgba(8,69,98,0.08);
    color: var(--c-primary);
    font-size: 12px;
    font-weight: bold;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

/* عنوان اصلی خبر */
#showcontent #page3 {
    color: var(--c-primary);
    font-size: 22px;
    font-weight: bold;
    line-height: 1.7;
    border-right: 4px solid var(--c-gold);
    padding-right: 14px;
    margin-bottom: 16px !important;
}

/* چکیده خبر */
#showcontent #page2 {
    background: linear-gradient(135deg, rgba(8,69,98,0.04) 0%, rgba(200,169,81,0.04) 100%);
    border-right: 3px solid var(--c-gold);
    border-radius: 0 8px 8px 0;
    padding: 14px 18px !important;
    color: var(--c-text);
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 20px !important;
    overflow: hidden;
}
/* عکس داخل چکیده خبر — همان قواعد #page1 (گاهی CKEditor عکس را اینجا می‌گذارد) */
#showcontent #page2 img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin: 8px 4px;
}
#showcontent #page2 img[style*="float:right"],
#showcontent #page2 img[style*="float: right"],
#showcontent #page2 img[align="right"] {
    float: right;
    margin: 4px 0 16px 20px !important;
    max-width: 42%;
    display: inline !important;
}
#showcontent #page2 img[style*="float:left"],
#showcontent #page2 img[style*="float: left"],
#showcontent #page2 img[align="left"] {
    float: left;
    margin: 4px 20px 16px 0 !important;
    max-width: 42%;
    display: inline !important;
}
#showcontent #page2 img[align="center"],
#showcontent #page2 img[style*="display:block"],
#showcontent #page2 p > img:only-child {
    display: block !important;
    float: none !important;
    margin: 16px auto !important;
    max-width: 90%;
}
#showcontent #page2 p::after {
    content: '';
    display: table;
    clear: both;
}

/* متن اصلی خبر */
#showcontent #page1 {
    font-size: 14px;
    line-height: 2;
    color: #2c3e50;
    text-align: justify;
    overflow: hidden;
}
#showcontent #page1 img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin: 8px 4px;
}
/* عکس float راست — ویرایشگر CKEditor تنظیم کرده */
#showcontent #page1 img[style*="float:right"],
#showcontent #page1 img[style*="float: right"],
#showcontent #page1 img[align="right"] {
    float: right;
    margin: 4px 0 16px 20px !important;
    max-width: 42%;
    display: inline !important;
}
/* عکس float چپ */
#showcontent #page1 img[style*="float:left"],
#showcontent #page1 img[style*="float: left"],
#showcontent #page1 img[align="left"] {
    float: left;
    margin: 4px 20px 16px 0 !important;
    max-width: 42%;
    display: inline !important;
}
/* عکس مرکز یا تنها در پاراگراف */
#showcontent #page1 img[align="center"],
#showcontent #page1 img[style*="display:block"],
#showcontent #page1 p > img:only-child,
#showcontent #page1 figure img {
    display: block !important;
    margin: 16px auto !important;
    max-width: 90%;
}
/* clearfix بعد از عکس‌های float */
#showcontent #page1 p::after {
    content: '';
    display: table;
    clear: both;
}
/* figure و caption عکس */
#showcontent #page1 figure {
    margin: 16px auto;
    text-align: center;
    max-width: 90%;
}
#showcontent #page1 figure figcaption {
    font-size: 12px;
    color: #8a9ab0;
    margin-top: 6px;
    font-style: italic;
}
#showcontent #page1 p { line-height: 2; margin-bottom: 14px; }
#showcontent #page1 a { color: var(--c-primary); border-bottom: 1px dashed rgba(8,69,98,0.4); }
#showcontent #page1 a:hover { color: var(--c-gold); }

/* موبایل: عکس‌های float داخل متن/چکیده خبر تمام‌عرض (۱۰۰٪) و بالای متن بیایند */
@media (max-width: 767px) {
    #showcontent #page1 img,
    #showcontent #page2 img {
        float: none !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 16px !important;
    }
}

/* تاریخ و بازدید */
#showcontent #date1 {
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    color: #5a6a7e;
    margin-top: 16px !important;
    border: 1px solid #e4e8ed;
}

/* نوار breadcrumb */
#showcontent #page4 a { color: var(--c-primary); font-size: 12px; }
#showcontent #page4 a:hover { color: var(--c-gold); }

/* گالری خبر */
#newsGallerySection {
    background: white;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid var(--c-border);
    box-shadow: 0 2px 12px rgba(8,69,98,0.06);
}
#newsGalleryGrid a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
}
#newsGalleryGrid a img {
    transition: transform 0.3s ease !important;
}
#newsGalleryGrid a:hover img {
    transform: scale(1.06) !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   بهبود ظاهر آرشیو خبر (view=category)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#showcontent .archive-container {
    max-width: 800px;
    margin: 0 auto;
}

/* محتوای گالری آرشیو */
#showcontent #page1 .col-md-3 a img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   بهبود ظاهر منوی اصلی و mainmenu.ascx
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* کنترل mainmenu.ascx */
#menu1 li { padding: 8px 0; }
#menu1 li a {
    color: var(--c-primary);
    font-size: 14px;
    font-weight: bold;
    display: block;
    padding: 8px 14px;
    border-radius: 8px;
    border-right: 3px solid transparent;
    transition: all 0.2s;
}
#menu1 li a:hover {
    background: rgba(8,69,98,0.06);
    border-right-color: var(--c-gold);
    color: var(--c-primary);
    padding-right: 18px;
}
