/* style/news.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #8B0000;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --background-dark-1: #0d0d0d; /* Assuming shared.css defines --dark-bg-1 as a dark color */
  --background-light-1: #f9f9f9;
  --border-color-light: #e0e0e0;
}

.page-news {
  color: var(--text-color-light); /* Default text color for the page, assuming dark body background */
  background-color: var(--background-dark-1);
}

.page-news__main-content-wrapper {
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

.page-news__hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 60px 20px;
  text-align: center;
  color: var(--text-color-light);
}

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

.page-news__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: var(--text-color-light);
}

.page-news__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: var(--text-color-light);
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-color-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
}

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

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

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

.page-news__featured-articles-section {
  background-color: var(--background-dark-1);
  padding: 60px 0;
}

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

.page-news__article-card {
  background: #1a1a1a; /* Darker background for cards on dark page */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-color-light);
}

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

.page-news__article-image {
  width: 100%;
  height: 220px;
  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: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.4;
}

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

.page-news__article-title a:hover {
  color: #e6b800;
  text-decoration: underline;
}

.page-news__article-summary {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #cccccc;
}

.page-news__read-more-button {
  display: inline-block;
  margin-top: auto;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.95em;
  font-weight: bold;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

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

.page-news__in-depth-analysis-section {
  background-color: var(--background-dark-1);
  padding: 60px 0;
  color: var(--text-color-light);
}

.page-news__content-block {
  background: #1a1a1a;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-news__content-block h3 {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-news__content-block p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #cccccc;
}

.page-news__content-block p a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-news__content-block p a:hover {
  text-decoration: underline;
}

.page-news__content-block ul {
  list-style-type: disc;
  margin-left: 30px;
  margin-bottom: 20px;
  color: #cccccc;
}

.page-news__content-block li {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 10px;
}

.page-news__cta-section {
  background: linear-gradient(90deg, var(--secondary-color), #a00000);
  padding: 80px 20px;
  text-align: center;
  color: var(--text-color-light);
}

.page-news__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
}

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

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

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

.page-news__btn-secondary {
  background: #333333; /* Dark button on dark red background */
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-news__btn-secondary:hover {
  background: #444444;
  color: #e6b800;
  border-color: #e6b800;
}

.page-news__faq-section {
  background-color: var(--background-dark-1);
  padding: 60px 0;
}

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

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  color: var(--text-color-light);
}

.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 15px;
  opacity: 0;
  background: #1a1a1a; /* Darker background for FAQ answer */
  color: #cccccc;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #2a2a2a; /* Slightly lighter dark for question */
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  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: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  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(--text-color-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__article-image {
    height: 180px;
  }
  .page-news__article-title {
    font-size: 1.3em;
  }
  .page-news__content-block h3 {
    font-size: 1.5em;
  }
  .page-news__content-block p,
  .page-news__content-block li {
    font-size: 1em;
  }
  .page-news__cta-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-news__main-content-wrapper {
    padding-top: 100px !important; /* Adjust for fixed header on mobile */
  }
  .page-news__hero-section {
    padding: 40px 15px;
  }
  .page-news__hero-title {
    font-size: 2.2em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-news__container {
    padding: 20px 15px;
  }
  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-news__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-news__article-card {
    margin-bottom: 20px;
  }
  .page-news__article-image {
    height: 200px;
  }
  .page-news__article-content {
    padding: 20px;
  }
  .page-news__article-title {
    font-size: 1.2em;
  }
  .page-news__article-summary {
    font-size: 0.9em;
  }
  .page-news__read-more-button {
    padding: 8px 15px;
    font-size: 0.9em;
  }
  .page-news__in-depth-analysis-section .page-news__content-block {
    padding: 25px;
  }
  .page-news__content-block h3 {
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 10px;
  }
  .page-news__content-block p,
  .page-news__content-block li {
    font-size: 0.95em;
    line-height: 1.7;
  }
  .page-news__cta-section {
    padding: 60px 15px;
  }
  .page-news__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__cta-buttons .page-news__cta-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-news__faq-list {
    padding: 0 15px;
  }
  .page-news__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-news__faq-question h3 {
    font-size: 1em;
    width: calc(100% - 40px);
  }
  .page-news__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-news__faq-answer {
    padding: 0 15px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px !important;
  }
  
  /* Mobile image responsiveness */
  .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__article-card,
  .page-news__content-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__hero-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}