/* style/news.css */
:root {
  --primary-color: #0A2463;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0a0a0a;
  --card-bg-dark: rgba(255, 255, 255, 0.08);
  --border-color-dark: rgba(255, 255, 255, 0.15);
}

.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark (#0a0a0a), so text is light */
  background-color: var(--bg-dark); /* Inherited from shared.css body */
}

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

.page-news__hero-section {
  position: relative;
  padding: 120px 0 80px; /* Adjusted padding-top for fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #06163F 100%);
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
}

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

.page-news__description {
  font-size: 1.15em;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.7;
  opacity: 0.9;
}

.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 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

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

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

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

.page-news__cta-button--secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__content-area {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

.page-news__section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.page-news__section-description {
  font-size: 1.1em;
  color: var(--text-light);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
  opacity: 0.8;
}

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

.page-news__article-card {
  background: var(--card-bg-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px 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 10px 30px rgba(0, 0, 0, 0.4);
}

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

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

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

.page-news__article-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
  line-height: 1.4;
}

.page-news__article-excerpt {
  font-size: 0.95em;
  color: var(--text-light);
  margin-bottom: 15px;
  opacity: 0.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-news__article-meta {
  font-size: 0.85em;
  color: #aaa;
  display: block;
}

.page-news__pagination {
  display: flex;
  justify-content: 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-bg-dark);
  color: var(--text-light);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color-dark);
}

.page-news__pagination-link:hover:not(.page-news__pagination-link--disabled):not(.page-news__pagination-link--active) {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-news__cta-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-news__cta-description {
  font-size: 1.15em;
  max-width: 800px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

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

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: 100px !important; /* Mobile padding for fixed header */
    padding-bottom: 60px;
  }
  .page-news__main-title {
    font-size: 2.2em;
  }
  .page-news__description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-news__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-news__content-area {
    padding: 60px 0;
  }
  .page-news__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-news__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }
  .page-news__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-image {
    height: 180px;
  }
  .page-news__article-content {
    padding: 20px;
  }
  .page-news__article-title {
    font-size: 1.2em;
  }
  .page-news__article-excerpt {
    font-size: 0.9em;
  }
  .page-news__pagination {
    margin-top: 40px;
    gap: 8px;
  }
  .page-news__pagination-link {
    width: 40px;
    height: 40px;
    font-size: 0.9em;
  }
  .page-news__cta-section {
    padding: 60px 0;
  }
  .page-news__cta-title {
    font-size: 2em;
  }
  .page-news__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
}