/* Dark section (used by content.php template when ACF bg = "dark") */
.dark-section {
  background: linear-gradient(292deg, #537676 0%, #333 100%);
  padding-top: 4rem;
  padding-bottom: 4rem;
  color: #fff;
}

.dark-section h2 {
  font-family: Oxanium;
  color: #fff;
}

/* Posts overview */
.posts-overview-title {
  font-family: Oxanium;
  margin-bottom: 2rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: inherit;
  padding: 0;
  background-color: #fff;
  border: 2px solid #D9D9D9;
  border-radius: 24px 0;
}

.post-card:hover {
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.post-card-image {
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

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

.post-card-title {
  font-family: Oxanium;
  font-size: 20px;
  line-height: 28px;
  margin-bottom: 0.75rem;
  color: #333;
}

.post-card-excerpt {
  font-size: 14px;
  line-height: 22px;
  color: #666;
  margin-bottom: 1.5rem;
  flex: 1;
}

.post-card-link {
  font-weight: 700;
  font-size: 14px;
  color: #527575;
  transition: color 0.2s ease;
}

.post-card:hover .post-card-link {
  color: #333;
}

.posts-navigation {
  margin-top: 3rem;
  text-align: center;
}

.posts-navigation a {
  color: #527575;
  font-weight: 700;
}

.posts-navigation a:hover {
  color: #333;
}

/* Single post */
.single-post {
  max-width: 768px;
  margin: 0 auto;
}

.single-post-image {
  margin-bottom: 2rem;
  border-radius: 24px 0;
  overflow: hidden;
}

.single-post-image img {
  width: 100%;
  height: auto;
}

.single-post-title {
  font-family: Oxanium;
  margin-bottom: 0.75rem;
}

.single-post-meta {
  color: #527575;
  font-size: 14px;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #D9D9D9;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
  font-family: Oxanium;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.single-post-content p,
.single-post-content ul,
.single-post-content ol {
  line-height: 1.75;
}

.single-post-content a {
  color: #527575;
  text-decoration: underline;
}

.single-post-content a:hover {
  color: #333;
}

.single-post-content img {
  border-radius: 24px 0;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-nav {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #D9D9D9;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.post-nav-link {
  text-decoration: none;
  color: inherit;
  max-width: 50%;
}

.post-nav-link:hover .post-nav-title {
  color: #527575;
}

.post-nav-next {
  text-align: right;
  margin-left: auto;
}

.post-nav-label {
  display: block;
  font-size: 12px;
  color: #527575;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.post-nav-title {
  font-family: Oxanium;
  font-size: 16px;
  line-height: 24px;
  color: #333;
  transition: color 0.2s ease;
}
