			
/* Base container */
.more-stories #news-feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.more-stories {
	max-width: 1150px;
	margin-left: auto;
	margin-right: auto;
}

/* Desktop/tablet grid */
@media (min-width: 768px) {
  .more-stories #news-feed {
    display: grid;
    grid-template-columns: 45% 55%;
    column-gap: 2rem;
    row-gap: 1rem;
    align-items: start;
  }

  /* Featured story (item 1) */
  .more-stories #news-feed > .news-item:first-child {
    grid-column: 1;
    grid-row: 1 / span 3;
    position: relative;
  }

  /* Side stories (items 2+) */
  .more-stories #news-feed > .news-item:not(:first-child) {
    grid-column: 2;
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    align-items: center;
    flex-direction: row; /* ensure image left / text right */
  }
}

/* Featured image */
.more-stories #news-feed > .news-item:first-child .news-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.more-stories #news-feed > .news-item:first-child .news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Featured typography */
.more-stories #news-feed > .news-item:first-child h3 {
  margin: 0;
  font-size: 1.625rem;
  line-height: 1.1818;
  font-weight: 700;
}

.more-stories #news-feed > .news-item:first-child h3 a {
  display: block;
  text-decoration: none;
}

.more-stories #news-feed > .news-item:first-child p {
  margin-top: 0.5rem;
}

/* Side story image */
.more-stories #news-feed > .news-item:not(:first-child) .news-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  max-width: 315px;
}

/* Side story typography */
.more-stories #news-feed > .news-item:not(:first-child) h3 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.1818;
}

.more-stories #news-feed > .news-item:not(:first-child) h3 a {
  text-decoration: none;
  color: #512888;
}

.more-stories #news-feed > .news-item:not(:first-child) p {
  margin-top: 0.5rem;
  line-height: 1.4;
  color: black;
  margin-bottom: 0;
}

/* Mobile */
@media (max-width: 767px) {
  .more-stories #news-feed {
    display: flex;
    flex-direction: column;
  }
			
			.news-item {
			padding: 1rem 0;
			}

  /* Featured story mobile behavior:
     no overlay, match other cards: image then text below */
  .more-stories #news-feed > .news-item:first-child .news-text {
    position: static;
    background: transparent;
    color: inherit;
    padding: 0;
    margin-top: 0.75rem;
  }

  .more-stories #news-feed > .news-item:first-child h3 a,
  .more-stories #news-feed > .news-item:first-child p {
    color: inherit;
  }

  /* Side stories stack image above text */
  .more-stories #news-feed > .news-item:not(:first-child) {
    flex-direction: column;
  }

  .more-stories #news-feed > .news-item:not(:first-child) .news-image {
    order: -1;
			        padding: 1.125rem 0;
  }

  .more-stories #news-feed > .news-item:first-child {
    display: flex;
    flex-direction: column-reverse;
  }

  .more-stories #news-feed > .news-item:first-child .news-image {
    order: -1;
  }

 
  .more-stories #news-feed > .news-item > a {
    display: flex;
    flex-direction: column;
  }

  .more-stories #news-feed > .news-item > a .news-image {
    order: -1;
  }
}

/* Hide tags/date */
.tags {
  display: none;
}

.news-date {
  display: none;
}


/* Desktop+: absolute overlay starting at 1000px */
@media (min-width: 1000px) {
  .more-stories #news-feed > .news-item:first-child {
    position: relative;
  }

  .more-stories #news-feed > .news-item:first-child .news-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: rgba(51, 25, 88, 0.9);
    color: #fff;
    padding: 1.5rem 1rem 0.5rem;
  }

  .more-stories #news-feed > .news-item:first-child h3 a,
  .more-stories #news-feed > .news-item:first-child p {
    color: #fff;
  }
}

/* Tablet: static overlay 768–999 */
@media (min-width: 768px) and (max-width: 999px) {
  .more-stories #news-feed > .news-item:first-child .news-text {
    position: static;
    margin-top: -1rem;
    background-color: #331958;
    color: #fff;
    padding: 1.5rem 1rem 0.5rem;
  }

  .more-stories #news-feed > .news-item:first-child h3 a,
  .more-stories #news-feed > .news-item:first-child p {
    color: #fff;
  }

  .more-stories #news-feed > .news-item:first-child .news-image {
    margin-bottom: 1.5rem;
  }
}

/* 2) Featured image tweaks */
.more-stories #news-feed > .news-item:first-child .news-image {
  aspect-ratio: 1;
}

.more-stories #news-feed > .news-item:first-child .news-image img {
  height: auto;
}

/* 3) Side stories: match side-story layout (image left, text right) */
@media (min-width: 768px) {
  .more-stories #news-feed > .news-item:not(:first-child) {
    flex-direction: row;
    align-items: center;
    padding-bottom: 1rem;
    gap: 1rem;
  }

  .more-stories #news-feed > .news-item:not(:first-child) .news-image {
    flex: 0 0 24%;
    max-width: none;
  }

  .more-stories #news-feed > .news-item:not(:first-child) .news-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    max-width: none;
  }

  .more-stories #news-feed > .news-item:not(:first-child) .news-text {
    flex: 1;
    min-width: 0; /* helps clamps in flex */
  }
}


@media (min-width: 768px) and (max-width: 1199px) {
  .more-stories #news-feed > .news-item:not(:first-child) .news-image {
    display: none;
  }
}

/* Show side images on desktop (≥1200) */
@media (min-width: 1200px) {
  .more-stories #news-feed > .news-item:not(:first-child) .news-image {
    display: block;
  }
}


.more-stories h3,
.more-stories p {
  overflow-wrap: anywhere;
  word-break: break-word;
}


@media (min-width: 768px) {
  .more-stories #news-feed > .news-item:not(:first-child) {
    border-bottom: 1px solid #e5e5e5;
  }

  .more-stories #news-feed > .news-item:not(:first-child):last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* Tighten spacing so truncation feels intentional */
.more-stories #news-feed > .news-item:not(:first-child) h3 {
  margin-bottom: 0.25rem;
}

.more-stories #news-feed > .news-item:not(:first-child) p {
  margin-top: 0;
}



/* Featured title: 2 lines */
.more-stories #news-feed > .news-item:first-child h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Featured description: 3 lines */
.more-stories #news-feed > .news-item:first-child p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* Side story title: 2 lines */
.more-stories #news-feed > .news-item:not(:first-child) h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Side story description: 3 lines */
.more-stories #news-feed > .news-item:not(:first-child) p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
