/* style/news.css */
/* body background color is #B71C1C (dark), so text should be light */

.page-news {
  font-family: 'Arial', sans-serif;
  color: #FFF5E1; /* Text Main */
  background-color: transparent; /* Body background handled by shared.css */
}

.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  background-color: #7A0E0E; /* Deep Red for hero background */
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 20px;
}

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

.page-news__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
  z-index: 1;
}

.page-news__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #FFD86A; /* Gold gradient start for title */
  line-height: 1.2;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 30px;
  color: #FFF5E1; /* Text Main */
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #7A0E0E; /* Deep Red for text on gold button */
  border: 2px solid #F4D34D; /* Gold border */
  margin-right: 15px;
}

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #FFD86A; /* Gold for text */
  border: 2px solid #F4D34D; /* Gold border */
}

.page-news__btn-secondary:hover {
  background-color: rgba(255, 216, 106, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-news__latest-articles-section {
  padding: 60px 20px;
  background-color: #B71C1C; /* Background color from shared.css body */
  color: #FFF5E1;
}

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-news__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #FFD86A; /* Gold for titles */
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

.page-news__article-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #F2B544; /* Border color */
}

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

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

.page-news__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistent card images */
  object-fit: cover;
  display: block;
}

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

.page-news__article-date {
  font-size: 0.9rem;
  color: #FFCC66; /* Glow */
  margin-bottom: 10px;
}

.page-news__article-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-news__article-title:hover {
  color: #FFD86A; /* Gold */
}

.page-news__article-summary {
  font-size: 1rem;
  color: #FFF5E1;
  line-height: 1.5;
  margin-bottom: 15px;
}

.page-news__read-more-link {
  display: inline-block;
  color: #FFD86A; /* Gold */
  font-weight: 600;
  text-decoration: underline;
  font-size: 1rem;
}

.page-news__read-more-link:hover {
  color: #FFCC66; /* Glow */
}

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

.page-news__cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #7A0E0E; /* Deep Red for dark section */
  color: #FFF5E1;
}

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

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

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

  .page-news__main-title {
    font-size: 2.2rem;
  }

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

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    margin-right: 0;
  }

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

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

  .page-news__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__article-image {
    height: 180px; /* Adjust height for mobile */
  }

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

  .page-news__article-summary {
    font-size: 0.9rem;
  }

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

  /* Mandatory image responsive styles */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-section,
  .page-news__latest-articles-section,
  .page-news__cta-section,
  .page-news__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-news__hero-image-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
      padding: 0;
  }

  .page-news__article-card {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
  }

  .page-news__articles-grid {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
      padding: 0;
  }

  .page-news__view-all-button-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
      padding: 0 15px;
  }

  .page-news a[class*="button"],
  .page-news a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}