/* tanker-pages.css — استایل صفحات داخلی (گالری، ویدیو، اشتراک‌گذاری، نظرات و ...) */
:root {
  --navy: var(--c-primary-dark);
  --navy-3: var(--c-primary);
  --blue: var(--c-primary);
  --blue-2: var(--c-accent);
  --blue-light: var(--c-accent);
  --ink: var(--c-text);
  --ink-soft: var(--c-text-light);
  --white: #fff;
  --off: var(--c-bg-alt);
  --off-2: #eef6f9;
  --line: #e7f1f5;
  --radius: 12px;
  --shadow-sm: 0 4px 14px rgba(11, 61, 92, 0.08);
  --font-m: Vazirmatn, Tahoma, sans-serif;
  --font-b: Vazirmatn, Tahoma, sans-serif;
}

/* ============================= CMS EXTENSIONS ============================= */

.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 999;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus { inset-inline-start: 16px; top: 16px; }

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 16px;
  color: #cfe0f5;
  font-family: var(--font-m);
  text-decoration: none;
}
.lang-switch a.active { background: #fff; color: var(--navy); }

.about-photo { width: 100%; height: 100%; object-fit: cover; }
.about-body { color: var(--ink-soft); font-size: 16px; margin-bottom: 26px; }
.about-body p { margin-bottom: 1em; }

.product-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================= PAGE SECTIONS (عمومی) ============================= */
.page-section,
.section { margin-top: 40px; }
.page-article > .container > .page-section:first-of-type,
.page-article > .container > .section:first-of-type { margin-top: 0; }

.section-title {
  position: relative;
  font-size: clamp(20px, 2.6vw, 26px);
  color: var(--navy);
  margin-bottom: 22px;
  padding-inline-start: 16px;
}
.section-title::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--blue-2), var(--navy-3));
}

/* ============================= GALLERY ============================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.gallery-cols-1 { grid-template-columns: minmax(0,1fr); }
.gallery-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.gallery-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.gallery-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.gallery-cols-5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.gallery-cols-6 { grid-template-columns: repeat(6, minmax(0,1fr)); }

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--off);
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.gallery-link { display: block; cursor: zoom-in; }
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}
.gallery-caption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .gallery-cols-4, .gallery-cols-5, .gallery-cols-6 { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 10px; }
}

/* ============================= INNER PAGES ============================= */

.page-shell { padding: 48px 0 80px; background: var(--white); }
.page-shell .breadcrumb {
  padding: 16px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.page-shell .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.page-shell .breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-inline-start: 8px;
  opacity: .45;
}
.page-shell .breadcrumb a { color: var(--blue); font-weight: 600; }
.page-article { padding: 28px 0 0; }
.page-header { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.page-h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px;
}
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 20px;
}
.page-content,
.page-content-before,
.page-content-after,
.section-content,
.page-content-intro {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.85;
}
.page-content h2,
.page-content-before h2,
.page-content-after h2,
.section-content h2,
.page-content-intro h2 {
  margin: 2em 0 .75em;
  font-size: clamp(22px, 3vw, 28px);
}
.page-content h3,
.page-content-before h3,
.page-content-after h3,
.section-content h3,
.page-content-intro h3 {
  margin: 1.5em 0 .6em;
  font-size: 20px;
}
.page-content p,
.page-content-before p,
.page-content-after p,
.section-content p,
.page-content-intro p { margin-bottom: 1em; }
.page-content img,
.page-content-before img,
.page-content-after img,
.section-content img,
.page-content-intro img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.5em 0;
}
.page-content a { color: var(--blue); font-weight: 600; }
.page-content ul,
.page-content ol { margin: 1em 0 1em 1.25em; }
.page-content li { margin-bottom: .45em; }

.children-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.child-card {
  background: var(--off);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow .2s, transform .2s;
}
.child-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.child-card h3 { font-size: 18px; margin-bottom: 8px; }
.child-card p { color: var(--ink-soft); font-size: 14px; }

.search-results { padding: 48px 0 80px; }
.search-results h1 { margin-bottom: 24px; }
.search-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.search-item h2 { font-size: 20px; margin-bottom: 6px; }
.search-item h2 a { color: var(--navy); }
.search-item p { color: var(--ink-soft); font-size: 15px; }

