.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

.hero-slider-container {
  position: relative;
  height: 100vh;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  animation: slide-cycle 24s infinite ease-in-out;
}

.hero-slider .slide-1 { background-image: url('../images/blog3.jpg'); animation-delay: 0s; }
.hero-slider .slide-2 { background-image: url('../images/blog1.jpg'); animation-delay: 6s; }
.hero-slider .slide-3 { background-image: url('../images/blog2.jpg'); animation-delay: 12s; }

@keyframes slide-cycle {
  0%, 20% { opacity: 1; transform: scale(1.05); }
  25%, 45% { opacity: 0; transform: scale(1.1); }
  100% { opacity: 0; }
}

.hero-slider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.06), transparent 45%);
  pointer-events: none;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 0.75rem 1.4rem;
  border-radius: 9999px;
  border: none;
  background: #e3effd;
  color: #3f4a3e;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.filter-button:hover,
.filter-button:focus {
  transform: translateY(-1px);
  background: #d8e4f1;
}

.filter-button.active,
.filter-button.bg-primary {
  background: #006b2f;
  color: #ffffff;
}

.post-item {
  display: block;
}

.post-card img {
  object-fit: cover;
}

@media (max-width: 1024px) {
  .hero-slider { min-height: 55vh; }
  .filter-button { min-width: 140px; padding: 0.75rem 1rem; }
}

@media (max-width: 768px) {
  .post-hero {
    padding-top: 5.5rem;
  }

  .post-hero-content,
  .section-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .post-hero-title {
    font-size: clamp(2rem, 7vw, 3rem);
    max-width: 100%;
  }

  .article-content {
    max-width: 100%;
    padding: 2rem 1.25rem;
    border-radius: 1.5rem;
  }

  .article-page {
    padding: 2.5rem 0 4rem;
  }

  .news-section {
    padding: 2rem 0 4rem;
  }
}

/* Post Layout Styles */
.post-hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: grid;
  align-items: start;
  overflow: hidden;
  background: #111827;
  padding-top: 6.5rem;
}

.post-hero-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.7);
}

.post-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.post-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 84rem;
  padding: 4rem 2rem 3rem;
  color: #ffffff;
  text-align: left;
}

.post-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.post-hero-badge {
  display: inline-flex;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.post-hero-date {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.post-hero-title {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  line-height: 1.05;
  max-width: 12ch;
}

.post-hero-copy {
  margin-top: 1.75rem;
  max-width: 50rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  line-height: 1.8;
}

.section-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.article-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 3.5rem;
  background: #ffffff;
  border-radius: 2rem;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.08);
  font-family: 'Work Sans', sans-serif;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.article-page {
  padding: 4rem 0 6rem;
  background: #f7f9fb;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  color: #111d26;
  margin: 2rem 0 1rem;
  line-height: 1.25;
  font-family: 'Manrope', sans-serif;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote {
  color: #33404d;
  margin: 1.2rem 0;
  line-height: 1.9;
}

.article-content ul,
.article-content ol {
  padding-left: 2rem;
  margin: 1.5rem 0;
}

.article-content li {
  margin: 0.85rem 0;
}

.article-content ul {
  list-style-type: disc;
  list-style-position: outside;
}

.article-content li::marker {
  color: #00693e;
}

.article-content h2 {
  font-size: clamp(2rem, 2.4vw, 2.75rem);
}

.article-content p {
  font-size: 1.05rem;
}

.article-content img {
  width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.07);
}

.article-content a {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(0, 107, 47, 0.08);
  border: 1px solid rgba(0, 107, 47, 0.16);
  color: #006b2f;
  text-decoration: none;
  font-weight: 700;
  transition: transform 200ms ease, background-color 200ms ease, border-color 200ms ease;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.article-content a:hover,
.article-content a:focus {
  transform: translateY(-1px);
  background: rgba(0, 107, 47, 0.14);
  border-color: rgba(0, 107, 47, 0.35);
  color: #004c20;
}

.article-content figure {
  margin: 2rem 0;
}

.article-content blockquote {
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  border-left: 4px solid #d8e4f1;
  background: #f8fafc;
  color: #33404d;
  border-radius: 1rem;
}

.news-section {
  margin-top: 4.5rem;
  padding: 3rem 0 6rem;
  background: #fff;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.news-title {
  margin: 0;
  font-size: 1.95rem;
  font-weight: 700;
  color: #111d26;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #006b2f;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.news-link:hover,
.news-link:focus {
  text-decoration: underline;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1.75rem;
  justify-content: center;
}

.news-card {
  background-color: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  transition: transform 200ms ease, box-shadow 200ms ease;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
}

.news-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.news-card:hover .news-image {
  transform: scale(1.05);
}

.news-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: #006b2f;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-card-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: #111827;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-link-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #006b2f;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 200ms ease;
}

.news-link-inline:hover,
.news-link-inline:focus {
  transform: translateX(2px);
}
