/* ==========================================================================
   WASTRAQ NMF Blog Page Stylesheet (nmf_blog.css)
   ========================================================================== */

/* ── Reset & Base ── */
/* *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Arial', 'Helvetica Neue', sans-serif;
  background: #fafaf9;
  color: #1c1917;
  line-height: 1.85;
  font-size: 18px;
} */

/* ── Typography ── */
h1,
h2,
h3,
h4 {
  font-family: 'Inter', sans-serif;
  line-height: 1.15;
  color: #0a2016;
  letter-spacing: -0.03em;
}

.article-hero h1 {
  color: #0a2016;
  font-size: 4rem;
  line-height: 1.05;
  font-weight: 700;
  max-width: 700px;
  margin-bottom: 22px;
}

h1 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 2.8rem 0 1rem;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2rem 0 0.6rem;
  color: #166534;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #166534;
  margin: 1.5rem 0 0.4rem;
}

p {
  margin-bottom: 1.35rem;
}

a {
  color: #16a34a;
  text-decoration: none !important;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

strong {
  color: #0a2016;
}

em {
  font-style: italic;
  color: #44403c;
}

/* ── Layout ── */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

.wide-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Hero / Article Header ── */
.article-hero {
  background: #ffffff;
  padding: calc(var(--nav-h, 72px) + 64px) 0 64px;
  color: #1c1917;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e2ead0;
}

.article-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.article-hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

/* ============================= */
/* MOBILE RESPONSIVE FIXES */
/* ============================= */

@media screen and (max-width: 768px) {
  html {
    overflow-x: hidden;
  }

  body {
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
  }

  .container,
  .wide-container {
    width: 100%;
    padding: 0 18px;
  }

  /* HERO */

  .article-hero {
    padding: calc(var(--nav-h, 60px) + 40px) 0 48px;
  }

  .article-hero h1 {
    font-size: 1.7rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero-meta {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.72rem;
  }

  .hero-byline {
    align-items: flex-start;
  }

  /* STATS */

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

  .stat-item {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 16px;
  }

  /* HEADINGS */

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.55rem;
    line-height: 1.35;
  }

  h3 {
    font-size: 1.2rem;
  }

  p {
    font-size: 1rem;
  }

  /* FEATURE GRID */

  .feature-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* PROCESS */

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

  /* IOT GRID */

  .iot-section {
    padding: 28px 22px;
  }

  .iot-grid {
    grid-template-columns: 1fr;
  }

  /* CASE STUDY */

  .case-study-results {
    grid-template-columns: 1fr;
  }

  /* INNOVATIONS */

  .innovation-grid {
    grid-template-columns: 1fr;
  }

  /* CTA */

  .cta-section {
    padding: 40px 22px;
  }

  .cta-section h2 {
    font-size: 1.7rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  /* AUTHOR */

  .author-box {
    flex-direction: column;
    padding: 22px;
  }

  .author-avatar {
    width: 60px;
    height: 60px;
    font-size: 1rem;
  }

  /* TABLE */

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* IMAGES */

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

  /* FOOTER */

  .wq-footer-top {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }

  /* Was forced to a single column here, which is why the footer read as
     one long left-aligned list with the whole right half of the screen
     unused. Let it fall back to css/nav-footer.css's 2-column layout
     (which also spans + splits the long "Company" list into 2 columns
     so it doesn't sit alone in an empty row) instead of overriding it. */

  .wq-footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

}

/* EXTRA SMALL DEVICES */

@media screen and (max-width: 480px) {

  .article-hero h1 {
    font-size: 1.7rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .cta-section h2 {
    font-size: 1.45rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .pull-quote {
    padding: 20px;
  }

  .pull-quote p {
    font-size: 1rem;
  }

}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.hero-meta .tag {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.hero-meta .dot {
  color: #16a34a;
}

.article-hero h1 {
  color: #0a2016;
  font-size: 2.7rem;
  line-height: 1.2;
  max-width: 680px;
  margin-bottom: 22px;
}

.article-hero h1 .highlight {
  color: #16a34a;
}

.hero-subtitle {
  color: #475569;
  font-size: 1.15rem;
  max-width: 580px;
  font-family: Arial, sans-serif;
  line-height: 1.65;
  margin-bottom: 30px;
}

.hero-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  color: #64748b;
}

.avatar-circle {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
}

.byline-text strong {
  color: #0a2016;
  display: block;
  font-size: 0.95rem;
}

.byline-text span {
  color: #64748b;
  font-size: 0.82rem;
}

/* ── Stats Banner ── */
.stats-banner {
  background: #fff;
  border-bottom: 3px solid #22c55e;
  padding: 28px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 8px 16px;
  border-right: 1px solid #e2ead0;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: Arial, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #22c55e;
  display: block;
}

.stat-label {
  font-family: Arial, sans-serif;
  font-size: .78rem;
  color: #78716c;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
  font-weight: bold;
}

/* ── Article Body ── */
.article-body {
  padding: 56px 0 72px;
}

/* ── Pull Quote ── */
.pull-quote {
  border-left: 5px solid #22c55e;
  background: #f0fdf4;
  padding: 24px 28px;
  margin: 2.2rem 0;
  border-radius: 0 8px 8px 0;
}

.pull-quote p {
  font-size: 1.2rem;
  font-style: italic;
  color: #166534;
  margin: 0;
  line-height: 1.7;
}

.pull-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 0.85rem;
  font-family: Arial, sans-serif;
  color: #78716c;
}

/* ── Feature Box ── */
.feature-box {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1.5px solid #bbf7d0;
  border-radius: 12px;
  padding: 28px 32px;
  margin: 2.2rem 0;
}

.feature-box h4 {
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #16a34a;
  margin-bottom: 14px;
}

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.feature-list li {
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  color: #1c1917;
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
}

/* ── Highlight Card ── */
.highlight-card {
  background: #0a2016;
  color: #fff;
  border-radius: 14px;
  padding: 32px 36px;
  margin: 2.5rem 0;
}

.highlight-card h3 {
  color: #4ade80;
  font-size: 1.25rem;
  margin: 0 0 16px;
}

.highlight-card p {
  color: #a7f3d0;
  font-size: 0.97rem;
  margin-bottom: 0.9rem;
  line-height: 1.75;
}

.highlight-card p:last-child {
  margin-bottom: 0;
}

.highlight-card strong {
  color: #86efac;
}

/* ── Process Steps ── */
.process-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 1.6rem 0;
}

.step-card {
  background: #fff;
  border: 1.5px solid #e2ead0;
  border-radius: 10px;
  padding: 20px 22px;
}

.step-number {
  display: inline-block;
  background: #22c55e;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card h4 {
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0a2016;
  margin: 0 0 6px;
}

.step-card p {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: #78716c;
  line-height: 1.55;
  margin: 0;
}

/* ── IoT Section ── */
.iot-section {
  background: linear-gradient(135deg, #166534, #0a2016);
  color: #fff;
  border-radius: 16px;
  padding: 42px 42px;
  margin: 2.8rem 0;
  position: relative;
  overflow: hidden;
}

.iot-section::before {
  content: '⚖';
  position: absolute;
  right: -10px;
  top: -20px;
  font-size: 9rem;
  opacity: 0.06;
  line-height: 1;
}

.iot-section h3 {
  color: #4ade80;
  font-size: 1.4rem;
  margin: 0 0 18px;
}

.iot-section p {
  color: #bbf7d0;
  font-size: 0.97rem;
  margin-bottom: 1rem;
}

.iot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.iot-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 10px;
  padding: 18px 20px;
}

.iot-card .icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
  display: block;
}

.iot-card h4 {
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #4ade80;
  margin: 0 0 6px;
}

.iot-card p {
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  color: #a7f3d0;
  margin: 0;
  line-height: 1.5;
}

/* ── Case Study Box ── */
.case-study {
  border: 2px solid #22c55e;
  border-radius: 14px;
  overflow: hidden;
  margin: 2.5rem 0;
}

.case-study-header {
  background: #22c55e;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.case-study-header .badge {
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 20px;
}

.case-study-header h3 {
  color: #fff;
  font-size: 1.15rem;
  margin: 0;
}

.case-study-body {
  padding: 26px 28px;
  background: #f0fdf4;
}

.case-study-body p {
  font-size: 0.97rem;
  color: #1c1917;
  margin-bottom: 0.9rem;
}

.case-study-body p:last-child {
  margin: 0;
}

.case-study-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.result-chip {
  background: #0a2016;
  color: #4ade80;
  border-radius: 8px;
  padding: 14px 16px;
  text-align: center;
}

.result-chip .num {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
}

.result-chip .lbl {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  color: #86efac;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
  margin-top: 3px;
}

/* ── Global Section ── */
.global-section {
  background: #fff;
  border: 1.5px solid #e2ead0;
  border-radius: 14px;
  padding: 34px 36px;
  margin: 2.5rem 0;
}

.global-section h3 {
  color: #0a2016;
  margin: 0 0 14px;
}

/* ── Innovation Badges ── */
.innovation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 1.8rem 0;
}

