/* style/news.css */

/* Global page styling for news page */
.page-news {
  background-color: #140C0C; /* Custom background color */
  color: #FFF1E8; /* Custom main text color for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Ensure space above footer */
}

/* Ensure all links within page-news have appropriate color */
.page-news a {
  color: #F3C54D; /* Gold color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news a:hover {
  color: #FFB04A; /* Lighter gold on hover */
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  text-align: center;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 40px; /* Space between image and text */
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-news__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1; /* Ensure text is above any potential background elements */
}

.page-news__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  color: #FFF1E8;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__subtitle {
  font-size: 1.15rem;
  color: #FFF1E8;
  margin-bottom: 30px;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box; /* Include padding in width */
  max-width: 100%; /* Ensure button doesn't overflow */
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #ffffff; /* White text for primary button */
  border: none;
}

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #FFC16A 0%, #F07B24 100%);
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  background: transparent;
  color: #FFB04A; /* Gold text for secondary button */
  border: 2px solid #FFB04A;
  margin-left: 20px; /* Space between buttons */
}

.page-news__btn-secondary:hover {
  background: #FFB04A;
  color: #140C0C; /* Dark text on hover for secondary button */
  transform: translateY(-2px);
}

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 60px 0;
}

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

.page-news__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #FFF1E8;
  text-align: center;
  margin-bottom: 40px;
}

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

.page-news__article-card {
  background-color: #2A1212; /* Card background color */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__article-image-wrapper {
  width: 100%;
  height: 200px; /* Fixed height for image wrapper */
  overflow: hidden;
}

.page-news__article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-news__article-content {
  padding: 25px;
}

.page-news__article-date {
  display: block;
  font-size: 0.9rem;
  color: #F3C54D; /* Gold color for date */
  margin-bottom: 10px;
}

.page-news__article-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news__article-title a {
  color: #FFF1E8; /* White text for article titles */
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #F3C54D; /* Gold on hover */
}

.page-news__article-excerpt {
  font-size: 1rem;
  color: #FFF1E8;
  margin-bottom: 20px;
}

.page-news__read-more {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFB04A;
  text-decoration: underline;
}

.page-news__read-more:hover {
  color: #FFC16A;
}

.page-news__view-all-button-wrapper {
  text-align: center;
  margin-top: 20px;
}

/* CTA Section */
.page-news__cta-section {
  background-color: #7E0D0D; /* Deep Red background */
  padding: 80px 0;
  text-align: center;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-news__hero-content {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 40px;
  }

  .page-news__hero-image-wrapper {
    margin-bottom: 30px;
  }

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

  .page-news__main-title {
    font-size: clamp(2rem, 7vw, 2.8rem);
    margin-bottom: 15px;
  }

  .page-news__subtitle {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    padding: 12px 25px;
    font-size: 0.9rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__btn-secondary {
    margin-left: 0;
    margin-top: 15px; /* Stack buttons vertically */
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

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

  .page-news__article-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 25px;
  }

  .page-news__article-card {
    margin: 0 15px; /* Add horizontal margin for cards */
  }

  .page-news__article-image-wrapper {
    height: 180px;
  }

  .page-news__article-title {
    font-size: 1.2rem;
  }

  .page-news__article-excerpt {
    font-size: 0.95rem;
  }

  /* Ensure all images are responsive and do not overflow */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__container,
  .page-news__cta-section .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

/* Ensure no filter is used on images */
.page-news img {
  filter: none !important;
}