/* ============================================
   Priyaas blog styles (listing + article pages)
   ============================================ */

/* ---- Listing / related-post cards ---- */
.pblog-section {
  padding: 60px 0 90px;
}

.pblog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.pblog-grid--listing {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pblog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--white-color);
  box-shadow: 0 12px 32px rgba(24, 18, 13, 0.07);
}

.pblog-card__thumb {
  display: block;
  overflow: hidden;
}

.pblog-card__thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: var(--transition);
}

.pblog-card:hover .pblog-card__thumb img {
  transform: scale(1.04);
}

.pblog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 24px;
}

.pblog-card__meta {
  margin: 0;
  color: var(--text-gray-color);
  font-size: 1.3rem;
}

.pblog-card__title {
  font-size: 1.8rem;
  line-height: 1.4;
}

.pblog-card__title a {
  color: var(--primary-color);
}

.pblog-card__title a:hover {
  color: var(--secondary-color);
}

.pblog-card__excerpt {
  margin: 0;
  color: var(--text-gray-color);
  font-size: 1.4rem;
  line-height: 1.65;
}

.pblog-card__link {
  margin-top: auto;
  color: var(--secondary-color);
  font-size: 1.4rem;
  font-weight: 600;
}

/* ---- Article pages ---- */
.pblog-article {
  max-width: 860px;
  margin: 0 auto;
}

.pblog-article__hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.pblog-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 20px 0 4px;
  color: var(--text-gray-color);
  font-size: 1.35rem;
}

.pblog-article h2 {
  margin: 36px 0 14px;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.3;
}

.pblog-article h3 {
  margin: 26px 0 10px;
  font-size: 1.8rem;
  line-height: 1.4;
}

.pblog-article p {
  margin: 0 0 16px;
  color: #3f3a35;
  font-size: 1.5rem;
  line-height: 1.8;
}

.pblog-article ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.pblog-article ul li {
  color: #3f3a35;
  font-size: 1.5rem;
  line-height: 1.9;
  list-style: disc;
}

.pblog-article a {
  color: var(--secondary-color);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pblog-article .pblog-card a,
.pblog-related a {
  text-decoration: none;
}

/* Keep button text white — .pblog-article a would otherwise repaint it
   with the secondary colour, matching the button background. */
.pblog-article .pblog-cta .primary__btn {
  color: var(--white-color);
  text-decoration: none;
}

/* Related-post cards inside an article keep the card palette. */
.pblog-article .pblog-card__title a {
  color: var(--primary-color);
}

.pblog-article .pblog-card__title a:hover,
.pblog-article .pblog-card__link {
  color: var(--secondary-color);
}

.pblog-checklist {
  padding-left: 0 !important;
}

.pblog-checklist li {
  list-style: none !important;
}

.pblog-checklist li::before {
  content: "✓";
  margin-right: 10px;
  color: #1c8f4e;
  font-weight: 700;
}

.pblog-cta {
  display: flex;
  justify-content: center;
  margin: 30px 0 10px;
}

.pblog-table-wrap {
  margin: 0 0 18px;
  overflow-x: auto;
}

.pblog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.45rem;
}

.pblog-table th,
.pblog-table td {
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  text-align: left;
}

.pblog-table th {
  background: var(--gray-color2);
}

.pblog-faq {
  margin-bottom: 14px;
  padding: 6px 20px 2px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--white-color);
}

.pblog-faq h3 {
  margin: 14px 0 6px;
  font-size: 1.6rem;
}

.pblog-related {
  margin-top: 50px;
}

.pblog-related h2 {
  margin-bottom: 22px;
  text-align: center;
}

@media (max-width: 991px) {
  .pblog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .pblog-section {
    padding: 40px 0 64px;
  }
}

@media (max-width: 575px) {
  .pblog-grid,
  .pblog-grid--listing {
    grid-template-columns: 1fr;
  }
}
