/* style/news.css */

/* Base styles for the news page */
.page-news {
  color: #ffffff; /* Light text for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-news__section-title {
  font-size: 32px;
  color: #FFD700; /* Gold for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 15px;
}

.page-news__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #003366; /* Deep blue underline */
  border-radius: 2px;
}

.page-news__section-description {
  font-size: 18px;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  padding: 80px 0;
  background-color: #003366; /* Deep blue background for hero */
  text-align: center;
  padding-top: 0; /* shared.css handles body padding, avoid double */
}

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

.page-news__hero-title {
  font-size: 48px;
  color: #FFD700; /* Gold title */
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 20px;
  color: #ffffff; /* White text */
  margin-bottom: 40px;
  line-height: 1.5;
}

.page-news__btn-primary {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #003366; /* Deep blue text */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-news__btn-primary:hover {
  background-color: #e6c200; /* Darker gold on hover */
  transform: translateY(-2px);
}

/* Latest Articles Section */
.page-news__latest-articles-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for this section */
}

.page-news__articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.page-news__article-card {
  background-color: #2a2a2a; /* Darker background for card */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__article-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent look */
  overflow: hidden;
}

.page-news__article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.page-news__article-card:hover .page-news__article-image img {
  transform: scale(1.05);
}

.page-news__article-content {
  padding: 25px;
  color: #f0f0f0; /* Light text for content */
}

.page-news__article-title {
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: 700;
}

.page-news__article-title a {
  color: #FFD700; /* Gold for article titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #ffffff;
}

.page-news__article-excerpt {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.5;
  color: #cccccc;
}

.page-news__read-more-link {
  display: inline-block;
  color: #FFD700; /* Gold for read more link */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* Pagination */
.page-news__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.page-news__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #003366; /* Deep blue for pagination */
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__pagination-link:hover {
  background-color: #FFD700; /* Gold on hover */
  color: #003366;
}

.page-news__pagination-link--active {
  background-color: #FFD700; /* Active gold */
  color: #003366;
}

/* Categories Section */
.page-news__categories-section {
  padding: 80px 0;
  background-color: #003366; /* Deep blue background for categories */
}

.page-news__categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.page-news__category-card {
  display: block;
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news__category-card:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.page-news__category-title {
  font-size: 24px;
  color: #FFD700; /* Gold title */
  margin-bottom: 10px;
  font-weight: 700;
}

.page-news__category-description {
  font-size: 15px;
  color: #cccccc;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background */
}

.page-news__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #2a2a2a; /* Darker background for FAQ item */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #003366; /* Deep blue for question background */
  color: #ffffff;
  border: 1px solid #004488;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-news__faq-question:hover {
  background-color: #004488;
  border-color: #0055aa;
}

.page-news__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #FFD700; /* Gold for FAQ questions */
}

.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-news__faq-item.active .page-news__faq-toggle {
  color: #ffffff;
  transform: rotate(180deg); /* Rotate for minus sign */
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background-color: #2a2a2a; /* Dark background for answer */
  color: #cccccc;
  border-radius: 0 0 8px 8px;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

.page-news__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #f0f0f0;
}

/* Call to Action Section */
.page-news__cta-section {
  padding: 80px 0;
  background-color: #003366; /* Deep blue background */
  text-align: center;
}

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

.page-news__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #FFD700; /* Gold text */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid #FFD700; /* Gold border */
  cursor: pointer;
}

.page-news__btn-secondary:hover {
  background-color: #FFD700; /* Gold background on hover */
  color: #003366; /* Deep blue text on hover */
  transform: translateY(-2px);
}

/* General image styling */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-news__categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-news__hero-section {
    padding: 40px 0 !important;
    padding-top: 0 !important; /* Ensure no double padding from shared.css */
  }

  .page-news__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

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

  .page-news__btn-primary,
  .page-news__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Latest Articles Section */
  .page-news__latest-articles-section {
    padding: 40px 0;
  }

  .page-news__section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 10px;
  }

  .page-news__section-title::after {
    width: 60px;
    height: 3px;
  }

  .page-news__section-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__article-image {
    height: 180px;
  }

  .page-news__article-title {
    font-size: 20px;
  }

  .page-news__article-excerpt {
    font-size: 15px;
  }

  /* Pagination */
  .page-news__pagination-link {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  /* Categories Section */
  .page-news__categories-section {
    padding: 40px 0;
  }

  .page-news__categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .page-news__category-card {
    padding: 20px;
  }

  .page-news__category-title {
    font-size: 20px;
  }

  .page-news__category-description {
    font-size: 14px;
  }

  /* FAQ Section */
  .page-news__faq-section {
    padding: 40px 0;
  }

  .page-news__faq-item {
    margin-bottom: 10px;
  }

  .page-news__faq-question {
    padding: 15px 20px;
  }

  .page-news__faq-question h3 {
    font-size: 16px;
  }

  .page-news__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }

  .page-news__faq-answer {
    padding: 0 20px;
  }

  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px 20px !important;
  }

  .page-news__faq-answer p {
    font-size: 15px;
  }

  /* Call to Action Section */
  .page-news__cta-section {
    padding: 40px 0;
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-news__cta-buttons .page-news__btn-primary,
  .page-news__cta-buttons .page-news__btn-secondary {
    width: 100%;
  }

  /* General mobile image and container adaptation */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__container,
  .page-news__hero-container,
  .page-news__latest-articles-section,
  .page-news__categories-section,
  .page-news__faq-section,
  .page-news__cta-section,
  .page-news__articles-grid,
  .page-news__categories-grid,
  .page-news__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-news__article-card {
    max-width: 100%;
    width: 100%;
  }
}