/* ============================
   BLOG PAGE
   ============================ */
.blog-hero {
  padding: var(--header-offset) 0 64px;
  background: var(--hero-section-gradient);
}
.blog-hero-label {
  display: inline-block;
  font-size: 1.038rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  background: var(--accent-bg);
  padding: 8px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
}
.blog-hero h1 {
  font-size: clamp(2.55rem, 5vw, 3.825rem);
  margin-bottom: 16px;
}
.blog-hero-desc {
  font-size: 1.438rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 32px;
}

.search-container {
  position: relative;
  max-width: 440px;
}
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  padding: 14px 16px 14px 44px;
  font-size: 1.194rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  background: var(--bg-white);
  outline: none;
  transition: border-color 0.2s;
}
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Featured article */
.featured-section {
  padding: 64px 0;
  background: var(--bg-primary);
}
.featured-card {
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--bg-white);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  box-shadow: var(--shadow-sm);
}
.featured-visual {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: var(--accent-light);
}
.featured-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-content h2 {
  font-size: 1.913rem;
  margin: 16px 0;
}
.featured-excerpt {
  font-size: 1.194rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.featured-meta {
  margin-top: 20px;
  font-size: 1.038rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Badges */
.badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-bess { background: var(--gold); color: #001a33; }
.badge-oe { background: var(--teal); color: #fff; }
.badge-grid { background: var(--navy); color: #fff; }
.badge-policy { background: var(--slate); color: #fff; }
.badge-project { background: var(--teal-light); color: var(--teal-dark); }

/* Articles grid */
.articles-section {
  padding: 0 0 80px;
  background: var(--bg-primary);
}
.articles-section h2 {
  font-size: 1.913rem;
  margin-bottom: 0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.tab {
  padding: 10px 18px;
  font-size: 1.113rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.tab:hover:not(.active) {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.article-card {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-white);
  padding: 24px;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.article-card h3 {
  font-size: 1.438rem;
  margin: 14px 0 12px;
  line-height: 1.35;
}
.article-card .excerpt {
  font-size: 1.194rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.article-card-footer {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.038rem;
}
.article-card-footer a {
  color: var(--accent-dark);
  font-weight: 600;
}
.article-card.hidden { display: none; }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Newsletter */
.newsletter-section {
  padding: 72px 0;
  background: var(--navy);
  text-align: center;
  color: #fff;
}
.newsletter-section h2 {
  font-size: clamp(1.913rem, 4vw, 2.55rem);
  color: #fff;
  margin-bottom: 12px;
}
.newsletter-section p {
  color: #a8b8cc;
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.275rem;
}
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
.newsletter-input {
  flex: 1;
  min-width: 240px;
  max-width: 320px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 16px;
  font-size: 1.194rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  background: var(--bg-white);
  outline: none;
}

/* Article page */
.article-page {
  padding: var(--header-offset) 0 80px;
  background: var(--bg-primary);
}
.article-header {
  max-width: 760px;
  margin: 0 auto 48px;
}
.article-header h1 {
  font-size: clamp(2.231rem, 4vw, 3.188rem);
  margin: 16px 0 20px;
}
.article-meta {
  font-size: 1.113rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.article-body {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 48px;
}
.article-body p {
  font-size: 1.275rem;
  margin-bottom: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.article-body h2 {
  font-size: 1.594rem;
  margin: 32px 0 12px;
  color: var(--text-primary);
}
.article-body ol {
  list-style: decimal;
  padding-left: 24px;
  margin-bottom: 20px;
}
.article-body ol li {
  font-size: 1.275rem;
  color: var(--text-secondary);
  padding: 8px 0;
  line-height: 1.75;
}
.article-body ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}
.article-body ul li {
  font-size: 1.275rem;
  color: var(--text-secondary);
  padding: 6px 0;
  line-height: 1.75;
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.194rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 32px;
}
.article-back:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-visual { min-height: 180px; }
  .featured-content { padding: 28px; }
  .article-body { padding: 28px 24px; }
}
