:root {
  --green:      #005526;
  --green-deep: #003d1b;
  --green-ink:  #002912;
  --yellow:     #FFD100;
  --white:      #FFFFFF;
  --charcoal:   #1A1A1A;
  --ash:        #8a8a8a;
  --cream:      #f6f5f0;
  --border:     #e8e8e4;
  --card-bg:    #fafaf8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Archivo', sans-serif;
  background: var(--white);
  color: var(--charcoal);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--yellow); color: var(--green-ink); }
img { display: block; max-width: 100%; }
a { text-decoration: none; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 1320px; z-index: 100;
  background: rgba(0, 41, 18, 0.55);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 209, 0, 0.15); border-radius: 18px;
  padding: 12px 18px 12px 22px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.4);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-img { width: 42px; height: 42px; border-radius: 8px; filter: drop-shadow(0 4px 10px rgba(255,209,0,0.35)); }
.nav-logo-text { font-weight: 900; font-size: 18px; color: var(--white); letter-spacing: -0.02em; line-height: 1; }
.nav-logo-text small { display: block; font-size: 9px; font-weight: 600; letter-spacing: 0.22em; color: var(--yellow); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: rgba(255,255,255,0.85); text-decoration: none; font-size: 13.5px;
  font-weight: 500; padding: 9px 14px; border-radius: 10px;
  transition: all 0.25s ease; letter-spacing: -0.005em;
}
.nav-links a:hover { color: var(--yellow); background: rgba(255,209,0,0.08); }
.nav-links a.active { color: var(--yellow); }
.nav-cta {
  background: var(--yellow); color: var(--green-ink) !important; font-weight: 700 !important;
  padding: 10px 18px !important; border-radius: 10px !important; margin-left: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -4px rgba(255,209,0,0.5); }
.nav-mobile-toggle { display: none; }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,0.85); font-size: 13.5px; font-weight: 500;
  padding: 9px 14px; border-radius: 10px; transition: all 0.25s ease;
  cursor: pointer; background: none; border: none; font-family: inherit; letter-spacing: -0.005em;
}
.nav-dropdown-toggle:hover { color: var(--yellow); background: rgba(255,209,0,0.08); }
.nav-dropdown-toggle svg { width: 12px; height: 12px; stroke: currentColor; transition: transform 0.2s ease; flex-shrink: 0; }
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-6px); min-width: 220px;
  background: rgba(0,20,10,0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,209,0,0.15); border-radius: 14px; padding: 8px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 300; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}
.nav-dropdown.open .nav-dropdown-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: 8px; color: rgba(255,255,255,0.8); text-decoration: none;
  font-size: 13.5px; font-weight: 500; transition: all 0.18s ease; letter-spacing: -0.005em;
}
.nav-dropdown-menu a:hover { background: rgba(255,209,0,0.1); color: var(--yellow); }
.nav-dropdown-menu a .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); opacity: 0.5; flex-shrink: 0; transition: opacity 0.18s ease; }
.nav-dropdown-menu a:hover .dot { opacity: 1; }

/* ===== HERO ===== */
.blog-hero {
  background: var(--green-ink);
  padding: 160px 32px 80px;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,209,0,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.blog-hero-inner { max-width: 1320px; margin: 0 auto; position: relative; z-index: 1; }
.blog-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500;
  color: var(--yellow); letter-spacing: 0.18em; text-transform: uppercase;
  padding: 7px 14px; background: rgba(255,209,0,0.1);
  border: 1px solid rgba(255,209,0,0.3); border-radius: 100px;
  margin-bottom: 28px;
}
.pulse { width: 6px; height: 6px; background: var(--yellow); border-radius: 50%; box-shadow: 0 0 12px var(--yellow); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.35;} }
.blog-hero h1 {
  font-size: clamp(48px, 7vw, 96px); font-weight: 900; letter-spacing: -0.04em;
  line-height: 0.92; color: var(--white); margin-bottom: 24px;
}
.blog-hero h1 span { color: var(--yellow); }
.blog-hero-sub {
  font-size: 18px; color: rgba(255,255,255,0.65); max-width: 520px; line-height: 1.65;
}

