/* style/news.css */

/* Base styles for the page */
.page-news {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-news__dark-bg {
  background-color: #CC0000; /* Brand red */
  color: #ffffff;
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3;
}

.page-news__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for prominence */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-news__intro-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-news__cta-buttons--center {
  margin-top: 40px;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background-color: #FFD700;
  color: #CC0000; /* Red text on gold button */
  border: 2px solid #FFD700;
}

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

.page-news__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-news__btn-secondary:hover {
  background-color: #FFD700;
  color: #CC0000;
}

/* Section common styles */
.page-news__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section */
}

.page-news__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

/* Articles Section */
.page-news__articles-section {
  padding: 60px 0;
}

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

.page-news__article-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #333333; /* Dark text on light card background */
}

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

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

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

.page-news__article-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #CC0000; /* Red for article titles */
}

.page-news__article-title a {
  color: #CC0000;
  text-decoration: none;
}

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

.page-news__article-summary {
  font-size: 0.95em;
  margin-bottom: 15px;
}

.page-news__read-more {
  color: #FFD700; /* Gold for read more links */
  text-decoration: none;
  font-weight: bold;
}

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

/* Video Section */
.page-news__video-section {
  padding: 60px 0;
  text-align: center;
  position: relative;
  background-color: #1a1a1a; /* Darker background for video */
}

.page-news__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  transform: translateY(0); /* Ensure initial state is not transformed */
  transition: transform 0.3s ease-out;
  cursor: pointer;
}

.page-news__video-wrapper:hover {
  transform: translateY(-5px);
}

.page-news__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.page-news__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Subtle overlay for clickability */
  z-index: 1;
  pointer-events: none; /* Allow click to pass through to video/link */
}

/* Tips Section */
.page-news__tips-section {
  padding: 60px 0;
}

.page-news__tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-news__tips-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-news__tips-title {
  font-size: 1.5em;
  color: #CC0000;
  margin-bottom: 15px;
}

.page-news__tips-text {
  font-size: 1em;
}

/* Why Choose Us Section */
.page-news__why-choose-us {
  padding: 60px 0;
  background-color: #CC0000;
}

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

.page-news__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__feature-icon {
  width: 80px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-news__feature-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #FFD700;
}

.page-news__feature-text {
  font-size: 1em;
}

/* Community Section */
.page-news__community-section {
  padding: 60px 0;
}

.page-news__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.page-news__text-block {
  flex: 1;
  min-width: 300px;
  color: #333333;
}

.page-news__sub-title {
  font-size: 1.8em;
  color: #CC0000;
  margin-bottom: 15px;
  margin-top: 25px;
}

.page-news__paragraph {
  margin-bottom: 15px;
}

.page-news__side-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: #1a1a1a;
}

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

.page-news__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.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: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

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

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

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

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

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

.page-news__cta-content {
  background-color: #ffffff;
  padding: 50px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  color: #333333;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 3em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__intro-text {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .page-news__main-title {
    font-size: 2.2em;
  }
  .page-news__intro-text {
    font-size: 1em;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__section-description {
    font-size: 0.95em;
  }
  .page-news__article-grid,
  .page-news__tips-list,
  .page-news__feature-grid {
    grid-template-columns: 1fr;
  }
  .page-news__article-card, .page-news__tips-item, .page-news__feature-card, .page-news__faq-item {
    margin-left: 15px;
    margin-right: 15px;
  }
  .page-news__video-wrapper {
    margin-left: 15px;
    margin-right: 15px;
  }
  .page-news__community-section .page-news__content-wrapper {
    flex-direction: column;
  }
  .page-news__side-image {
    width: 100%;
    max-width: 100%;
  }
  .page-news__faq-question {
    font-size: 1.1em;
  }
  .page-news__faq-answer {
    padding: 0 15px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px;
  }
  /* Mobile image responsiveness */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__articles-section,
  .page-news__video-section,
  .page-news__tips-section,
  .page-news__why-choose-us,
  .page-news__community-section,
  .page-news__faq-section,
  .page-news__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__video-wrapper,
  .page-news__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-news__cta-content {
    padding: 30px 20px;
  }
  .page-news__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 1.8em;
  }
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    font-size: 0.9em;
  }
}