root {
  --emerald-900: #0a3d3d;
  --emerald-800: #0d4f4f;
  --emerald-700: #135e5e;
  --emerald-600: #1a7a7a;
  --sage-300: #a8c5b8;
  --sage-200: #c8ddd2;
  --sage-100: #e8f1ec;
  --coral-500: #d4856a;
  --coral-600: #b86a52;
  --burgundy: #8b2635;
  --cream: #faf6f0;
  --paper: #ffffff;
  --ink: #2d3436;
  --muted: #636e72;
  --trans: .35s cubic-bezier(.22, 1, .36, 1);
}

.fc-page, .fc-page * {
  font-family: 'Vazirmatn', system-ui, Tahoma, sans-serif !important;
}
.fc-page {
  background: var(--cream);
  padding-top: 90px;
  color: var(--ink);
  line-height: 1.8;
}
.fc-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* منوی چسبان */
.fc-toc {
  position: sticky;
  top: 80px;
  z-index: 50;
  background: rgba(250, 246, 240, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sage-200);
  padding: 14px 0;
  box-shadow: 0 4px 16px rgba(10, 61, 61, 0.05);
}
.fc-toc ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 0;
  margin: 0;
}
.fc-toc li a {
  display: inline-block;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--emerald-800);
  border: 1px solid rgba(168, 197, 184, 0.5);
  border-radius: 999px;
  background: var(--paper);
  transition: var(--trans);
  text-decoration: none;
  white-space: nowrap;
}
.fc-toc li a:hover {
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-800));
  color: #fff;
  border-color: var(--emerald-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(13, 79, 79, 0.25);
}

/* هدر */
.fc-hero { padding: 30px 0 50px; }
.fc-hero img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(10, 61, 61, 0.2);
  display: block;
}

/* بخش‌ها */
.fc-section { padding: 60px 0; }
.fc-section-emerald {
  background: linear-gradient(180deg, var(--emerald-900) 0%, #072d2d 100%);
  color: #f4eee1;
}
.fc-section-sage {
  background: linear-gradient(180deg, var(--sage-100) 0%, var(--sage-200) 100%);
}
.fc-section-head {
  text-align: center;
  margin-bottom: 45px;
  padding: 0 20px;
}
.fc-section-title {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 900;
  display: inline-block;
  padding: 0 24px;
  position: relative;
}
.fc-section-title span {
  color: var(--burgundy);
  position: relative;
  z-index: 1;
}
.fc-section-emerald .fc-section-title span {
  color: var(--coral-500);
}
.fc-section-sage .fc-section-title span {
  color: var(--emerald-800);
}
.fc-section-title::before,
.fc-section-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 80px;
  height: 2px;
  transform: translateY(-50%);
}
.fc-section-title::before {
  right: 100%;
  margin-right: 18px;
  background: linear-gradient(90deg, transparent, var(--coral-500));
}
.fc-section-title::after {
  left: 100%;
  margin-left: 18px;
  background: linear-gradient(90deg, var(--coral-500), transparent);
}
.fc-section-emerald .fc-section-title::before {
  background: linear-gradient(90deg, transparent, var(--sage-300));
}
.fc-section-emerald .fc-section-title::after {
  background: linear-gradient(90deg, var(--sage-300), transparent);
}

/* سرمقاله */
.fc-editorial-row {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 30px;
  align-items: start;
  background: var(--paper);
  padding: 32px;
  border-radius: 18px;
  border: 1px solid var(--sage-200);
  box-shadow: 0 8px 24px rgba(10, 61, 61, 0.08);
  position: relative;
  overflow: hidden;
}
.fc-editorial-row::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--emerald-600), var(--emerald-800));
}
.fc-editorial-img {
  background: linear-gradient(135deg, var(--sage-100), var(--sage-200));
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--sage-200);
  text-align: center;
}
.fc-editorial-img img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 3px solid var(--coral-500);
  box-shadow: 0 8px 20px rgba(10, 61, 61, 0.12);
}
.fc-editorial-text p {
  font-size: 1.02rem;
  line-height: 2.2;
  color: var(--ink);
  text-align: justify;
  margin: 0;
}

/* بلوک استاد */
.fc-scholar-block {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px dashed var(--sage-200);
}
.fc-section-emerald .fc-scholar-block {
  border-bottom-color: rgba(168, 197, 184, 0.25);
}
.fc-scholar-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.fc-scholar-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--emerald-800);
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--sage-100), rgba(168, 197, 184, 0.3));
  border: 1.5px solid var(--sage-300);
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 20px;
  line-height: 1.6;
}
.fc-name-light {
  color: var(--sage-200);
  background: rgba(168, 197, 184, 0.15);
  border-color: rgba(200, 221, 210, 0.4);
}