/* ===== FILTER TABS ===== */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 78px; z-index: 50;
}
.filter-bar-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; gap: 4px; overflow-x: auto;
  scrollbar-width: none;
}
.filter-bar-inner::-webkit-scrollbar { display: none; }
.filter-btn {
  white-space: nowrap; padding: 16px 18px; font-size: 13.5px; font-weight: 600;
  color: var(--ash); border: none; background: none; cursor: pointer; font-family: inherit;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.filter-btn:hover { color: var(--charcoal); }
.filter-btn.active { color: var(--green); border-bottom-color: var(--green); }

/* ===== MAIN CONTENT ===== */
.blog-main { max-width: 1320px; margin: 0 auto; padding: 64px 32px 100px; }

/* ===== FEATURED POST ===== */
.featured-post {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: 20px; overflow: hidden;
  background: var(--green-ink);
  margin-bottom: 72px;
  box-shadow: 0 24px 60px -12px rgba(0,41,18,0.25);
}
.featured-img {
  position: relative; overflow: hidden; min-height: 440px;
}
.featured-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.featured-post:hover .featured-img img { transform: scale(1.04); }
.featured-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,41,18,0.3), transparent);
}
.featured-body {
  padding: 52px 48px; display: flex; flex-direction: column; justify-content: center;
}
.post-tag {
  display: inline-flex; align-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px; margin-bottom: 20px;
}
.tag-energy { background: rgba(255,209,0,0.15); color: var(--yellow); }
.tag-ewaste { background: rgba(78,175,70,0.15); color: #4eaf46; }
.tag-logistics { background: rgba(3,105,161,0.15); color: #0369A1; }
.tag-waste { background: rgba(0,85,38,0.15); color: #005526; }
.tag-company { background: rgba(255,209,0,0.1); color: rgba(255,209,0,0.9); }
.tag-careers { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }
.featured-body .post-tag { margin-bottom: 20px; }
.featured-title {
  font-size: clamp(22px, 3vw, 34px); font-weight: 800; letter-spacing: -0.025em;
  line-height: 1.15; color: var(--white); margin-bottom: 18px;
}
.featured-title a { color: inherit; text-decoration: none; }
.featured-title a:hover { color: var(--yellow); }
.featured-excerpt { font-size: 16px; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 32px; }
.featured-meta { display: flex; align-items: center; gap: 20px; }
.post-author { display: flex; align-items: center; gap: 10px; }
.author-avatar {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,209,0,0.4);
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: var(--yellow);
  flex-shrink: 0;
}
.author-name { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.9); }
.author-date { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 1px; }
.read-more {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: var(--yellow);
  padding: 10px 16px; border: 1px solid rgba(255,209,0,0.3); border-radius: 10px;
  transition: all 0.22s ease; white-space: nowrap;
}
.read-more:hover { background: var(--yellow); color: var(--green-ink); border-color: var(--yellow); }
.read-more svg { transition: transform 0.22s ease; }
.read-more:hover svg { transform: translateX(3px); }

/* ===== SECTION HEADING ===== */
.section-label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--green);
  margin-bottom: 32px; display: flex; align-items: center; gap: 12px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ===== POSTS GRID ===== */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.post-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px -12px rgba(0,41,18,0.15); }

.post-card-img { position: relative; overflow: hidden; }
.post-card-img-inner { height: 220px; background: var(--green-ink); position: relative; overflow: hidden; }
.post-card-img-inner img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-card-img-inner img { transform: scale(1.06); }
.post-card-img-inner .img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 48px; user-select: none; position: relative;
}

.post-card-body { padding: 24px 24px 20px; flex: 1; display: flex; flex-direction: column; }
.post-card-tag { margin-bottom: 14px; }
.post-card-title {
  font-size: 18px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25;
  color: var(--charcoal); margin-bottom: 12px;
}
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--green); }
.post-card-excerpt { font-size: 14px; color: #5a6070; line-height: 1.65; flex: 1; margin-bottom: 20px; }
.post-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 16px; margin-top: auto;
}
.post-card-author { display: flex; align-items: center; gap: 8px; }
.mini-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green-ink); display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: var(--yellow); flex-shrink: 0;
}
.card-author-name { font-size: 12px; font-weight: 700; color: var(--charcoal); }
.card-author-date { font-size: 11px; color: var(--ash); }
.card-read-time {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ash);
  background: var(--cream); padding: 4px 10px; border-radius: 100px;
}

