/*
 Theme Name:   Woodmart Child - Ahoota
 Theme URI:    https://ahoota.com
 Description:  قالب فرزند وودمارت برای آهوتا
 Author:       Ahoota
 Template:     woodmart
 Version:      1.0.1
 Text Domain:  woodmart-child
*/

/* تاریخ به‌روزرسانی */
.ahoota-updated-date {
    font-size: 13px;
    color: #777;
    text-align: center;
}

/* باکس نویسنده */
.ahoota-author-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #f9fdf9 0%, #f0f7f0 100%);
    border: 1px solid #d4e8d4;
    border-right: 4px solid #43B345;
    border-radius: 12px;
    padding: 20px;
    margin: 35px 0 20px;
    direction: rtl;
}
.ahoota-author-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid #43B345;
    box-shadow: 0 2px 8px rgba(67, 179, 69, 0.25);
}

.ahoota-author-box .author-info {
    flex: 1;
}

.ahoota-author-box .author-label {
    font-size: 11px;
    color: #43B345;
    font-weight: 600;
    display: inline;
    margin-left: 5px;
}

.ahoota-author-box .author-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
    display: inline;
}

.ahoota-author-box .author-name a {
    color: #333;
    text-decoration: none;
}

.ahoota-author-box .author-name a:hover {
    color: #43B345;
}

.ahoota-author-box .author-bio {
    font-size: 12px;
    color: #666;
    line-height: 1.9;
    margin: 0;
}

