/* General page styles for .page-news */
.page-news {
  background-color: var(--color-deep-navy); /* From custom palette */
  color: var(--text-main); /* From custom palette */
  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;
}

/* Hero Section */
.page-news__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  display: flex; /* Use flex for column layout */
  flex-direction: column;
  align-items: center;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 30px; /* Space between image and content */
}

.page-news__hero-image-wrapper img {
  width: 100%;
  height: auto; /* Ensure aspect ratio */
  display: block;
  object-fit: cover;
}

.page-news__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px; /* Padding for content */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-news__intro-text {
  font-size: 1.25rem;
  color: var(--text-secondary); /* From custom palette */
  margin-bottom: 40px;
  max-width: 700px;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Custom button color */
  color: var(--text-main); /* From custom palette */
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  max-width: 100%; /* For mobile */
  box-sizing: border-box; /* For mobile */
  white-space: normal; /* For mobile */
  word-wrap: break-word; /* For mobile */
}

.page-news__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Section Titles */
.page-news__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gold); /* From custom palette */
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
  font-weight: 700;
}

/* Articles Section */
.page-news__articles-section {
  padding: 40px 0;
}

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

.page-news__article-card {
  background-color: var(--card-bg); /* From custom palette */
  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;
  display: flex;
  flex-direction: column;
}

.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: flex;
  flex-direction: column;
  height: 100%;
}

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

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

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

.page-news__article-title {
  font-size: 1.4rem;
  color: var(--text-main); /* From custom palette */
  margin-bottom: 10px;
  line-height: 1.3;
  font-weight: 600;
}

.page-news__article-meta {
  font-size: 0.9rem;
  color: var(--text-secondary); /* From custom palette */
  margin-bottom: 15px;
}

.page-news__article-excerpt {
  font-size: 1rem;
  color: var(--text-secondary); /* From custom palette */
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-news__read-more-btn:hover {
  color: var(--glow); /* From custom palette */
}

/* 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;
  padding: 0 10px;
  background-color: var(--card-bg); /* From custom palette */
  color: var(--text-main); /* From custom palette */
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: 500;
}

.page-news__pagination-link:hover:not(.page-news__pagination-link--disabled):not(.page-news__pagination-link--active) {
  background-color: var(--primary-color); /* From custom palette */
  color: var(--text-main);
}

.page-news__pagination-link--active {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Custom button color */
  color: var(--text-main);
  font-weight: 700;
  cursor: default;
}

.page-news__pagination-link--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* About News Section */
.page-news__about-news-section {
  padding: 60px 0 80px;
}

.page-news__text-block {
  font-size: 1.1rem;
  color: var(--text-secondary); /* From custom palette */
  margin-bottom: 25px;
  text-align: justify;
}

.page-news__text-block:last-of-type {
  margin-bottom: 0;
}

/* Keyword highlighting for better SEO visibility */
.page-news__keyword {
  color: var(--gold); /* Highlight keywords with gold */
  font-weight: 600;
}

/* Call to action text within paragraphs */
.page-news__call-to-action {
  color: var(--glow); /* Highlight CTAs with glow color */
  font-weight: 600;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__hero-content {
    padding: 0 15px;
  }
  .page-news__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-news__intro-text {
    font-size: 1.15rem;
  }
  .page-news__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .page-news__article-title {
    font-size: 1.3rem;
  }
  .page-news__text-block {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  /* HERO Section for mobile */
  .page-news__hero-section {
    padding-bottom: 40px;
  }
  .page-news__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-news__hero-content {
    padding: 0 15px;
  }
  .page-news__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    text-align: center;
  }
  .page-news__intro-text {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 30px;
  }
  .page-news__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-news__cta-button-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* Section Titles for mobile */
  .page-news__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-top: 40px;
    margin-bottom: 30px;
  }

  /* Articles Grid for mobile (single column) */
  .page-news__articles-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 25px;
  }

  /* General Images for mobile */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  /* Long text area for mobile */
  .page-news__text-block {
    font-size: 0.95rem;
    padding: 0 10px; /* Add some horizontal padding to text blocks */
  }

  /* Containers for mobile */
  .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;
  }

  /* Pagination for mobile */
  .page-news__pagination {
    margin-top: 40px;
  }
  .page-news__pagination-link {
    min-width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}