/* ===== NEWSLETTER BAND ===== */
.newsletter {
  background: var(--green); margin: 80px 0 0;
  padding: 72px 32px; border-radius: 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.newsletter-text h3 { font-size: 28px; font-weight: 800; color: var(--white); letter-spacing: -0.025em; margin-bottom: 8px; }
.newsletter-text p { font-size: 15px; color: rgba(255,255,255,0.7); max-width: 400px; }
.newsletter-form { display: flex; gap: 10px; flex-shrink: 0; }
.newsletter-form input {
  padding: 13px 18px; border-radius: 10px; border: none;
  font-size: 14px; font-family: inherit; background: rgba(255,255,255,0.12);
  color: var(--white); min-width: 260px; outline: none;
  border: 1px solid rgba(255,255,255,0.2); transition: border-color 0.2s ease;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form input:focus { border-color: var(--yellow); }
.newsletter-form button {
  padding: 13px 22px; background: var(--yellow); color: var(--green-ink);
  font-weight: 700; font-size: 14px; border: none; border-radius: 10px;
  cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.newsletter-form button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -4px rgba(255,209,0,0.5); }

/* ===== FOOTER ===== */
footer {
  background: #002912;
  padding: 100px 32px 32px;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #FFD100, transparent);
  opacity: 0.4;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1320px;
  margin: 0 auto 64px;
}
.footer-brand .logo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.footer-brand .logo-row img { width: 56px; height: 56px; border-radius: 10px; object-fit: contain; }
.footer-brand .logo-row .text { font-weight: 900; font-size: 22px; color: var(--white); letter-spacing: -0.02em; line-height: 1; }
.footer-brand .logo-row .text small { display: block; font-size: 9px; font-weight: 600; letter-spacing: 0.22em; color: #FFD100; margin-top: 4px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.7; max-width: 300px; margin-bottom: 28px; }
.socials { display: flex; gap: 10px; }
.social {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  color: #FFD100; transition: all 0.2s ease; text-decoration: none;
}
.social:hover { background: #FFD100; color: #002912; transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }
.footer-col h5 {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: #FFD100;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.75); font-size: 15px; text-decoration: none; transition: color 0.2s ease; line-height: 1.5; }
.footer-col a:hover { color: #FFD100; }
.wordmark {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,209,0,0.25);
  font-size: clamp(80px,18vw,240px);
  font-weight: 900; letter-spacing: -0.05em; line-height: 0.8;
  user-select: none; pointer-events: none;
  margin: 40px auto -30px;
  display: block; text-align: center;
}
.footer-bottom {
  max-width: 1320px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px; margin-top: 48px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,0.5);
}
.footer-bottom .legal { display: flex; gap: 20px; }
.footer-bottom .legal a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13px; }
.footer-bottom .legal a:hover { color: #FFD100; }

/* ===== BACK TO TOP ===== */
#back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 999;
  width: 48px; height: 48px; border-radius: 12px; border: none;
  background: #005526; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -4px rgba(0,85,38,0.4);
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.2s ease;
  pointer-events: none;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#back-to-top:hover { transform: translateY(-3px); filter: brightness(1.15); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-img { min-height: 320px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .blog-hero { padding: 130px 20px 60px; }
  .blog-main { padding: 48px 20px 80px; }
  .featured-body { padding: 32px 24px; }
  .featured-meta { flex-wrap: wrap; }
  .newsletter { flex-direction: column; padding: 48px 24px; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-form input { min-width: 0; width: 100%; }
  .filter-bar-inner { padding: 0 20px; }
}
@media (max-width: 480px) {
  .nav-mobile-toggle { display: flex; }
}


/* ===== Single-post layout: content + sidebar (added for Recent Posts widget) ===== */
.single-layout {
  max-width: 1140px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}
.single-content { font-size: 18px; line-height: 1.8; color: #2a2a2a; min-width: 0; }
.single-content p { margin: 0 0 20px; }
.single-thumb { border-radius: 18px; overflow: hidden; margin-bottom: 32px; }
.single-thumb img { width: 100%; height: auto; display: block; }

.blog-sidebar-col { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 22px; }
.blog-widget {
  background: #f6f5f0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 22px 22px 8px;
}
.blog-widget-title {
  font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: #005526; margin: 0 0 14px;
}
.blog-widget ul { list-style: none; margin: 0; padding: 0; }
.blog-widget li { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid rgba(0, 0, 0, 0.07); }
.blog-widget li:last-child { border-bottom: none; }
.blog-widget a { color: #1a1a1a; text-decoration: none; font-weight: 600; line-height: 1.35; display: block; }
.blog-widget a:hover { color: #005526; }
.nls-recent-date, .blog-widget .post-date { display: block; font-size: 12px; color: #8a8a8a; margin-top: 4px; }

@media (max-width: 900px) {
  .single-layout { grid-template-columns: 1fr; gap: 32px; }
  .blog-sidebar-col { position: static; }
}
