/* style/news.css */

:root {
  --page-news-primary-color: #C91F17;
  --page-news-secondary-color: #E53935;
  --page-news-card-bg: #D32F2F;
  --page-news-background-color: #B71C1C;
  --page-news-text-main: #FFF5E1;
  --page-news-border-color: #F2B544;
  --page-news-glow-color: #FFCC66;
  --page-news-gold-color: #F4D34D;
  --page-news-deep-red: #7A0E0E;
  --page-news-button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
}

.page-news {
  font-family: 'Arial', sans-serif;
  color: var(--page-news-text-main); /* Default text color for the page, assuming dark body background */
  background-color: var(--page-news-background-color);
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  overflow: hidden;
  color: var(--page-news-text-main);
  padding-top: 10px; /* Assuming body has padding-top from shared.css */
  padding-bottom: 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--page-news-background-color);
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px;
  filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over the image, but not *on* it */
  background: rgba(var(--page-news-deep-red), 0.7); /* Use deep red with transparency for content background */
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--page-news-border-color);
}

.page-news__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--page-news-gold-color);
  text-shadow: 0 0 10px var(--page-news-glow-color);
}

.page-news__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--page-news-text-main);
}

/* Buttons */
.page-news__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: var(--page-news-button-gradient);
  color: #000000; /* Black text for gold button */
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background-color: transparent;
  color: var(--page-news-gold-color);
  border: 2px solid var(--page-news-gold-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.page-news__btn-secondary:hover {
  background-color: var(--page-news-gold-color);
  color: var(--page-news-deep-red);
}

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 60px 0;
  background-color: var(--page-news-background-color);
}

.page-news__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--page-news-gold-color);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(244, 211, 77, 0.4);
}

.page-news__section-description {
  font-size: 1.1rem;
  color: var(--page-news-text-main);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.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: var(--page-news-card-bg);
  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;
  display: flex;
  flex-direction: column;
  color: var(--page-news-text-main);
}

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

.page-news__article-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-news__article-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.page-news__article-title a {
  color: var(--page-news-gold-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: var(--page-news-glow-color);
}

.page-news__article-meta {
  font-size: 0.9rem;
  color: rgba(255, 245, 225, 0.7);
  margin-bottom: 15px;
}

.page-news__article-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more-btn {
  display: inline-block;
  color: var(--page-news-gold-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-news__read-more-btn:hover {
  color: var(--page-news-glow-color);
  text-decoration: underline;
}

.page-news__button-group {
  text-align: center;
  margin-top: 20px;
}

/* Promotion CTA Section */
.page-news__promotion-cta {
  padding: 80px 0;
  background: var(--page-news-deep-red);
  color: var(--page-news-text-main);
  text-align: center;
}

.page-news__container--flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-news__cta-content {
  flex: 1;
  text-align: left;
}

.page-news__cta-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--page-news-gold-color);
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-news__cta-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--page-news-text-main);
}

.page-news__cta-image {
  flex-shrink: 0;
  width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* About Us Summary Section */
.page-news__about-us-summary {
  padding: 60px 0;
  background-color: var(--page-news-background-color);
  color: var(--page-news-text-main);
}

/* General text styles */
.page-news p {
  line-height: 1.7;
  margin-bottom: 1em;
}

/* --- Responsive Styles --- */

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* HERO Section */
  .page-news__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-news__hero-image {
    max-height: 300px;
  }

  .page-news__hero-content {
    margin-top: -80px; /* Adjust for smaller screens */
    padding: 20px;
    max-width: 100%;
  }

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

  .page-news__hero-description {
    font-size: 1rem;
  }

  /* Buttons - General */
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .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 !important;
    padding-right: 15px !important;
    margin-bottom: 10px; /* Add spacing between stacked buttons */
  }

  .page-news__button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-news__section-title {
    font-size: 2rem;
  }

  .page-news__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-news__article-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

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

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

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

  /* Promotion CTA Section */
  .page-news__promotion-cta {
    padding: 50px 0;
  }

  .page-news__container--flex {
    flex-direction: column; /* Stack items vertically */
    text-align: center;
    gap: 30px;
  }

  .page-news__cta-content {
    text-align: center;
  }

  .page-news__cta-title {
    font-size: 1.8rem;
  }

  .page-news__cta-description {
    font-size: 1rem;
  }

  .page-news__cta-image {
    width: 100%;
    height: auto;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* About Us Summary Section */
  .page-news__about-us-summary {
    padding: 40px 0;
  }

  /* Images - General */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}