/* استایل کلی هر آیتم */
.rank-math-list-item {
  border: 1px solid #eee;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

/* استایل سوال */
.rank-math-question {
  display: flex;
  justify-content: space-between; /* متن یک طرف، آیکون طرف دیگه */
  align-items: center;
  cursor: pointer;
  padding: 12px 16px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  background: #f9f9f9;
}

/* جواب بسته */
.rank-math-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  background: #fff;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

/* جواب باز */
.rank-math-list-item.active .rank-math-answer {
  max-height: 300px; /* بسته به محتوای جواب زیاد/کم کن */
  padding: 12px 16px;
}

/* آیکون فلش ↓ */
.rank-math-question::after {
  content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23000' class='bi bi-chevron-down' viewBox='0 0 16 16'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/></svg>");
  transition: transform 0.3s ease;
}

/* وقتی باز شد → فلش بچرخه بالا */
.rank-math-list-item.active .rank-math-question::after {
  transform: rotate(180deg);
}

/* استایل کلی باکس TOC */
#ez-toc-container {
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #f9f9f9;
  margin: 20px 0;
  overflow: hidden;
  font-size: 15px;
}

/* هدر (فهرست محتوا) */
.ez-toc-title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f1f1f1;
  cursor: pointer;
  font-weight: 600;
  border-bottom: 1px solid #ddd;
  user-select: none;
}

/* حذف آیکون‌های پیشفرض افزونه */
.ez-toc-title-toggle {
  display: none !important;
}

/* آیکون فلش جدید */
.ez-toc-title-container::after {
  content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' class='bi bi-chevron-down' viewBox='0 0 16 16'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/></svg>");
  transition: transform 0.3s ease;
}

/* وقتی باز شد فلش بچرخه */
#ez-toc-container.open .ez-toc-title-container::after {
  transform: rotate(180deg);
}

/* بخش محتوا (لیست) */
#ez-toc-container nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 15px;
}

#ez-toc-container.open nav {
  max-height: 1000px; /* مقدار زیاد برای باز شدن */
  padding: 10px 15px;
}
#ez-toc-container {
    padding:0px;
}
#ez-toc-container.ez-toc-transparent {
    background: none;
    width: 100% !important;
}

:root {
  --quote-bg: #f9f9f9;
  --quote-border: #29CC88; /* رنگ اصلی سایت */
  --quote-text: #333;
  --quote-link: #29CC88;   /* لینک هم با همین سبز */
}

.wp-block-quote.is-layout-flow {
  position: relative;
  margin: 2rem auto;
  padding: 2rem 2.5rem;
  background: var(--quote-bg);
  border-radius: 12px;
  color: var(--quote-text);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 800px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  direction: rtl;
  text-align: right;
  border-right: 6px solid var(--quote-border);
  border-left: none;
}

/* متن */
.wp-block-quote.is-layout-flow p {
  margin: 0;
}

/* لینک */
.wp-block-quote.is-layout-flow a {
  color: var(--quote-link);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}
.wp-block-quote.is-layout-flow a:hover {
  color: #1da96f;
  text-decoration: underline;
}

/* علامت شروع نقل‌قول */
.wp-block-quote.is-layout-flow::before {
  content: "❝";
  position: absolute;
  top: -10px;
  right: 10px;
  font-size: 4rem;
  color: var(--quote-border);
  opacity: 0.15;
  line-height: 1;
}

/* علامت پایان نقل‌قول */
.wp-block-quote.is-layout-flow::after {
  content: "❞";
  position: absolute;
  bottom: -20px;
  left: 15px;
  font-size: 4rem;
  color: var(--quote-border);
  opacity: 0.15;
  line-height: 1;
}

.wp-block-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 16px; /* گوشه‌های گرد */
  box-shadow: 0 8px 20px rgba(0,0,0,0.1); /* سایه نرم */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* افکت هاور روی عکس */
.wp-block-image img:hover {
  transform: scale(1.03); /* کمی زوم بشه */
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

/* قاب سبز به استایل سایتت */
.wp-block-image {
  position: relative;
  text-align: center;
  margin: 2rem auto;
  padding: 8px;
  background: #fff;
  border: 2px solid #29CC88; /* رنگ اصلی برند */
  border-radius: 20px;
  overflow: hidden;
  max-width: 900px; /* برای نوشته‌ها */
}

/* افکت نور سبز کم‌رنگ اطراف قاب */
.wp-block-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(41,204,136,0.25);
  pointer-events: none;
}


