/* style/news.css */

/* Base styles for the news page */
.page-news {
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  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;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* body handles padding-top from header, this is for visual spacing */
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  position: relative;
  margin-bottom: 40px; /* Space between image and content */
}

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

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

.page-news__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-news__description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-news__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  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(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

/* Reliability Section */
.page-news__reliability-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-news__btn-secondary {
  display: inline-block;
  background: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid #2E7A4E; /* Border */
  cursor: pointer;
  margin-top: 20px;
}

.page-news__btn-secondary:hover {
  background-color: #1E3A2A; /* Divider */
  border-color: #57E38D; /* Glow */
}

/* Featured News Section */
.page-news__featured-news-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

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

.page-news__news-card {
  background-color: #11271B; /* 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;
  display: flex;
  flex-direction: column;
}

.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

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

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

.page-news__card-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: #57E38D; /* Glow */
}

.page-news__card-date {
  font-size: 0.9rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
  display: block;
}

.page-news__card-excerpt {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

.page-news__card-link {
  display: inline-block;
  color: #57E38D; /* Glow */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-news__card-link:hover {
  text-decoration: underline;
  color: #F2C14E; /* Gold */
}

.page-news__view-all-wrapper {
  text-align: center;
}

.page-news__view-all-button {
  display: inline-block;
  background: #11A84E; /* Main color */
  color: #F2FFF6; /* Text Main */
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-news__view-all-button:hover {
  background-color: #22C768; /* Auxiliary color */
}

/* Benefits Section */
.page-news__benefits-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-news__benefit-item {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__benefit-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  display: inline-block;
  min-width: 80px;
  min-height: 80px;
}

.page-news__benefit-title {
  font-size: 1.4rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: 600;
}

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

/* Access Guide Section */
.page-news__access-guide-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
  text-align: center;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Deep Green */
}

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

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

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

.page-news__faq-question:hover {
  background-color: #1E3A2A; /* Divider */
}

.page-news__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow */
}

.page-news__faq-item[open] .page-news__faq-toggle {
  content: '−';
}

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

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

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

/* Conclusion Section */
.page-news__conclusion-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-image-wrapper {
    margin-bottom: 30px;
  }

  .page-news__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-news__description {
    font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  }

  .page-news__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }

  .page-news__card-title {
    font-size: 1.2rem;
  }

  .page-news__faq-question {
    font-size: 1.05rem;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

  .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: 10px 0 40px 0;
  }

  .page-news__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-news__hero-image,
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__section,
  .page-news__card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__hero-content {
    padding: 0 15px;
  }

  .page-news__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-news__description {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    margin-bottom: 25px;
  }

  .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-top: 10px; /* Add some spacing for stacked buttons */
  }

  .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-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  .page-news__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 30px;
  }

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

  .page-news__card-image {
    height: 180px;
  }

  .page-news__card-title {
    font-size: 1.1rem;
  }

  .page-news__benefit-item {
    padding: 25px;
  }

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

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

  .page-news__video-section {
    padding-top: 10px !important;
  }
  
  .page-news__video-container,
  .page-news__video-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}