/* style/news.css */
:root {
  --primary-color: #003366;
  --secondary-color: #FFCC00;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f8f8;
  --background-dark: #002244; /* Slightly darker than primary for contrast */
  --border-color: #e0e0e0;
}

.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
}

.page-news__hero-section {
  position: relative;
  width: 100%;
  padding: 120px 20px 80px;
  padding-top: 120px; /* Adjust for fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #004488 100%);
  color: var(--text-light);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-news__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-news__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-news__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
  position: relative;
}

.page-news__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-news__featured-article {
  padding: 80px 0;
  background-color: var(--background-light);
}

.page-news__article-card {
  display: flex;
  background-color: var(--text-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-news__article-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  max-width: 100%;
  display: block;
}

.page-news__article-content {
  width: 50%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-news__article-title {
  font-size: 2em;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news__article-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-news__article-excerpt {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__article-date {
  font-size: 0.9em;
  color: #888;
  margin-top: 15px;
  display: block;
}

.page-news__read-more-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: 20px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__read-more-button:hover {
  background-color: #004488;
}

.page-news__latest-articles {
  padding: 80px 0;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-news__latest-articles .page-news__section-title {
  color: var(--secondary-color);
}

.page-news__latest-articles .page-news__section-title::after {
  background-color: var(--text-light);
}

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

.page-news__article-item {
  background-color: var(--text-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-news__item-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  max-width: 100%;
}

.page-news__item-body {
  padding: 25px;
  color: var(--text-dark);
}

.page-news__item-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-news__item-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__item-title a:hover {
  color: var(--secondary-color);
}

.page-news__item-excerpt {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 15px;
  min-height: 70px;
}

.page-news__item-date {
  font-size: 0.85em;
  color: #999;
  display: block;
  margin-bottom: 15px;
}

.page-news__read-more-link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  position: relative;
  padding-right: 15px;
}

.page-news__read-more-link::after {
  content: '»';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: right 0.3s ease;
}

.page-news__read-more-link:hover {
  color: var(--secondary-color);
}

.page-news__read-more-link:hover::after {
  right: -5px;
}

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

.page-news__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--text-light);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-news__pagination-link:hover:not(.page-news__pagination-link--active) {
  background-color: var(--secondary-color);
  color: var(--text-light);
  border-color: var(--secondary-color);
}

.page-news__pagination-link--active {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
  cursor: default;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__pagination-link--active:hover {
  color: var(--primary-color);
}

.page-news__cta-section {
  padding: 80px 0;
  background: linear-gradient(45deg, #003366 0%, #004488 100%);
  color: var(--text-light);
  text-align: center;
}

.page-news__cta-content {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-news__cta-title {
  font-size: 2.8em;
  color: var(--secondary-color);
  margin-bottom: 25px;
  font-weight: 700;
}

.page-news__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 700px;
}

.page-news__cta-button-large,
.page-news__cta-button-outline {
  display: inline-block;
  padding: 18px 45px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  margin: 0 15px 20px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__cta-button-large {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

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

.page-news__cta-button-outline {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-news__cta-button-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__article-card {
    flex-direction: column;
  }

  .page-news__article-image,
  .page-news__article-content {
    width: 100%;
  }

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

  .page-news__main-title {
    font-size: 2.8em;
  }

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

  .page-news__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 15px;
  }

  .page-news__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 60px;
    min-height: 300px;
  }

  .page-news__hero-container,
  .page-news__container,
  .page-news__cta-content {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-news__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 40px;
  }

  .page-news__featured-article,
  .page-news__latest-articles,
  .page-news__cta-section {
    padding: 60px 0;
  }

  .page-news__article-card {
    border-radius: 8px;
  }

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

  .page-news__article-title {
    font-size: 1.5em;
  }

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

  .page-news__read-more-button {
    padding: 8px 20px;
    font-size: 0.9em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-news__item-image {
    height: 180px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__item-body {
    padding: 20px;
  }

  .page-news__item-title {
    font-size: 1.2em;
  }

  .page-news__item-excerpt {
    min-height: auto;
  }

  .page-news__pagination {
    margin-top: 40px;
    gap: 8px;
  }

  .page-news__pagination-link {
    width: 36px;
    height: 36px;
    font-size: 0.9em;
  }

  .page-news__cta-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-news__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-news__cta-button-large,
  .page-news__cta-button-outline {
    padding: 15px 30px;
    font-size: 1em;
    margin: 0 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}