/* ── BLOG INDEX ── */

.blog-hero {
  padding-top: calc(var(--nav-h) + clamp(4rem, 8vw, 6rem));
  padding-bottom: clamp(3rem, 5vw, 4rem);
  padding-left: var(--pad);
  padding-right: var(--pad);
  border-bottom: 1px solid var(--gray-200);
}

.blog-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.blog-hero p {
  color: var(--gray-600);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 520px;
}

.blog-grid-section {
  padding: clamp(4rem, 8vw, 6rem) var(--pad);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.post-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-100);
}

.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-img img { transform: scale(1.03); }

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

.post-card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.post-card h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.post-card-excerpt {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.65;
  font-weight: 300;
  flex: 1;
}

.post-card-meta {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ── BLOG POST ── */

.post-header {
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: clamp(3rem, 5vw, 4rem);
  padding-left: var(--pad);
  padding-right: var(--pad);
  border-bottom: 1px solid var(--gray-200);
}

.post-header .container { max-width: 800px; }

.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.post-breadcrumb a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s;
}

.post-breadcrumb a:hover { color: var(--accent); }
.post-breadcrumb span { color: var(--gray-200); }
.post-updated { color: var(--gray-400); font-size: 0.75rem; }

.post-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.post-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.post-intro {
  font-size: 1.1rem;
  color: var(--gray-600);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.83rem;
  color: var(--gray-400);
  flex-wrap: wrap;
}

.post-author-name { color: var(--black); font-weight: 500; }

/* Post Body */
.post-body {
  padding: clamp(3rem, 6vw, 5rem) var(--pad);
}

.post-body .container { max-width: 800px; }

.post-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--black);
  margin-top: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.post-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--black);
  margin-top: 2rem;
  margin-bottom: 0.65rem;
}

.post-content p {
  font-size: 1rem;
  color: var(--gray-800);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 1.25rem;
}

.post-content ul,
.post-content ol {
  margin: 0.5rem 0 1.5rem 1.5rem;
  color: var(--gray-800);
  font-weight: 300;
  line-height: 1.75;
}

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

.post-content strong { font-weight: 600; color: var(--black); }

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--accent-light);
  border-radius: 0 10px 10px 0;
}

.post-content blockquote p {
  color: var(--black);
  font-weight: 400;
  margin-bottom: 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
}

.post-content th {
  background: var(--gray-50);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  color: var(--black);
}

.post-content td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-800);
  font-weight: 300;
  line-height: 1.5;
}

.post-content tr:last-child td { border-bottom: none; }

.post-divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 3rem 0;
}

/* FAQ */
.post-faq { margin-top: 1rem; }

.post-faq-item { border-bottom: 1px solid var(--gray-200); }
.post-faq-item:first-child { border-top: 1px solid var(--gray-200); }

.post-faq-item summary {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.post-faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.post-faq-item[open] summary::after { transform: rotate(45deg); }
.post-faq-item p { padding-bottom: 1.25rem; margin-bottom: 0; }

/* Inline CTA */
.post-cta-block {
  background: var(--black);
  border-radius: 16px;
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
}

.post-cta-block h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.post-cta-block p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .post-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .post-meta { gap: 0.5rem; flex-direction: column; align-items: flex-start; }
  .post-cta-block { padding: 2rem 1.5rem; }
  .post-content table { font-size: 0.8rem; }
  .post-content th,
  .post-content td { padding: 0.65rem 0.75rem; }
}
