/* style/news.css */

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

/* Base styles for page-news content to ensure contrast with dark body background */
.page-news {
  color: var(--page-news-text-main); /* Light text for dark background */
  background-color: var(--page-news-bg-dark);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-news__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--page-news-gold);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__section-subtitle {
  font-size: 1.1em;
  color: var(--page-news-text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 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;
  background-color: var(--page-news-bg-dark);
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 70vh; /* Limit height to prevent excessive vertical space */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-news__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-news__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 700;
  color: var(--page-news-gold);
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: var(--page-news-btn-gradient);
  color: #ffffff; /* White text for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-news__btn-secondary:hover {
  background: var(--page-news-primary);
  color: #ffffff;
}

/* Latest News Section */
.page-news__latest-news {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for this section */
  color: #333333; /* Dark text for light background */
}

.page-news__latest-news .page-news__section-title,
.page-news__latest-news .page-news__section-subtitle {
  color: #333333;
}

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

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

.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-news__card-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

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

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

.page-news__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

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

.page-news__card-meta {
  font-size: 0.9em;
  color: var(--page-news-text-secondary);
  margin-bottom: 15px;
}

.page-news__card-excerpt {
  font-size: 1em;
  color: var(--page-news-text-main);
  margin-bottom: 20px;
}

.page-news__read-more-btn {
  display: inline-block;
  background: var(--page-news-primary);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-news__read-more-btn:hover {
  background-color: var(--page-news-secondary);
}

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

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

.page-news__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-news__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--page-news-card-bg);
  padding: 30px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--page-news-text-main);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid var(--page-news-border);
}

.page-news__category-card:hover {
  transform: translateY(-5px);
  background-color: var(--page-news-deep-green);
}

.page-news__category-icon {
  font-size: 3em;
  margin-bottom: 15px;
}

.page-news__category-title {
  font-size: 1.3em;
  font-weight: bold;
  color: var(--page-news-gold);
  margin-bottom: 10px;
}

.page-news__category-description {
  font-size: 0.95em;
  color: var(--page-news-text-secondary);
}

/* Featured Video Section */
.page-news__featured-video {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-news__featured-video .page-news__section-title,
.page-news__featured-video .page-news__section-subtitle {
  color: #333333;
}

.page-news__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Max width for video container */
  margin: 40px auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.page-news__video-cta {
  text-align: center;
  margin-top: 30px;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: var(--page-news-bg-dark);
}

.page-news__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  color: var(--page-news-gold);
  background-color: var(--page-news-deep-green);
  border-bottom: 1px solid var(--page-news-divider);
}

.page-news__faq-question:hover {
  opacity: 0.9;
}

.page-news__faq-item[open] .page-news__faq-question {
  border-bottom: 1px solid var(--page-news-border);
}

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

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

.page-news__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--page-news-text-secondary);
}

/* Details element specific styling */
.page-news__faq-item summary {
  list-style: none; /* Hide default marker */
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

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

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

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

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

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

  .page-news__hero-section {
    padding-bottom: 40px;
  }

  .page-news__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-news__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-news__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px; /* Ensure buttons have side padding */
  }

  .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__latest-news,
  .page-news__categories,
  .page-news__featured-video,
  .page-news__faq-section {
    padding: 50px 0;
  }

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

  .page-news__section-subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-news__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .page-news__category-card {
    padding: 20px;
  }

  .page-news__category-icon {
    font-size: 2.5em;
  }

  .page-news__video-wrapper {
    margin: 30px auto;
    padding-bottom: 56.25%; /* Maintain aspect ratio */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-news__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile image and container responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-section,
  .page-news__latest-news,
  .page-news__categories,
  .page-news__featured-video,
  .page-news__faq-section {
    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;
  }

  .page-news__video-container,
  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}