/* News Grid Styling (Category & Related Posts) */
.section-paper{
  padding: 60px 0;
  background: #fafafa;
}

.section-paper h1{
  font-size: clamp(35px, 4.8vw, 40px);
  font-weight: 800;
  letter-spacing: 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}
.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.news-thumb-link {
  display: block;
  overflow: hidden;
}
.news-thumb {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.news-card:hover .news-thumb {
  transform: scale(1.05);
}
.news-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.news-content small {
  display: block;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.news-content h3 {
  font-size: 22px;
  margin: 0 0 12px;
  line-height: 1.4;
  font-weight: 700;
}
.news-content h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}
.news-content h3 a:hover {
  color: var(--primary-color, #1A4D2E); 
}
.news-content p {
  font-size:19px;
  line-height: 1.4;
  margin: 0;
}

/* Pagination Styling */
.nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
}
.nav-links a, .nav-links span.current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 15px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  color: var(--green-700);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s ease;
}
.nav-links a:hover {
  border-color: var(--green-700);
  background: var(--green-50);
  color: #816f98;
}
.nav-links span.current {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
}

/* Post Content Styling (Single Post) */
.post-header{
  max-width: 900px; 
  margin: 0 auto 30px; 
  text-align: center;
}

.post-title{
  font-size: 40px;
  line-height: 1.3; 
  margin-bottom: 25px; 
  color: #222; 
  font-weight: 800;
}

.post-meta{
  margin-bottom: 15px; 
  color: #777; 
  font-size: 0.95rem; 
  font-weight: 500; 
  text-transform: uppercase; 
  letter-spacing: 1px;
}

.post-thumbnail{
  max-width: 1000px; 
  margin: 0 auto 40px; 
  border-radius: 16px; 
  overflow: hidden; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.post-content{
  max-width: 1000px; 
  margin: 0 auto 60px; 
  background: #fff; 
  padding: 40px 50px; 
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.03); 
  font-size: 22px;
  line-height: 1.6;
  color: #333;
}
.post-content h2 {
  font-size: 30px;
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0;
  color: #111;
}
.post-content h3 {
  font-size: 26px;
  margin-top: 25px;
  margin-bottom: 15px;
  letter-spacing: 0;
  font-weight: 600;
  color: #222;
}
.post-content strong{
  color: #333;
  font-weight: 600;
}
.post-content p {
  margin-bottom: 25px;
}
.post-content figure{
  max-width: 100%;
  height: auto;
}
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px auto;
}
.post-content a {
  color: var(--primary-color, #1A4D2E);
  text-decoration: underline;
}
.post-content a:hover {
  text-decoration: none;
}
.post-content ul, .post-content ol {
  margin-bottom: 25px;
  padding-left: 20px;
}
.post-content li {
  margin-bottom: 10px;
}
.post-content blockquote {
  border-left: 4px solid var(--primary-color, #1A4D2E);
  padding-left: 20px;
  margin: 30px 0;
  font-size: 1.25rem;
  font-style: italic;
  color: #555;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 0 8px 8px 0;
}

.related-posts{padding: 60px 0; border-top: 1px solid #eee;}
.related-posts .eyebrow{display: block; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; color: #888; font-weight: 600; margin-bottom: 10px;}
.related-posts .related-posts-head{text-align: center; margin-bottom: 40px;}
.related-posts h2{font-size: 2rem; font-weight: 700; color: #222; margin: 0;}

/* Responsive */
@media (max-width: 768px) {
  .post-header { margin-bottom: 20px; }
  .post-title { font-size: 32px !important; line-height: 1.2}
  .post-content { padding: 25px 20px !important;}
  .post-content h2{font-size: 25px}
  .post-content h3{font-size: 22px}
}