.error-page {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.error-page h1 { font-size: clamp(32px, 6vw, 56px); margin-bottom: 12px; }
.error-page p { color: var(--ink-soft); margin-bottom: 24px; }

html[dir="ltr"] body { font-family: Inter, var(--font-b); }

/* ============================= SHARE BOX ============================= */
.page-share-footer { margin-top: 40px; }
.share-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 20px;
  background: var(--off);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.share-label { font-size: 14px; font-weight: 700; color: var(--navy); flex-shrink: 0; }
.share-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-btn {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.share-telegram { background: #229ED9; }
.share-whatsapp { background: #25D366; }
.share-eitaa { background: #F39200; }
.share-x { background: #000; }
.share-linkedin { background: #0A66C2; }
.share-copy { background: var(--ink-soft); }
.share-copied { font-size: 13px; font-weight: 700; color: #1f9d55; }
@media (max-width: 600px) {
  .share-box { padding: 14px 16px; gap: 10px; }
  .share-btn { width: 36px; height: 36px; }
}

/* ============================= COMMENTS ============================= */
.comments-wrapper { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line); }
.comments-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 24px;
}
.comments-title-icon { width: 22px; height: 22px; fill: var(--blue); flex-shrink: 0; }
.comments-empty {
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--off);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  margin-bottom: 28px;
}
.comments-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.comment {
  display: flex;
  gap: 14px;
  background: var(--off);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.comment-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--off-2);
  color: var(--blue);
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.comment-avatar-admin { background: var(--blue); color: #fff; }
.comment-avatar-admin svg { width: 20px; height: 20px; fill: #fff; }
.comment-main { flex: 1; min-width: 0; }
.comment-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 7px; }
.comment-author { font-weight: 700; font-size: 14.5px; color: var(--navy); }
.comment-date { font-size: 12.5px; color: var(--ink-soft); }
.comment-badge {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  border-radius: 6px;
  padding: 2px 9px;
}
.comment-body { font-size: 14.5px; color: var(--ink); line-height: 1.85; }
.comment-reply {
  margin-top: 14px;
  background: var(--off-2);
  border-color: transparent;
  border-inline-start: 3px solid var(--blue);
}

/* فرم ثبت دیدگاه */
.comment-form-wrapper {
  background: var(--off);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.comment-form-title { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.comment-form-note { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 20px; }
.comment-form .form-field { margin-bottom: 18px; }
.comment-form .form-field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.comment-form .req { color: #d33; }
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s;
}
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--blue); }
.comment-form textarea { resize: vertical; min-height: 110px; }
.comment-form .form-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); gap: 14px; }
.captcha2-row { display: flex; align-items: center; gap: 10px; }
.captcha2-equation {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
}
.captcha2-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 38px;
  background: var(--off-2);
  border-radius: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--blue);
}
.captcha2-op { font-size: 17px; font-weight: 700; color: var(--ink-soft); }
.captcha2-input {
  width: 60px !important;
  height: 38px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  padding: 0 !important;
}
.form-submit-btn {
  background: linear-gradient(135deg, var(--blue-2), var(--navy-3));
  color: #fff;
  border: none;
  padding: 13px 30px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.form-submit-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.form-submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-message { margin-top: 14px; padding: 12px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 600; }
.form-message.success { background: #eafaf0; color: #1f9d55; border: 1px solid #bfe9cf; }
.form-message.error { background: #fdeeee; color: #c0392b; border: 1px solid #f3c8c4; }

@media (max-width: 600px) {
  .comment-form .form-row { grid-template-columns: minmax(0,1fr); }
  .comment-form-wrapper { padding: 20px; }
  .comment { padding: 14px 16px; }
  .comment-avatar { width: 36px; height: 36px; font-size: 15px; }
}

/* ============================= UTILITIES ============================= */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.required { color: #d33; }

/* ============================= BUTTON MODIFIERS ============================= */
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ============================= CTA BUTTON (در همه سکشن‌ها) ============================= */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, color .15s ease, border-color .15s ease;
}
.cta-primary {
  background: linear-gradient(135deg, var(--blue-2), var(--navy-3));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.cta-primary:hover { transform: translateY(-2px); }
.cta-secondary {
  background: var(--off);
  color: var(--navy);
  border: 1.5px solid var(--line);
}
.cta-secondary:hover { border-color: var(--blue); color: var(--blue); }

/* ============================= SEARCH PAGE ============================= */
.search-form { margin: 24px 0 32px; }
.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--off);
  border: 1.5px solid var(--line);
  border-radius: 50px;
  padding: 6px 8px 6px 22px;
  max-width: 560px;
}
.search-input-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  padding: 10px 0;
}
.search-input-wrapper button {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-2), var(--navy-3));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.search-input-wrapper button svg { width: 18px; height: 18px; fill: currentColor; }
.search-results-header { margin-bottom: 20px; color: var(--ink-soft); font-size: 14.5px; }
.search-result-item {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.search-result-img {
  width: 110px;
  height: 84px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.search-result-img img { width: 100%; height: 100%; object-fit: cover; }
.search-result-body { flex: 1; min-width: 0; }
.search-result-title { font-size: 18px; margin-bottom: 6px; }
.search-result-title a { color: var(--navy); }
.search-result-title a:hover { color: var(--blue); }
.search-result-excerpt { color: var(--ink-soft); font-size: 14.5px; line-height: 1.8; margin-bottom: 8px; }
.search-result-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-soft); }
.search-result-url { direction: ltr; unicode-bidi: plaintext; color: var(--blue-light); }
.search-result-title mark,
.search-result-excerpt mark {
  background: rgba(27,95,174,.15);
  color: var(--navy);
  border-radius: 3px;
  padding: 0 2px;
}
@media (max-width: 600px) {
  .search-result-item { flex-direction: column; }
  .search-result-img { width: 100%; height: 160px; }
}

/* ============================= AUDIO PLAYER (section) ============================= */
.audio-player {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--off);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.audio-play, .audio-mute {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--blue-2), var(--navy-3));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.audio-mute { width: 36px; height: 36px; background: var(--off-2); color: var(--ink-soft); }
.audio-mid { flex: 1; min-width: 0; }
.audio-bar {
  height: 6px;
  border-radius: 99px;
  background: var(--off-2);
  cursor: pointer;
  margin-bottom: 6px;
  overflow: hidden;
}
.audio-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue-2), var(--blue));
  border-radius: 99px;
}
.audio-time { font-size: 12px; color: var(--ink-soft); direction: ltr; text-align: left; }