.innovation-badge {
  background: #fff;
  border: 1.5px solid #e2ead0;
  border-left: 4px solid #22c55e;
  border-radius: 0 10px 10px 0;
  padding: 18px 20px;
}

.innovation-badge h4 {
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  color: #0a2016;
  margin: 0 0 6px;
}

.innovation-badge p {
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  color: #57534e;
  margin: 0;
  line-height: 1.5;
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, #0a2016 0%, #166534 100%);
  border-radius: 18px;
  padding: 52px 44px;
  text-align: center;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section h2 {
  color: #fff;
  font-size: 2rem;
  margin: 0 0 14px;
}

.cta-section p {
  color: #a7f3d0;
  font-size: 1.05rem;
  margin-bottom: 30px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  font-family: Arial, sans-serif;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(90deg, #6CC24A 0%, #0D6ECA 100%);
  border: none;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 8px;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 8px;
  display: inline-block;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

/* ── Author Box ── */
.author-box {
  display: flex;
  gap: 22px;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 14px;
  padding: 26px 28px;
  margin: 3rem 0;
}

.author-avatar {
  width: 60px;
  height: 60px;
  /* background: linear-gradient(135deg, #0a2016, #166534); */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #4ade80;
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.author-info h4 {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  color: #0a2016;
  margin: 0 0 4px;
}

.author-info .role {
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  color: #16a34a;
  font-weight: 600;
  margin-bottom: 8px;
}

.author-info p {
  font-size: 0.9rem;
  color: #57534e;
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 680px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.45rem;
  }

  .article-hero {
    padding: calc(var(--nav-h, 60px) + 40px) 0 40px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

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

  .iot-grid {
    grid-template-columns: 1fr;
  }

  .case-study-results {
    grid-template-columns: 1fr;
  }

  .innovation-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .author-box {
    flex-direction: column;
  }
}

/* ── Article divider ── */
.section-divider {
  border: none;
  border-top: 2px solid #e2ead0;
  margin: 2.5rem 0;
}

/* ── Table of Contents ── */
.toc {
  background: #fff;
  border: 1.5px solid #e2ead0;
  border-radius: 12px;
  padding: 22px 26px;
  margin: 2rem 0 3rem;
}

.toc h4 {
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #78716c;
  margin: 0 0 12px;
}

.toc ol {
  padding-left: 20px;
  margin: 0;
}

.toc li {
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  padding: 3px 0;
}

.toc a {
  color: #16a34a;
  font-weight: 600;
}

@media screen and (max-width: 768px) {

  .article-hero {
    padding: calc(var(--nav-h, 60px) + 40px) 0 50px;
    overflow: hidden;
  }

  .article-hero h1 {
    font-size: 2rem;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.7;
  }

  .article-hero::before {
    width: 180px;
    height: 180px;
    top: -40px;
    right: -40px;
    opacity: 0.15;
  }

  .article-hero::after {
    width: 140px;
    height: 140px;
    bottom: -40px;
    left: -40px;
    opacity: 0.1;
  }

}

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

/* MOBILE HERO FIX */

@media screen and (max-width: 768px) {

  .article-hero::before,
  .article-hero::after {
    display: none !important;
  }

  .article-hero {
    padding-top: calc(var(--nav-h, 60px) + 40px);
    overflow: hidden;
  }

  .article-hero h1 {
    font-size: 1.8rem !important;
    line-height: 1.25 !important;
    word-break: break-word;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.7;
  }

}

/* MOBILE NAVBAR LOGO FIX */

@media screen and (max-width: 768px) {

  .wq-logo img {
    height: 38px !important;
    width: auto !important;
    max-width: 140px;
    object-fit: contain;
  }

  .wq-logo {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .logo-text {
    font-size: 1.2rem !important;
  }

}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin: 0 auto 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.iot-video-wrapper {
  margin: 32px 0 40px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.15);
}

.youtube-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: inherit;
}

.youtube-video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ── Premium Micro-Animations & Interaction Enhancements ── */
.toc a {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  display: inline-block;
}

.toc a:hover {
  transform: translateX(5px);
}

.btn-primary,
.btn-secondary {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.3s ease, filter 0.3s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.25);
}

.step-card,
.iot-card,
.innovation-badge,
.result-chip {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.step-card:hover,
.iot-card:hover,
.innovation-badge:hover,
.result-chip:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}