/* General page styling */
.page-news {
  background-color: #0D0E12;
  color: #FFF3E6;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding for main content, body handles header offset */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-news__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for aesthetic */
  overflow: hidden;
}

.page-news__hero-section img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 16/9; /* Default aspect ratio for hero */
}

.page-news__hero-content {
  padding: 20px 20px 0;
  max-width: 900px;
}

.page-news__main-title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem); /* Responsive font size */
  font-weight: 700;
  color: #FFB04D;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-news__description {
  font-size: 1.1rem;
  color: #FFF3E6;
  margin-bottom: 30px;
}

/* Articles Section */
.page-news__articles-section {
  padding: 40px 0;
  background-color: #0D0E12;
}

.page-news__section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: #FFB04D;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
}

.page-news__article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-news__article-card {
  background-color: #17191F;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #A84F0C;
}

.page-news__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-news__article-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.page-news__article-card img {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

.page-news__card-content {
  padding: 20px;
}

.page-news__article-date {
  font-size: 0.9rem;
  color: #FFA53A;
  margin-bottom: 10px;
  display: block;
}

.page-news__card-title {
  font-size: 1.25rem;
  color: #FFB04D;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__card-title:hover {
  color: #FFA53A;
}

.page-news__card-excerpt {
  font-size: 0.95rem;
  color: #FFF3E6;
  margin-bottom: 15px;
}

.page-news__read-more-btn {
  display: inline-block;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.page-news__read-more-btn:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #A84F0C 100%);
}

/* CTA Section */
.page-news__cta-section {
  background-color: #17191F;
  padding: 60px 20px;
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid #A84F0C;
}

.page-news__cta-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #FFB04D;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-news__cta-description {
  font-size: 1.1rem;
  color: #FFF3E6;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__cta-button:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #A84F0C 100%);
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 849px) {
  .page-news__main-title {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
  }

  .page-news__description {
    font-size: 1rem;
  }

  .page-news__article-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .page-news__article-card img {
    max-width: 100%;
    height: auto; /* Allow height to adjust */
    min-width: 200px;
    min-height: 200px;
  }

  .page-news__cta-title {
    font-size: clamp(1.3rem, 5vw, 2rem);
  }
}

@media (max-width: 549px) {
  .page-news__container {
    padding: 0 15px;
  }

  .page-news__hero-content {
    padding: 15px 15px 0;
  }

  .page-news__main-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .page-news__description {
    font-size: 0.9rem;
  }

  .page-news__section-title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    margin-bottom: 30px;
  }

  .page-news__article-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-news__article-card img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }

  .page-news__card-title {
    font-size: 1.1rem;
  }

  .page-news__card-excerpt {
    font-size: 0.85rem;
  }

  .page-news__read-more-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
  }

  .page-news__cta-section {
    padding: 40px 15px;
  }

  .page-news__cta-title {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
  }

  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

/* Ensure all content area images are not too small on mobile */
@media (max-width: 768px) {
  .page-news img {
    max-width: 100%;
    height: auto;
  }
  /* Specific overrides for article card images to ensure min size if height auto makes them too small */
  .page-news__article-card img {
    min-width: 200px;
    min-height: 200px;
    /* If the aspect ratio and max-width 100% makes it smaller than 200px, it should still respect min-height */
    /* For example, if a card is 180px wide, and image is 1:1, it would be 180x180. The min-height/width ensures it's 200x200 if possible */
  }
}