/* style/news.css */

:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000080; /* Dark Blue */
  --text-light: #ffffff;
  --text-dark: #000000;
  --background-dark: #121212;
  --card-background-dark: #1a1a1a;
  --border-color-dark: rgba(255, 255, 255, 0.1);
}

.page-news {
  color: var(--text-light); /* Body background is dark, so text should be light */
  background-color: var(--background-dark);
  min-height: 100vh;
  padding-top: 120px; /* Desktop: Ensure content is not covered by fixed header */
}

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

.page-news__hero-section {
  text-align: center;
  padding: 60px 0;
  background: linear-gradient(135deg, var(--secondary-color) 0%, rgba(0, 0, 128, 0.8) 50%, var(--background-dark) 100%);
  border-bottom: 1px solid var(--border-color-dark);
}

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

.page-news__description {
  font-size: 1.2em;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

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

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

.page-news__cta-button--primary {
  background: var(--primary-color);
  color: var(--text-dark); /* Black text on gold for strong contrast */
}

.page-news__cta-button--primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-news__cta-button--secondary:hover {
  background: #000066;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-news__articles-section {
  padding: 80px 0;
}

.page-news__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

.page-news__article-card {
  background: var(--card-background-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color-dark);
}

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

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

.page-news__article-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-color-dark);
  max-width: 100%;
}

.page-news__article-content {
  padding: 25px;
  color: var(--text-light);
}

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

.page-news__article-excerpt {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.85);
}

.page-news__article-date {
  display: block;
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
}

.page-news__read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #e6c200;
  text-decoration: underline;
}

.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: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--card-background-dark);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color-dark);
}

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

.page-news__pagination-link--active {
  background: var(--primary-color);
  color: var(--text-dark);
  border-color: var(--primary-color);
  cursor: default;
}

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

.page-news__pagination-link--next {
  border-radius: 8px;
  width: auto;
  padding: 0 20px;
}

.page-news__promo-cta-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(45deg, var(--primary-color) 0%, rgba(255, 215, 0, 0.8) 50%, var(--secondary-color) 100%);
  color: var(--text-dark);
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.page-news__promo-title {
  font-size: 2.8em;
  color: var(--text-dark);
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

.page-news__promo-description {
  font-size: 1.2em;
  color: var(--text-dark);
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

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

.page-news__promo-cta-section .page-news__cta-button:hover {
  background: #000066;
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 2.8em;
  }

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

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

  .page-news__promo-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-news {
    padding-top: 100px !important; /* Mobile: Ensure content is not covered by fixed header */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news__container {
    padding: 0 15px !important;
  }

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

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

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    padding: 0 15px;
  }

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

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

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

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

  .page-news__article-card {
    margin: 0 auto;
    max-width: 450px;
  }

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

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

  .page-news__article-title {
    font-size: 1.3em;
    margin-bottom: 10px;
  }

  .page-news__article-excerpt {
    font-size: 0.95em;
    margin-bottom: 15px;
  }

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

  .page-news__pagination-link {
    width: 40px;
    height: 40px;
    font-size: 1em;
  }

  .page-news__pagination-link--next {
    padding: 0 15px;
  }

  .page-news__promo-cta-section {
    padding: 60px 0;
  }

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

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

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

  .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;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 1.8em;
  }

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

  .page-news__promo-title {
    font-size: 1.8em;
  }
}