/* style/news.css */

/* Custom properties for brand colors */
:root {
  --primary-color: #0A2463; /* Deep Tech Blue */
  --secondary-color: #FFD700; /* Bright Gold */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa; /* Light grey for sections */
  --card-bg: #ffffff;
  --border-light: #e0e0e0;
  --dark-bg-1: #1a1a1a; /* Assuming this is a very dark background from shared.css */
}

/* Base styles for the news page */
.page-news {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--bg-light); /* Light background for the main content area */
}

/* Ensure content is not hidden by fixed header */
.page-news__hero-banner {
  padding-top: 120px; /* Desktop: Adjust based on actual header height */
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--primary-color), #000000); /* Dark gradient for hero */
  color: var(--text-light);
  text-align: center;
}

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

.page-news__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: var(--secondary-color); /* Gold for main title */
}

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

.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: 50px;
  font-weight: bold;
}

/* Latest Articles Section */
.page-news__latest-articles-section {
  background-color: var(--card-bg); /* White background for this section */
  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: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-news__article-image {
  width: 100%;
  height: 200px;
  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.4em;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.4;
  color: var(--primary-color);
}

.page-news__article-link {
  text-decoration: none;
  color: inherit;
}

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

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

.page-news__read-more-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  align-self: flex-start; /* Align button to start */
}

.page-news__read-more-button:hover {
  background: #e0b000;
  color: var(--primary-color);
}

/* Feature Article Section */
.page-news__feature-article-section {
  background-color: var(--bg-light); /* Light grey background */
  padding: 80px 0;
}

.page-news__feature-content {
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 40px;
  line-height: 1.7;
  color: var(--text-dark);
}

.page-news__feature-content h3 {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 35px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__feature-content p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-news__feature-content strong {
  color: var(--primary-color);
}

.page-news__feature-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin: 30px 0;
  display: block;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--primary-color); /* Primary color for main CTA */
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 40px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-news__cta-button:hover {
  background: var(--secondary-color); /* Gold on hover */
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: var(--card-bg); /* White background for FAQ */
}

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

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--primary-color); /* Dark blue background for question */
  color: var(--text-light);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-news__faq-question:hover {
  background: #071b4a; /* Slightly darker primary on hover */
  border-color: #071b4a;
}

.page-news__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: bold;
  line-height: 1.5;
  color: var(--text-light); /* White text for question */
}

.page-news__faq-toggle {
  font-size: 28px; /* Larger toggle for visibility */
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color); /* Gold color for toggle */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.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: var(--bg-light); /* Light grey for answer background */
  color: var(--text-dark); /* Dark text for answer */
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px 25px !important;
  opacity: 1;
  border: 1px solid var(--border-light);
  border-top: none;
}

.page-news__faq-item.active .page-news__faq-question {
  border-radius: 8px 8px 0 0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 2.8em;
  }

  .page-news__section-title {
    font-size: 2em;
    margin-bottom: 40px;
  }

  .page-news__hero-banner {
    padding-top: 100px; /* Tablet: Adjust based on header */
    padding-bottom: 50px;
  }

  .page-news__feature-content {
    padding: 30px;
  }

  .page-news__feature-content h3 {
    font-size: 1.6em;
  }

  .page-news__article-card {
    min-width: unset;
  }
}

@media (max-width: 768px) {
  /* Ensure content is not hidden by fixed header on mobile */
  .page-news__hero-banner {
    padding-top: 100px !important; /* Mobile: Adjust based on actual header height */
    padding-bottom: 40px;
  }

  .page-news__container {
    padding: 20px 15px;
  }

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

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

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

  .page-news__articles-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

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

  .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__feature-content {
    padding: 25px 20px;
  }

  .page-news__feature-content h3 {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 15px;
  }

  .page-news__feature-content p {
    font-size: 0.95em;
  }

  .page-news__feature-image {
    max-height: 250px;
    margin: 20px 0;
  }

  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    margin-top: 30px;
  }

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

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

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

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

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

  /* Mobile image adaptation (MUST BE INCLUDED) */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__feature-content,
  .page-news__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}