/***--------------------Start Sports Page ------------------------***/
.sports-navigation_wrap {
  padding: 20px 0;
  background-color: #800507;
  margin: 0;
}

.sports-navigation {
  margin: 0;
  padding: 0;
  display: flex;
  overflow-x: scroll;
  white-space: nowrap;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.sports-navigation > li {
  list-style: none;
  padding-right: 1.2rem;
}

.sports-navigation > li a {
  color: #ffffff;
}

ul.sports-navigation li:not(:last-child)::after {
  content: "";
  display: inline;
  border-right: 1px solid #d11d07;
  padding: 0 0.5rem;
  opacity: 1;
  margin-top: 5px;
  margin-bottom: 5px;
  clear: both;
}

/* top section */
/* UPDATE: Added a wrapper to ensure proper positioning context */
.sports-image-wrapper {
  position: relative;
  width: 95%;
  max-width: 95%; /* Prevents overflow */
}

/* UPDATE: Made the image fully responsive */
.sports-image {
  width: 95%;
  height: auto;
  display: block; /* Removes any bottom spacing */
}

/* UPDATE: Made the overlay responsive and tied to the image size */
.overlay {
  position: absolute;
  bottom: 7px; /* Changed from 7px to hug the bottom */
  left: 0;
  right: 0;
  width: 95%; /* Matches the width of the parent (image wrapper) */
  height: auto; /* Let content determine height */
  min-height: 10rem; /* Minimum height to maintain design */
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1rem; /* Added padding for content */
  box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.overlay h3 {
  margin-top: 2rem;
  margin-left: 2rem;
}

.overlay .post-title-a.sumry-title-a {
  color: white !important;
}

.overlay span {
  color: white;
  margin-left: 2rem;
}

/* UPDATE: Simplified media queries to adjust content spacing only */
@media (max-width: 576px) {
  .overlay h3,
  .overlay span {
    margin-left: 1rem; /* Reduced margins for smaller screens */
    font-size: 1.2rem; /* Adjust font size for better readability */
  }
  .overlay {
    min-height: 8rem; /* Slightly smaller height for mobile */
  }
}

@media (min-width: 1024px) {
  .overlay {
    min-height: 12rem; /* Slightly larger height for larger screens */
  }
  .overlay h3,
  .overlay span {
    font-size: 1.5rem; /* Larger font for better readability */
  }
}

/* UPDATE: Removed all fixed-width media queries for .sports-image and .overlay */
/* The overlay and image will now scale with the parent container */

/* Rest of the CSS remains unchanged */
.post-categories a {
  color: #000 !important;
}

.more_stories .more_sports {
  position: relative;
  max-height: 440px;
  overflow-y: scroll;
}

.more_sport {
  margin: 10px 0;
}

.football {
  position: relative;
  padding-top: 20px;
  margin-top: 60px;
  background: #edf6fc;
  min-height: 500px;
}

.other-sports {
  background-color: #f2f2f2;
  margin-bottom: 0 !important;
}

.boxing,
.basketball,
.cycling {
  margin-top: 1.4rem;
}

.sports-category {
  margin: 0;
  background-color: #d9edfc;
  padding: 0.5rem;
}

.sports-category h3 {
  color: #022d62;
  font-size: 2.5rem;
}

header .navbar.sports {
  width: 100%;
  background-color: #800507;
}

.more_top_stories_football .post-title {
  font-size: 1.125rem !important;
}

.more_top_stories_football .post-content {
  margin-left: 2rem;
}

.more_top_stories_football .post-content h3 {
  border-top: 4px solid #253ebb;
  padding-top: 1rem;
}

/* media query for section below header or next to header */
@media screen and (max-width: 576px) {
  .sumry__horz-3to1 .sumry-content {
    width: 100%;
    padding-left: 20px !important;
  }
}
/***-------------------- End Sports Page ------------------------***/
