/* style/news.css */
:root {
  --primary-color: #003366;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0f172a;
  --bg-light: #f1f3f5;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
}

.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.7;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Inherited from body */
}

.page-news__main-content-wrapper {
  padding: 40px 20px;
  padding-top: 120px; /* Desktop: Adjust for fixed header */
  background-color: var(--bg-dark);
}

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

.page-news__title {
  font-size: 3.2em;
  font-weight: bold;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-news__intro-text {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-light);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__intro-text strong {
  color: var(--secondary-color);
}

.page-news__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

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

/* Featured Articles Section */
.page-news__featured-articles {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color), #001a33); /* Darker gradient for contrast */
}

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

.page-news__article-card {
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
}

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

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

.page-news__article-content {
  padding: 25px;
}

.page-news__article-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

.page-news__article-title a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-news__article-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-news__read-more-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news__read-more-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* Promotions Updates Section */
.page-news__promotions-updates {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

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

.page-news__promo-item {
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
}

.page-news__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

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

.page-news__promo-title {
  font-size: 1.6em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-news__promo-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__promo-description a {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
}

.page-news__promo-description a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
}

.page-news__cta-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

.page-news__btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-news__btn-primary:hover {
  background: #002244;
}

/* Latest Updates Section */
.page-news__latest-updates {
  padding: 80px 0;
  background: linear-gradient(135deg, #0f172a, #2a3d54);
}

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

.page-news__update-item {
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  color: var(--text-dark);
}

.page-news__update-image {
  width: 250px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-news__update-content {
  padding: 25px;
}

.page-news__update-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

.page-news__update-title a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-news__update-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 15px;
}

.page-news__update-date {
  font-size: 0.85em;
  color: #888888;
  display: block;
  margin-bottom: 15px;
}

.page-news__load-more-container {
  text-align: center;
  margin-top: 50px;
}

.page-news__btn-secondary {
  background: var(--secondary-color);
  color: var(--text-dark);
}

.page-news__btn-secondary:hover {
  background: #e6c200;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

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

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
}

.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;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important; /* Ensure it expands fully */
  padding: 20px 25px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  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: #f5f5f5;
  border-color: #d0d0d0;
}

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

.page-news__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Allow click on the whole question div */
  color: var(--primary-color);
}

.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  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: 28px;
  height: 28px;
}

.page-news__faq-item.active .page-news__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Rotate '+' to 'x' or similar effect */
}

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

.page-news__dark-bg {
  color: var(--text-light);
}

.page-news__light-bg {
  color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__article-image {
    height: 180px;
  }
  .page-news__promo-image {
    height: 200px;
  }
  .page-news__update-image {
    width: 200px;
    height: 150px;
  }
  .page-news__update-content {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .page-news__main-content-wrapper {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__title {
    font-size: 2.2em;
    margin-bottom: 20px;
  }
  .page-news__intro-text {
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-top: 40px;
  }
  .page-news__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-news__featured-articles, .page-news__promotions-updates, .page-news__latest-updates, .page-news__faq-section {
    padding: 50px 0;
  }
  .page-news__articles-grid, .page-news__promo-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-content, .page-news__promo-content {
    padding: 20px;
  }
  .page-news__article-title, .page-news__promo-title {
    font-size: 1.3em;
  }
  .page-news__read-more-button, .page-news__cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-news__update-item {
    flex-direction: column;
    align-items: center;
  }
  .page-news__update-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  .page-news__update-content {
    padding: 20px;
    text-align: center;
  }
  .page-news__update-title {
    font-size: 1.2em;
  }
  .page-news__update-date {
    font-size: 0.8em;
  }
  .page-news__load-more-container {
    margin-top: 30px;
  }
  .page-news__faq-question {
    padding: 15px 20px;
  }
  .page-news__faq-question h3 {
    font-size: 1em;
  }
  .page-news__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-news__faq-answer {
    padding: 0 20px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px 20px !important;
  }

  /* Force full width for images and containers to prevent horizontal scroll */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__section, .page-news__card, .page-news__container, .page-news__articles-grid, .page-news__promo-list, .page-news__updates-list, .page-news__faq-list, .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}