@media (max-width: 480px) {
    .ahoota-author-box {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   استایل اختصاصی مقالات آهوتا  |  نسخه ۳
   ============================================ */

/* ---------- ۰. پایه ---------- */
.single-post .entry-content,
.single-post .elementor-widget-theme-post-content {
  -webkit-user-select: text;
  user-select: text;
}

/* ---------- ۱. نقل‌قول ---------- */
.single-post .entry-content blockquote,
.single-post .elementor-widget-theme-post-content blockquote {
  position: relative;
  background-color: #fffdf0;
  background-image: repeating-linear-gradient(
    transparent, transparent 31px,
    rgba(240,230,184,0.35) 31px, rgba(240,230,184,0.35) 32px
  );
  background-position: 0 20px;
  border: 1px solid #f0e6b8;
  border-right: 4px solid #43B345;
  border-radius: 8px 0 0 8px;
  padding: 24px 28px 20px 24px;
  margin: 28px 0;
  box-shadow: 2px 3px 12px rgba(0,0,0,0.06);
  font-style: normal;
}
.single-post .entry-content blockquote::before,
.single-post .elementor-widget-theme-post-content blockquote::before {
  content: "🐝";
  position: absolute;
  top: -12px; left: 16px;
  font-size: 20px;
  background: #fffdf0;
  padding: 0 6px;
  border-radius: 50%;
  line-height: 1;
}
.single-post .entry-content blockquote::after,
.single-post .elementor-widget-theme-post-content blockquote::after {
  content: "\201C";
  position: absolute;
  top: 6px; right: 12px;
  font-size: 48px;
  font-family: Georgia, serif;
  color: #43B345;
  opacity: 0.25;
  line-height: 1;
}
.single-post .entry-content blockquote > p:first-child,
.single-post .elementor-widget-theme-post-content blockquote > p:first-child {
  direction: ltr;
  text-align: left !important;
  font-size: 13px;
  color: #888;
  font-style: italic;
  margin-bottom: 8px;
  line-height: 1.8;
  font-family: Georgia, "Times New Roman", serif;
}
.single-post .entry-content blockquote > p:nth-child(n+2),
.single-post .elementor-widget-theme-post-content blockquote > p:nth-child(n+2) {
  direction: rtl;
  text-align: right !important;
  color: #444;
  margin-bottom: 4px;
  line-height: 2;
}
.single-post .entry-content blockquote a,
.single-post .elementor-widget-theme-post-content blockquote a {
  color: #43B345;
  text-decoration: none;
  border-bottom: 1px dashed #43B345;
  transition: color .2s, border-color .2s;
}
.single-post .entry-content blockquote a:hover,
.single-post .elementor-widget-theme-post-content blockquote a:hover {
  color: #2d7a2f;
  border-color: #2d7a2f;
}

/* ---------- ۲. لیست بدون شماره ---------- */
.single-post .entry-content ul:not(.ez-toc-list):not(.easy-footnotes-wrapper),
.single-post .elementor-widget-theme-post-content ul:not(.ez-toc-list):not(.easy-footnotes-wrapper) {
  list-style: none;
  padding: 16px 18px 16px 16px;
  margin: 22px 0;
  background: #fdfdfa;
  border: 1px solid #efefe4;
  border-radius: 10px;
}
/* تمایز ظریف لیست‌های متوالی – یکی در میان */
.single-post .entry-content ul:not(.ez-toc-list):nth-of-type(even),
.single-post .elementor-widget-theme-post-content ul:not(.ez-toc-list):nth-of-type(even) {
  background: #fffdf3;
  border-color: #f2ecd8;
}
.single-post .entry-content ul:not(.ez-toc-list) > li,
.single-post .elementor-widget-theme-post-content ul:not(.ez-toc-list) > li {
  position: relative;
  padding-right: 24px;
  padding-bottom: 10px;
  margin-bottom: 8px;
  line-height: 2;
  border-bottom: 1px dashed rgba(67,179,69,0.28);
}
.single-post .entry-content ul:not(.ez-toc-list) > li:last-child,
.single-post .elementor-widget-theme-post-content ul:not(.ez-toc-list) > li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.single-post .entry-content ul:not(.ez-toc-list) > li::before,
.single-post .elementor-widget-theme-post-content ul:not(.ez-toc-list) > li::before {
  content: "";
  position: absolute;
  right: 0; top: 12px;
  width: 8px; height: 8px;
  background: #43B345;
  border-radius: 50%;
}

/* ---------- ۳. لیست شماره‌دار ---------- */
.single-post .entry-content ol:not(.easy-footnotes-wrapper),
.single-post .elementor-widget-theme-post-content ol:not(.easy-footnotes-wrapper) {
  list-style: none;
  padding: 16px 18px 16px 16px;
  margin: 22px 0;
  counter-reset: item;
  background: #fdfdfa;
  border: 1px solid #efefe4;
  border-radius: 10px;
}
.single-post .entry-content ol:not(.easy-footnotes-wrapper):nth-of-type(even),
.single-post .elementor-widget-theme-post-content ol:not(.easy-footnotes-wrapper):nth-of-type(even) {
  background: #fffdf3;
  border-color: #f2ecd8;
}
.single-post .entry-content ol:not(.easy-footnotes-wrapper) > li,
.single-post .elementor-widget-theme-post-content ol:not(.easy-footnotes-wrapper) > li {
  position: relative;
  padding-right: 36px;
  padding-bottom: 10px;
  margin-bottom: 8px;
  line-height: 2;
  border-bottom: 1px dashed rgba(67,179,69,0.28);
  counter-increment: item;
}
.single-post .entry-content ol:not(.easy-footnotes-wrapper) > li:last-child,
.single-post .elementor-widget-theme-post-content ol:not(.easy-footnotes-wrapper) > li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.single-post .entry-content ol:not(.easy-footnotes-wrapper) > li::before,
.single-post .elementor-widget-theme-post-content ol:not(.easy-footnotes-wrapper) > li::before {
  content: counter(item);
  position: absolute;
  right: 0; top: 6px;
  width: 24px; height: 24px;
  background: #43B345;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 24px;
}

/* ---------- ۴. جدول‌ها ---------- */
.single-post .entry-content table,
.single-post .elementor-widget-theme-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  border: 1px solid #e8e0c0;
  font-size: 14px;
  background: #fff;
}
.single-post .entry-content table td,
.single-post .entry-content table th,
.single-post .elementor-widget-theme-post-content table td,
.single-post .elementor-widget-theme-post-content table th {
  padding: 12px 14px;
  border: 1px solid #f0e6b8;
  line-height: 1.9;
  vertical-align: middle;
  background: transparent;
  -webkit-user-select: text;
  user-select: text;
}
.single-post .entry-content table td p,
.single-post .elementor-widget-theme-post-content table td p {
  margin: 0;
  line-height: 1.9;
}
/* راه‌راه ملایم */
.single-post .entry-content table > tbody > tr:nth-child(even) > td,
.single-post .elementor-widget-theme-post-content table > tbody > tr:nth-child(even) > td {
  background: #fffdf0;
}
/* سرتیتر واقعی: thead */
.single-post .entry-content table > thead > tr > th,
.single-post .entry-content table > thead > tr > td,
.single-post .elementor-widget-theme-post-content table > thead > tr > th,
.single-post .elementor-widget-theme-post-content table > thead > tr > td {
  background: #43B345 !important;
  color: #fff !important;
  font-weight: 700;
  border-color: #3a9e3c;
}
/* سرتیتر حدسی: سطر اول tbody فقط اگر شامل <strong> باشد */
.single-post .entry-content table > tbody > tr:first-child:has(strong) > td,
.single-post .entry-content table > tbody > tr:first-child:has(th) > th,
.single-post .elementor-widget-theme-post-content table > tbody > tr:first-child:has(strong) > td,
.single-post .elementor-widget-theme-post-content table > tbody > tr:first-child:has(th) > th {
  background: #43B345 !important;
  color: #fff !important;
  font-weight: 700;
  border-color: #3a9e3c;
}
.single-post .entry-content table > tbody > tr:first-child:has(strong) > td strong,
.single-post .entry-content table > tbody > tr:first-child:has(strong) > td p,
.single-post .elementor-widget-theme-post-content table > tbody > tr:first-child:has(strong) > td strong,
.single-post .elementor-widget-theme-post-content table > tbody > tr:first-child:has(strong) > td p {
  color: #fff !important;
}
/* هاور – فقط ردیف‌های داده */
.single-post .entry-content table > tbody > tr:not(:first-child):hover > td,
.single-post .elementor-widget-theme-post-content table > tbody > tr:not(:first-child):hover > td {
  background: rgba(67,179,69,0.07);
}

/* ---------- ۵. فهرست مطالب (Easy TOC) ---------- */
.single-post #ez-toc-container {
  background: #fdfdfa !important;
  border: 1px solid #ece7d5 !important;
  border-right: 4px solid #43B345 !important;
  border-radius: 10px 0 0 10px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
  padding: 18px 20px !important;
  margin: 26px 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}
