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

.page-news {
  font-family: Arial, sans-serif;
  color: var(--text-main-color); /* Main text color for dark body background */
  background-color: var(--background-color); /* Body background color */
}

.page-news__section {
  padding: 60px 20px;
  position: relative;
}

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

.page-news__container--center {
  text-align: center;
}

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

.page-news__section-title--light {
  color: var(--text-main-color);
}

.page-news__description {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text-secondary-color);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-news__description--light {
  color: var(--text-main-color);
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding as per requirements */
  padding-bottom: 60px;
  overflow: hidden;
  min-height: 500px;
}

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

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

.page-news__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  text-align: center;
  max-width: 900px;
  margin-top: -100px; /* Pull content up slightly, but NOT over image */
  background-color: rgba(17, 39, 27, 0.85); /* Card BG with transparency */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* H1 font size with clamp */
  color: var(--gold-color);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-news__cta-button {
  display: inline-block;
  background: var(--button-gradient);
  color: var(--text-main-color);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

.page-news__cta-button--large {
  padding: 18px 35px;
  font-size: 1.2em;
}

/* Introduction Section */
.page-news__introduction-section p {
  margin-bottom: 20px;
  color: var(--text-secondary-color);
  text-align: justify;
}

.page-news__introduction-section p strong {
  color: var(--text-main-color);
}

/* Featured News Section */
.page-news__dark-section {
  background-color: var(--card-bg);
  color: var(--text-main-color);
}

.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(--background-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 10px var(--glow-color);
}

.page-news__card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistent card visuals */
  object-fit: cover;
  display: block;
}

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

.page-news__card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--gold-color);
}

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

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

.page-news__card-excerpt {
  font-size: 0.95em;
  color: var(--text-secondary-color);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__card-date {
  font-size: 0.85em;
  color: var(--text-secondary-color);
  margin-top: auto;
  margin-bottom: 15px;
  display: block;
}

.page-news__read-more {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: var(--glow-color);
  text-decoration: underline;
}

/* Latest Updates Section */
.page-news__update-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-news__update-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-news__update-item:hover {
  transform: translateX(10px);
}

.page-news__update-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: var(--text-main-color);
}

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

.page-news__update-title a:hover {
  color: var(--gold-color);
}

.page-news__update-summary {
  font-size: 0.95em;
  color: var(--text-secondary-color);
  margin-bottom: 10px;
}

.page-news__update-date {
  font-size: 0.8em;
  color: var(--text-secondary-color);
  display: block;
}

/* Categories Section */
.page-news__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-news__category-card {
  background-color: var(--background-color);
  color: var(--text-main-color);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-news__category-card:hover {
  background-color: var(--deep-green-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 8px var(--glow-color);
}

/* Benefits Section */
.page-news__benefits-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-news__benefits-text {
  flex: 1 1 55%;
}

.page-news__benefits-text p {
  margin-bottom: 20px;
  color: var(--text-secondary-color);
  text-align: justify;
}

.page-news__benefits-text p strong {
  color: var(--text-main-color);
}

.page-news__benefits-list {
  list-style: none;
  padding: 0;
  margin-left: 20px;
}

.page-news__benefits-list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 25px;
  color: var(--text-secondary-color);
}

.page-news__benefits-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold-color);
  font-weight: bold;
}

.page-news__benefits-list li strong {
  color: var(--text-main-color);
}

.page-news__benefits-image-wrapper {
  flex: 1 1 35%;
  text-align: center;
}

.page-news__benefits-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

/* FAQ Section */
.page-news__faq-list {
  margin-top: 40px;
}

.page-news__faq-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main-color);
}

.page-news__faq-item summary {
  list-style: none;
}

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

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

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

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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: 0.95em;
  line-height: 1.6;
  color: var(--text-secondary-color);
}

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

  .page-news__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }

  .page-news__benefits-content {
    flex-direction: column;
    text-align: center;
  }

  .page-news__benefits-text, .page-news__benefits-image-wrapper {
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .page-news__section {
    padding: 40px 15px;
  }

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

  .page-news__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }

  .page-news__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }

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

  .page-news__description {
    font-size: 1em;
  }

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

  .page-news__update-item {
    padding: 20px 15px;
  }

  .page-news__update-title {
    font-size: 1.2em;
  }

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

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

  /* Force responsive images, videos, and buttons */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news video,
  .page-news__video {
    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__hero-content,
  .page-news__hero-image-wrapper,
  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper,
  .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;
    overflow: hidden !important;
  }

  .page-news__hero-section {
    padding-top: 10px !important; /* Ensure small padding */
  }

  .page-news__cta-button,
  .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;
    margin-bottom: 10px; /* Add spacing for stacked buttons */
  }

  .page-news__cta-buttons,
  .page-news__button-group {
    flex-direction: column;
    gap: 10px;
  }

  .page-news__benefits-list {
    margin-left: 0;
    padding-left: 15px;
  }
}