/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/


@font-face {
    font-family: 'Vazir';
    src: url('/wp-content/themes/hello-elementor-child/fonts/Vazirmatn.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

h1, h2, h3, h4, h5, h6, a, p, span, strong, b, div, li, ol, input {
	font-family: 'Vazir';
	-moz-font-feature-settings: "ss01";
    -webkit-font-feature-settings: "ss01";
    font-feature-settings: "ss01";
}
strong {
  font-weight: 700;
}

.elementor-icon svg path {
    color: inherit;
    fill: inherit;
}

@keyframes floatDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}
.float-down {
    animation: floatDown 4.5s ease-in-out infinite;
}

.damavand-search .e-search-form {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-radius: 1rem !important;
    padding: 0.5rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2) !important;
    border: none !important;
}

.damavand-search .e-search-input {
    border: none !important;
    background: transparent !important;
    color: #212529 !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 0 !important;
    width: 100% !important;
}

.damavand-search .e-search-input::placeholder {
    color: #adb5bd !important;
}

.damavand-search .e-search-input:focus {
    box-shadow: none !important;
}

.damavand-search .e-search-submit {
    background: #1E4620 !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px -3px rgba(30, 70, 32, 0.3) !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

.damavand-search .e-search-submit:hover {
    background: #2D5A27 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px -4px rgba(30, 70, 32, 0.4) !important;
}

.damavand-search .e-search-label {
    display: none !important;
}

.shine-button {
  position: relative;
  overflow: hidden;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.shine-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: left 0.6s ease-in-out; 
}

.shine-button:hover::after {
  left: 150%;
}

.stepbystep {
	width: 3.5rem;
	height: 3.5rem;
	text-align: center;
	align-content: center !important;
}

.elementor-toc__header {
    display: flex;
    align-items: center;
    padding: 14px 16px;
}

.elementor-toc__header-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.elementor-toc__header-title::before {
    content: "≡";
    margin-left: 8px;
    font-size: 18px;
    color: #555;
}

.elementor-toc__body {
    padding: 0 12px;
}

.elementor-toc__list-wrapper {
    list-style: none;
    padding: 0;
    margin: 0;
}

.elementor-toc__list-item-text-wrapper {
    padding: 2px;
}

.elementor-toc__list-item-text {
    font-size: 14px;
    color: #444;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

.elementor-toc__list-item-text:hover {
    color: #000;
}

.elementor-toc__list-item-text.elementor-item-active .elementor-toc__list-item-text-wrapper,
.elementor-item-active .elementor-toc__list-item-text-wrapper {
    background-color: #f2f4ee;
    border-right: 3px solid #7a9a4a;
    border-radius: 4px;
}

.elementor-toc__list-wrapper .elementor-toc__list-wrapper .elementor-toc__list-item-text {
    font-size: 13px;
    color: #666;
}

.post-list {
    position: relative;
}

.post-list .elementor-widget-image,
.post-list .elementor-widget-image .elementor-widget-container,
.post-list .elementor-widget-image a {
    display: block;
    height: 100%;
}

.post-list .elementor-widget-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-list h3 a {
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* کارت اصلی */
.comments-area {
    direction: rtl;
    margin: 32px 0;
}

/* فقط فرم باکس داشته باشه */
.comment-respond {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    margin-bottom: 32px;
}

/* عنوان */
.comment-reply-title {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: right;
    margin-bottom: 24px;
    color: #1a1a1a;
}

/* مخفی کردن موارد اضافی */
.comment-notes,
.comment-form-url,
.comment-form-cookies-consent {
    display: none !important;
}

/* ردیف نام و ایمیل کنار هم */
.comment-form-author,
.comment-form-email {
    display: inline-block;
    width: 49%;
    margin: 0 0 16px 0;
}

.comment-form-author {
    padding-right: 0;
    float: right;
}

.comment-form-email {
    padding-right: 1%;
    float: left;
}

/* لیبل‌ها */
.comment-form label {
    display: block;
    font-size: 0.85rem;
    color: #444;
    margin-bottom: 6px;
    text-align: right;
}

/* فیلدهای متنی */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: #f4f5f7;
    font-size: 0.95rem;
    color: #333;
    direction: rtl;
    box-sizing: border-box;
    transition: box-shadow 0.2s;
    font-family: inherit;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 139, 80, 0.25);
}

/* textarea */
.comment-form-comment {
    clear: both;
    margin-bottom: 20px;
}

.comment-form textarea {
    resize: none;
    height: 130px;
}

/* بخش submit */
.form-submit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    clear: both;
    margin: 0;
}

