/* style/news.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000080; /* Dark Blue */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #000000;
  --bg-light: #f5f5f5;
  --card-bg: rgba(255, 255, 255, 0.1);
  --border-color: #e0e0e0;
}

.page-news {
  color: var(--text-light); /* Body background is dark, so text is light */
  background-color: var(--bg-dark);
  min-height: 100vh;
  padding-top: 120px; /* Adjust for fixed header */
}

.page-news__hero-section {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--secondary-color), #000050);
  color: var(--text-light);
  padding-top: 10px; /* Adjust for fixed header, specific to hero */
}

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

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

.page-news__hero-description {
  font-size: 1.2em;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-news__hero-cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

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

.page-news__articles-section {
  padding: 60px 20px;
  background-color: var(--bg-dark);
}

.page-news__articles-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-news__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  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-bg);
  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 {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

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

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

.page-news__article-excerpt {
  font-size: 1em;
  color: #e0e0e0;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__article-date {
  font-size: 0.9em;
  color: #aaaaaa;
  margin-top: auto;
  display: block;
  text-align: right;
}

.page-news__read-more {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: underline;
  font-size: 1em;
}

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

.page-news__cta-section {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  padding: 80px 20px;
  text-align: center;
  color: var(--text-light);
}

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

.page-news__cta-title {
  font-size: 2.8em;
  margin-bottom: 25px;
  color: var(--text-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-news__cta-description {
  font-size: 1.2em;
  line-height: 1.7;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-news__cta-button {
  display: inline-block;
  padding: 16px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin: 0 15px;
  border: 2px solid transparent;
  cursor: pointer;
}

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

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

.page-news__cta-button--secondary {
  background: none;
  color: var(--text-light);
  border-color: var(--text-light);
}

.page-news__cta-button--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* 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-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news {
    padding-top: 100px; /* Adjust for mobile fixed header */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news__hero-section {
    padding: 60px 15px;
    padding-top: 10px !important; /* Mobile specific override */
  }

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

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

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

  .page-news__articles-section {
    padding: 40px 15px;
  }

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

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

  .page-news__article-image {
    height: 180px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-news__article-card, .page-news__article-link, .page-news__article-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-news__cta-section {
    padding: 50px 15px;
  }

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

  .page-news__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  
  .page-news__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  /* General image responsive styles */
  .page-news img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  .page-news__hero-container,
  .page-news__articles-container,
  .page-news__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
}

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