/* News Single More News Styles */
.news-single-more {
  width: 100%;
  min-height: 100vh;
  padding: 2rem 0;
  background: var(--Tertiary-100, #F6E0DF);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5rem; /* gap-10 = 2.5rem = 40px */
}

.news-single-more-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

.news-single-more-heading {
  width: 100%;
  max-width: 1200px;
  height: 48px;
  color: var(--Primary-100, #680144);
  font-family: "DM Sans", sans-serif;
  font-size: 36px; /* text-4xl = 2.25rem = 36px, but we need 48px line-height */
  font-weight: 400;
  line-height: 48px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
  text-align: left;
  box-sizing: border-box;
}

.news-single-more-grid {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem; /* gap-4 = 1rem = 16px */
}

/* News Card */
.news-single-more-card {
  flex: 1;
  height: 504px;
  padding-bottom: 99px; /* Reserve space for hover expansion (603px - 504px) to prevent section height change */
  box-sizing: content-box; /* Padding adds to height */
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  overflow: hidden;
  text-decoration: none;
  transition: height 0.3s ease, padding-bottom 0.3s ease;
  gap: 0;
}

.news-single-more-card:hover {
  height: 603px;
  padding-bottom: 0; /* Remove padding when expanded since height now includes the space */
}

/* Image Wrapper */
.news-single-more-card-image-wrapper {
  width: 100%;
  flex: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.625rem; /* gap-2.5 = 0.625rem = 10px */
  overflow: hidden;
  position: relative;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.news-single-more-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  transition: aspect-ratio 0.3s ease;
  display: block;
  margin: 0;
  padding: 0;
  vertical-align: top;
}

.news-single-more-card:hover .news-single-more-card-image {
  aspect-ratio: 4 / 3;
}

.news-single-more-card-image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--Primary-100, #680144);
  opacity: 0.1;
}

/* Content Section */
.news-single-more-card-content {
  width: 100%;
  padding: 1.5rem; /* p-6 = 1.5rem = 24px */
  border-left: 1.5px solid var(--Primary-100, #680144);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 1rem; /* gap-4 = 1rem = 16px */
  overflow: hidden;
  position: relative;
  background: transparent;
  transition: all 0.3s ease;
}

/* Category */
.news-single-more-card-category {
  width: 100%;
  color: var(--Primary-60, #A0638B);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 140%; /* 22.4px */
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
  z-index: 2;
}

/* Title */
.news-single-more-card-title {
  width: 100%;
  color: var(--Primary-100, #680144);
  font-family: "DM Sans", sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 120%; /* 28.8px */
  letter-spacing: -1.2px;
  margin: 0;
  padding: 0;
  transition: color 0.3s ease;
  position: relative;
  z-index: 2;
}

/* Description */
.news-single-more-card-description {
  width: 100%;
  overflow: hidden;
  color: var(--Primary-100, #680144);
  text-overflow: ellipsis;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 140%; /* 22.4px */
  letter-spacing: -0.32px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  transition: color 0.3s ease;
  position: relative;
  z-index: 2;
}

/* Hover Background Effect */
.news-single-more-card-hover-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--Primary-100, #680144);
  transition: width 0.3s ease;
  z-index: 1;
}

.news-single-more-card:hover .news-single-more-card-hover-bg {
  width: 100%;
}

.news-single-more-card:hover .news-single-more-card-category,
.news-single-more-card:hover .news-single-more-card-title,
.news-single-more-card:hover .news-single-more-card-description {
  color: #ffffff;
}

/* Responsive - Desktop/Laptop (1024px+) */
@media (min-width: 1024px) {
  .news-single-more {
    padding: 2rem 0;
  }
  
  .news-single-more-container {
    padding: 0 2rem;
  }
  
  .news-single-more-heading {
    max-width: 700px;
    padding: 0 2rem;
  }
  
  .news-single-more-grid {
    gap: 1rem;
  }
}

/* Responsive - Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .news-single-more {
    min-height: auto;
    padding: 3rem 0;
    gap: 2rem;
  }
  
  .news-single-more-container {
    padding: 0 2rem;
  }
  
  .news-single-more-heading {
    font-size: 32px;
    line-height: 40px;
  }
  
  .news-single-more-grid {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  .news-single-more-card {
    flex: 0 0 calc(50% - 0.75rem);
    height: 500px;
    padding-bottom: 103px; /* Reserve space for hover expansion (603px - 500px) to prevent section height change */
  }
  
  .news-single-more-card:hover {
    height: 603px;
    padding-bottom: 0; /* Remove padding when expanded */
  }
}

/* Responsive - Mobile (max-width: 767px) */
@media (max-width: 767px) {
  .news-single-more {
    min-height: auto;
    padding: 3rem 0;
    gap: 2rem;
  }
  
  .news-single-more-container {
    padding: 0 1rem;
  }
  
  .news-single-more-heading {
    font-size: 28px;
    line-height: 36px;
    height: auto;
  }
  
  .news-single-more-grid {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .news-single-more-card {
    width: 100%;
    height: auto;
    min-height: 400px;
  }
  
  
  .news-single-more-card-image-wrapper {
    min-height: 250px;
  }
  
  .news-single-more-card-title {
    font-size: 20px;
    letter-spacing: -0.8px;
  }
  
  .news-single-more-card-category,
  .news-single-more-card-description {
    font-size: 14px;
  }
}
