/* style/news.css */
:root {
  --primary-color: #0A192F;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-light: #f5f5f5;
  --background-dark: #0A192F;
}

.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(--background-dark);
}

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

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

.page-news__link {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-news__link:hover {
  text-decoration: underline;
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  overflow: hidden;
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.6);
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

.page-news__hero-title {
  font-size: 3.5em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-news__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  color: var(--primary-color);
}

.page-news__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

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

.page-news__btn--large {
  padding: 18px 35px;
  font-size: 1.3em;
}

/* Section Titles */
.page-news__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--text-dark);
}

.page-news__section-title--light {
  color: var(--text-light);
}

.page-news__section-subtitle {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #666;
}

.page-news__section-subtitle--light {
  color: #ccc;
}

/* Introduction Section */
.page-news__introduction-section {
  padding: 60px 0;
}

.page-news__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-dark);
}

/* Categories Section */
.page-news__categories-section {
  padding: 60px 0;
}

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

.page-news__category-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
}

.page-news__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-news__category-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-news__category-title a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-news__category-title a:hover {
  text-decoration: underline;
}

.page-news__category-description {
  font-size: 1em;
  color: #ccc;
}

/* Featured Articles Section */
.page-news__featured-articles-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: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
}

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

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

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

.page-news__article-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

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

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

.page-news__article-date {
  font-size: 0.9em;
  color: #777;
  margin-bottom: 15px;
}

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

.page-news__read-more {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-news__read-more:hover {
  text-decoration: underline;
}

/* Latest News Section */
.page-news__latest-news-section {
  padding: 60px 0;
}

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

.page-news__news-item {
  display: flex;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-news__news-thumbnail {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 20px;
  flex-shrink: 0;
}

.page-news__news-content {
  flex-grow: 1;
}

.page-news__news-title {
  font-size: 1.4em;
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.page-news__news-title a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-news__news-title a:hover {
  text-decoration: underline;
}

.page-news__news-date {
  font-size: 0.85em;
  color: #aaa;
  margin-bottom: 10px;
}

.page-news__news-excerpt {
  font-size: 0.95em;
  color: #ccc;
}

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

/* Video Section */
.page-news__video-section {
  padding: 60px 0;
}

.page-news__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-news__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  cursor: pointer;
}

.page-news__video-cta {
  text-align: center;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
}

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

.page-news__faq-item {
  background: #ffffff;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: var(--text-dark);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--background-light);
  color: var(--primary-color);
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: #e0e0e0;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  transition: transform 0.3s ease;
  color: var(--secondary-color);
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-dark);
}

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

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 20px;
}

.page-news__faq-item.active .page-news__faq-question {
  background-color: #e0e0e0;
}

.page-news__faq-item.active .page-news__faq-toggle {
  transform: rotate(45deg);
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2.2em;
  }
  .page-news__article-image {
    height: 200px;
  }
  .page-news__news-thumbnail {
    width: 120px;
    height: 80px;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__hero-section {
    min-height: 450px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-news__hero-title {
    font-size: 2em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__section-subtitle {
    font-size: 0.9em;
  }
  .page-news__categories-grid,
  .page-news__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-news__category-card,
  .page-news__article-card,
  .page-news__news-item {
    padding: 15px;
  }
  .page-news__news-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-news__news-thumbnail {
    margin-right: 0;
    margin-bottom: 15px;
    width: 100% !important;
    height: auto !important;
    max-width: 250px !important; /* Ensure min 200px, but responsive */
    min-width: 200px !important;
    min-height: 150px !important;
  }
  .page-news__article-image,
  .page-news__category-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    min-width: 200px !important;
    min-height: 150px !important;
  }
  .page-news__video-wrapper {
    padding-bottom: 56.25% !important;
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-news__video {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
  }
  .page-news__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-news__faq-answer {
    padding: 0 15px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px;
  }

  /* General mobile container padding to prevent overflow */
  .page-news__container,
  .page-news__hero-content,
  .page-news__categories-grid,
  .page-news__articles-grid,
  .page-news__news-list,
  .page-news__video-section,
  .page-news__faq-list,
  .page-news__cta-section {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .page-news__hero-section .page-news__hero-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    min-width: 200px !important;
    min-height: 150px !important;
  }
}

/* Ensure all img elements globally within .page-news are responsive and meet min size */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px; /* Enforce minimum size */
  min- /* Enforce minimum size, adjusted for common aspect ratios */
}

/* Override min-width/height for social/favicon if they were to appear in content, though they shouldn't */
/* This is a safeguard, as social/favicon are typically handled by shared.css or excluded from main content */
.page-news img[alt*="social"],
.page-news img[alt*="favicon"] {
  min-width: unset;
  min-height: unset;
}

/* Specific override for any potential small icons that might accidentally be generated in content, though disallowed */
.page-news .page-news__icon {
  min-width: unset;
  min-height: unset;
  width: 48px; /* Example small size, but these should not be generated */
  height: 48px; /* Example small size, but these should not be generated */
}