/* style/news.css */
:root {
  --primary-color: #1A1A2E;
  --secondary-color: #E0B400;
  --accent-color: #00BFFF;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: var(--dark-bg-1, #0d0d0d); /* Assuming shared.css defines --dark-bg-1 */
  --card-bg-dark: rgba(255, 255, 255, 0.08);
  --card-bg-light: #ffffff;
}

.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark);
  padding-top: 10px; /* Initial padding to clear fixed header, adjusted by sections */
}

.page-news__hero-section {
  position: relative;
  width: 100%;
  padding: 120px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--primary-color);
  background-image: url('[GALLERY:hero:pg999 slot,news_banner,abstract_bg]');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  padding-top: 120px; /* Desktop: Ensure content is not hidden by fixed header */
}

.page-news__hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

.page-news__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__cta-button:hover {
  background: #ffc107;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-news__cta-button--primary {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.page-news__cta-button--secondary {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-news__cta-button--secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.page-news__section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-news__section-description {
  font-size: 1.1em;
  color: #cccccc;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.page-news__news-grid-section {
  padding: 80px 20px;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-news__news-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-news__news-item {
  background: var(--card-bg-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure all cards have same height */
  display: flex;
  flex-direction: column;
}

.page-news__news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-news__news-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-news__news-item-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__news-item-excerpt {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__news-item-date {
  font-size: 0.85em;
  color: #888888;
  text-align: right;
  display: block;
}

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

.page-news__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

.page-news__pagination-link--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-news__featured-article-section {
  padding: 80px 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-news__featured-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-news__featured-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-news__featured-image {
  width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  object-fit: cover;
}

.page-news__featured-text {
  width: 50%;
  font-size: 1.05em;
  color: #e0e0e0;
}

.page-news__featured-text p {
  margin-bottom: 20px;
}

.page-news__faq-section {
  padding: 80px 20px;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

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

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--primary-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background: #2b2b4e;
}

.page-news__faq-item.active .page-news__faq-question {
  background: #3a3a5e;
}

.page-news__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--secondary-color);
  pointer-events: none;
}

.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 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 {
  transform: rotate(45deg); /* Plus to X for active */
  color: var(--accent-color);
}

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

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: var(--card-bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-news__faq-answer p {
  margin-bottom: 15px;
}

.page-news__cta-section {
  padding: 80px 20px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-align: center;
}

.page-news__cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.page-news__cta-section .page-news__section-title {
  color: var(--primary-color);
  text-shadow: none;
}

.page-news__cta-section .page-news__section-description {
  color: var(--primary-color);
  margin-bottom: 40px;
}

.page-news__cta-section .page-news__cta-button {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.page-news__cta-section .page-news__cta-button:hover {
  background: #2b2b4e;
  color: #ffc107;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__featured-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-news__featured-image,
  .page-news__featured-text {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
    padding-top: 10px !important; /* Mobile: Ensure content is not hidden by fixed header */
  }

  .page-news__hero-section {
    padding: 100px 15px 60px;
    padding-top: 10px !important;
  }

  .page-news__hero-container {
    padding: 15px;
  }

  .page-news__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-news__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__news-grid-section,
  .page-news__featured-article-section,
  .page-news__faq-section,
  .page-news__cta-section {
    padding: 60px 15px;
  }

  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-news__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }

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

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

  .page-news__news-item-title {
    font-size: 1.3em;
  }

  .page-news__pagination-link {
    width: 35px;
    height: 35px;
    font-size: 0.9em;
  }

  .page-news__featured-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

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

  .page-news__faq-question h3 {
    font-size: 1.1em;
  }

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

  /* Image responsive rules */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__hero-section,
  .page-news__news-grid-section,
  .page-news__news-container,
  .page-news__grid,
  .page-news__news-item,
  .page-news__featured-article-section,
  .page-news__featured-container,
  .page-news__featured-content,
  .page-news__featured-text,
  .page-news__faq-section,
  .page-news__faq-container,
  .page-news__cta-section,
  .page-news__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 1.8em;
  }
  .page-news__section-title {
    font-size: 1.6em;
  }
  .page-news__cta-button {
    font-size: 0.95em;
  }
}