.single-post #ez-toc-container .ez-toc-title-container {
  border-bottom: 1px solid #efe9d8;
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.single-post #ez-toc-container .ez-toc-title {
  color: #3a3a3a !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  margin: 0 !important;
}
.single-post #ez-toc-container nav ul,
.single-post #ez-toc-container ul.ez-toc-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: none !important;
}
.single-post #ez-toc-container ul.ez-toc-list li {
  position: relative;
  padding: 0 18px 0 0 !important;
  margin: 0 0 9px 0 !important;
  border: none !important;
  line-height: 1.9 !important;
}
.single-post #ez-toc-container ul.ez-toc-list li::before {
  content: "";
  position: absolute;
  right: 2px; top: 11px;
  width: 6px; height: 6px;
  background: #cfd8c9;
  border-radius: 50%;
  transition: background .2s;
}
.single-post #ez-toc-container ul.ez-toc-list li:hover::before {
  background: #43B345;
}
.single-post #ez-toc-container ul.ez-toc-list li a {
  color: #555 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: color .2s;
}
.single-post #ez-toc-container ul.ez-toc-list li a:hover {
  color: #43B345 !important;
}
.single-post #ez-toc-container .ez-toc-list ul {
  margin-top: 8px !important;
  padding-right: 14px !important;
}
.single-post #ez-toc-container .ez-toc-list ul li a {
  font-size: 13px !important;
  color: #777 !important;
}
.single-post #ez-toc-container .ez-toc-counter nav ul li a::before {
  color: #999 !important;
}

