/* style/news.css */
.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a1a; /* Body background from shared.css */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-news__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #E3B505; /* Accent color for titles */
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px;
  overflow: hidden;
  background: #0A2463; /* Main brand color for hero background */
}

.page-news__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-news__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.page-news__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim image for text readability */
}

.page-news__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  width: 90%;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text contrast */
  border-radius: 10px;
}

.page-news__main-title {
  font-size: 48px;
  font-weight: bold;
  color: #E3B505; /* Accent color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__intro-text {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #E3B505; /* Accent color for CTA */
  color: #0A2463; /* Dark text for contrast */
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-news__cta-button:hover {
  background: #f0c83e;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Latest Articles Section */
.page-news__latest-articles-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background */
  color: #ffffff;
}

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

.page-news__article-card {
  background: #0A2463; /* Main brand color for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px 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(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-news__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  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: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

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

.page-news__article-meta {
  font-size: 14px;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-news__article-excerpt {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more-button {
  display: inline-block;
  padding: 10px 20px;
  background: #E3B505;
  color: #0A2463;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-news__read-more-button:hover {
  background: #f0c83e;
}

/* Category Section */
.page-news__category-section {
  padding: 80px 0;
  background-color: #0A2463; /* Main brand color */
  color: #ffffff;
}

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

.page-news__category-card {
  background: rgba(255, 255, 255, 0.08); /* Slightly lighter dark for contrast */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  padding-bottom: 20px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

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

.page-news__category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
}

.page-news__category-title {
  font-size: 24px;
  font-weight: bold;
  color: #E3B505;
  padding: 0 15px;
}

/* Featured News Section */
.page-news__featured-news-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-news__featured-article {
  display: flex;
  background: #0A2463;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__featured-image {
  width: 60%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-news__featured-content {
  width: 40%;
  padding: 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-news__featured-title {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news__featured-title a {
  color: #E3B505;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__featured-title a:hover {
  color: #f0c83e;
}

.page-news__featured-meta {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-news__featured-excerpt {
  font-size: 17px;
  color: #f0f0f0;
  margin-bottom: 30px;
  line-height: 1.7;
}

/* Newsletter Section */
.page-news__newsletter-section {
  padding: 80px 0;
  background: linear-gradient(90deg, #0A2463, #E3B505); /* Gradient for newsletter */
  color: #ffffff;
  text-align: center;
}

.page-news__newsletter-content {
  max-width: 700px;
}

.page-news__newsletter-form {
  display: flex;
  justify-content: center;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.page-news__newsletter-input {
  flex-grow: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.9);
  color: #333333;
}

.page-news__newsletter-input::placeholder {
  color: #888888;
}

.page-news__newsletter-button {
  padding: 15px 30px;
  background: #0A2463; /* Main brand color for button */
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-news__newsletter-button:hover {
  background: #1e3a7c;
}

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

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

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.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;
  color: #f0f0f0;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: #0A2463; /* Dark background for active answer */
  border-radius: 0 0 10px 10px;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #2a2a2a; /* Slightly lighter than body for question */
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-news__faq-question:hover {
  background: #3a3a3a;
  border-color: #4a4a4a;
}

.page-news__faq-question:active {
  background: #4a4a4a;
}

.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: #E3B505; /* Accent color for question text */
}

.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #E3B505;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  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(45deg); /* Rotate for minus sign effect */
}

/* Call to Action Section (Bottom) */
.page-news__call-to-action-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #E3B505, #0A2463); /* Reverse gradient for strong CTA */
  color: #ffffff;
  text-align: center;
}

.page-news__cta-content {
  max-width: 800px;
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: #0A2463; /* Main brand color */
  color: #E3B505; /* Accent color for text */
  border: 2px solid #0A2463;
}

.page-news__btn-primary:hover {
  background: #1e3a7c;
  border-color: #1e3a7c;
  transform: translateY(-3px);
}

.page-news__btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-news__btn-secondary:hover {
  background: #ffffff;
  color: #0A2463;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 40px;
  }
  .page-news__intro-text {
    font-size: 18px;
  }
  .page-news__section-title {
    font-size: 30px;
  }
  .page-news__section-description {
    font-size: 16px;
  }
  .page-news__featured-article {
    flex-direction: column;
  }
  .page-news__featured-image,
  .page-news__featured-content {
    width: 100%;
  }
  .page-news__featured-content {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .page-news {
    padding-top: var(--header-offset, 120px) !important;
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__hero-section {
    padding-bottom: 40px;
  }
  .page-news__hero-content {
    width: 95%;
    padding: 15px;
  }
  .page-news__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-news__intro-text {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 18px;
  }
  .page-news__latest-articles-section,
  .page-news__category-section,
  .page-news__featured-news-section,
  .page-news__newsletter-section,
  .page-news__faq-section,
  .page-news__call-to-action-section {
    padding: 60px 0;
  }
  .page-news__section-title {
    font-size: 26px;
  }
  .page-news__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-news__articles-grid,
  .page-news__categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-title {
    font-size: 18px;
  }
  .page-news__article-excerpt {
    font-size: 15px;
  }
  .page-news__category-title {
    font-size: 20px;
  }
  .page-news__featured-title {
    font-size: 24px;
  }
  .page-news__featured-excerpt {
    font-size: 16px;
  }
  .page-news__newsletter-form {
    flex-direction: column;
    gap: 10px;
  }
  .page-news__newsletter-input,
  .page-news__newsletter-button {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
  }
  .page-news__faq-question {
    padding: 15px 20px;
  }
  .page-news__faq-question h3 {
    font-size: 16px;
  }
  .page-news__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 15px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px 20px !important;
  }
  .page-news__cta-buttons-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    padding: 15px 20px;
    font-size: 18px;
  }

  /* Image responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__hero-image img {
    filter: brightness(0.6) !important; /* Slightly more dim for mobile */
  }
  .page-news__hero-content {
    background: rgba(0, 0, 0, 0.5) !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__article-card,
  .page-news__category-card,
  .page-news__featured-article,
  .page-news__newsletter-content,
  .page-news__faq-list,
  .page-news__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__article-image {
    height: auto; /* Allow height to adjust for mobile */
  }
  .page-news__category-image {
    height: auto; /* Allow height to adjust for mobile */
  }
  .page-news__featured-image {
    height: auto; /* Allow height to adjust for mobile */
  }
  
  /* Button responsiveness */
  .page-news__cta-button,
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news a[class*="button"],
  .page-news a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-news__cta-buttons-group {
    flex-direction: column !important;
  }
}