*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: #f8faf9;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Blog Nav (matches main site pill-style) ── */
.blog-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem;
}

.blog-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 0.75rem 2rem;
}

.blog-nav-logo {
  height: 46px;
  width: auto;
  margin: -0.75rem 0;
  border-radius: 0.5rem;
}

.blog-nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  font-size: 1.0625rem;
  font-weight: 500;
}

.blog-nav-links a {
  color: #111827;
  transition: color 0.2s;
}

.blog-nav-links a:hover {
  color: #0F5C4D;
}

.blog-nav-links .nav-active {
  color: #0F5C4D;
  font-weight: 700;
}

.blog-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #111827;
  line-height: 0;
}

.blog-nav-toggle svg {
  width: 24px;
  height: 24px;
}

.blog-nav-mobile {
  display: none;
  max-width: 1400px;
  margin: 1rem auto 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
}

.blog-nav-mobile.is-open {
  display: block;
}

.blog-nav-mobile a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: #111827;
  transition: color 0.2s;
}

.blog-nav-mobile a:hover {
  color: #0F5C4D;
}

.blog-nav-mobile .nav-active {
  color: #0F5C4D;
  font-weight: 700;
}

.table-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0 2rem;
}

.table-scroll-wrapper .data-table {
  margin: 0;
}

/* ── Blog Index Hero ── */
.blog-hero {
  background: linear-gradient(135deg, #0F5C4D 0%, #0a4839 100%);
  color: #fff;
  padding: 8rem 1.5rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 48px;
  background: #f8faf9;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.blog-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.blog-hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Card Grid ── */
.blog-grid-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.blog-grid-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0F5C4D;
  margin-bottom: 2rem;
}

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

.blog-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

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

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

.blog-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0F5C4D;
  background: #E8F4F0;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.blog-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.blog-card-excerpt {
  font-size: 0.925rem;
  color: #6b7280;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #9ca3af;
}

.blog-card-read {
  font-weight: 600;
  color: #0F5C4D;
  transition: color 0.2s;
}

.blog-card:hover .blog-card-read {
  color: #FF5722;
}

/* ── Post Page ── */
.post-header {
  background: linear-gradient(135deg, #0F5C4D 0%, #0a4839 100%);
  color: #fff;
  padding: 8rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.post-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 48px;
  background: #f8faf9;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.post-breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
}

.post-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.post-breadcrumb a:hover {
  color: #fff;
}

.post-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.post-header h1 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 720px;
  margin: 0 auto 1rem;
}

.post-meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.post-meta span + span::before {
  content: '\00b7';
  margin: 0 0.5rem;
}

/* ── Post Body ── */
.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.post-body h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0F5C4D;
  margin: 2.5rem 0 1rem;
  line-height: 1.25;
}

.post-body h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1f2937;
  margin: 2rem 0 0.75rem;
}

.post-body p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #4b5563;
  margin-bottom: 1.35rem;
}

.post-body strong {
  color: #1f2937;
}

.post-body ul,
.post-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.post-body li {
  font-size: 1.05rem;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.post-body blockquote {
  background: linear-gradient(135deg, #E8F4F0 0%, #D1E9E1 100%);
  border-left: 4px solid #0F5C4D;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: 0 0.75rem 0.75rem 0;
}

.post-body blockquote p {
  font-weight: 600;
  color: #0F5C4D;
  margin-bottom: 0;
  font-size: 1.05rem;
}

.callout-orange {
  background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%) !important;
  border-left-color: #FF5722 !important;
}

.callout-orange p {
  color: #1f2937 !important;
}

.post-body .data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.post-body .data-table thead th {
  background: #0F5C4D;
  color: #fff;
  padding: 0.85rem 1.25rem;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
}

.post-body .data-table tbody td {
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  border-bottom: 1px solid #f3f4f6;
  background: #fff;
}

.post-body .data-table tbody tr:last-child td {
  border-bottom: none;
}

/* ── Post CTA ── */
.post-cta {
  background: linear-gradient(135deg, #0F5C4D 0%, #0a4839 100%);
  border-radius: 1.25rem;
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
  color: #fff;
}

.post-cta h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.post-cta p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.post-cta .cta-btn {
  display: inline-block;
  background: #FF5722;
  color: #fff;
  padding: 0.875rem 2.25rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.post-cta .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4);
}

/* ── Related Posts ── */
.related-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.related-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0F5C4D;
  margin-bottom: 2rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* ── Footer (matches main site) ── */
.blog-footer {
  background: #0F5C4D;
  color: #fff;
  padding: 2rem 1.5rem 3rem;
}

.blog-footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  font-size: 0.875rem;
}