/* ---------- ۶. منابع (Easy Footnotes) ---------- */
.single-post .entry-content .easy-footnote-title,
.single-post .elementor-widget-theme-post-content .easy-footnote-title {
  direction: rtl;
  text-align: right;
  margin-top: 34px;
  padding-top: 16px;
  border-top: 2px solid #f0e6b8;
}
.single-post .entry-content .easy-footnote-title h4,
.single-post .elementor-widget-theme-post-content .easy-footnote-title h4 {
  font-size: 15px;
  color: #666;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}
.single-post .entry-content ol.easy-footnotes-wrapper,
.single-post .elementor-widget-theme-post-content ol.easy-footnotes-wrapper {
  direction: ltr !important;
  list-style: decimal !important;
  padding: 0 0 0 24px !important;
  margin: 12px 0 0 !important;
  background: none !important;
  border: none !important;
  counter-reset: none !important;
}
.single-post .entry-content ol.easy-footnotes-wrapper > li,
.single-post .elementor-widget-theme-post-content ol.easy-footnotes-wrapper > li {
  direction: ltr !important;
  text-align: left !important;
  font-size: 12px !important;
  color: #999 !important;
  line-height: 1.9 !important;
  padding: 0 0 6px 0 !important;
  margin: 0 0 6px 0 !important;
  border: none !important;
  list-style: decimal !important;
  counter-increment: none !important;
}
.single-post .entry-content ol.easy-footnotes-wrapper > li::before,
.single-post .elementor-widget-theme-post-content ol.easy-footnotes-wrapper > li::before {
  content: none !important;
  display: none !important;
}
.single-post .entry-content ol.easy-footnotes-wrapper a,
.single-post .elementor-widget-theme-post-content ol.easy-footnotes-wrapper a {
  color: #6aa96b;
  text-decoration: none;
  border-bottom: 1px dotted #b8d9b9;
}
.single-post .entry-content ol.easy-footnotes-wrapper a:hover,
.single-post .elementor-widget-theme-post-content ol.easy-footnotes-wrapper a:hover {
  color: #43B345;
}

/* ---------- ۷. عنوان‌ها ---------- */
.single-post .entry-content h2,
.single-post .elementor-widget-theme-post-content h2 {
  position: relative;
  font-size: 21px;
  font-weight: 700;
  color: #3a3a3a;
  margin: 42px 0 20px;
  padding: 0 14px 12px 0;
  border-bottom: 1px solid #f0e6b8;
  background: none;
  scroll-margin-top: 110px;
}
.single-post .entry-content h2::before,
.single-post .elementor-widget-theme-post-content h2::before {
  content: "";
  position: absolute;
  right: 0; top: 4px;
  width: 5px; height: 20px;
  background: #43B345;
  border-radius: 3px;
}
.single-post .entry-content h2::after,
.single-post .elementor-widget-theme-post-content h2::after {
  content: "";
  position: absolute;
  right: 0; bottom: -1px;
  width: 70px; height: 2px;
  background: #43B345;
}
.single-post .entry-content h3,
.single-post .elementor-widget-theme-post-content h3 {
  font-size: 17px;
  color: #444;
  margin: 28px 0 12px;
  padding-right: 12px;
  border-right: 3px solid rgba(67,179,69,0.45);
  scroll-margin-top: 110px;
}

/* ---------- ۸. تصاویر داخل مقاله ---------- */
.single-post .entry-content img.aligncenter,
.single-post .elementor-widget-theme-post-content img.aligncenter {
  border-radius: 10px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.08);
}

