/*
  blog.css — Blog listing, article, and FAQ page styles
  WGAN Farms | Safe addition — extends styles.css, no modifications to it
*/

/* ─────────────────────────────────────────
   BLOG LISTING
───────────────────────────────────────── */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.blog-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--cardShadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31,95,58,.20);
  box-shadow: 0 28px 64px rgba(31,95,58,.14);
}

.blog-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e4ece2;
  flex-shrink: 0;
}

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

.blog-card:hover .blog-card-thumb img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Category Badges */
.cat-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
  width: fit-content;
}

.cat-badge.education  { background: rgba(31,95,58,.10);  color: var(--primary); }
.cat-badge.process    { background: rgba(31,95,58,.10);  color: var(--primary); }
.cat-badge.guide      { background: rgba(199,164,75,.16); color: #7a5e10; }
.cat-badge.comparison { background: rgba(199,164,75,.16); color: #7a5e10; }
.cat-badge.brand      { background: rgba(31,42,31,.07);  color: var(--text); }
.cat-badge.health     { background: rgba(62,143,90,.14); color: var(--accent); }

.blog-card-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
  color: var(--text);
}

.blog-card-excerpt {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 16px;
  flex: 1;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
  text-decoration: none;
}

.blog-read-more svg {
  width: 13px;
  height: 13px;
  transition: transform .18s ease;
}

.blog-card:hover .blog-read-more svg {
  transform: translateX(3px);
}

/* ─────────────────────────────────────────
   PAGINATION
───────────────────────────────────────── */

.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--panel);
  text-decoration: none;
  gap: 5px;
  transition: background .18s, color .18s, border-color .18s;
}

.pg-btn:hover,
.pg-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ─────────────────────────────────────────
   ARTICLE LAYOUT (Blog post pages)
───────────────────────────────────────── */

.article-section { padding: 32px 0 60px; }

.article-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 18px;
}

.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 22px;
  text-decoration: none;
  transition: color .18s;
}

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

.back-to-blog svg { width: 14px; height: 14px; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.article-date {
  font-size: 12.5px;
  color: var(--muted);
}

.article-title {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.17;
  margin: 0 0 18px;
  letter-spacing: .01em;
  color: var(--text);
}

@media (max-width: 540px) {
  .article-title { font-size: 26px; }
}

.article-intro {
  font-size: 17px;
  color: rgba(31,42,31,.70);
  line-height: 1.72;
  margin: 0 0 28px;
  padding-left: 16px;
  border-left: 3px solid var(--premium);
}

.article-hero-img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
  margin-bottom: 36px;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.article-body h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--text);
  letter-spacing: .01em;
}

.article-body p {
  font-size: 15.5px;
  line-height: 1.78;
  color: rgba(31,42,31,.78);
  margin: 0 0 16px;
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
  margin: 0 0 18px;
}

.article-body li {
  font-size: 15.5px;
  line-height: 1.75;
  color: rgba(31,42,31,.78);
  margin-bottom: 7px;
}

.article-body strong { color: var(--text); font-weight: 700; }

.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-tip {
  background: rgba(31,95,58,.05);
  border: 1px solid rgba(31,95,58,.12);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 24px 0;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.65;
}

.article-tip strong { color: var(--primary); }

.article-cta-block {
  margin-top: 44px;
  background: linear-gradient(135deg, rgba(31,95,58,.06) 0%, rgba(62,143,90,.09) 100%);
  border: 1px solid rgba(31,95,58,.14);
  border-radius: var(--radius);
  padding: 30px 28px;
  text-align: center;
}

.article-cta-block p {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   ARTICLE FAQ SECTION
───────────────────────────────────────── */

.article-faq {
  margin-top: 52px;
  border-top: 1px solid var(--border);
  padding-top: 36px;
}

.article-faq > h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--text);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--panel);
}

.faq-item summary {
  list-style: none;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
  transition: color .18s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform .22s ease;
  line-height: 1;
}

.faq-item[open] > summary {
  color: var(--primary);
  border-bottom: 1px solid var(--border);
}

.faq-item[open] > summary::after {
  transform: rotate(45deg);
}

.faq-ans {
  padding: 14px 20px 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.72;
}

/* ─────────────────────────────────────────
   FAQ PAGE (faq.html)
───────────────────────────────────────── */

.faq-page-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 18px 60px;
}

.faq-group {
  margin-bottom: 44px;
}

.faq-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
}

.faq-group-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 2px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   ABOUT PAGE UPGRADES
───────────────────────────────────────── */

.about-story-img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
  margin-bottom: 8px;
}

.about-story-caption {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  letter-spacing: .04em;
  margin-bottom: 28px;
}

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

@media (max-width: 720px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 440px) {
  .values-grid { grid-template-columns: 1fr; }
}

.value-item {
  background: rgba(31,95,58,.04);
  border: 1px solid rgba(31,95,58,.10);
  border-radius: 14px;
  padding: 18px 16px;
}

.value-icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
  margin-bottom: 10px;
}

.value-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 5px;
}

.value-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