.blog-footer-logo {
  height: 3.5rem;
  width: auto;
  object-fit: contain;
}

.blog-footer-contact {
  text-align: center;
}

.blog-footer-contact p {
  margin: 0;
  line-height: 1.5;
}

.blog-footer-contact a {
  color: #fff;
  text-decoration: underline;
  transition: color 0.2s;
}

.blog-footer-contact a:hover {
  color: rgba(255, 255, 255, 0.75);
}

.blog-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1rem;
  font-size: 0.875rem;
  opacity: 0.8;
}

.blog-footer-links a {
  color: #fff;
  transition: opacity 0.2s;
}

.blog-footer-links a:hover {
  opacity: 1;
}

.blog-footer-sep {
  color: rgba(255, 255, 255, 0.5);
}

.blog-footer-social {
  display: flex;
  gap: 1rem;
}

.blog-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  color: #fff;
  transition: background 0.2s;
}

.blog-footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.blog-footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ── FAQ Section ── */
.faq-section {
  margin: 3rem 0 2rem;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 1.25rem 0;
}

.faq-item:first-child {
  border-top: 1px solid #e5e7eb;
}

.faq-question {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.faq-answer {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4b5563;
}

.faq-answer strong {
  color: #1f2937;
}

/* ── Schema / Article structured data helper ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .blog-nav-links {
    display: none;
  }
  .blog-nav-toggle {
    display: block;
  }
  .blog-nav-inner {
    padding: 0.6rem 1.25rem;
  }
  .blog-nav-logo {
    height: 38px;
    margin: -0.5rem 0;
  }
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .blog-footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .blog-nav {
    padding: 0.75rem;
  }
  .blog-nav-inner {
    padding: 0.5rem 1rem;
  }
  .blog-nav-logo {
    height: 32px;
    margin: -0.375rem 0;
  }
  .blog-nav-mobile {
    margin-top: 0.75rem;
    padding: 1.25rem;
  }
  .blog-hero {
    padding: 7rem 1.25rem 5rem;
  }
  .blog-hero h1 {
    font-size: 2rem;
  }
  .blog-hero p {
    font-size: 1rem;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-grid-section {
    padding: 2rem 1rem 3.5rem;
  }
  .post-header {
    padding: 6.5rem 1rem 4rem;
  }
  .post-header h1 {
    font-size: 1.75rem;
    letter-spacing: -0.01em;
  }
  .post-breadcrumb {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }
  .post-body {
    padding: 2rem 1rem 3rem;
  }
  .post-body h2 {
    font-size: 1.35rem;
  }
  .post-body h3 {
    font-size: 1.15rem;
  }
  .post-body p {
    font-size: 1rem;
    line-height: 1.75;
  }
  .post-body li {
    font-size: 0.95rem;
  }
  .post-body blockquote {
    padding: 1rem 1.25rem;
  }
  .post-body blockquote p {
    font-size: 0.95rem;
  }
  .post-body .data-table {
    min-width: 480px;
  }
  .post-body .data-table thead th {
    padding: 0.65rem 0.85rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  .post-body .data-table tbody td {
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
  }
  .post-cta {
    padding: 1.75rem 1.25rem;
    border-radius: 1rem;
  }
  .post-cta h3 {
    font-size: 1.25rem;
  }
  .post-cta p {
    font-size: 0.95rem;
  }
  .related-section {
    padding: 0 1rem 3.5rem;
  }
  .blog-footer {
    padding: 2rem 1rem 2.5rem;
  }
  .blog-footer-logo {
    height: 2.75rem;
  }
  .faq-question {
    font-size: 1.05rem;
  }
  .faq-answer {
    font-size: 0.95rem;
  }
}
