/* style/news.css */
/* Body background color is #08160F (dark), so main text color should be #F2FFF6 (light) */

.page-news {
  background-color: #08160F;
  color: #F2FFF6; /* Text Main */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: #08160F;
  overflow: hidden;
}

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

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

.page-news__hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.page-news__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

/* Section Titles */
.page-news__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
}

.page-news__text-block {
  font-size: 1rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  text-align: justify;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

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

.page-news__btn-secondary {
  background: transparent;
  color: #2AD16F; /* A lighter green from the gradient */
  border: 2px solid #2AD16F;
}

.page-news__btn-secondary:hover {
  background: rgba(42, 209, 111, 0.1);
  transform: translateY(-2px);
}

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

/* Article Cards */
.page-news__latest-articles-section {
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-news__article-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__article-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

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

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

.page-news__article-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-news__article-meta {
  font-size: 0.9rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-news__article-excerpt {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
}

/* Video Section */
.page-news__video-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background-color: #08160F;
}

.page-news__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 0 auto 30px auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

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

/* Categories Section */
.page-news__categories-section {
  background-color: #11271B; /* Card BG */
}

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

.page-news__category-card {
  background-color: #0A4B2C;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

.page-news__category-card:hover {
  transform: translateY(-5px);
  background-color: #0A4B2C;
}

.page-news__category-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-news__category-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
}

.page-news__category-title a:hover {
  color: #57E38D; /* Glow */
  text-decoration: underline;
}

.page-news__category-description {
  font-size: 0.95rem;
  color: #A7D9B8; /* Text Secondary */
}

/* FAQ Section */
.page-news__faq-section {
  background-color: #08160F;
}

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

.page-news__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #2E7A4E; /* Border */
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  background-color: #0A4B2C; /* Deep Green */
  transition: background-color 0.3s ease;
}

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

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

.page-news__faq-question:hover {
  background-color: #13994A;
}

.page-news__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #57E38D; /* Glow */
}

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

.page-news__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
}

.page-news__faq-answer p {
  margin-bottom: 10px;
}

.page-news__faq-answer p:last-child {
  margin-bottom: 0;
}

/* CTA Banner Section */
.page-news__cta-banner-section {
  background-color: #0A4B2C; /* Deep Green */
  padding: 80px 0;
}

.page-news__cta-banner-section .page-news__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-news__cta-content {
  flex: 1;
  text-align: left;
}

.page-news__cta-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-news__cta-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-news__cta-image {
  flex-shrink: 0;
  max-width: 40%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-news__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
  .page-news__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-news__cta-banner-section .page-news__container {
    flex-direction: column;
    text-align: center;
  }
  .page-news__cta-content {
    text-align: center;
  }
  .page-news__cta-image {
    max-width: 70%;
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__section {
    padding: 40px 0;
  }
  .page-news__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-news__hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-news__hero-description {
    font-size: 1rem;
  }
  .page-news__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 30px;
  }
  .page-news__text-block {
    font-size: 0.95rem;
  }
  
  /* Images responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__hero-image-wrapper,
  .page-news__article-image,
  .page-news__cta-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Video responsiveness */
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-news__video-section {
    padding-top: 10px !important;
  }

  /* Buttons responsiveness */
  .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__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;
    flex-direction: column !important;
    gap: 15px;
  }

  .page-news__article-card {
    padding: 0;
  }
  .page-news__article-content {
    padding: 20px;
  }
  .page-news__article-title {
    font-size: 1.15rem;
  }
  .page-news__category-card {
    padding: 20px;
  }
  .page-news__category-title {
    font-size: 1.1rem;
  }
  .page-news__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-news__faq-answer {
    padding: 15px 20px;
  }
  .page-news__cta-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }
  .page-news__cta-description {
    font-size: 0.95rem;
  }
  .page-news__cta-image {
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .page-news__section-title {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }
  .page-news__cta-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }
  .page-news__article-image {
    height: 180px;
  }
  .page-news__article-title {
    font-size: 1.05rem;
  }
  .page-news__faq-question {
    font-size: 0.95rem;
  }
}