/* style/news.css */

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

.page-news {
  font-family: Arial, sans-serif;
  color: var(--ae99-text-main); /* Default text color for the page */
  background-color: var(--ae99-background); /* Body background handled by shared.css, this is for main content sections */
  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(--ae99-text-main);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  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 {
  position: relative; /* Ensure content is above image */
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.page-news__main-title {
  font-size: clamp(36px, 5vw, 56px);
  color: var(--ae99-gold);
  margin-bottom: 15px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-news__description {
  font-size: 20px;
  color: var(--ae99-text-main);
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-news__cta-button {
  display: inline-block;
  background: var(--ae99-button-gradient);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  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 20px var(--ae99-glow);
}

.page-news__articles-section {
  padding: 60px 0;
  background-color: var(--ae99-background);
}

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

.page-news__article-card {
  background-color: var(--ae99-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ae99-border);
}

.page-news__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 25px var(--ae99-glow);
}

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

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

.page-news__article-date {
  font-size: 14px;
  color: var(--ae99-text-secondary);
  margin-bottom: 10px;
  display: block;
}

.page-news__article-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.3;
  flex-grow: 1;
}

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

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

.page-news__article-summary {
  font-size: 16px;
  color: var(--ae99-text-secondary);
  margin-bottom: 20px;
}

.page-news__read-more {
  display: inline-block;
  color: var(--ae99-glow);
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

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

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

.page-news__view-all-button {
  display: inline-block;
  background: var(--ae99-main-color);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 17px;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-news__view-all-button:hover {
  background: var(--ae99-secondary-color);
  transform: translateY(-2px);
}

.page-news__in-depth-analysis-section {
  padding: 80px 0;
  background-color: var(--ae99-deep-green);
  color: var(--ae99-text-main);
}

.page-news__in-depth-analysis-section .page-news__section-title {
  color: var(--ae99-text-main);
}

.page-news__in-depth-analysis-section .page-news__section-description {
  color: var(--ae99-text-secondary);
}

.page-news__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-news__text-block {
  flex: 1;
  font-size: 18px;
  line-height: 1.7;
}

.page-news__text-block p {
  margin-bottom: 20px;
  color: var(--ae99-text-main);
}

.page-news__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-news__in-depth-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  display: block;
}

.page-news__promotions-callout {
  padding: 60px 0;
  text-align: center;
  background-color: var(--ae99-background);
}

.page-news__why-choose-us-section {
  padding: 80px 0;
  background-color: var(--ae99-card-bg);
}

.page-news__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-news__feature-item {
  background-color: var(--ae99-deep-green);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--ae99-border);
}

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

.page-news__feature-title {
  font-size: 24px;
  color: var(--ae99-text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-news__feature-description {
  font-size: 16px;
  color: var(--ae99-text-secondary);
  line-height: 1.6;
}

.page-news__faq-section {
  padding: 60px 0;
  background-color: var(--ae99-background);
}

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

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

.page-news__faq-item[open] {
  background-color: var(--ae99-deep-green);
}

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

.page-news__faq-question:hover {
  color: var(--ae99-glow);
}

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

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

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

.page-news__join-us-cta {
  padding: 80px 0;
  text-align: center;
  background-color: var(--ae99-deep-green);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__content-wrapper {
    flex-direction: column;
  }
  .page-news__image-block {
    order: -1; /* Image appears above text on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-bottom: 40px;
  }
  .page-news__main-title {
    font-size: clamp(30px, 8vw, 48px);
  }
  .page-news__description {
    font-size: 18px;
  }
  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-news__articles-section, .page-news__in-depth-analysis-section, .page-news__promotions-callout, .page-news__why-choose-us-section, .page-news__faq-section, .page-news__join-us-cta {
    padding: 40px 0;
  }
  .page-news__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }
  .page-news__section-description {
    font-size: 16px;
  }
  .page-news__articles-grid {
    grid-template-columns: 1fr;
  }
  .page-news__article-title {
    font-size: 20px;
  }
  .page-news__article-summary {
    font-size: 15px;
  }
  .page-news__feature-title {
    font-size: 20px;
  }
  .page-news__feature-description {
    font-size: 15px;
  }
  .page-news__faq-question {
    font-size: 17px;
    padding: 18px 20px;
  }
  .page-news__faq-answer {
    font-size: 15px;
    padding: 0 20px 18px;
  }

  /* Mobile responsive overrides with !important */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__hero-image-wrapper, .page-news__article-card, .page-news__feature-item, .page-news__in-depth-analysis-section, .page-news__promotions-callout, .page-news__why-choose-us-section, .page-news__faq-section, .page-news__join-us-cta, .page-news__cta-button, .page-news__view-all-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-news__cta-button, .page-news__view-all-button {
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}