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

.page-news {
  color: var(--text-main-color); /* Default text color for the page */
  background-color: var(--bg-color);
  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 {
  padding: 60px 0;
  text-align: center;
}

.page-news__dark-section {
  background-color: var(--deep-green-color);
  color: var(--text-main-color);
}

.page-news__dark-bg {
  background-color: var(--bg-color);
  color: var(--text-main-color);
}

.page-news__section-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-main-color);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-news__section-description {
  font-size: 1.1em;
  color: var(--text-secondary-color);
  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;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding */
  overflow: hidden;
  background-color: var(--deep-green-color); /* Fallback */
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  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 {
  max-width: 900px;
  padding: 0 20px;
  text-align: center;
  z-index: 1;
}

.page-news__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.3);
}

.page-news__hero-description {
  font-size: 1.2em;
  color: var(--text-main-color);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1.1em;
  border: 2px solid transparent;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: var(--btn-gradient);
  color: var(--text-main-color);
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-news__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-news__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
  margin-left: 15px;
}

.page-news__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-main-color);
}

/* Card Styles */
.page-news__card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main-color);
}

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

.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(--gold-color);
  text-decoration: none;
}

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

/* Latest News Section */
.page-news__latest-news {
  background-color: var(--bg-color);
}

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

.page-news__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

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

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

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

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

.page-news__view-all-button {
  margin-top: 40px;
}

/* In-depth Analysis Section */
.page-news__in-depth-analysis {
  background-color: var(--deep-green-color);
}

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

.page-news__feature-item {
  padding: 30px;
}

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

.page-news__feature-title {
  font-size: 1.5em;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-news__feature-text {
  color: var(--text-main-color);
  font-size: 1em;
}

.page-news__cta-block {
  margin-top: 40px;
}

.page-news__cta-block .page-news__text-main {
  font-size: 1.2em;
  margin-bottom: 20px;
  display: block;
}

.page-news__text-underline {
  text-decoration: underline;
  color: var(--gold-color);
}

.page-news__text-underline:hover {
  color: var(--secondary-color);
}

/* Promotions & Events Section */
.page-news__promotions-events {
  background-color: var(--bg-color);
}

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

.page-news__promotion-image {
  width: 100%;
  height: 225px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-news__promotion-date {
  font-size: 0.9em;
  color: var(--text-secondary-color);
  margin-bottom: 10px;
}

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

/* Security Section */
.page-news__security {
  background-color: var(--deep-green-color);
}

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

.page-news__security-item {
  padding: 25px;
  background-color: var(--card-bg-color);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-news__security-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-news__security-text {
  color: var(--text-main-color);
  font-size: 1em;
}

/* Download Guide Section */
.page-news__download-guide {
  background-color: var(--bg-color);
}

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

.page-news__step-item {
  padding: 30px;
}

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

.page-news__step-title {
  font-size: 1.5em;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-news__step-list {
  list-style-type: decimal;
  padding-left: 20px;
  margin-bottom: 25px;
  text-align: left;
  color: var(--text-main-color);
}

.page-news__step-list li {
  margin-bottom: 8px;
  font-size: 1em;
}

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

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

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  color: var(--gold-color);
  list-style: none; /* For details/summary */
}

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

.page-news__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

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

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

/* Conclusion CTA Section */
.page-news__conclusion-cta {
  background-color: var(--bg-color);
}

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

@media (max-width: 768px) {
  .page-news__section {
    padding: 40px 0;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .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);
    padding: 0 15px;
  }
  .page-news__hero-description {
    font-size: 1em;
    padding: 0 15px;
  }
  .page-news__articles-grid,
  .page-news__feature-grid,
  .page-news__promotions-grid,
  .page-news__security-grid,
  .page-news__download-steps {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  .page-news__card {
    padding: 20px;
  }
  .page-news__article-image,
  .page-news__promotion-image,
  .page-news__feature-image,
  .page-news__step-image {
    height: 180px; /* Adjust height for mobile */
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !important; /* Stack buttons vertically */
    padding: 12px 20px !important;
    font-size: 1em !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-news__cta-block .page-news__btn-primary,
  .page-news__cta-block .page-news__btn-secondary {
    display: block;
  }

  /* Mobile image and video specific rules */
  .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__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 !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }
  .page-news__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  .page-news__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-news__faq-answer {
    padding: 0 20px 15px;
  }
  .page-news__security-icon {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .page-news__section-title {
    font-size: 1.6em;
  }
  .page-news__main-title {
    font-size: clamp(1.6em, 8vw, 2.2em);
  }
  .page-news__hero-description {
    font-size: 0.95em;
  }
  .page-news__card-title {
    font-size: 1.2em;
  }
  .page-news__feature-title,
  .page-news__step-title {
    font-size: 1.3em;
  }
}