/* ردیف محتوا */
.fc-content-row {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}
.fc-content-row:last-child { margin-bottom: 0; }
.fc-content-row.fc-reversed {
  grid-template-columns: 3fr 1fr;
}
.fc-col-1-4, .fc-col-3-4 { min-width: 0; }

/* تصویر استاد */
.fc-scholar-img {
  background: linear-gradient(135deg, var(--sage-100), var(--sage-200));
  padding: 12px;
  border-radius: 14px;
  text-align: center;
  border: 1px solid var(--sage-200);
  position: sticky;
  top: 180px;
}
.fc-section-emerald .fc-scholar-img {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border-color: rgba(200, 221, 210, 0.25);
}
.fc-scholar-img img {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 4px solid var(--coral-500);
  box-shadow: 0 8px 20px rgba(212, 133, 106, 0.35);
  transition: var(--trans);
  display: block;
  margin: 0 auto;
}
.fc-scholar-img:hover img {
  transform: scale(1.05);
  border-color: var(--coral-600);
}

/* کارت متن */
.fc-content-text {
  background: var(--paper);
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid var(--sage-200);
  box-shadow: 0 4px 16px rgba(10, 61, 61, 0.05);
  transition: var(--trans);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.fc-content-text:hover {
  box-shadow: 0 12px 32px rgba(10, 61, 61, 0.12);
  border-color: var(--coral-500);
  transform: translateY(-3px);
}
.fc-emerald-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border-color: rgba(200, 221, 210, 0.25);
  color: #f4eee1;
  backdrop-filter: blur(4px);
}
.fc-emerald-card:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  border-color: var(--coral-500);
}
.fc-sage-card {
  background: var(--paper);
  border-color: var(--sage-300);
}

/* عنوان مقاله */
.fc-article-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.9;
  margin: 0 0 16px 0;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--coral-500);
  color: var(--emerald-800);
}
.fc-article-title a {
  color: inherit;
  text-decoration: none;
  transition: var(--trans);
  display: block;
}
.fc-article-title a:hover { color: var(--coral-600); }
.fc-emerald-card .fc-article-title {
  color: var(--coral-500);
  border-bottom-color: rgba(212, 133, 106, 0.5);
}
.fc-emerald-card .fc-article-title a:hover { color: #fff; }

/* پاراگراف */
.fc-content-text p {
  font-size: 0.98rem;
  line-height: 2.1;
  color: var(--ink);
  text-align: justify;
  margin: 0;
}
.fc-emerald-card p { color: #e0eadf; }

/* نمایه */
.fc-index-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--paper);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--sage-200);
  box-shadow: 0 4px 16px rgba(10, 61, 61, 0.05);
}
.fc-index-list li {
  padding: 14px 0;
  border-bottom: 1px dashed var(--sage-200);
  font-size: 1rem;
  font-weight: 600;
}
.fc-index-list li:last-child { border-bottom: none; }
.fc-index-list li::before {
  content: "◆";
  color: var(--coral-500);
  margin-left: 10px;
  font-size: 0.8rem;
}
.fc-index-list a {
  color: var(--emerald-800);
  text-decoration: none;
  transition: var(--trans);
}
.fc-index-list a:hover {
  color: var(--coral-600);
  padding-right: 6px;
}

/* فوتر */
.fc-footer-image { padding: 40px 0 70px; }
.fc-footer-image img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(10, 61, 61, 0.15);
  display: block;
}

/* واکنش‌گرا */
@media (max-width: 992px) {
  .fc-editorial-row { grid-template-columns: 1fr; gap: 24px; }
  .fc-editorial-img { max-width: 380px; margin: 0 auto; }
  .fc-content-row, .fc-content-row.fc-reversed {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .fc-scholar-img {
    position: relative;
    top: 0;
    max-width: 220px;
    margin: 0 auto;
  }
  .fc-toc { top: 70px; }
  .fc-toc ul {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }
  .fc-toc li { flex-shrink: 0; }
}
@media (max-width: 600px) {
  .fc-page { padding-top: 80px; }
  .fc-section { padding: 40px 0; }
  .fc-editorial-row, .fc-content-text { padding: 20px; }
  .fc-section-title { font-size: 1.3rem; }
  .fc-scholar-name { font-size: 0.95rem; padding: 8px 16px; }
  .fc-article-title { font-size: 0.98rem; }
  .fc-content-text p { font-size: 0.92rem; line-height: 2; }
  .fc-toc li a { font-size: 0.78rem; padding: 6px 12px; }
}
html { scroll-behavior: smooth; }