/* style/news.css */

:root {
  --primary-color: #3366FF; /* Deep Blue */
  --secondary-color: #FFCC00; /* Gold */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f4f7f6;
  --background-dark: #2c3e50;
  --border-color: #e0e0e0;
  --card-background: #ffffff;
  --button-hover-darken: #2a52cc; /* Darker primary */
  --button-hover-lighten: #e6b800; /* Darker secondary */
}

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

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

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

.page-news section:nth-of-type(even) {
  background-color: #ffffff;
}

.page-news section:nth-of-type(odd) {
  background-color: var(--background-light);
}

.page-news .section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-news .hero-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
  overflow: hidden;
}

.page-news .hero-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-bottom: 30px;
}

.page-news .hero-title {
  font-size: 3.5em;
  margin-bottom: 15px;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-news .hero-description {
  font-size: 1.3em;
  line-height: 1.5;
  color: var(--text-light);
  opacity: 0.9;
}

.page-news .hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-news .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Slightly darken image for text readability */
}

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

.page-news .news-card {
  background-color: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-news .news-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

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

.page-news .news-card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news .news-card-title .page-news.news-link {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news .news-card-title .page-news.news-link:hover {
  color: var(--primary-color);
}

.page-news .news-card-excerpt {
  font-size: 1em;
  color: #666666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news .news-card-date {
  font-size: 0.9em;
  color: #999999;
  margin-top: auto;
  display: block;
  margin-bottom: 15px;
}

.page-news .read-more-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  align-self: flex-start;
}

.page-news .read-more-button:hover {
  background-color: var(--button-hover-lighten);
  transform: translateY(-2px);
}

.page-news .category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  text-align: center;
}

.page-news .category-item {
  background-color: var(--card-background);
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: var(--text-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-news .category-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-news .category-item:hover .page-news.category-icon {
  filter: brightness(1.5) saturate(1.5); /* Lighten icon for contrast */
}

.page-news .category-item:hover .page-news.category-name {
  color: var(--text-light);
}

.page-news .category-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
  transition: filter 0.3s ease;
}

.page-news .category-name {
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.page-news .news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-news .list-item {
  background-color: var(--card-background);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news .list-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-news .list-item-image {
  width: 300px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

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

.page-news .list-item-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news .list-item-title .page-news.news-link {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news .list-item-title .page-news.news-link:hover {
  color: var(--primary-color);
}

.page-news .list-item-excerpt {
  font-size: 1.0em;
  color: #666666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news .list-item-date {
  font-size: 0.9em;
  color: #999999;
  margin-top: auto;
  display: block;
  margin-bottom: 15px;
}

.page-news .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  gap: 10px;
}

.page-news .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  font-size: 1.1em;
}

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

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

.page-news .page-link.page-prev, .page-news .page-link.page-next {
  border-radius: 5px;
  width: auto;
  padding: 0 15px;
}

.page-news .section-cta-register {
  background: linear-gradient(135deg, var(--primary-color) 0%, #004080 100%);
  color: var(--text-light);
  text-align: center;
  padding: 80px 20px;
}

.page-news .cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--text-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-news .cta-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

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

.page-news .cta-button:hover {
  background-color: var(--button-hover-lighten);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news .list-item {
    flex-direction: column;
  }
  .page-news .list-item-image {
    width: 100%;
    height: 250px;
  }
  .page-news .hero-title {
    font-size: 3em;
  }
  .page-news .hero-description {
    font-size: 1.1em;
  }
  .page-news .cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-news section {
    padding: 40px 0;
  }
  .page-news .section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-news .hero-banner {
    padding: 60px 15px;
  }
  .page-news .hero-title {
    font-size: 2.5em;
  }
  .page-news .hero-description {
    font-size: 1em;
  }
  .page-news .news-card-title {
    font-size: 1.3em;
  }
  .page-news .news-card-content {
    padding: 20px;
  }
  .page-news .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
  }
  .page-news .category-icon {
    width: 60px;
    height: 60px;
  }
  .page-news .category-name {
    font-size: 1em;
  }
  .page-news .list-item-title {
    font-size: 1.4em;
  }
  .page-news .list-item-content {
    padding: 20px;
  }
  .page-news .pagination {
    margin-top: 30px;
    gap: 5px;
  }
  .page-news .page-link {
    width: 40px;
    height: 40px;
    font-size: 1em;
  }
  .page-news .cta-title {
    font-size: 2em;
  }
  .page-news .cta-description {
    font-size: 1em;
  }
  .page-news .cta-button {
    padding: 15px 35px;
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-news .hero-title {
    font-size: 2em;
  }
  .page-news .news-card-image {
    height: 180px;
  }
  .page-news .list-item-image {
    height: 180px;
  }
  .page-news .cta-title {
    font-size: 1.8em;
  }
  .page-news .cta-button {
    width: 100%;
    max-width: 280px;
  }
}