/* سهتاک - بازطراحی صفحه نخست | مستقل از CSS قدیمی */
@font-face {
    font-family: 'IRANSansWeb_FaNum_Medium';
    src: url('../Fonts/IRANSansWeb(FaNum)_Medium.woff2') format('woff2'),
         url('../Fonts/IRANSansWeb(FaNum)_Medium.woff') format('woff');
    font-display: swap;
    font-style: normal;
    font-weight: 400 700;
}
:root {
    --primary: #009300;
    --primary-dark: #007600;
    --primary-darker: #005d00;
    --primary-light: #eaf8ea;
    --primary-border: #cfebcf;
    --ink: #203326;
    --ink-muted: #65746a;
    --page: #f5f8f6;
    --white: #ffffff;
    --border: #e4ebe6;
    --shadow: 0 9px 28px rgba(19, 71, 30, .06);
    --radius: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    direction: rtl;
    background: var(--page);
    color: var(--ink);
    font: 14px/1.95 'IRANSansWeb_FaNum_Medium', Tahoma, sans-serif;
    -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; transition: color .2s, background .2s, border-color .2s, transform .2s; }
a:hover { color: var(--primary-dark); }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.65; }
.site-container { width: min(100% - 40px, 1280px); margin-inline: auto; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -70px; background: var(--primary); color: white; z-index: 5000; padding: 8px 20px; border-radius: 7px; }
.skip-link:focus { top: 10px; color: white; }
:focus-visible { outline: 3px solid #f6a828; outline-offset: 3px; }

/* نوار فوقانی */
.top-strip { background: linear-gradient(105deg, #006e0b, #009300); color: #fff; }
.top-strip__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 11.5px; }
.top-strip a { color: #fff; }
.top-strip a:hover { text-decoration: underline; }
.top-strip__meta { display: flex; align-items: center; gap: 9px; }
.top-strip__divider { height: 13px; width: 1px; background: rgba(255,255,255,.4); }

/* هویت بصری بالای صفحه */
.masthead { background: var(--white); border-bottom: 1px solid #eef1ef; }
.masthead__inner { display: grid; grid-template-columns: minmax(120px, 210px) minmax(250px, 1fr) minmax(120px, 210px); align-items: center; gap: 25px; min-height: 143px; padding-block: 17px; }
.masthead__side { min-height: 102px; border-radius: 14px; background: #f5faf5; border: 1px solid #eaf3ea; display: flex; justify-content: center; align-items: center; padding: 12px; }
.masthead__side img { width: auto; height: 78px; max-width: 100%; object-fit: contain; }
.masthead__brand { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.masthead__brand img { height: auto; width: min(100%, 360px); max-height: 88px; object-fit: contain; }
.masthead__brand span { font-size: 11.5px; letter-spacing: -.15px; color: #64806a; }

/* نوار ناوبری */
.navigation-shell { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid #e0e9e2; box-shadow: 0 5px 15px rgba(20,75,34,.055); }
.navigation__inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.primary-nav { min-width: 0; flex: 1; }
.primary-nav__list { display: flex; align-items: center; gap: 1px; }
.primary-nav__list > li { position: relative; flex: none; }
.primary-nav__list > li > a, .primary-nav summary { padding: 18px 10px; color: #304537; display: flex; align-items: center; gap: 5px; font-size: 12.4px; font-weight: 500; white-space: nowrap; cursor: pointer; line-height: 1.7; }
.primary-nav__list > li > a:hover, .primary-nav summary:hover, .primary-nav__list > li > a.nav-active { color: var(--primary-dark); }
.primary-nav__list > li > a.nav-active { box-shadow: inset 0 -3px var(--primary); }
.primary-nav summary { list-style: none; }
.primary-nav summary::-webkit-details-marker { display: none; }
.primary-nav summary span { font-size: 15px; transition: transform .2s; }
.primary-nav details[open] > summary span { transform: rotate(180deg); }
.nav-submenu { position: absolute; inset-inline-start: 0; top: 100%; z-index: 1100; min-width: 190px; padding: 9px; border: 1px solid var(--border); border-radius: 12px; background: white; box-shadow: 0 18px 30px rgba(20,75,34,.15); }
.nav-submenu a { display: block; color: #38503e; border-radius: 7px; padding: 9px 12px; font-size: 12.5px; }
.nav-submenu a:hover { background: var(--primary-light); color: var(--primary-dark); }
.nav-login { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; min-width: 126px; background: var(--primary); border: 1px solid var(--primary); border-radius: 10px; color: white; padding: 9px 12px; font-size: 12px; }
.nav-login:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: white; transform: translateY(-1px); }
.nav-login svg { width: 19px; height: 19px; }
.menu-toggle { display: none; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--ink); padding: 8px 12px; align-items: center; gap: 9px; }
.menu-toggle__bars { display: flex; flex-direction: column; gap: 4px; }
.menu-toggle__bars i { display: block; width: 17px; height: 2px; background: currentColor; border-radius: 4px; }

/* اطلاعیه / نوار معرفی */
.intro-band { display: flex; align-items: center; gap: 20px; margin-top: 23px; margin-bottom: 19px; padding: 12px 19px; border: 1px solid var(--primary-border); border-radius: 12px; background: #f0faf0; }
.intro-band__tag { color: var(--primary-darker); font-size: 12px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 0 4px #d9efd9; }
.intro-band p { flex: 1; margin: 0; color: #365b3e; font-size: 12.5px; }
.intro-band a { color: var(--primary-dark); font-size: 12px; white-space: nowrap; }
.intro-band a:hover { text-decoration: underline; }

/* اسلایدر و خدمات */
.hero-layout { display: grid; grid-template-columns: minmax(275px, 300px) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.services-panel { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.eyebrow { color: var(--primary-dark); font-size: 11.5px; display: block; margin-bottom: 4px; }
.services-panel__title h2 { font-size: 22px; margin-bottom: 0; }
.services-panel__title p { font-size: 11.5px; color: var(--ink-muted); margin-bottom: 18px; }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.service-item { min-height: 96px; border: 1px solid #e3ece4; background: #fbfdfb; border-radius: 12px; padding: 10px 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; position: relative; font-size: 11.5px; color: #2d4933; }
.service-item:hover { transform: translateY(-2px); background: #f0faef; border-color: #b6dfb9; color: var(--primary-dark); }
.service-item__icon { color: var(--primary); background: var(--primary-light); border-radius: 11px; display: grid; place-items: center; width: 39px; height: 39px; }
.service-item__icon svg { width: 21px; height: 21px; }
.service-item b { display: none; }
.services-panel__help { margin-top: auto; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 11px; color: var(--ink-muted); }
.services-panel__help a { color: var(--primary-dark); font-size: 12px; }
.hero-main { min-width: 0; }
.hero-main__heading { display: flex; justify-content: space-between; align-items: end; gap: 15px; padding: 5px 2px 13px; }
.hero-main__heading h1 { font-size: clamp(17px, 1.7vw, 23px); line-height: 1.5; margin-bottom: 0; }
.hero-main__caption { color: var(--ink-muted); font-size: 11.5px; }
.hero-slider { position: relative; background: #e8f3eb; border: 1px solid #d9e6dd; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); isolation: isolate; }
.hero-slider__slides { aspect-ratio: 16 / 9; position: relative; width: 100%; }
.hero-slide { display: none; position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slider:not([data-enhanced="true"]) .hero-slide:first-child, .hero-slider[data-enhanced="true"] .hero-slide.is-active { display: block; }
.hero-slide img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.hero-slide--empty { background: radial-gradient(circle at 35% 30%, #f6fff4, #dbf0de); }
.hero-slide__empty-content { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 25px; color: #246233; text-align: center; }
.hero-slide__empty-content strong { font-size: clamp(18px, 2.3vw, 27px); }
.hero-slide__empty-content span { font-size: 12px; color: #5b7e61; }
.slider-arrow { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.55); border-radius: 10px; background: rgba(13,75,27,.7); color: white; font-size: 24px; line-height: 1; display: grid; place-items: center; }
.slider-arrow:hover { background: var(--primary); }
.slider-arrow--prev { right: 14px; }
.slider-arrow--next { left: 14px; }
.slider-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 7px; align-items: center; padding: 6px 9px; border-radius: 99px; background: rgba(22,45,25,.35); }
.slider-dots button { width: 7px; height: 7px; border: 0; border-radius: 99px; background: rgba(255,255,255,.62); padding: 0; transition: width .2s, background .2s; }
.slider-dots button.is-active { width: 22px; background: white; }
.hero-main__hint { margin: 10px 2px 0; font-size: 10.5px; color: #7a887d; }

/* سایر بخش‌ها */
.section-space { margin-top: 63px; margin-bottom: 63px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading h2 { font-size: clamp(19px, 2vw, 24px); margin-bottom: 3px; position: relative; }
.section-heading h2::after { content: ''; display: block; height: 3px; width: 38px; margin-top: 7px; border-radius: 4px; background: var(--primary); }
.section-heading p { color: var(--ink-muted); font-size: 12.5px; margin-bottom: 0; }
.text-link { font-size: 12px; color: var(--primary-dark); white-space: nowrap; }
.text-link:hover { text-decoration: underline; }
.goods-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.goods-card { min-width: 0; padding: 19px 11px; background: white; border: 1px solid var(--border); border-radius: 14px; text-align: center; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.goods-card:hover { transform: translateY(-3px); border-color: var(--primary-border); }
.goods-card__image { height: 83px; margin-bottom: 13px; display: grid; place-items: center; }
.goods-card img { max-width: 84px; max-height: 77px; object-fit: contain; }
.goods-card h3 { font-size: 13px; margin-bottom: 0; }
.section-tint { background: #ecf4ee; padding-block: 53px 58px; }
.news-layout { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); align-items: start; gap: 18px; }
.news-sidebar { display: grid; gap: 18px; }
.content-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 21px 23px; min-width: 0; }
.content-card__header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 13px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.content-card__header h3 { margin: 0; font-size: 16px; }
.content-card__header a, .content-card__small { color: var(--primary-dark); font-size: 11.5px; }
.organization-news__item { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.organization-news__item:last-child { border-bottom: 0; }
.organization-news__thumb { width: 104px; height: 95px; background: var(--primary-light); border-radius: 9px; overflow: hidden; }
.organization-news__thumb img { width: 100%; height: 100%; object-fit: cover; }
.organization-news__body h4 { font-size: 13px; line-height: 1.85; margin: 0 0 2px; }
.organization-news__body p { font-size: 11.3px; color: var(--ink-muted); line-height: 1.9; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-more { color: var(--primary-dark); font-size: 11px; }
.headline-list li { position: relative; padding: 11px 17px 11px 0; border-bottom: 1px dashed #e7ede8; font-size: 12.5px; line-height: 1.9; }
.headline-list li::before { content: ''; position: absolute; right: 1px; top: 21px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.headline-list li:last-child { border-bottom: 0; }
.headline-list--compact li { font-size: 12px; padding-top: 9px; padding-bottom: 9px; }
.rss-unavailable { color: var(--ink-muted); font-size: 12px; margin: 20px 0 0; }
.partners-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 13px; }
.partner-logo { display: grid; place-items: center; min-height: 105px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 13px; }
.partner-logo img { max-width: 100%; max-height: 77px; width: auto; height: auto; object-fit: contain; }

/* فوتر */
.footer { background: #153d21; color: #e6f1e8; }
.footer__grid { display: grid; grid-template-columns: 1.4fr .7fr 1.15fr 1fr; gap: 38px; padding-block: 57px 48px; }
.footer h2, .footer h3 { color: #fff; }
.footer h3 { font-size: 15px; margin-bottom: 19px; }
.footer h2 { font-size: 14px; margin-bottom: 8px; }
.footer p { color: #c6dbc9; font-size: 12px; line-height: 2.2; }
.footer__logo { width: 178px; max-height: 61px; object-fit: contain; padding: 7px 12px; background: white; border-radius: 9px; margin-bottom: 18px; }
.footer__links, .footer__contact { display: flex; align-items: flex-start; flex-direction: column; gap: 9px; }
.footer__links h3, .footer__contact h3 { margin-bottom: 10px; }
.footer a { color: #d9e9dc; font-size: 12px; }
.footer a:hover { color: #fff; text-decoration: underline; }
.social-links { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.social-links a { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 10px; background: white; padding: 8px; }
.social-links img { max-height: 100%; max-width: 100%; object-fit: contain; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.trust-grid > img, .trust-grid > a { width: 100%; height: 72px; border-radius: 9px; background: white; padding: 7px; display: grid; place-items: center; }
.trust-grid img { width: 100%; height: 100%; object-fit: contain; }
.footer__bottom { background: #0d2b16; color: #d2e4d5; font-size: 11px; }
.footer__bottom-inner { min-height: 55px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

@media (max-width: 1180px) {
    .primary-nav__list > li > a, .primary-nav summary { padding-inline: 7px; font-size: 11.5px; }
    .navigation__inner { gap: 11px; }
    .hero-layout { grid-template-columns: 275px minmax(0, 1fr); gap: 16px; }
    .services-panel { padding: 18px; }
    .goods-grid { grid-template-columns: repeat(3, 1fr); }
    .partners-grid { grid-template-columns: repeat(4, 1fr); }
    .footer__grid { gap: 23px; }
}
@media (max-width: 980px) {
    .site-container { width: min(100% - 28px, 900px); }
    .masthead__inner { min-height: 116px; grid-template-columns: 150px 1fr 150px; gap: 15px; }
    .masthead__side img { height: 64px; }
    .masthead__brand img { max-height: 72px; }
    .navigation__inner { min-height: 58px; justify-content: space-between; }
    .menu-toggle { display: inline-flex; }
    .primary-nav { display: none; position: absolute; top: calc(100% + 1px); right: 14px; left: 14px; background: #fff; border: 1px solid var(--border); border-radius: 0 0 13px 13px; box-shadow: 0 20px 30px rgba(16,64,28,.16); max-height: min(72vh, 620px); overflow-y: auto; }
    .primary-nav.is-open { display: block; }
    .primary-nav__list { flex-direction: column; align-items: stretch; padding: 8px 12px; }
    .primary-nav__list > li > a, .primary-nav summary { font-size: 13px; padding: 11px 12px; border-bottom: 1px solid #eef2ef; }
    .primary-nav__list > li > a.nav-active { box-shadow: inset -3px 0 var(--primary); background: #f1faf1; }
    .nav-submenu { position: static; min-width: 0; box-shadow: none; border: 0; background: #f6faf7; padding: 4px 10px; margin: 4px 7px 8px; }
    .hero-layout { grid-template-columns: 1fr; }
    .hero-main { order: 1; }
    .services-panel { order: 2; }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .services-panel__help { padding-top: 14px; }
    .news-layout { grid-template-columns: 1fr; }
    .news-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .top-strip__inner { min-height: 35px; font-size: 10px; }
    .top-strip__welcome, .top-strip__support, .top-strip__divider { display: none; }
    .top-strip__meta { width: 100%; justify-content: space-between; }
    .masthead__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: 'brand brand' 'seal photo'; min-height: 0; gap: 9px; padding-block: 13px; }
    .masthead__brand { grid-area: brand; padding-block: 2px 8px; }
    .masthead__brand img { width: 260px; max-height: 71px; }
    .masthead__brand span { font-size: 10px; }
    .masthead__side { min-height: 72px; padding: 8px; border-radius: 9px; }
    .masthead__side--right { grid-area: seal; }
    .masthead__side--left { grid-area: photo; }
    .masthead__side img { height: 54px; }
    .nav-login { min-width: 0; padding: 7px 12px; font-size: 11px; }
    .intro-band { margin-top: 14px; padding: 11px 13px; display: block; }
    .intro-band__tag { display: inline-flex; margin-bottom: 4px; }
    .intro-band p { line-height: 1.9; font-size: 11.5px; }
    .intro-band a { display: inline-block; margin-top: 4px; }
    .hero-main__heading { padding-top: 2px; }
    .hero-main__heading h1 { font-size: 17px; }
    .hero-main__caption { display: none; }
    .hero-slider { border-radius: 12px; }
    .hero-slider__slides { aspect-ratio: 16 / 9; }
    .slider-arrow { width: 29px; height: 29px; font-size: 19px; border-radius: 7px; }
    .slider-arrow--prev { right: 6px; }
    .slider-arrow--next { left: 6px; }
    .slider-dots { bottom: 6px; padding: 4px 7px; }
    .hero-main__hint { font-size: 10px; line-height: 1.9; }
    .services-panel { padding: 15px; }
    .services-panel__title h2 { font-size: 18px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .service-item { min-height: 88px; }
    .section-space { margin-top: 43px; margin-bottom: 43px; }
    .section-heading { align-items: flex-start; }
    .section-heading h2 { font-size: 19px; }
    .section-heading p { font-size: 11px; }
    .text-link { font-size: 10.5px; padding-top: 23px; }
    .goods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .goods-card { padding: 14px 8px; }
    .goods-card__image { height: 66px; margin-bottom: 7px; }
    .goods-card img { max-width: 70px; max-height: 65px; }
    .goods-card h3 { font-size: 12px; }
    .section-tint { padding-block: 40px 43px; }
    .content-card { padding: 15px; }
    .organization-news__item { grid-template-columns: 82px minmax(0, 1fr); gap: 11px; }
    .organization-news__thumb { width: 82px; height: 79px; }
    .organization-news__body h4 { font-size: 12px; }
    .organization-news__body p { -webkit-line-clamp: 2; font-size: 10.5px; }
    .news-sidebar { grid-template-columns: 1fr; }
    .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .partner-logo { min-height: 85px; }
    .partner-logo img { max-height: 64px; }
    .footer__grid { grid-template-columns: 1fr; gap: 23px; padding-block: 39px 35px; }
    .footer__bottom-inner { flex-direction: column; align-items: start; justify-content: center; gap: 0; padding-block: 10px; line-height: 2; }
    .trust-grid { grid-template-columns: repeat(3, minmax(0, 80px)); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