.form-submit::before {
    content: "نظرات پس از بررسی منتشر می‌شوند";
    font-size: 0.8rem;
    color: #999;
}

/* دکمه ارسال */
.form-submit .submit {
    background: #1e6b3c;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.75rem;
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    width: auto !important;
}

.form-submit .submit:hover {
    background: #165a30;
}

/* placeholder */
.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: #bbb;
    font-family: inherit;
}


/* ══════════════════════════════════════════════════
   0. DESIGN TOKENS
   ══════════════════════════════════════════════════ */
#comments {
  /* Brand palette */
  --c-green:        #2d5a27;
  --c-green-mid:    #3d7a35;
  --c-green-soft:   #eaf2e9;
  --c-green-border: #ccdecb;
  --c-gold:         #f0b122;
  --c-gold-soft:    #fdf5e0;
  --c-gold-dark:    #c8910e;
  --c-snow:         #f8f9fa;

  /* Neutral */
  --c-white:        #ffffff;
  --c-text:         #374151;
  --c-text-light:   #6b7280;
  --c-border:       #e3e8e2;

  /* Misc */
  --radius:         12px;
  --radius-sm:      7px;
  --ease:           0.18s ease;
}


/* ══════════════════════════════════════════════════
   1. FIX: OVERRIDE THEME AVATAR ABSOLUTE POSITION
   Must come before our own avatar rules so specificity wins.
   ══════════════════════════════════════════════════ */
#comments .comment .avatar,
#comments .pingback .avatar {
  position: relative !important;
  left:   auto !important;
  right:  auto !important;
  top:    auto !important;
  bottom: auto !important;
  inset:  auto !important;          /* belt-and-suspenders */
}

/* The theme adds inline-start padding to .comment-author to clear
   the absolute avatar. Reset it now that we're using flex layout. */
#comments .comment-author.vcard {
  padding-inline-start: 0 !important;
  padding-right:        0 !important;
  padding-left:         0 !important;
}


/* ══════════════════════════════════════════════════
   2. COMMENT LIST
   ══════════════════════════════════════════════════ */
#comments ol.comment-list {
  list-style: none;
  padding:    0;
  margin:     1.75rem 0 0;
}

/* ── spacing between top-level comments ── */
#comments ol.comment-list > li.comment {
  margin-bottom: 1.5rem;   /* gap via margin, immune to flex reset */
}
#comments ol.comment-list > li.comment:last-child {
  margin-bottom: 3rem;
}


/* ══════════════════════════════════════════════════
   3. COMMENT CARD
   ══════════════════════════════════════════════════ */
#comments .comment-body {
  background:    var(--c-white);
  border:        1px solid var(--c-border);
  border-radius: var(--radius);
  padding:       1.1rem 1.25rem 0.9rem;
  position:      relative;
  overflow:      hidden;
  transition:    border-color var(--ease), box-shadow var(--ease);
}

/* subtle hover lift — colour, not a shadow explosion */
#comments .comment-body:hover {
  border-color: var(--c-green-border);
  box-shadow:   0 3px 14px rgba(45, 90, 39, 0.07);
}

/* green left-edge accent line (RTL: inline-end = right) */
#comments .comment-body::after {
  content:       "";
  position:      absolute;
  top:           16%;
  bottom:        16%;
  background:    var(--c-green);
  border-radius: 3px 0 0 3px;
  opacity:       0;
  transition:    opacity var(--ease);
}
#comments .comment-body:hover::after {
  opacity: 0.55;
}


