/* style/news.css */

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

/* Base styles for the page content */
.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--color-text-main); /* Main text color for dark body background */
  background-color: var(--color-background); /* Body background from shared.css */
}

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

.page-news__section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.page-news__section-title {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--color-text-main);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-news__section-description {
  font-size: 18px;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-news__btn-primary {
  background: var(--gradient-button);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-news__btn-secondary:hover {
  background-color: rgba(17, 168, 78, 0.1);
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

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

.page-news__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-news__hero-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-news__main-title {
  font-size: clamp(36px, 5vw, 64px);
  color: var(--color-gold);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.page-news__subtitle {
  font-size: 22px;
  color: var(--color-text-main);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Latest Articles Section */
.page-news__latest-articles {
  background-color: var(--color-background);
}

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

.page-news__article-card {
  background-color: var(--color-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-news__article-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

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

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

.page-news__article-title {
  font-size: 22px;
  color: var(--color-text-main);
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-meta {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 15px;
}

.page-news__article-excerpt {
  font-size: 16px;
  color: var(--color-text-secondary);
}

.page-news__view-all-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Video Highlights Section */
.page-news__video-highlights {
  background-color: var(--color-deep-green);
}

.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: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  margin-top: 40px;
  width: 100%; /* Desktop width */
}

.page-news__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.page-news__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.page-news__video-wrapper:hover .page-news__video-overlay {
  opacity: 1;
}

/* FAQ Section */
.page-news__faq-section {
  background-color: var(--color-background);
}

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

.page-news__faq-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.page-news__faq-item details > summary::-webkit-details-marker {
  display: none; /* Hide default marker for details tag */
}

.page-news__faq-item details > summary {
  list-style: none; /* Hide default marker for details tag */
}

.page-news__faq-question:hover {
  background-color: rgba(var(--color-primary), 0.1);
}

.page-news__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--color-primary);
}

.page-news__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* CTA Banner Section */
.page-news__cta-banner {
  background-color: var(--color-primary);
  text-align: center;
  padding: 60px 20px;
}

.page-news__cta-title {
  font-size: clamp(28px, 4vw, 42px);
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-news__cta-description {
  font-size: 18px;
  color: #f0f0f0;
  max-width: 700px;
  margin: 0 auto 30px auto;
}

.page-news__btn-large {
  padding: 16px 35px;
  font-size: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__section {
    padding: 60px 0;
  }
  .page-news__section-title {
    font-size: clamp(26px, 4vw, 40px);
  }
  .page-news__hero-section {
    min-height: 60vh;
  }
  .page-news__main-title {
    font-size: clamp(32px, 5vw, 56px);
  }
  .page-news__subtitle {
    font-size: 20px;
  }
  .page-news__article-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-news__section {
    padding: 40px 0;
  }
  .page-news__section-description {
    margin-bottom: 30px;
  }
  .page-news__hero-section {
    min-height: 50vh;
    padding-bottom: 40px;
  }
  .page-news__main-title {
    font-size: clamp(28px, 6vw, 48px);
  }
  .page-news__subtitle {
    font-size: 18px;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .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-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;
  }

  .page-news__article-card {
    margin-bottom: 20px;
  }
  .page-news__article-image {
    height: 180px;
  }
  .page-news__article-title {
    font-size: 18px;
  }
  .page-news__article-excerpt {
    font-size: 15px;
  }

  /* Mobile image responsiveness */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* 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;
  }
  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-news__faq-question {
    font-size: 18px;
    padding: 15px 20px;
  }
  .page-news__faq-answer {
    padding: 0 20px 15px 20px;
  }
  .page-news__cta-banner {
    padding: 40px 15px;
  }
  .page-news__btn-large {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .page-news__section-title {
    font-size: clamp(24px, 5vw, 36px);
  }
  .page-news__main-title {
    font-size: clamp(24px, 7vw, 40px);
  }
  .page-news__subtitle {
    font-size: 16px;
  }
  .page-news__cta-buttons {
    flex-direction: column;
  }
  .page-news__article-image {
    height: 150px;
  }
  .page-news__article-title {
    font-size: 16px;
  }
  .page-news__faq-question {
    font-size: 16px;
  }
  .page-news__faq-toggle {
    font-size: 20px;
  }
  .page-news__faq-answer {
    font-size: 14px;
  }
}