/* style/news.css */

/* Custom Colors */
:root {
  --page-news-bg-color: #08160F;
  --page-news-card-bg: #11271B;
  --page-news-text-main: #F2FFF6;
  --page-news-text-secondary: #A7D9B8;
  --page-news-border-color: #2E7A4E;
  --page-news-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-news-glow: #57E38D;
  --page-news-gold: #F2C14E;
  --page-news-divider: #1E3A2A;
  --page-news-deep-green: #0A4B2C;
}

.page-news {
  background-color: var(--page-news-bg-color);
  color: var(--page-news-text-main);
  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__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--page-news-text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-news__text-block {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--page-news-text-secondary);
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  text-align: center;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly dim the image for text readability */
}

.page-news__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 900px;
  z-index: 1;
  color: var(--page-news-text-main);
  padding: 20px;
  box-sizing: border-box;
}

.page-news__main-title {
  font-size: clamp(36px, 5vw, 60px); /* Use clamp for H1 */
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--page-news-text-main);
}

.page-news__description {
  font-size: clamp(18px, 2.5vw, 24px);
  margin-bottom: 30px;
  color: var(--page-news-text-secondary);
}

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

.page-news__btn-primary {
  background: var(--page-news-btn-gradient);
  color: var(--page-news-text-main);
  border: none;
  margin-right: 15px;
}

.page-news__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-news__btn-secondary:hover {
  background-color: var(--page-news-glow);
  color: var(--page-news-bg-color);
  transform: translateY(-2px);
}

/* Overview Section */
.page-news__overview-section {
  padding: 60px 0;
  background-color: var(--page-news-bg-color);
}

/* Categories Section */
.page-news__categories-section {
  padding: 60px 0;
  background-color: var(--page-news-bg-color);
}

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

.page-news__card {
  background-color: var(--page-news-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--page-news-border-color);
}

.page-news__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-news__card-title {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.3;
}

.page-news__card-title a {
  color: var(--page-news-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: var(--page-news-glow);
}

.page-news__card-text {
  font-size: 16px;
  color: var(--page-news-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Why Follow Section */
.page-news__why-follow-section {
  padding: 60px 0;
  background-color: var(--page-news-deep-green);
  text-align: center;
}

.page-news__why-follow-section .page-news__section-title {
  color: var(--page-news-text-main);
}

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

.page-news__list-item {
  background-color: var(--page-news-card-bg);
  border-radius: 10px;
  padding: 25px;
  color: var(--page-news-text-secondary);
  font-size: 17px;
  line-height: 1.6;
  border: 1px solid var(--page-news-border-color);
}

.page-news__list-item strong {
  color: var(--page-news-text-main);
  font-size: 18px;
  display: block;
  margin-bottom: 8px;
}

/* Access Guide Section */
.page-news__access-guide-section {
  padding: 60px 0;
  background-color: var(--page-news-bg-color);
  text-align: center;
}

.page-news__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: var(--page-news-deep-green);
}

.page-news__faq-item {
  background-color: var(--page-news-card-bg);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid var(--page-news-border-color);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: var(--page-news-text-main);
  font-size: 20px;
  font-weight: bold;
  background-color: var(--page-news-card-bg);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-news__faq-question::-webkit-details-marker {
  display: none;
}

.page-news__faq-question:hover {
  background-color: var(--page-news-divider);
}

.page-news__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Ensure click on summary toggles details */
}

.page-news__faq-toggle {
  font-size: 28px;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-news-glow);
  pointer-events: none; /* Ensure click on summary toggles details */
}

.page-news__faq-answer {
  padding: 0 25px 20px;
  color: var(--page-news-text-secondary);
  font-size: 16px;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-news__faq-item[open] .page-news__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding-top: 10px;
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  background-color: var(--page-news-deep-green);
  text-align: center;
}

.page-news__cta-section .page-news__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-news__cta-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-news__cta-content {
  max-width: 800px;
}

.page-news__cta-title {
  font-size: clamp(32px, 4vw, 48px);
  color: var(--page-news-text-main);
  margin-bottom: 25px;
  font-weight: bold;
  line-height: 1.2;
}

.page-news__cta-text {
  font-size: 18px;
  color: var(--page-news-text-secondary);
  margin-bottom: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-content {
    padding: 15px;
  }

  .page-news__main-title {
    font-size: clamp(32px, 4.5vw, 50px);
  }

  .page-news__description {
    font-size: clamp(16px, 2.2vw, 20px);
  }
}

@media (max-width: 768px) {
  .page-news__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-news__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-news__hero-content {
    position: static;
    transform: none;
    padding: 30px 15px;
    background-color: rgba(0, 0, 0, 0.6); /* Add background for readability on small screens */
    width: 100%;
    box-sizing: border-box;
  }

  .page-news__hero-image-wrapper {
    max-height: 400px;
  }

  .page-news__hero-image {
    filter: brightness(0.4); /* Make image darker when text is not overlaying */
  }

  .page-news__main-title {
    font-size: clamp(28px, 7vw, 40px);
  }

  .page-news__description {
    font-size: clamp(15px, 4vw, 18px);
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 15px;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-news__button-group {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .page-news__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 30px;
  }

  .page-news__text-block {
    font-size: 16px;
  }

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

  .page-news__card-title {
    font-size: 20px;
  }

  .page-news__card-text {
    font-size: 15px;
  }

  .page-news__feature-list {
    grid-template-columns: 1fr;
  }

  .page-news__list-item {
    font-size: 16px;
  }

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

  .page-news__faq-answer {
    font-size: 15px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-news__cta-section {
    padding: 60px 0;
  }

  .page-news__cta-title {
    font-size: clamp(28px, 7vw, 36px);
  }

  .page-news__cta-text {
    font-size: 16px;
  }

  /* Ensure all images are responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all video elements are responsive */
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video containers for responsive behavior */
  .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;
  }
  .page-news__video-section {
    padding-top: 10px !important;
  }

  /* Button containers for responsive behavior */
  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}