/* ============================= BANNER (section) ============================= */
.banner-link {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.banner-link img { display: block; width: 100%; height: auto; }
.banner-title {
  position: absolute;
  inset-inline-start: 24px;
  bottom: 20px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
  background: rgba(10,35,66,.55);
  padding: 8px 16px;
  border-radius: 8px;
}

/* ============================= DOWNLOAD LIST (section) ============================= */
.download-list { display: flex; flex-direction: column; gap: 10px; }
.download-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--off);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.download-item:hover { border-color: var(--blue); transform: translateY(-2px); }
.download-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--off-2);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.download-name { flex: 1; font-weight: 700; color: var(--navy); font-size: 14.5px; }
.download-size { font-size: 12.5px; color: var(--ink-soft); flex-shrink: 0; }

/* ============================= TABLE (section) ============================= */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.section-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.section-table caption { padding: 12px 16px; font-weight: 700; color: var(--navy); text-align: right; }
.section-table th,
.section-table td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--line); }
.section-table thead th { background: var(--off); color: var(--navy); font-weight: 700; white-space: nowrap; }
.section-table tbody tr:last-child td { border-bottom: none; }
.section-table tbody tr:hover { background: var(--off); }

/* ============================= TABS (section) ============================= */
.tabs2-nav { display: flex; gap: 4px; border-bottom: 2px solid var(--line); overflow-x: auto; }
.tabs2-tab {
  padding: 12px 20px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .15s;
}
.tabs2-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.tabs2-panels { padding-top: 22px; }
.tabs2-panel { display: none; }
.tabs2-panel.active { display: block; }
.tabs2-acc {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  border: none;
  background: transparent;
  border-bottom: 1px solid var(--line);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}
