/* ==========================================================================
   Blog listing + blog detail page styles
   Extends the existing Kashmik Formulation design system (style-home.css /
   inner.css). Brand color #ea5e20, font "Roboto".
   ========================================================================== */

/* Breadcrumb */
.breadcrumb-bar {
  background: #fef7f4;
  border-bottom: 1px solid #f0e6de;
  padding: 14px 0;
}

.breadcrumb-bar nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: #6b6b6b;
}

.breadcrumb-bar a {
  color: #6b6b6b;
  transition: color 0.3s;
}

.breadcrumb-bar a:hover {
  color: #ea5e20;
}

.breadcrumb-bar .sep {
  color: #cbbfb3;
}

.breadcrumb-bar .current {
  color: #ea5e20;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 420px;
}

/* Section intro */
.blog-page-intro {
  max-width: 820px;
  margin-bottom: 1rem;
}

/* Cards grid */
.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  margin-top: 2.5rem;
}

.blog-cards-grid.related-grid {
  margin-top: 1.75rem;
}

.blog-card {
  background: #ffffff;
  border: 1px solid #ecdfd6;
  border-radius: 20px;
  overflow: hidden;
  filter: drop-shadow(0px 5px 3px rgba(234, 94, 32, 0.1));
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
}

.blog-card .card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: block;
}

.blog-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.blog-card:hover .card-img-wrap img {
  transform: scale(1.08);
}

.blog-card .card-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #ea5e20;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 20px;
  z-index: 2;
}

.blog-card .card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card h3 {
  font-size: 1.15rem;
  text-transform: none;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.blog-card h3 a {
  color: #1a1a1a;
  transition: color 0.3s;
}

.blog-card h3 a:hover {
  color: #ea5e20;
}

.blog-card .card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
  color: #888888;
  margin-bottom: 0.9rem;
}

.blog-card .card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-card .card-meta i {
  color: #ea5e20;
  font-size: 0.85rem;
}

.blog-card p.excerpt {
  color: #666666;
  font-size: 0.925rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.blog-card .card-more {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #f0ebe5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.8rem;
  color: #ea5e20;
}

.blog-card .card-more i {
  transition: transform 0.3s;
}

.blog-card:hover .card-more i {
  transform: translateX(4px);
}

.related-heading {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid #ecdfd6;
}

/* ===== Single post page ===== */
.post-head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin-bottom: 2.25rem;
  font-size: 0.9rem;
  color: #666666;
}

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

.post-head-meta i {
  color: #ea5e20;
}

.post-head-meta .tag {
  background: #ea5e201a;
  color: #ea5e20;
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 600;
}

.post-content {
  max-width: 100%;
}

.post-content h2 {
  font-size: 1.75rem;
  text-transform: none;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.post-content h3 {
  font-size: 1.2rem;
  text-transform: none;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}

.post-content p {
  color: #444444;
  line-height: 1.8;
  margin-bottom: 1.1rem;
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.25rem 1.3rem;
  color: #444444;
  line-height: 1.8;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content strong {
  color: #1a1a1a;
}

.post-content a {
  color: #ea5e20;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(234, 94, 32, 0.4);
  text-underline-offset: 3px;
  transition: color 0.3s, text-decoration-color 0.3s;
}

.post-content a:hover {
  color: #c94d15;
  text-decoration-color: #c94d15;
}

.post-content a[target="_blank"]::after {
  content: "\2197";
  display: inline-block;
  margin-left: 2px;
  font-weight: 700;
}

/* Inline article images */
.post-content figure.post-img {
  margin: 2rem 0;
}

.post-content figure.post-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.post-content figure.post-img figcaption {
  font-size: 0.85rem;
  color: #888888;
  font-style: italic;
  text-align: center;
  margin-top: 0.65rem;
}

/* Structured process steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 1.75rem 0 2rem;
}

.process-step {
  background: #fef7f4;
  border: 1px solid #ecdfd6;
  border-radius: 14px;
  padding: 1.5rem;
}

.process-step .step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ea5e20;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.process-step h4 {
  margin-bottom: 0.5rem;
  text-transform: none;
  font-size: 1rem;
  color: #1a1a1a;
}

.process-step p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #555555;
  line-height: 1.65;
}

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: #fef7f4;
  border-radius: 16px;
  padding: 1.75rem;
  margin: 2rem 0 2.5rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-card img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
}

.stat-card .stat-text strong {
  display: block;
  font-size: 1.1rem;
  color: #1a1a1a;
  line-height: 1.3;
}

.stat-card .stat-text span {
  font-size: 0.78rem;
  color: #666666;
}

.post-content .table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
}

.post-content table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.post-content table th,
.post-content table td {
  border: 1px solid #ecdfd6;
  padding: 12px 15px;
  text-align: left;
  vertical-align: top;
}

.post-content table th {
  background: #ea5e20;
  color: #ffffff;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}

.post-content table tr:nth-child(even) td {
  background: #fef7f4;
}

.post-callout {
  background: #fef7f4;
  border-left: 4px solid #ea5e20;
  padding: 1.5rem 1.75rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.post-callout p {
  margin-bottom: 0;
  color: #333333;
  font-weight: 500;
}

.post-share {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid #ecdfd6;
  border-bottom: 1px solid #ecdfd6;
}

.post-share .label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #333333;
  margin-right: 4px;
}

.post-share a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fef7f4;
  color: #ea5e20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.post-share a:hover {
  background: #ea5e20;
  color: #ffffff;
}

.post-author {
  display: flex;
  gap: 20px;
  align-items: center;
  background: #fef7f4;
  border-radius: 16px;
  padding: 1.75rem;
  margin: 0 0 1rem;
}

.post-author .author-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #ea5e20;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}

.post-author h4 {
  margin-bottom: 0.35rem;
  text-transform: none;
  font-size: 1.05rem;
}

.post-author p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #666666;
  line-height: 1.6;
}

.post-faqs {
  max-width: 100%;
}

/* Leave a Reply */
.leave-reply {
  margin-top: 1rem;
  padding-top: 3rem;
  border-top: 1px solid #ecdfd6;
}

.leave-reply h2 {
  font-size: 1.6rem;
  text-transform: none;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.leave-reply .reply-note {
  color: #666666;
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

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

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: #1a1a1a;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #ddd0c6;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  color: #333333;
  background: #ffffff;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #ea5e20;
}

.form-field textarea {
  resize: vertical;
}

.reply-submit {
  display: inline-block;
  width: auto;
  min-width: 180px;
  background: #ea5e20;
  color: #ffffff;
  border: none;
  cursor: pointer;
}

.reply-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.reply-status {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.reply-status.success {
  color: #1a7f37;
}

.reply-status.error {
  color: #c0392b;
}

/* ===== Responsive ===== */
@media screen and (max-width: 991px) {
  .blog-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .post-content h2 {
    font-size: 1.5rem;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .blog-cards-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 1.75rem;
  }

  .breadcrumb-bar .current {
    max-width: 220px;
  }

  .post-head-meta {
    gap: 14px;
    font-size: 0.8rem;
  }

  .post-author {
    flex-direction: column;
    text-align: center;
  }

  .reply-form-row {
    grid-template-columns: 1fr;
  }

  .post-content h2 {
    font-size: 1.3rem;
  }

  .post-content table {
    min-width: 460px;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media screen and (max-width: 480px) {
  .blog-card .card-body {
    padding: 1.35rem;
  }

  .post-share .label {
    width: 100%;
    margin-bottom: 6px;
  }
}
