/*!
 * صدرالاسلام — اجزای صفحات (بخش‌های اصلی، کارت‌ها، فرم‌ها، فوتر، واکنش‌گرایی)
 */

/* ============ درگاه‌های تخصصی ============ */
.portals { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 3rem 0; }
.portals__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

.portal-card {
        display: block;
        background: var(--sand-100);
        border: 1px solid var(--border);
        border-radius: var(--radius-xl);
        padding: 1.6rem;
        transition: all 0.3s ease;
        color: inherit;
}
body[data-theme='dark'] .portal-card { background: var(--slate-800); }
.portal-card:hover {
        border-color: var(--teal-500);
        box-shadow: var(--shadow-lg);
        transform: translateY(-4px);
        color: inherit;
}
.portal-card__icon {
        display: inline-flex; align-items: center; justify-content: center;
        width: 3.4rem; height: 3.4rem;
        border-radius: 1rem;
        background: rgba(204, 251, 241, 0.7);
        color: var(--teal-700);
        margin-bottom: 1.2rem;
        transition: transform 0.3s ease;
}
body[data-theme='dark'] .portal-card__icon { background: rgba(45, 212, 191, 0.12); color: var(--teal-300); }
.portal-card:hover .portal-card__icon { transform: scale(1.1); }
.portal-card__title { font-size: 1.05rem; font-weight: 800; color: var(--slate-900); margin-bottom: 0.4rem; }
body[data-theme='dark'] .portal-card__title { color: #fff; }
.portal-card:hover .portal-card__title { color: var(--teal-600); }
body[data-theme='dark'] .portal-card:hover .portal-card__title { color: var(--teal-300); }
.portal-card__desc { font-size: 0.75rem; color: var(--text-soft); line-height: 1.9; margin-bottom: 1rem; }
.portal-card__cta { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; font-weight: 700; color: var(--teal-600); }
body[data-theme='dark'] .portal-card__cta { color: var(--teal-400); }

/* ============ سیر تحول ============ */
.evolution { background: var(--bg-soft); padding: 4rem 0; }
body[data-theme='dark'] .evolution { background: var(--slate-950); }
.evolution__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2.5rem; }

.evo-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); transition: transform 0.3s ease; }
.evo-card:hover { transform: translateY(-4px); }
.evo-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--slate-200); }
.evo-card__media--empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--teal-100), var(--sand-200)); color: var(--teal-600); }
body[data-theme='dark'] .evo-card__media--empty { background: linear-gradient(135deg, rgba(45, 212, 191, 0.12), rgba(245, 158, 11, 0.08)); color: var(--teal-300); }
.evo-card__media img { width: 100%; height: 100%; object-fit: cover; }
.evo-card__media .tag { position: absolute; top: 0.8rem; right: 0.8rem; }
.evo-card__body { padding: 1.4rem; }
.evo-card__body h3 { font-size: 1.02rem; margin-bottom: 0.5rem; color: var(--slate-900); }
body[data-theme='dark'] .evo-card__body h3 { color: #fff; }
.evo-card__body p { font-size: 0.78rem; color: var(--text-soft); line-height: 1.95; margin-bottom: 0.9rem; }
.evo-card__foot { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; font-weight: 600; color: var(--teal-700); }
body[data-theme='dark'] .evo-card__foot { color: var(--teal-300); }

.about-block { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2rem; box-shadow: var(--shadow-md); }
.about-block__head h3 { font-size: 1.2rem; margin-bottom: 0.2rem; color: var(--slate-900); }
body[data-theme='dark'] .about-block__head h3 { color: #fff; }
.about-block__head p { font-size: 0.75rem; color: var(--text-faint); margin-bottom: 1rem; }
.about-block__text { font-size: 0.88rem; line-height: 2.2; color: var(--text-soft); margin-bottom: 1.4rem; text-align: justify; }

/* ============ معاونت‌ها ============ */
.departments { background: var(--bg-alt); padding: 4rem 0; }
.departments__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

.dept-card { border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1.6rem; background: var(--card-bg); transition: all 0.3s ease; display: flex; flex-direction: column; }
.dept-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--teal-500); }
.dept-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.dept-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 3.2rem; height: 3.2rem; border-radius: 1rem; background: rgba(204, 251, 241, 0.7); color: var(--teal-700); }
body[data-theme='dark'] .dept-card__icon { background: rgba(45, 212, 191, 0.12); color: var(--teal-300); }
.dept-card__title { font-size: 1.15rem; color: var(--slate-900); }
body[data-theme='dark'] .dept-card__title { color: #fff; }
.dept-card__desc { font-size: 0.8rem; color: var(--text-soft); line-height: 2; margin-bottom: 1rem; }
.dept-card__list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.4rem; flex: 1; }
.dept-card__list li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--text); }
.dept-card__list .sl-icon { color: var(--gold-500); }
.dept-card__cta { align-self: flex-start; }

