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

.page-news {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--background-color-page);
  line-height: 1.6;
}

.page-news__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

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

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

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

/* HERO Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, header offset handled by body */
  background-color: var(--deep-green);
}

.page-news__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-news__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-news__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-news__main-title {
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 15px;
  line-height: 1.2;
  /* No fixed font-size, rely on clamp if needed, otherwise font-weight/line-height */
}

.page-news__intro-text {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: var(--text-main);
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
}

.page-news__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

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

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

.page-news__article-card {
  background-color: var(--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;
  border: 1px solid var(--border-color);
}

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

.page-news__article-image {
  width: 100%;
  height: 225px;
  overflow: hidden;
}

.page-news__article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.page-news__article-card:hover .page-news__article-image img {
  transform: scale(1.05);
}

.page-news__article-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 225px); /* Adjust based on image height */
}

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

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

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

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

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

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

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

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

.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-news__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--card-bg);
  box-shadow: 0 4px 15px rgba(var(--gold-color), 0.3);
}

/* Featured Topics Section */
.page-news__featured-topics {
  background-color: var(--deep-green);
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-news__featured-topics .page-news__section-title {
  color: var(--gold-color);
}

.page-news__featured-topics .page-news__section-description {
  color: var(--text-secondary);
}

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

.page-news__topic-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__topic-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

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

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

/* CTA Section */
.page-news__cta-section {
  background: var(--button-gradient);
  padding: 80px 0;
  text-align: center;
}

.page-news__cta-box {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--gold-color);
}

.page-news__cta-section .page-news__section-title {
  color: var(--gold-color);
  margin-bottom: 25px;
}

.page-news__cta-section .page-news__section-description {
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 18px;
}

.page-news__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: none;
  display: inline-block;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-news__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

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

.page-news__faq-list {
  margin-top: 40px;
}

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

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

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

details.page-news__faq-item summary.page-news__faq-question:hover {
  background: var(--deep-green);
}

.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
}

.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--glow-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-news__faq-item .page-news__faq-answer {
  padding: 0 25px 25px;
  background: var(--deep-green);
  border-radius: 0 0 10px 10px;
  color: var(--text-secondary);
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__section-title {
    font-size: 32px;
  }
  .page-news__intro-text, .page-news__section-description {
    font-size: 17px;
  }
  .page-news__article-title {
    font-size: 20px;
  }
  .page-news__topic-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__hero-image img {
    border-radius: 4px;
  }
  .page-news__main-title {
    font-size: 28px;
  }
  .page-news__intro-text {
    font-size: 16px;
  }
  .page-news__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__section {
    padding: 40px 0;
  }
  .page-news__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__section-title {
    font-size: 28px;
  }
  .page-news__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  .page-news__article-title {
    font-size: 18px;
  }
  .page-news__article-summary {
    font-size: 14px;
  }
  .page-news__read-more {
    font-size: 14px;
  }
  .page-news__btn-secondary {
    font-size: 14px;
    padding: 10px 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__topic-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__topic-card {
    padding: 25px;
  }
  .page-news__topic-title {
    font-size: 20px;
  }
  .page-news__topic-text {
    font-size: 14px;
  }

  .page-news__cta-box {
    padding: 30px;
    border-width: 1px;
  }
  .page-news__btn-primary {
    font-size: 16px;
    padding: 12px 30px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  details.page-news__faq-item summary.page-news__faq-question {
    padding: 15px 20px;
  }
  .page-news__faq-qtext {
    font-size: 16px;
  }
  .page-news__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-news__faq-item .page-news__faq-answer {
    padding: 0 20px 20px;
    font-size: 14px;
  }

  /* Ensure all images are responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 24px;
  }
  .page-news__section-title {
    font-size: 24px;
  }
  .page-news__article-image {
    height: 180px;
  }
  .page-news__article-content {
    padding: 20px;
  }
  .page-news__cta-box {
    padding: 25px;
  }
  .page-news__faq-qtext {
    font-size: 15px;
  }
}