/* News Shortcode Styles */

.newsroom-latest-news-container {
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
}

.newsroom-latest-news-container .news-excerpt-container {
  flex: 1;
  min-width: 280px;
}

.newsroom-latest-news-container .news-media-container {
  flex: 1;
  min-width: 280px;
  text-align: center;
  display: flex;
  /* align-items: center; */
}

.newsroom-latest-news-container .news-media-wrapper {
  /* max-width: 560px; */
  width: 100%;
}

.newsroom-latest-news-container .post-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.newsroom-latest-news-container .news-excerpt-container h2 {
  color: var(--hgea-color-dark-green);
  font-family: var(--hgea-font-league-spartan);
  font-weight: var(--hgea-font-weight-normal);
  font-size: 50px;
}

.newsroom-latest-news-container .news-excerpt-container h3.news-title {
  color: var(--hgea-color-dark-green);
  font-family: var(--hgea-font-league-spartan);
  font-weight: var(--hgea-font-weight-bold);
  font-size: var(--hgea-font-size-medium);
}
.newsroom-latest-news-container .news-excerpt-container p.news-publish-date {
  font-size: var(--hgea-font-size-small);
}

.newsroom-latest-news-container .youtube-iframe-container {
    padding-top: 10px;
    width: 100%;
    aspect-ratio: 16 / 9; /* Standard video aspect ratio */
}

.newsroom-latest-news-container .vimeo-iframe,
.newsroom-latest-news-container .youtube-iframe {
  min-height: 285px;
}

.newsroom-latest-news-container .youtube-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.newsroom-latest-news-container .yellow-bordered-button {
  text-decoration: none;
}

.latest-post-publication-image {
  padding: 1em;
  flex: 1;
}

.latest-post-publication-image img {
  max-width: 100%;
  object-fit: contain;
}

.publication-shortcode-container .publication-text {
  flex: 1;
}

.news-template-container .news-image {
  flex-shrink: 0;
  width: 280px;
  aspect-ratio: 4/3;
}

.news-template-container .news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Category placeholder image styling */
.news-template-container .news-image.category-placeholder {
  opacity: 0.85;
  border: 2px solid #e8e8e8;
  background-color: #f9f9f9;
}

.news-template-container .news-image.category-placeholder img {
  object-fit: cover;
  opacity: 0.9;
}

.news-template-container .news-row-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.news-template-container .news-stack-container {
  display: flex;
  width: 100%;
  justify-content: flex-start;
}

/* Responsive adjustments - keep row layout as long as possible */
@media (max-width: 600px) {
  .news-template-container .news-row-container {
    flex-direction: column;
    gap: 0;
  }
  
  .news-template-container .news-image {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16/9; /* Wider aspect ratio for mobile */
  }
  
  .news-template-container .news-stack-container {
    padding-left: var(--wp--preset--spacing--20);
    padding-right: var(--wp--preset--spacing--20);
  }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
  .news-template-container .news-image {
    aspect-ratio: 4/3; /* Back to 4:3 on very small screens */
  }
  
  .news-template-container .news-row-container {
    gap: var(--wp--preset--spacing--20);
  }
}

.negotiation-table-logo img {
  max-width: 368px;
}

.youtube.embed iframe,
.vimeo.embed iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.embed-container,
.embed-container > figure,
.embed-container > figure > div {
  width: 100%;
}

.embed-container > figure {
  margin: 0 !important;
}


/* tablet screen size starts at 992px and below */
@media (max-width: 992px) {
    .newsroom-latest-news-container {
        flex-direction: column;
        gap: 0;
    }
    
    /* Reorder so image appears above text on mobile */
    .newsroom-latest-news-container .news-media-container {
        order: -1;
        width: 100%;
        margin-bottom: 20px;
        min-width: unset;
    }
    
    .newsroom-latest-news-container .news-media-wrapper {
        display: block;
    }
    
    /* Limit image height on mobile to prevent it from dominating */
    .newsroom-latest-news-container .post-image {
        width: 100%;
        display: block;
    }
    
    .newsroom-latest-news-container .post-image img {
        max-height: 300px;
        width: 100%;
        object-fit: cover;
        display: block;
    }
    
    /* Ensure text content has proper spacing and isn't overlapping */
    .newsroom-latest-news-container .news-excerpt-container {
        width: 100%;
        min-width: unset;
        order: 1;
    }
    
    .newsroom-latest-news-container .news-excerpt-container h2 {
        margin-top: 0;
        margin-bottom: 12px;
    }
    
    .newsroom-latest-news-container .news-excerpt-container h4.news-title {
        margin-top: 0;
        margin-bottom: 12px;
    }
}

@media (max-width: 768px) {
  .latest-post-publication-image {
    padding: 0;
  }
}

/* Publication archive template Styles */

.publication-post-container h2 {
  color: var(--hgea-color-dark-green);
  font-family: var(--hgea-font-montserrat);
  font-size: var(--wp--preset--font-size--medium);
  font-weight: var(--hgea-font-weight-bold);;
  line-height: 1.2;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  margin-top: 0;
  margin-bottom: 0;

}

@media (max-width: 480px) {
  .negotiation-table-logo img {
    max-width: 300px;
    width: 100%;
  }
}

/* Publication archive template Styles - END */