:root {
  --primary-color: #0A2342;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f4f7f6;
  --background-dark: #1a1a1a;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
}

/* General page styling */
.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: 20px;
}

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

.page-news-section-description {
  font-size: 1.1em;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-news .hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1c3d6f 100%); /* Darker blue gradient for depth */
  color: var(--text-light);
  padding: 100px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.page-news .hero-container {
  max-width: 900px;
  width: 100%;
}

.page-news .hero-content {
  z-index: 1;
}

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

.page-news-description {
  font-size: 1.4em;
  margin-bottom: 30px;
  color: var(--text-light);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-news-cta-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 15px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid var(--secondary-color);
}

.page-news-cta-button:hover {
  background-color: #e6c200; /* Slightly darker gold */
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Latest News Section */
.page-news .latest-news-section {
  padding: 60px 0;
  background-color: var(--background-light);
}

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

.page-news .news-card {
  background-color: var(--card-bg);
  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(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

.page-news-card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--primary-color);
  line-height: 1.3;
}

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

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

.page-news-card-meta {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
}

.page-news-card-excerpt {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news-read-more {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.page-news-read-more:hover {
  color: var(--primary-color);
}

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

.page-news-page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--card-bg);
  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;
}

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

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

.page-news-page-link.page-news-active:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

/* Categories Section */
.page-news .categories-section {
  padding: 60px 0;
  background-color: #f0f3f2;
}

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

.page-news-category-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: var(--primary-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.page-news-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  background-color: #f9f9f9;
}

.page-news-category-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-news-category-title {
  font-size: 1.3em;
  color: var(--primary-color);
  font-weight: bold;
}

/* Call to Action Section */
.page-news .call-to-action-section {
  background: linear-gradient(90deg, var(--primary-color) 0%, #1c3d6f 100%);
  color: var(--text-light);
  padding: 80px 20px;
  text-align: center;
}

.page-news-cta-title {
  font-size: 2.8em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news-cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* About News Section */
.page-news .about-news-section {
  padding: 60px 0;
  background-color: var(--card-bg);
}

.page-news-text-content {
  font-size: 1.1em;
  margin-bottom: 25px;
  line-height: 1.8;
  text-align: justify;
  color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news-title {
    font-size: 3em;
  }
  .page-news-description {
    font-size: 1.2em;
  }
  .page-news-section-title {
    font-size: 2em;
  }
  .page-news .news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-news .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .page-news-cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-news .hero-section {
    padding: 80px 15px;
  }
  .page-news-title {
    font-size: 2.5em;
  }
  .page-news-description {
    font-size: 1em;
  }
  .page-news-section-title {
    font-size: 1.8em;
  }
  .page-news .news-grid {
    grid-template-columns: 1fr;
  }
  .page-news .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-news-cta-title {
    font-size: 1.8em;
  }
  .page-news-cta-description {
    font-size: 1em;
  }
  .page-news-cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-news-card-image {
    height: 180px;
  }
  .page-news-card-title {
    font-size: 1.3em;
  }
  .page-news-category-icon {
    width: 80px;
    height: 80px;
  }
  .page-news-category-title {
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-news-title {
    font-size: 2em;
  }
  .page-news-section-title {
    font-size: 1.5em;
  }
  .page-news-section-description {
    font-size: 0.9em;
  }
  .page-news .categories-grid {
    grid-template-columns: 1fr;
  }
  .page-news-cta-title {
    font-size: 1.5em;
  }
  .page-news-card-image {
    height: 150px;
  }
  .page-news-text-content {
    font-size: 0.95em;
  }
}