/* style/news.css */

/* Base styles for the news page */
.page-news {
  font-family: Arial, sans-serif;
  color: #FFF5E1; /* Text Main color for dark background */
  line-height: 1.6;
  background-color: transparent; /* Body background from shared.css */
}

/* Container for general content width */
.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #B71C1C; /* Background color */
  overflow: hidden;
}

.page-news__hero-image {
  width: 100%;
  max-width: 1200px; /* Limit image width */
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and content */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-news__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1; /* Ensure content is above any background effects */
  color: #FFF5E1; /* Main text color */
}

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

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

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__read-more-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button color */
  color: #7A0E0E; /* Deep Red for contrast on gold */
  border: 2px solid #F2B544; /* Border color */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-news__btn-secondary {
  background: #7A0E0E; /* Deep Red background */
  color: #FFF5E1; /* Text Main color */
  border: 2px solid #F2B544; /* Border color */
  margin-left: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__btn-secondary:hover {
  background: #C91F17; /* Main color */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.page-news__read-more-btn {
  background: #E53935; /* Auxiliary color */
  color: #FFF5E1; /* Text Main color */
  border: 1px solid #C91F17; /* Main color border */
  padding: 8px 18px;
  font-size: 0.9rem;
  border-radius: 5px;
}

.page-news__read-more-btn:hover {
  background: #C91F17; /* Main color */
  transform: translateY(-1px);
}


/* Articles Section */
.page-news__articles-section {
  padding: 80px 0;
  background-color: #B71C1C; /* Background color */
}

.page-news__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: #FFD86A; /* Gold-like color */
  text-align: center;
  margin-bottom: 50px;
  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;
}

.page-news__article-card {
  background-color: #D32F2F; /* Card BG color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-news__article-image {
  width: 100%;
  height: 250px; /* 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.3;
}

.page-news__article-title a {
  color: #FFD86A; /* Gold for titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-news__article-meta {
  font-size: 0.9rem;
  color: #F2B544; /* Border color for meta info */
  margin-bottom: 15px;
}

.page-news__article-excerpt {
  font-size: 1rem;
  color: #FFF5E1; /* Main text color */
  margin-bottom: 20px;
  flex-grow: 1; /* Pushes button to bottom */
}

/* Pagination */
.page-news__pagination {
  display: flex;
  justify-content: center;
  margin-top: 60px;
  gap: 10px;
}

.page-news__pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: 5px;
  background-color: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #F2B544; /* Border color */
}

.page-news__pagination-link:hover {
  background-color: #C91F17; /* Main color */
  color: #FFD86A; /* Gold */
}

.page-news__pagination-link--active {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #7A0E0E; /* Deep Red */
  border-color: #F2B544;
  cursor: default;
}

.page-news__pagination-link--active:hover {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E;
}


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

.page-news__cta-container {
  max-width: 900px;
}

.page-news__cta-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #FFD86A; /* Gold */
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-news__cta-description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: #FFF5E1; /* Text Main */
  margin-bottom: 40px;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-section {
    padding: 40px 15px;
  }

  .page-news__articles-section,
  .page-news__cta-section {
    padding: 60px 0;
  }

  .page-news__hero-image {
    height: 500px;
  }
}

@media (max-width: 768px) {
  /* Ensure all images are responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All content containers for mobile */
  .page-news__container,
  .page-news__hero-section,
  .page-news__articles-section,
  .page-news__cta-section,
  .page-news__article-card,
  .page-news__cta-buttons,
  .page-news__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-news__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 40px !important;
  }

  .page-news__hero-image {
    height: 300px; /* Adjust for smaller screens */
    margin-bottom: 20px;
  }

  .page-news__main-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .page-news__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

  .page-news__articles-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  .page-news__article-image {
    height: 200px; /* Smaller height for mobile cards */
  }

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

  /* Buttons mobile specific */
  .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;
    margin: 0 0 15px 0 !important; /* Stack buttons vertically */
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-news__cta-buttons {
    flex-direction: column !important; /* Stack CTA buttons */
    gap: 15px !important;
  }

  .page-news__btn-secondary {
    margin-left: 0 !important; /* Remove left margin for stacking */
  }

  .page-news__pagination {
    margin-top: 40px;
    gap: 5px;
  }
  .page-news__pagination-link {
    min-width: 35px;
    height: 35px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .page-news__hero-image {
    height: 200px;
  }
}