/* ============ آخرین مطالب ============ */
.latest { background: var(--bg); padding: 4rem 0; }
.latest__columns { display: grid; grid-template-columns: 1fr; gap: 3rem; }

/* ============ شبکه کارت‌ها ============ */
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }

.card {
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-xl);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transition: all 0.3s ease;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card__media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--slate-100); overflow: hidden; }
body[data-theme='dark'] .card__media { background: var(--slate-800); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__placeholder { display: flex; align-items: center; justify-content: center; height: 100%; background: linear-gradient(135deg, var(--teal-100), var(--sand-200)); color: var(--teal-600); }
body[data-theme='dark'] .card__placeholder { background: linear-gradient(135deg, rgba(45, 212, 191, 0.12), rgba(245, 158, 11, 0.08)); color: var(--teal-300); }
.card__badge {
        position: absolute; top: 0.8rem; right: 0.8rem;
        background: rgba(255, 255, 255, 0.92); color: var(--teal-700);
        font-size: 0.66rem; font-weight: 700;
        padding: 0.15rem 0.6rem; border-radius: 999px;
}
body[data-theme='dark'] .card__badge { background: rgba(15, 23, 42, 0.85); color: var(--teal-300); }
.card__body { padding: 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card__meta { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.68rem; color: var(--text-faint); margin-bottom: 0.5rem; }
.card__title { font-size: 0.95rem; line-height: 1.7; margin-bottom: 0.5rem; }
.card__title a { color: var(--slate-900); }
body[data-theme='dark'] .card__title a { color: var(--slate-100); }
.card__title a:hover { color: var(--teal-600); }
.card__excerpt { font-size: 0.76rem; color: var(--text-soft); line-height: 1.9; margin-bottom: 0.9rem; flex: 1; }
.card__more { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; font-weight: 700; color: var(--teal-600); }
body[data-theme='dark'] .card__more { color: var(--teal-400); }

/* ============ سربرگ داخلی + نان‌ریز ============ */
.page-hero {
        background-color: var(--teal-900);
        background-image: radial-gradient(rgba(245, 158, 11, 0.13) 1px, transparent 0);
        background-size: 24px 24px;
        color: #fff;
        padding: 2.8rem 0 3.2rem;
        position: relative;
        overflow: hidden;
}
.page-hero::after { content: ''; position: absolute; bottom: -8rem; left: -8rem; width: 18rem; height: 18rem; border-radius: 50%; background: rgba(45, 212, 191, 0.16); filter: blur(70px); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero__title { font-family: var(--font-kufi); font-size: 1.7rem; font-weight: 900; margin: 0.6rem 0 0; color: #fff; }
.page-hero__subtitle { color: #cbd5e1; font-size: 0.82rem; margin: 0.5rem 0 0; max-width: 44rem; }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; font-size: 0.7rem; }
.breadcrumbs li { color: rgba(255, 255, 255, 0.6); display: flex; align-items: center; gap: 0.3rem; }
.breadcrumbs li + li::before { content: '›'; opacity: 0.5; }
.breadcrumbs a { color: var(--gold-400); }
.breadcrumbs a:hover { color: var(--gold-300, #fcd34d); }

/* ============ محتوای داخلی ============ */
.content-wrap { padding: 3rem 1.5rem 4rem; max-width: 80rem; margin-inline: auto; }

.entry { max-width: 52rem; margin-inline: auto; }
.entry__meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.74rem; color: var(--text-soft); margin-bottom: 1.4rem; }
.entry__meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.entry__meta .sl-icon { color: var(--gold-500); }
.entry__thumb { margin: 0 0 1.6rem; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); }
.entry__content { font-size: 0.95rem; line-height: 2.3; text-align: justify; color: var(--text); }
.entry__content > p { margin-bottom: 1.4em; }
.entry__content h2, .entry__content h3 { color: var(--teal-800); margin-top: 1.8em; }
body[data-theme='dark'] .entry__content h2, body[data-theme='dark'] .entry__content h3 { color: var(--teal-300); }
.entry__content a { text-decoration: underline; text-underline-offset: 3px; }
.entry__content blockquote {
        border-right: 4px solid var(--gold-500);
        background: var(--sand-100);
        margin: 1.5em 0;
        padding: 1em 1.3em;
        border-radius: 0.6rem;
        font-family: var(--font-quran);
        font-size: 1.02em;
}
body[data-theme='dark'] .entry__content blockquote { background: var(--slate-800); }
.entry__content img { border-radius: var(--radius-lg); }
.entry__content table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.entry__content th, .entry__content td { border: 1px solid var(--border); padding: 0.5rem 0.7rem; }
.entry__content th { background: var(--bg-soft); }
.entry__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-top: 2rem; font-size: 0.75rem; color: var(--text-soft); }
.entry__comments { margin-top: 3rem; max-width: 52rem; margin-inline: auto; }

/* زیربرگه‌ها */
.pages-grid { display: grid; grid-template-columns: 1fr; gap: 0.9rem; max-width: 52rem; }
.page-link-card {
        display: flex; align-items: center; gap: 0.9rem;
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 1rem 1.2rem;
        color: inherit;
        transition: all 0.25s ease;
}
.page-link-card:hover { border-color: var(--teal-500); box-shadow: var(--shadow-md); transform: translateX(-4px); color: inherit; }
.page-link-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 0.8rem; background: rgba(204, 251, 241, 0.6); color: var(--teal-700); flex-shrink: 0; }
body[data-theme='dark'] .page-link-card__icon { background: rgba(45, 212, 191, 0.12); color: var(--teal-300); }
.page-link-card__body { flex: 1; min-width: 0; }
.page-link-card__body strong { display: block; font-size: 0.88rem; color: var(--slate-900); }
body[data-theme='dark'] .page-link-card__body strong { color: var(--slate-100); }
.page-link-card__body small { display: block; font-size: 0.72rem; color: var(--text-soft); }
.page-link-card > .sl-icon { color: var(--text-faint); }

/* ============ فیلتر دسته‌بندی ============ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.chip {
        display: inline-flex; align-items: center;
        padding: 0.4rem 1rem;
        border-radius: 999px;
        border: 1px solid var(--border);
        background: var(--card-bg);
        font-size: 0.76rem;
        font-weight: 600;
        color: var(--text-soft);
        transition: all 0.2s ease;
}
.chip:hover, .chip.is-active { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }

/* ============ تألیفات ============ */
.pub-list { display: flex; flex-direction: column; gap: 1rem; }
.pub-item {
        display: flex; align-items: center; gap: 1.1rem;
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 1.1rem 1.3rem;
        transition: all 0.25s ease;
        flex-wrap: wrap;
}
.pub-item:hover { border-color: var(--teal-500); box-shadow: var(--shadow-md); }
.pub-item__icon {
        display: inline-flex; align-items: center; justify-content: center;
        width: 3rem; height: 3rem; border-radius: 0.9rem;
        background: rgba(245, 158, 11, 0.12); color: var(--gold-600);
        flex-shrink: 0;
}
body[data-theme='dark'] .pub-item__icon { color: var(--gold-400); }
.pub-item__body { flex: 1; min-width: 14rem; }
.pub-item__body h3 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.pub-item__body h3 a { color: var(--slate-900); }
body[data-theme='dark'] .pub-item__body h3 a { color: var(--slate-100); }
.pub-item__meta { display: flex; flex-wrap: wrap; gap: 0.8rem; font-size: 0.7rem; color: var(--text-faint); margin-bottom: 0.3rem; }
.pub-item__body p { font-size: 0.76rem; color: var(--text-soft); margin: 0; }

/* ============ حالت خالی ============ */
.empty-state {
        text-align: center;
        padding: 4rem 1.5rem;
        background: var(--card-bg);
        border: 1px dashed var(--border);
        border-radius: var(--radius-xl);
        color: var(--text-soft);
}
.empty-state .sl-icon { color: var(--teal-500); opacity: 0.6; margin-bottom: 0.8rem; }
.empty-state h3 { color: var(--text); font-size: 1.05rem; }
.empty-state p { font-size: 0.8rem; max-width: 24rem; margin-inline: auto; }
.empty-state__actions { display: flex; gap: 0.8rem; justify-content: center; margin-top: 1.4rem; flex-wrap: wrap; }
.empty-state--404 { max-width: 34rem; margin: 2rem auto; }
.empty-state__code { display: block; font-family: var(--font-kufi); font-size: 4rem; font-weight: 900; color: var(--teal-500); line-height: 1; margin-bottom: 0.6rem; }

.empty-note {
        grid-column: 1 / -1;
        text-align: center;
        font-size: 0.8rem;
        color: var(--text-faint);
        padding: 2rem;
        border: 1px dashed var(--border);
        border-radius: var(--radius-lg);
}

/* ============ صفحه‌بندی ============ */
.pagination { display: flex; justify-content: center; gap: 0.4rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination .page-numbers {
        display: inline-flex; align-items: center; justify-content: center;
        min-width: 2.4rem; height: 2.4rem;
        padding: 0 0.6rem;
        border-radius: 0.6rem;
        border: 1px solid var(--border);
        background: var(--card-bg);
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--text-soft);
}
.pagination .page-numbers.current { background: var(--teal-700); border-color: var(--teal-700); color: #fff; }
.pagination .page-numbers:hover:not(.current) { border-color: var(--teal-500); color: var(--teal-600); }

/* ============ جستجو ============ */
.search-again { max-width: 34rem; margin: 0 auto 2rem; }
.search-again form { display: flex; gap: 0.5rem; }
.search-again input {
        flex: 1;
        padding: 0.65rem 1rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: var(--card-bg);
        color: var(--text);
}
.results-count { font-size: 0.78rem; color: var(--text-faint); margin-bottom: 1.4rem; }

/* ============ فرم‌ها ============ */
.sl-form { display: flex; flex-direction: column; gap: 0.9rem; }
.sl-form__field { display: flex; flex-direction: column; gap: 0.35rem; }
.sl-form__field label { font-size: 0.75rem; font-weight: 600; color: var(--text); }
.sl-form__field input, .sl-form__field select, .sl-form__field textarea {
        padding: 0.65rem 0.9rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        background: var(--bg-soft);
        color: var(--text);
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
        width: 100%;
}
.sl-form__field input:focus, .sl-form__field select:focus, .sl-form__field textarea:focus {
        outline: none;
        border-color: var(--teal-500);
        box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}
.sl-form__result { font-size: 0.8rem; font-weight: 600; text-align: center; min-height: 1.2rem; }
.sl-form__result.is-ok { color: #059669; }
.sl-form__result.is-err { color: #dc2626; }
.hp-field { position: absolute; right: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ============ مودال ============ */
.sl-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.sl-modal__backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, 0.65); backdrop-filter: blur(4px); }
.sl-modal__box {
        position: relative;
        background: var(--card-bg);
        border-radius: var(--radius-xl);
        width: 100%;
        max-width: 30rem;
        max-height: 90vh;
        overflow-y: auto;
        padding: 1.8rem;
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--border);
}
.sl-modal__box--gold { border-color: rgba(245, 158, 11, 0.35); }
.sl-modal__box--teal { border-color: rgba(6, 182, 212, 0.35); }
.sl-modal__close {
        position: absolute; top: 1rem; left: 1rem;
        border: 0; background: transparent; color: var(--text-faint);
        padding: 0.4rem; border-radius: 0.5rem;
}
.sl-modal__close:hover { color: var(--text); }
.sl-modal__head { text-align: center; margin-bottom: 1.4rem; }
.sl-modal__head h3 { font-size: 1.1rem; margin: 0.6rem 0 0.2rem; color: var(--slate-900); }
body[data-theme='dark'] .sl-modal__head h3 { color: #fff; }
.sl-modal__head p { font-size: 0.74rem; color: var(--text-soft); margin: 0; }
.sl-modal__icon {
        display: inline-flex; align-items: center; justify-content: center;
        width: 3rem; height: 3rem; border-radius: 1rem;
}
.sl-modal__icon--gold { background: #fef3c7; color: var(--gold-600); }
.sl-modal__icon--teal { background: #cffafe; color: #0891b2; }
body[data-theme='dark'] .sl-modal__icon--gold { background: rgba(245, 158, 11, 0.15); color: var(--gold-400); }
body[data-theme='dark'] .sl-modal__icon--teal { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.sl-modal__body { font-size: 0.84rem; line-height: 2.1; color: var(--text-soft); }

/* ============ فوتر ============ */
.site-footer { background: var(--slate-900); color: var(--slate-300); padding: 4rem 0 2rem; border-top: 1px solid var(--slate-800); margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.2rem; padding-bottom: 3rem; border-bottom: 1px solid var(--slate-800); font-size: 0.78rem; }
.site-footer__brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.site-footer__logo img { width: 2.4rem; height: 2.4rem; object-fit: contain; border-radius: 0.6rem; background: var(--teal-600); padding: 0.15rem; }
.site-footer__name { font-size: 0.95rem; font-weight: 700; color: #fff; }
.site-footer__about { color: var(--slate-400); line-height: 2.1; margin-bottom: 1rem; }
.site-footer__social { display: flex; gap: 0.6rem; }
.site-footer__social a {
        display: inline-flex; align-items: center; justify-content: center;
        width: 2.1rem; height: 2.1rem;
        border-radius: 0.6rem;
        background: rgba(255, 255, 255, 0.05);
        color: var(--slate-400);
        transition: all 0.2s ease;
}
.site-footer__social a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; transform: translateY(-2px); }

.site-footer__title { font-size: 0.85rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.site-footer__list { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.site-footer__list a { color: var(--slate-400); display: inline-flex; align-items: center; gap: 0.35rem; }
.site-footer__list a:hover { color: var(--teal-400); }
.site-footer__col:nth-child(3) .site-footer__list a:hover { color: var(--gold-400); }

.site-footer__contact { display: flex; align-items: flex-start; gap: 0.5rem; color: var(--slate-400); line-height: 2; margin: 0 0 0.7rem; }
.site-footer__contact .sl-icon { color: var(--gold-400); margin-top: 0.35rem; }
.site-footer__contact a { color: var(--slate-300); }
.site-footer__contact a:hover { color: var(--teal-400); }

.site-footer__bottom {
        display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
        padding-top: 2rem;
        font-size: 0.72rem;
        color: var(--slate-500);
        text-align: center;
}
.site-footer__bottom p { margin: 0; }

/* ============ دیدگاه‌ها ============ */
.comments-area { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1.6rem; margin-top: 2rem; }
.comments-title { font-size: 1rem; }
.comment-list { list-style: none; }
.comment-list .comment { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.comment-list .children { list-style: none; padding-right: 1.5rem; }
.comment-form p { margin-bottom: 0.9rem; }
.comment-form input, .comment-form textarea {
        width: 100%; padding: 0.6rem 0.9rem;
        border: 1px solid var(--border); border-radius: var(--radius-md);
        background: var(--bg-soft); color: var(--text);
}
.comment-form .submit { background: var(--teal-700); color: #fff; border: 0; padding: 0.65rem 1.5rem; border-radius: var(--radius-md); font-weight: 700; }
.no-comments { font-size: 0.78rem; color: var(--text-faint); }

/* ============ فهرست اطلاعیه‌ها ============ */
.notice-list { display: flex; flex-direction: column; gap: 0.8rem; }
.notice-item {
        display: flex; align-items: center; gap: 0.9rem;
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-right: 4px solid var(--gold-500);
        border-radius: var(--radius-lg);
        padding: 0.9rem 1.2rem;
        color: inherit;
        transition: all 0.2s ease;
}
.notice-item:hover { box-shadow: var(--shadow-md); transform: translateX(-4px); color: inherit; }
.notice-item__icon {
        display: inline-flex; align-items: center; justify-content: center;
        width: 2.6rem; height: 2.6rem; border-radius: 0.8rem;
        background: rgba(245, 158, 11, 0.12); color: var(--gold-600);
        flex-shrink: 0;
}
body[data-theme='dark'] .notice-item__icon { color: var(--gold-400); }
.notice-item__body { flex: 1; min-width: 0; }
.notice-item__body strong { display: block; font-size: 0.88rem; color: var(--slate-900); }
body[data-theme='dark'] .notice-item__body strong { color: var(--slate-100); }
.notice-item__body time { font-size: 0.7rem; color: var(--text-faint); }

/* ============ اطلاعات تماس ============ */
.sl-contact-info { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2rem; }
.sl-contact-info__item {
        display: flex; align-items: center; gap: 1rem;
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 1.1rem 1.3rem;
        color: inherit;
        transition: all 0.25s ease;
}
.sl-contact-info__item:hover { border-color: var(--teal-500); box-shadow: var(--shadow-md); color: inherit; transform: translateY(-2px); }
.sl-contact-info__icon {
        display: inline-flex; align-items: center; justify-content: center;
        width: 3rem; height: 3rem; border-radius: 1rem; flex-shrink: 0;
}
.sl-contact-info__icon--teal { background: rgba(13, 148, 136, 0.12); color: var(--teal-600); }
.sl-contact-info__icon--green { background: rgba(37, 211, 102, 0.14); color: #128c4a; }
.sl-contact-info__icon--blue { background: rgba(41, 171, 226, 0.14); color: #1c7fb0; }
.sl-contact-info__body small { display: block; font-size: 0.7rem; color: var(--text-faint); }
.sl-contact-info__body strong { font-size: 0.92rem; color: var(--text); }

@media (min-width: 640px) {
        .sl-contact-info { grid-template-columns: repeat(3, 1fr); }
}

/* ============ گالری تک‌آلبوم ============ */
.album-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.album-grid a {
        display: block; border-radius: var(--radius-lg); overflow: hidden;
        border: 1px solid var(--border); aspect-ratio: 4 / 3;
        background: var(--slate-100);
}
body[data-theme='dark'] .album-grid a { background: var(--slate-800); }
.album-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.album-grid a:hover img { transform: scale(1.05); }
@media (min-width: 768px) {
        .album-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============ واکنش‌گرایی ============ */
@media (min-width: 640px) {
        .hero__stats { grid-template-columns: repeat(4, 1fr); }
        .hero__title { font-size: 2.6rem; }
        .cards-grid--3 { grid-template-columns: repeat(2, 1fr); }
        .cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
        .pages-grid { grid-template-columns: repeat(2, 1fr); }
        .portals__grid { grid-template-columns: repeat(2, 1fr); }
        .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
        .site-footer__bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 768px) {
        body { font-size: 15.5px; }
        .evolution__grid { grid-template-columns: repeat(3, 1fr); }
        .departments__grid { grid-template-columns: repeat(3, 1fr); }
        .announce-bar__left { display: flex; }
        .content-wrap { padding: 3.5rem 1.5rem 4.5rem; }
}

@media (min-width: 1024px) {
        .latest__columns { grid-template-columns: 1fr 1fr; }
        .cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
        .main-nav { display: block; }
        .main-nav__toggle { display: none; }
        .header-actions__donate { display: inline-flex; }
        .hero__inner { grid-template-columns: 7fr 5fr; }
        .hero__text { text-align: right; }
        .hero__desc { margin-inline: 0; }
        .hero__actions { justify-content: flex-start; }
        .hero__visual { margin-inline: 0; }
        .hero__title { font-size: 3rem; }
}

@media (max-width: 1279px) {
        .site-header__inner { min-height: 4.3rem; }
        .brand__tagline { display: none; }
        .brand__name { font-size: 0.95rem; }
}

@media (max-width: 640px) {
        .container { padding-inline: 1rem; }
        .hero { padding: 3rem 0 3.5rem; }
        .hero__title { font-size: 1.6rem; }
        .section-head__title { font-size: 1.2rem; }
        .page-hero__title { font-size: 1.35rem; }
        .sl-modal__box { padding: 1.3rem; }
        .pub-item { flex-direction: column; align-items: flex-start; }
}

/* کاهش حرکت برای دسترس‌پذیری */
@media (prefers-reduced-motion: reduce) {
        *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* چاپ */
@media print {
        .announce-bar, .site-header, .site-footer, .sl-modal, .breadcrumbs, .pagination, .hero__actions { display: none !important; }
        body { background: #fff; color: #000; }
}
