/* style/news.css */

/* Base Styles */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--primary-color); /* Inherit from shared.css, should be dark */
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Accent color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-news__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #1A202C;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-news__hero-content {
  flex: 1;
  padding-right: 40px;
  text-align: left;
  z-index: 1;
}

.page-news__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700;
  line-height: 1.2;
}

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

.page-news__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 1;
}

.page-news__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-news__btn-primary {
  display: inline-block;
  background-color: #FFD700;
  color: #1A202C;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-news__btn-primary:hover {
  background-color: #e0b800;
  transform: translateY(-2px);
}

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-news__latest-articles .page-news__section-description {
  color: #555555;
}

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

.page-news__article-card {
  background-color: #f8f8f8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-news__article-card:hover {
  transform: translateY(-5px);
}

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

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

.page-news__article-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-news__article-title .page-news__article-link {
  color: #1A202C;
  text-decoration: none;
}

.page-news__article-title .page-news__article-link:hover {
  color: #FFD700;
}

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

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

.page-news__read-more {
  display: inline-block;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #1A202C;
}

/* Featured Articles Section */
.page-news__featured-articles {
  padding: 80px 0;
  background-color: #1A202C;
  color: #ffffff;
}

.page-news__featured-articles .page-news__section-description {
  color: #f0f0f0;
}

.page-news__featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-news__featured-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: row;
  transition: transform 0.3s ease;
}

.page-news__featured-card:hover {
  transform: translateY(-5px);
}

.page-news__featured-image {
  width: 50%;
  height: auto;
  object-fit: cover;
}

.page-news__featured-content {
  width: 50%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.page-news__featured-title .page-news__article-link {
  color: #FFD700;
  text-decoration: none;
}

.page-news__featured-title .page-news__article-link:hover {
  color: #ffffff;
}

.page-news__featured-meta {
  font-size: 0.9em;
  color: #aaaaaa;
  margin-bottom: 15px;
}

.page-news__featured-excerpt {
  font-size: 1.1em;
  color: #e0e0e0;
  margin-bottom: 20px;
}

/* Video Section */
.page-news__video-section {
  padding: 80px 0;
  background-color: #f0f0f0;
  color: #333333;
}

.page-news__video-section .page-news__section-description {
  color: #555555;
}

.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: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-news__video-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  z-index: 1;
}

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

/* Categories Section */
.page-news__categories {
  padding: 80px 0;
  background-color: #1A202C;
  color: #ffffff;
}

.page-news__categories .page-news__section-description {
  color: #f0f0f0;
}

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

.page-news__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-news__category-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.1);
}

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

.page-news__category-title {
  font-size: 1.3em;
  color: #FFD700;
  font-weight: bold;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-news__faq-section .page-news__section-description {
  color: #555555;
}

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

.page-news__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #f5f5f5;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #1A202C;
  transition: background-color 0.3s ease;
}

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

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

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

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px !important;
}

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

/* CTA Section */
.page-news__cta-section {
  padding: 60px 0;
  background-color: #1A202C;
  color: #ffffff;
  text-align: center;
}

.page-news__cta-section .page-news__section-title {
  color: #FFD700;
}

.page-news__cta-section .page-news__section-description {
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* Utility classes for color contrast */
.page-news__dark-section {
  background-color: #1A202C;
  color: #ffffff;
}

.page-news__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-news__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
  }

  .page-news__hero-content {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .page-news__hero-title {
    font-size: 2.8em;
  }

  .page-news__hero-description {
    font-size: 1.1em;
  }

  .page-news__featured-card {
    flex-direction: column;
  }

  .page-news__featured-image,
  .page-news__featured-content {
    width: 100%;
  }

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

  .page-news__featured-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news__section-title {
    font-size: 2em;
  }

  .page-news__section-description {
    font-size: 1em;
  }

  .page-news__hero-section {
    padding: 40px 15px !important;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-news__hero-title {
    font-size: 2.2em;
  }

  .page-news__hero-description {
    font-size: 1em;
  }

  .page-news__articles-grid,
  .page-news__featured-grid,
  .page-news__categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__latest-articles,
  .page-news__featured-articles,
  .page-news__video-section,
  .page-news__categories,
  .page-news__faq-section,
  .page-news__cta-section {
    padding: 40px 0;
  }

  .page-news__article-title,
  .page-news__featured-title {
    font-size: 1.2em;
  }

  .page-news__category-title {
    font-size: 1.1em;
  }

  .page-news__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  /* Mobile image responsiveness */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__hero-image-wrapper,
  .page-news__article-card,
  .page-news__featured-card,
  .page-news__category-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile video responsiveness */
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Mobile button responsiveness */
  .page-news__btn-primary,
  .page-news a[class*="button"],
  .page-news a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-news__cta-section .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-news__hero-content {
    padding: 0 15px;
  }

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