/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

body {
    font-family: Shabnam;
}
div#comments {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}
.children {
  margin-left: 30px;
  border-left: 2px solid #e0e0e0;
  padding-left: 15px;
}
.comment .children .comment {
  background-color: #f7f7f7;
  padding: 10px;
  border-radius: 5px;
}
.comment-meta time {
  display: none;
}
.custom-author-box {
  display: flex;
  align-items: center;
  background: #f8f8f8;
  padding: 15px;
  border-radius: 8px;
  margin-top: 30px;
  border: 1px solid #ddd;
}

.author-avatar img {
  border-radius: 50%;
  margin-left: 15px;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 16px;
  color: #333;
  margin-bottom: 5px;
}

.author-bio {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}
/* فرم کلی */
.wpcf7-form {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 24px;
  max-width: 700px;
  margin: 40px auto;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
  font-family: 'IRANSans', sans-serif;
  direction: rtl;
}
select.wpcf7-form-control.wpcf7-select {
    height: 48px;
}
/* برچسب‌ها */
.wpcf7-form label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

/* فیلدهای ورودی */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  transition: border 0.3s ease;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  border-color: #1976d2;
  outline: none;
}

/* دکمه ارسال */
.wpcf7-submit {
  background-color: #1976d2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 30px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.wpcf7-submit:hover {
  background-color: #125aaa;
}
.wpcf7-form select,
.wpcf7-form input,
.wpcf7-form textarea {
  font-family: 'IRANSans', 'Tahoma', sans-serif !important;
  direction: rtl;
  text-align: right;
  font-size: 14px;
  letter-spacing: 0;
}


/* پیام‌های سیستم */
.wpcf7-response-output {
  margin-top: 20px;
  color: #00695c;
  font-size: 14px;
  border-right: 4px solid #00695c;
  padding-right: 12px;
}

/* ریسپانسیو */
@media (max-width: 600px) {
  .wpcf7-form {
    padding: 16px;
  }
}
/* استایل برای تگ blockquote (نقل‌قول پاراگرافی) */
blockquote {
  position: relative; /* برای کنترل before */
 border-right: 5px solid #c00;
  background-color: #f9f9f9;
  color: #333;
  font-style: italic;
  padding: 1rem 1.5rem 1rem 2.5rem; /* فضای اضافه برای آیکون */
  margin: 2rem 0;
  font-size: 1rem;
  line-height: 1.7;
  border-radius: 6px;
}

blockquote::before {
  content: "“";
  font-size: 2.5rem;
  color: #cc0000;
  position: absolute;
  left: 10px;
  top: 5px;
  font-family: Georgia, serif;
}

/* استایل برای تگ q (نقل‌قول درون‌خطی) */
q {
  quotes: "“" "”";
  color: #cc0000;
  font-style: italic;
  font-weight: bold;
}

.style-tip {
  background-color: #fff3f3;
  border: 1px solid #cc0000;
  padding: 1rem;
  border-radius: 8px;
  color: #222;
  margin: 1.5rem 0;
  position: relative;
  font-size: 0.95rem;
}
.style-tip::before {
  content: "⚠️";
  color: #cc0000;
  font-weight: bold;
  position: absolute;
  top: -18px;
  right: 10px;
  background: transparent;
  padding: 0 0.5rem;
  font-size: 26px;
}
/* استایل حرفه‌ای جدول محتوا یوست */
.wp-block-yoast-seo-table-of-contents::before {
  content: "📑 جدول محتوا";
  display: block;
  font-weight: bold;
  font-size: 18px;
  color: #d60000;
  margin-bottom: 12px;
  border-bottom: 2px dashed #ffcaca;
  padding-bottom: 6px;
}

.wp-block-yoast-seo-table-of-contents {
  border: 2px dashed #ff3c3c;
  border-radius: 12px;
  padding: 20px;
  background: #fff2f2;
  font-family: IRANSans, sans-serif;
  margin-bottom: 30px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  direction: rtl;
  text-align: right;
}

.wp-block-yoast-seo-table-of-contents ul {
  list-style: none;
  padding-right: 0;
  margin: 0;
}

.wp-block-yoast-seo-table-of-contents li {
  margin-bottom: 10px;
  line-height: 1.8;
  position: relative;
  padding-right: 16px;
}

.wp-block-yoast-seo-table-of-contents > ul > li > a {
  color: #d60000;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.2s ease-in-out;
}

.wp-block-yoast-seo-table-of-contents > ul > li > a:hover {
  color: #aa0000;
  text-decoration: underline;
}

.wp-block-yoast-seo-table-of-contents ul ul a {
  font-size: 14px;
  color: #444;
  padding-right: 5px;
  display: block;
  font-weight: 500;
}

.wp-block-yoast-seo-table-of-contents ul ul {
  margin-top: 4px;
  padding-right: 12px;
  border-right: 2px dotted #ccc;
}

.wp-block-yoast-seo-table-of-contents li::before {
  content: "•";
  color: #ff3c3c;
  font-weight: bold;
  position: absolute;
  right: 0;
  top: 0;
}



@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}