/* ---------- ۹. جعبه نویسنده ---------- */
.single-post .ahoota-author-box {
  background: #fdfdfa;
  border: 1px solid #efefe4;
  border-radius: 12px;
  padding: 20px;
  margin-top: 34px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.single-post .ahoota-author-box img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.single-post .ahoota-author-box .author-label {
  font-size: 12px;
  color: #999;
}
.single-post .ahoota-author-box .author-name a {
  color: #333;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}
.single-post .ahoota-author-box .author-bio {
  font-size: 13px;
  color: #777;
  line-height: 1.9;
  margin-top: 6px;
}

/* ---------- ۱۰. بخش دیدگاه‌ها ---------- */
.single-post #comments .comment-reply-title {
  font-size: 18px;
  color: #444;
  padding-right: 14px;
  border-right: 4px solid #43B345;
  margin-bottom: 18px;
}
.single-post #comments .comment-form {
  background: #fdfdfa;
  border: 1px solid #efefe4;
  border-radius: 12px;
  padding: 22px 20px 8px;
}
.single-post #comments .comment-form label {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
  display: block;
}
.single-post #comments .comment-form input[type="text"],
.single-post #comments .comment-form input[type="email"],
.single-post #comments .comment-form textarea {
  border: 1px solid #e8e0c0;
  border-radius: 8px;
  background: #fff;
  padding: 10px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.single-post #comments .comment-form input[type="text"]:focus,
.single-post #comments .comment-form input[type="email"]:focus,
.single-post #comments .comment-form textarea:focus {
  border-color: #43B345;
  box-shadow: 0 0 0 3px rgba(67,179,69,0.12);
  outline: none;
}
.single-post #comments .comment-form .comment-notes {
  font-size: 12px;
  color: #999;
}
.single-post #comments .comment-form .submit {
  background: #43B345;
  border: none;
  border-radius: 30px;
  color: #fff;
  padding: 12px 34px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.single-post #comments .comment-form .submit:hover {
  background: #3a9e3c;
}
.single-post #comments .comment-body {
  background: #fff;
  border: 1px solid #efefe4;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.single-post #comments .comment-author .fn {
  color: #333;
  font-weight: 700;
}
.single-post #comments .comment-meta {
  font-size: 12px;
  color: #aaa;
}

/* ---------- ۱۱. موبایل ---------- */
@media (max-width: 767px) {
  .single-post .entry-content blockquote,
  .single-post .elementor-widget-theme-post-content blockquote {
    padding: 20px 16px 16px 14px;
    margin: 20px 0;
  }
  .single-post .entry-content blockquote > p:first-child,
  .single-post .elementor-widget-theme-post-content blockquote > p:first-child {
    font-size: 12px;
  }
  .single-post .entry-content blockquote::after,
  .single-post .elementor-widget-theme-post-content blockquote::after {
    font-size: 34px;
    top: 2px; right: 8px;
  }
  .single-post .entry-content h2,
  .single-post .elementor-widget-theme-post-content h2 {
    font-size: 18px;
    margin: 30px 0 16px;
  }
  .single-post .entry-content h3,
  .single-post .elementor-widget-theme-post-content h3 {
    font-size: 16px;
  }
  .single-post .entry-content ul:not(.ez-toc-list),
  .single-post .entry-content ol:not(.easy-footnotes-wrapper),
  .single-post .elementor-widget-theme-post-content ul:not(.ez-toc-list),
  .single-post .elementor-widget-theme-post-content ol:not(.easy-footnotes-wrapper) {
    padding: 14px 14px 14px 12px;
  }
  .single-post .entry-content table,
  .single-post .elementor-widget-theme-post-content table {
    font-size: 12.5px;
    table-layout: fixed;
    word-wrap: break-word;
  }
  .single-post .entry-content table td,
  .single-post .entry-content table th,
  .single-post .elementor-widget-theme-post-content table td,
  .single-post .elementor-widget-theme-post-content table th {
    padding: 8px 6px;
    line-height: 1.7;
  }
  .single-post #ez-toc-container {
    padding: 14px 16px !important;
  }
  .single-post .ahoota-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .single-post #comments .comment-form {
    padding: 16px 14px 6px;
  }
}