/* ══════════════════════════════════════════════════
   4. BYPOSTAUTHOR  (post author's own replies)
   ══════════════════════════════════════════════════ */
#comments li.bypostauthor > .comment-body {
  background:   var(--c-green-soft);
  border-color: var(--c-green-border);
}
#comments li.bypostauthor > .comment-body::after {
  opacity: 1;
}

/* "نویسنده" pill badge */
#comments li.bypostauthor .comment-author .fn::after {
  content:           "نویسنده";
  display:           inline-block;
  margin-inline-start: 0.4rem;
  padding:           1px 8px;
  background:        var(--c-gold);
  color:             #1a1a1a;
  font-size:         0.62rem;
  font-weight:       700;
  border-radius:     20px;
  vertical-align:    middle;
  line-height:       1.7;
  letter-spacing:    0.01em;
}


/* ══════════════════════════════════════════════════
   5. COMMENT META HEADER
   ══════════════════════════════════════════════════ */
#comments .comment-meta {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             0.75rem;
  flex-wrap:       wrap;
  margin-bottom:   0.8rem;
}


/* ══════════════════════════════════════════════════
   6. AVATAR  (fixed — no longer absolute)
   ══════════════════════════════════════════════════ */
#comments .comment-author img.avatar {
  width:         42px !important;
  height:        42px !important;
  border-radius: 50%;
  border:        2px solid var(--c-green-border);  /* static — never changes */
  object-fit:    cover;
  flex-shrink:   0;
  display:       block;
  /* no hover border change per request */
}

/* children: slightly smaller avatar */
#comments ol.children .comment-author img.avatar {
  width:  36px !important;
  height: 36px !important;
}


/* ══════════════════════════════════════════════════
   7. AUTHOR NAME  +  "says" label
   ══════════════════════════════════════════════════ */
#comments .comment-author.vcard {
  display:     flex;
  align-items: center;
  gap:         0.55rem;
  flex:        1;
}

#comments .comment-author .fn {
  font-size:   0.7rem;
  font-weight: 700;
  color:       var(--c-green);
  line-height: 1.3;
}

#comments .comment-author .fn a {
  color:           var(--c-green);
  text-decoration: none;
  transition:      color var(--ease);
  font-size:   0.7rem;
}
#comments .comment-author .fn a:hover {
  color: var(--c-green-mid);
}

/* hide "گفت:" — redundant noise */
#comments .comment-author .says {
  display: none;
}


/* ══════════════════════════════════════════════════
   8. DATE + EDIT LINK
   ══════════════════════════════════════════════════ */
#comments .comment-metadata {
  display:     flex;
  align-items: center;
  gap:         0.4rem;
  flex-wrap:   wrap;
}

#comments .comment-metadata a {
  font-size:       0.75rem;
  color:           var(--c-text-light);
  text-decoration: none;
  transition:      color var(--ease);
}
#comments .comment-metadata a:hover {
  color: var(--c-green);
}

#comments .edit-link {
	display: none;
}

/* ══════════════════════════════════════════════════
   9. COMMENT CONTENT
   FIX: removed border-top & border-bottom (the "two lines" bug)
   ══════════════════════════════════════════════════ */
#comments .comment-content {
  font-size:   0.93rem;
  color:       var(--c-text);
  line-height: 1.8;
  /* no border — clean & minimal */
}

#comments .comment-content p:last-child {
  margin-bottom: 0;
}

#comments .comment-content a {
  color:                var(--c-green-mid);
  text-decoration:      underline;
  text-underline-offset: 3px;
}

#comments .comment-content blockquote {
  border-inline-start:  3px solid var(--c-gold);
  margin-inline-start:  0;
  padding-inline-start: 1rem;
  color:                var(--c-text-light);
  font-style:           italic;
}


/* ══════════════════════════════════════════════════
   10. REPLY BUTTON
   ══════════════════════════════════════════════════ */
