/* style/news.css */

/* Base Styles */
.page-news {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Light text for dark body background */
  line-height: 1.6;
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold 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;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background-color: #C80000; /* Main brand red */
  color: #ffffff;
  border: 2px solid #C80000;
}

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

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

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

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

.page-news__read-more {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  min-height: 550px; /* Adjusted for content */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  background-color: #0a0a0a; /* Fallback */
}

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

.page-news__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for readability */
  border-radius: 10px;
}

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

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

.page-news__hero-button {
  font-size: 1.2em;
  padding: 15px 35px;
}

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

.page-news__dark-section {
  background-color: #0d0d0d; /* Slightly lighter dark for contrast with body */
  color: #ffffff;
}

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

.page-news__article-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent light */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  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.3);
}

.page-news__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-news__article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__article-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

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

.page-news__article-excerpt {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 15px;
  flex-grow: 1;
}

/* Featured Video Section */
.page-news__featured-video {
  padding: 80px 0;
  text-align: center;
  background-color: #1a1a1a;
}

.page-news__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 0 auto 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  max-width: 900px;
}

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

.page-news__video-cta {
  font-size: 1.1em;
  padding: 14px 30px;
}

/* Guides & Tips Section */
.page-news__guides-tips {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-news__guide-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-news__guide-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-news__guide-title {
  font-size: 1.3em;
  color: #FFD700;
  margin: 15px 20px 10px 20px;
  line-height: 1.3;
}

.page-news__guide-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-news__guide-excerpt {
  font-size: 0.9em;
  color: #cccccc;
  margin: 0 20px 15px 20px;
  flex-grow: 1;
}

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

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

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #C80000; /* Red for question header */
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

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

.page-news__faq-title {
  margin: 0;
  font-size: 1.1em;
  color: #ffffff;
}

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

.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;
  background-color: rgba(255, 255, 255, 0.05);
  color: #cccccc;
}

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

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

/* Contact CTA Section */
.page-news__contact-cta {
  padding: 80px 0;
  text-align: center;
  background-color: #1a1a1a;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 3em;
  }
  .page-news__hero-description {
    font-size: 1.1em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__article-title {
    font-size: 1.3em;
  }
  .page-news__guide-title {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    min-height: 450px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-news__hero-content {
    padding: 30px 15px;
  }
  .page-news__hero-title {
    font-size: 2.5em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }

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

  .page-news__article-grid,
  .page-news__guide-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Images responsiveness */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__article-card,
  .page-news__guide-card,
  .page-news__hero-section,
  .page-news__latest-articles,
  .page-news__featured-video,
  .page-news__guides-tips,
  .page-news__faq-section,
  .page-news__contact-cta,
  .page-news__container,
  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-news__video-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Video responsiveness */
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-news__faq-answer {
    padding: 15px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px !important;
  }

  .page-news__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video section has correct top padding on mobile */
  }
}