/**
 * Post Listing Block Styles
 * Migrated from src/scss/site/_page-news.scss
 */
.post-listing {
  --pl-section-bg: #F1E7D3;
  --pl-section-title-color: #00355F;
  --pl-post-title-color: #00355F;
  --pl-excerpt-color: #333333;
  --pl-meta-color: #5C6670;
  --pl-cta-bg: #00355F;
  --pl-cta-text: #ffffff;
  --pl-cta-hover-text: #ffffff;
  --pl-cta-hover-bg: #002039;
  --pl-cta-radius: 0px;
  --pl-divider-color: #00355F;
  --pl-badge-bg: transparent;
  --pl-badge-text: #C4451C;
  --pl-pagination-bg: #C2CAD0;
  --pl-pagination-text: #00355F;
  --pl-pagination-active-bg: #00355F;
  --pl-pagination-active-text: #ffffff;
  --pl-pagination-border: transparent;
  --pl-image-border-radius: 0 31.25rem 0 31.25rem;
}

.post-listing {
  background-color: var(--pl-section-bg);
  padding: 0 0 2rem 0;
  min-height: 100vh;
  width: 100%;
}
.post-listing .sehu-container {
  margin-left: auto;
  margin-right: auto;
}
.post-listing .pl-preview-badge {
  background: linear-gradient(135deg, #00355F 0%, #002039 100%);
  color: #ffffff;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  text-align: center;
}
.post-listing .pl-preview-badge span {
  font-size: 1.125rem;
  font-weight: 600;
}
.post-listing .pl-preview-badge p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  opacity: 0.9;
}
.post-listing .pl-header {
  padding-bottom: 2rem;
}
.post-listing .pl-section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--pl-section-title-color);
  margin: 0;
}
.post-listing .pl-section-title .pl-title-icon {
  width: 55px;
  height: 55px;
  object-fit: contain;
}
.post-listing .pl-posts-container {
  display: flex;
  flex-direction: column;
}
.post-listing .pl-post-item {
  padding: 0 0 1rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--pl-divider-color);
}
.post-listing .pl-post-item:last-of-type {
  border-bottom: none;
}
.post-listing .pl-badge {
  display: inline-block;
  background-color: var(--pl-badge-bg);
  color: var(--pl-badge-text);
  margin: 0;
}
.post-listing .pl-post-title {
  margin: 0 0 1rem 0;
}
.post-listing .pl-post-title a {
  color: var(--pl-post-title-color);
  text-decoration: none;
  transition: text-decoration 0.2s ease;
}
.post-listing .pl-post-title a:hover, .post-listing .pl-post-title a:focus {
  text-decoration: underline;
}
.post-listing .pl-post-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
@media screen and (max-width: 768px) {
  .post-listing .pl-post-content {
    flex-direction: column;
  }
}
.post-listing .pl-post-image {
  width: 40%;
  flex-shrink: 0;
}
@media screen and (max-width: 768px) {
  .post-listing .pl-post-image {
    width: 100%;
  }
}
.post-listing .pl-post-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--pl-image-border-radius);
}
.post-listing .pl-post-details {
  width: 60%;
  flex: 1;
}
@media screen and (max-width: 768px) {
  .post-listing .pl-post-details {
    width: 100%;
  }
}
.post-listing .pl-post-meta {
  color: var(--pl-meta-color);
  margin: 0 0 1rem 0;
  font-weight: 400;
}
.post-listing .pl-post-excerpt {
  color: var(--pl-excerpt-color);
  margin-bottom: 1.5rem;
}
.post-listing .pl-read-more {
  display: inline-block;
  background-color: var(--pl-cta-bg);
  color: var(--pl-cta-text);
  border-radius: var(--pl-cta-radius);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.post-listing .pl-read-more:hover {
  background-color: var(--pl-cta-hover-bg);
  color: var(--pl-cta-hover-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-listing .pl-divider {
  height: 1px;
  background-color: var(--pl-divider-color);
  width: 100%;
  margin: 2rem 0;
}
.post-listing .pl-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding: 2rem 0;
}
.post-listing .pl-pagination-btn {
  width: 45px;
  height: 45px;
  background-color: var(--pl-pagination-bg);
  color: var(--pl-pagination-text);
  border: 2px solid var(--pl-pagination-border);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}
.post-listing .pl-pagination-btn:hover:not(.disabled):not(.pl-pagination-current) {
  background-color: var(--pl-pagination-active-bg);
  color: var(--pl-pagination-active-text);
}
.post-listing .pl-pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.post-listing .pl-pagination-btn.pl-pagination-current {
  background-color: var(--pl-pagination-active-bg);
  color: var(--pl-pagination-active-text);
}
.post-listing .pl-no-results {
  padding: 2rem;
  text-align: center;
  color: var(--pl-meta-color);
}
.post-listing .pl-no-results p {
  margin: 0;
}

@media (prefers-contrast: high) {
  .post-listing .pl-post-title a:focus,
  .post-listing .pl-read-more:focus,
  .post-listing .pl-pagination-btn:focus {
    outline: 3px solid currentColor;
    outline-offset: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .post-listing .pl-pagination-btn {
    transition: none;
  }
}
