/* Revised CSS to reduce right margin while maintaining original layout */

@media screen and (min-width: 1024px) {
  /* Adjust container width to be wider */
  .masthead__inner-wrap,
  .page__footer,
  #main {
    max-width: 1400px; /* Increase from default 1280px */
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Adjust content grid alignment */
  .page {
    float: right;
    width: calc(100% - 300px); /* Account for sidebar width + margin */
    padding-right: 0; /* Remove right padding that creates the margin */
  }
  
  /* Adjust content container to fill available space */
  .page__inner-wrap {
    padding-right: 5em;
    width: 100%;
  }
  
  /* Keep sidebar in original position with original width */
  .sidebar {
    /* Standard width from theme */
    width: calc(300px - 2em);
    /* Keep original positioning */
    float: left;
  }
  
  /* Fix potential overflow issues */
  .archive__item-teaser img,
  .page__content img {
    max-width: 100%;
    height: auto;
  }
}

/* Ensure proper wrapping of content on all screen sizes */
@media screen and (max-width: 1023px) {
  .sidebar {
    margin-bottom: 2em;
  }
}

/* News section styling */
.news-section {
  margin: 2em 0;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5em;
}

.news-section h2 {
  margin-top: 0;
  margin-bottom: 1em;
  color: #2c3e50;
  font-size: 1.5em;
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.5em;
}