.page-news {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background-color: var(--bg-color, #ffffff);
}

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

.page-news__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Adheres to the 10px rule for hero section */
  padding-bottom: 40px;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-news__hero-content {
  max-width: 900px;
  margin-bottom: 30px;
  padding: 0 20px;
}

.page-news__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.page-news__hero-description {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f8ff;
}

.page-news__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-news__btn-primary:hover {
  background-color: #d46f06;
  transform: translateY(-2px);
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
  box-sizing: border-box;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-news__latest-articles-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-news__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-news__section-description {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #555555;
}

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

.page-news__article-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

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

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

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

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

.page-news__article-meta {
  font-size: 0.9rem;
  color: #888888;
  margin-bottom: 15px;
}

.page-news__article-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

.page-news__pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  gap: 10px;
}

.page-news__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 15px;
  border: 1px solid #26A9E0;
  border-radius: 5px;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__pagination-link:hover,
.page-news__pagination-link--active {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-news__cta-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
}

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

.page-news__cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-news__cta-description {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #f0f8ff;
}

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

.page-news__btn-secondary {
  display: inline-block;
  background-color: #ffffff;
  color: #26A9E0;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  border: 2px solid #26A9E0;
  cursor: pointer;
}

.page-news__btn-secondary:hover {
  background-color: #e0f2f7;
  transform: translateY(-2px);
}

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

/* Tablet and Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }

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

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

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

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

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

  .page-news__hero-content {
    margin-bottom: 20px;
    padding: 0 15px;
  }

  .page-news__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    padding: 0 5px;
  }

  .page-news__hero-description {
    font-size: 0.95rem;
    padding: 0 10px;
  }

  /* General Images & Containers */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-news__container,
  .page-news__section,
  .page-news__card,
  .page-news__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* Article Grid/Cards */
  .page-news__latest-articles-section {
    padding: 40px 0;
  }

  .page-news__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    padding: 0 10px;
  }

  .page-news__section-description {
    font-size: 0.9rem;
    margin-bottom: 30px;
    padding: 0 10px;
  }

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

  .page-news__article-card {
    margin: 0 auto;
    max-width: 400px; /* Constrain single card width on small screens */
  }

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

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

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

  /* Buttons & Button Containers */
  .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;
    padding-right: 15px;
    text-align: center;
  }
  
  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }

  .page-news__pagination {
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 10px;
  }

  .page-news__pagination-link {
    min-width: 35px;
    height: 35px;
    padding: 0 10px;
    font-size: 0.9rem;
  }

  /* CTA Section */
  .page-news__cta-section {
    padding: 50px 0;
  }

  .page-news__cta-title {
    font-size: clamp(1.6rem, 7vw, 2.5rem);
    padding: 0 10px;
  }

  .page-news__cta-description {
    font-size: 0.95rem;
    padding: 0 10px;
  }
}