.tabs2-acc-ico { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.tabs2-acc-ico::before,
.tabs2-acc-ico::after { content: ''; position: absolute; background: var(--blue); transition: transform .2s, opacity .2s; }
.tabs2-acc-ico::before { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.tabs2-acc-ico::after { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); }
.tabs2-acc.active .tabs2-acc-ico::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
@media (max-width: 700px) {
  .tabs2-nav { display: none; }
  .tabs2-acc { display: flex; }
  .tabs2-panel { display: block; }
  .tabs2-panel .tabs2-content { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
  .tabs2-panel.active .tabs2-content { max-height: none; padding-top: 14px; }
}

/* ============================= VIDEO (section) ============================= */
.video-wrapper { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-embed { aspect-ratio: 16/9; }
.video-embed iframe { width: 100%; height: 100%; border: none; display: block; }
.video-native video { width: 100%; max-height: 70vh; display: block; }

/* ============================= CHILDREN LIST (نمایش لیستی) ============================= */
.children-list { list-style: none; display: flex; flex-direction: column; gap: 2px; margin-top: 24px; }
.children-list li { border-bottom: 1px solid var(--line); }
.children-list li:last-child { border-bottom: none; }
.children-list a {
  display: block;
  padding: 14px 4px;
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  padding-inline-start: 18px;
  transition: color .15s, padding-inline-start .15s;
}
.children-list a::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  transform: translateY(-50%);
}
.children-list a:hover { color: var(--blue); padding-inline-start: 24px; }

/* ============================= NEWS LIST (نمایش اخباری) ============================= */
.news-list { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.news-item { display: flex; gap: 18px; text-decoration: none; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: none; padding-bottom: 0; }
.news-item img { width: 130px; height: 96px; flex-shrink: 0; object-fit: cover; border-radius: var(--radius); }
.news-item-body { flex: 1; min-width: 0; }
.news-item-title { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.news-item:hover .news-item-title { color: var(--blue); }
.news-item-excerpt { font-size: 14px; color: var(--ink-soft); line-height: 1.8; margin-bottom: 8px; }
.news-item-date { font-size: 12.5px; color: var(--ink-soft); }
@media (max-width: 560px) {
  .news-item img { width: 90px; height: 70px; }
}

/* ============================= بهبود تصویر کارت زیرصفحات ============================= */
.child-card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; }

/* ============================= فهرست مطالب (TOC) ============================= */
.toc-box { background: var(--off); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 28px 0; }
.toc-title { display: flex; align-items: center; font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.toc-list a { color: var(--blue); font-size: 14.5px; font-weight: 600; }
.toc-list a:hover { text-decoration: underline; }
.toc-level-3 { padding-inline-start: 20px; }
.toc-level-3 a { font-size: 13.5px; font-weight: 500; color: var(--ink-soft); }

/* ============================= مطالب مرتبط ============================= */
.related-pages { margin-top: 48px; }
.related-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.related-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--off-2);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.related-icon svg { width: 18px; height: 18px; fill: currentColor; }
.related-title { font-size: 19px; color: var(--navy); }
.related-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.related-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--off);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.related-item:hover { border-color: var(--blue); transform: translateY(-2px); }
.related-item-img { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.related-item-img img { width: 100%; height: 100%; object-fit: cover; }
.related-item-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--off-2); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.related-item-icon svg { width: 22px; height: 22px; fill: currentColor; }
.related-item-body { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.related-item-title { font-size: 14px; font-weight: 600; color: var(--navy); }
.related-item-arrow { color: var(--blue); flex-shrink: 0; }

/* ============================= فرم سکشن صفحات (front-form) ============================= */
.front-form .form-group { margin-bottom: 18px; }
.front-form label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.front-form .required { color: #d33; }
.front-form input,
.front-form textarea,
.front-form select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s;
}
.front-form input:focus,
.front-form textarea:focus,
.front-form select:focus { outline: none; border-color: var(--blue); }
.front-form textarea { resize: vertical; min-height: 110px; }
.front-form .field-options { display: flex; flex-wrap: wrap; gap: 14px; }
.front-form .option-label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); cursor: pointer; }
.front-form .form-actions { margin-top: 6px; }
.btn-form-submit {
  background: linear-gradient(135deg, var(--blue-2), var(--navy-3));
  color: #fff;
  border: none;
  padding: 13px 30px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-form-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-form-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-success-msg,
.form-error-msg { margin-top: 14px; padding: 12px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 600; }
.form-success-msg { background: #eafaf0; color: #1f9d55; border: 1px solid #bfe9cf; }
.form-error-msg { background: #fdeeee; color: #c0392b; border: 1px solid #f3c8c4; }
.captcha2-refresh {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .15s;
}
.captcha2-refresh:hover { border-color: var(--blue); }
.captcha2-refresh.spin svg { animation: capspin .5s linear; }
@keyframes capspin { to { transform: rotate(180deg); } }