/* style/news.css */

/* Base styles for the news page */
.page-news {
  background-color: var(--background-color, #140C0C); /* Dark background from shared, ensures light text is needed */
  color: var(--text-main, #FFF1E8); /* Default text color for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-news__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--gold, #F3C54D);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-news__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #F3C54D 0%, #D86A14 100%);
  border-radius: 2px;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  padding: 10px 0 60px 0; /* body handles top offset, this is extra padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-height: 675px; /* Limit height for aesthetic */
  margin-bottom: 30px;
}

.page-news__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-news__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: 800;
  color: var(--gold, #F3C54D);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 1.1em;
  color: var(--text-main, #FFF1E8);
  margin-bottom: 30px;
}

.page-news__btn-primary {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #ffffff; /* White text for contrast on gradient button */
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
  box-sizing: border-box;
}

.page-news__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 176, 74, 0.6);
}

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

.page-news__dark-section {
  background-color: var(--background-color, #140C0C);
  color: var(--text-main, #FFF1E8);
}

.page-news__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

.page-news__article-card {
  background-color: var(--card-bg, #2A1212);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-news__post-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-news__post-title {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--gold, #F3C54D);
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__post-meta {
  font-size: 0.9em;
  color: rgba(255, 241, 232, 0.7);
  margin-bottom: 15px;
}

.page-news__post-excerpt {
  font-size: 1em;
  color: var(--text-main, #FFF1E8);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: var(--gold, #F3C54D);
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.3s ease;
}

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

.page-news__view-all-wrapper {
  text-align: center;
}

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

.page-news__btn-secondary:hover {
  background-color: var(--gold, #F3C54D);
  color: #140C0C; /* Dark text for contrast on gold background */
}

/* Featured Section */
.page-news__featured-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-news__featured-section .page-news__section-title {
  color: var(--deep-red, #7E0D0D);
}

.page-news__featured-section .page-news__section-title::after {
  background: linear-gradient(90deg, var(--deep-red, #7E0D0D) 0%, var(--primary-color, #C61F1F) 100%);
}

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

.page-news__featured-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-news__featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.page-news__featured-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-news__featured-title {
  font-size: 1.3em;
  font-weight: 700;
  color: #333333;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__featured-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__featured-card .page-news__read-more {
  color: var(--primary-color, #C61F1F);
}

.page-news__featured-card .page-news__read-more:hover {
  color: var(--auxiliary-color, #E53030);
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--deep-red, #7E0D0D);
  color: #ffffff;
}

.page-news__cta-title {
  font-size: 2.8em;
  font-weight: 700;
  color: var(--gold, #F3C54D);
  margin-bottom: 20px;
}

.page-news__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-image {
    height: 500px;
  }
  .page-news__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-news__hero-image {
    max-height: 400px !important;
    height: auto !important;
    width: 100% !important;
  }
  .page-news__hero-content {
    padding: 0 15px;
  }
  .page-news__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    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;
  }
  .page-news__latest-articles,
  .page-news__featured-section,
  .page-news__cta-section {
    padding: 40px 0;
  }
  .page-news__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__articles-grid,
  .page-news__featured-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__post-image,
  .page-news__featured-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__article-card,
  .page-news__featured-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__cta-title {
    font-size: 2em;
  }
  .page-news__cta-description {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__cta-title {
    font-size: 1.8em;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    font-size: 0.9em;
    padding: 12px 20px;
  }
}