/* Blog post reading styles */
.post-page .site-header {
  top: 30px;
}

.post-header-section {
  background: var(--pale);
  padding: 170px 0 40px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--green);
  font-weight: 700;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.post-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.5;
  color: var(--green);
  margin-bottom: 16px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.875rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-content-section {
  padding-block: 40px 80px;
}

.post-container {
  width: min(860px, calc(100% - 48px));
  margin-inline: auto;
}

.post-featured-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 32px;
  border: 1px solid var(--line);
}

.post-body {
  font-size: 1.125rem;
  line-height: 2.15;
  color: #2d3d34;
  text-align: justify;
}

.post-body p {
  margin-bottom: 22px;
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4 {
  color: var(--green);
  line-height: 1.6;
  margin-top: 36px;
  margin-bottom: 16px;
}

.post-body h2 {
  font-size: 1.5rem;
  border-right: 4px solid var(--leaf);
  padding-right: 12px;
}

.post-body h3 {
  font-size: 1.25rem;
}

.post-body ul,
.post-body ol {
  padding-right: 28px;
  margin-bottom: 22px;
}

.post-body li {
  margin-bottom: 10px;
}

.post-body blockquote {
  background: var(--pale);
  border-right: 4px solid var(--leaf);
  padding: 16px 20px;
  border-radius: 6px;
  margin: 24px 0;
  font-weight: 700;
  color: var(--ink);
}

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-block: 24px;
  display: block;
}

.post-body a {
  color: var(--leaf);
  text-decoration: underline;
}

.post-body a:hover {
  color: var(--green);
}

.post-body svg,
.elementor-widget-table-of-contents {
  display: none !important;
}

.post-cta-box {
  background: linear-gradient(135deg, #f7faf4 0%, #edf5e8 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  margin-top: 48px;
  text-align: center;
}

.post-cta-box h3 {
  font-size: 1.4rem;
  color: var(--green);
  margin-bottom: 10px;
}

.post-cta-box p {
  color: var(--muted);
  margin-bottom: 20px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.cta-btn {
  min-height: 52px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  white-space: normal;
  border-radius: 40px;
}

.related-posts-section {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}

.related-title {
  font-size: 1.4rem;
  color: var(--green);
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px #153b2310;
}

.related-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.related-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.related-card h4 {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 8px;
  transition: color .2s;
}

.related-card:hover h4 {
  color: var(--leaf);
}

.related-read-more {
  font-size: 0.85rem;
  color: var(--leaf);
  font-weight: 700;
  margin-top: auto;
}

.back-to-blog-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
  margin-top: 36px;
}

.back-to-blog-link:hover {
  color: var(--leaf);
}

/* Post Comments Section */
.post-comments-section {
  margin-top: 50px;
  margin-bottom: 20px;
}

.comments-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 4px 20px rgba(21, 59, 35, 0.04);
}

.comments-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  align-items: start;
}

.comments-header .comments-title {
  font-size: 1.35rem;
  color: var(--green);
  margin-bottom: 6px;
  font-family: Sans, Yekan, Tahoma, sans-serif;
}

.comments-header .comments-notice {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.required {
  color: #dc2626;
  font-weight: 700;
}

.comment-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.form-group input,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  background: #fafcfa;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--leaf);
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 133, 90, 0.15);
  background: #ffffff;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
  accent-color: var(--leaf);
  width: 17px;
  height: 17px;
  cursor: pointer;
  flex-shrink: 0;
}

.form-checkbox label {
  cursor: pointer;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.submit-comment-btn {
  background: var(--gold);
  color: #1a202c;
  font-weight: 700;
  border: none;
  padding: 12px 32px;
  border-radius: 40px;
  cursor: pointer;
  font-size: 0.94rem;
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
}

.submit-comment-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(220, 169, 74, 0.35);
}

.comment-status-msg {
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  display: none;
}

.comment-status-msg.success {
  display: inline-block;
  background: #e6f7ec;
  color: #1e7040;
  border: 1px solid #bce6ca;
}

.comment-status-msg.error {
  display: inline-block;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.comments-brand-col {
  display: flex;
  flex-direction: column;
}

.brand-badge-box {
  background: linear-gradient(180deg, #f4f8f5 0%, #ebf2ed 100%);
  border: 1px solid #dbe6de;
  border-radius: 16px;
  padding: 24px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.brand-badge-box img {
  width: 80px;
  height: auto;
  object-fit: contain;
}

.brand-badge-box h4 {
  font-size: 1.05rem;
  color: var(--green);
  margin: 0;
  font-family: Sans, Yekan, Tahoma, sans-serif;
}

.brand-badge-box p {
  font-size: 0.8rem;
  color: var(--ink);
  line-height: 1.6;
  margin: 0;
}

.badge-tag {
  background: rgba(47, 133, 90, 0.12);
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 4px;
}

.comments-list-wrapper {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.comments-list-title {
  font-size: 1.15rem;
  color: var(--green);
  margin-bottom: 16px;
  font-family: Sans, Yekan, Tahoma, sans-serif;
}

.no-comments-yet {
  font-size: 0.88rem;
  color: var(--muted);
  background: #f9fbf9;
  padding: 20px;
  border-radius: 10px;
  border: 1px dashed var(--line);
  text-align: center;
  margin: 0;
}

.comment-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: #fafcfa;
  border: 1px solid #e7ece8;
  border-radius: 12px;
  margin-bottom: 12px;
  transition: background 0.4s, border-color 0.4s;
}

.comment-item.newly-added {
  background: #f0fdf4;
  border-color: #86efac;
}

.comment-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.comment-content-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.comment-author-name {
  font-size: 0.92rem;
  color: var(--green);
  font-weight: 700;
}

.comment-author-website {
  font-size: 0.78rem;
  color: var(--leaf);
  text-decoration: none;
}

.comment-author-website:hover {
  text-decoration: underline;
}

.comment-date {
  font-size: 0.78rem;
  color: var(--muted);
  margin-right: auto;
}

.comment-body p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}

@media (max-width: 960px) {
  .post-header-section {
    padding-top: 172px;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .comments-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .comments-brand-col {
    order: -1;
  }
  .brand-badge-box {
    flex-direction: row;
    text-align: right;
    padding: 16px 20px;
    gap: 16px;
  }
  .brand-badge-box img {
    width: 60px;
  }
}

@media (max-width: 640px) {
  .post-page .site-header {
    top: 16px;
  }
  .post-header-section {
    padding-top: 140px;
    padding-bottom: 28px;
  }
  .post-container {
    width: calc(100% - 32px);
  }
  .post-body {
    font-size: 1.05rem;
    text-align: right;
  }
  .post-cta-box {
    padding: 30px 18px 34px;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    max-width: 320px;
    margin: 0 auto;
  }
  .cta-btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 0.88rem;
  }
  .comments-card {
    padding: 24px 16px;
    border-radius: 16px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .brand-badge-box {
    flex-direction: column;
    text-align: center;
    padding: 20px 14px;
  }
  .brand-badge-box img {
    width: 64px;
  }
  .submit-comment-btn {
    width: 100%;
  }
  .comment-item {
    padding: 12px;
    gap: 10px;
  }
  .comment-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}