#comments .reply {
  margin-top: 1rem;
  text-align: start;
}

#comments .comment-reply-link {
  display:         inline-flex;
  align-items:     center;
  gap:             0.3rem;
  font-size:       0.7rem;
  font-weight:     500;
  color:           var(--c-green);
  background:      var(--c-green-soft);
  padding:         7px 10px;
  border-radius:   var(--radius-sm);
  text-decoration: none;
  transition:      background var(--ease), color var(--ease),
                   border-color var(--ease), transform var(--ease);
}

#comments .comment-reply-link::before {
  display:   inline-block;
  font-size: 0.85em;
}

#comments .comment-reply-link:hover {
  background:   var(--c-green);
  color:        #fff;
  border-color: var(--c-green);
  transform:    translateY(-1px);
}
#comments .comment-reply-link:active {
  transform: translateY(0);
}


/* ══════════════════════════════════════════════════
   11. NESTED REPLIES (.children)
   ══════════════════════════════════════════════════ */
#comments ol.children {
  list-style:          none;
  padding:             0;
  margin-block-start:  1rem;
  margin-inline-start: 1.5rem;
  position:            relative;
}

/* spacing between sibling child comments */
#comments ol.children > li.comment {
  margin-bottom: 0.9rem;
}
#comments ol.children > li.comment:last-child {
  margin-bottom: 0;
}

/* vertical thread line — gold, subtle */
#comments ol.children::before {
  content:              "";
  position:             absolute;
  inset-inline-end:     -1rem;
  top:                  0;
  bottom:               1rem;
  width:                2px;
  background:           linear-gradient(to bottom, var(--c-gold), transparent);
  border-radius:        2px;
  opacity:              0.4;
}

/* child card — very faint green tint */
#comments ol.children > li.comment > .comment-body {
  background:   var(--c-white);
  border-color: var(--c-green-border);
}

/* child card accent bar flips to inline-start (left in RTL) */
#comments ol.children > li.comment > .comment-body::after {
  inset-inline-end:  auto;
  inset-inline-start: 0;
  border-radius:      0 3px 3px 0;
}


/* ══════════════════════════════════════════════════
   12. AWAITING MODERATION
   ══════════════════════════════════════════════════ */
#comments .comment-awaiting-moderation {
  display:       inline-block;
  background:    var(--c-gold-soft);
  color:         var(--c-gold-dark);
  font-size:     0.72rem;
  font-weight:   600;
  padding:       2px 10px;
  border-radius: 20px;
  margin-top:    0.35rem;
  border:        1px solid #f0d080;
}


/* ══════════════════════════════════════════════════
   13. ACCESSIBILITY — keyboard focus ring
   ══════════════════════════════════════════════════ */
#comments a:focus-visible {
  outline:        2px solid var(--c-green);
  outline-offset: 3px;
  border-radius:  4px;
}


/* ══════════════════════════════════════════════════
   14. RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (max-width: 600px) {
  #comments .comment-body {
    padding: 0.9rem 1rem;
  }
  #comments ol.children {
    margin-inline-start: 1rem;
  }
  #comments .comment-meta {
    gap: 0rem;
  }
  
  
#comments .comment-author a {
      display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#comments li.bypostauthor .comment-author .fn::after {
	display: none !important;
}

#comments .comment-author.vcard {
	flex: unset;
}
  
#comments .comment-metadata a {
	font-size: 0.6rem;
	margin-right:3rem;
} 
  
}


/* ══════════════════════════════════════════════════
   15. REDUCED MOTION
   ══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  #comments .comment-body,
  #comments .comment-reply-link,
  #comments .comment-author img.avatar {
    transition: none;
  }
}

#comments .comment .comment-body {
	padding-inline-start: 1rem; 
	padding-block-end: 1rem;
    padding-block-start: 1rem;
    padding-inline-end: 0.5rem;
}

#comments .comment .avatar {
  margin-inline-end: 5px;
}

#comments .title-comments {
	display: none;
}