/* style/news.css */

/* Base styles for the news page */
.page-news {
  background-color: #08160F; /* Background color from custom palette */
  color: #F2FFF6; /* Main text color from custom palette */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-news__section-title {
  font-size: 2.5rem;
  color: #F2C14E; /* Gold color for section titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-news__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #F2FFF6;
}

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

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 400px; /* Ensure minimum size */
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  padding: 30px 20px;
  max-width: 900px;
  margin-top: -80px; /* Pull content slightly up over the image bottom */
  background: rgba(17, 39, 27, 0.9); /* Card BG with opacity */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-news__main-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  font-weight: 800;
  line-height: 1.2;
}

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

.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

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

.page-news__cta-button--small {
  padding: 12px 25px;
  font-size: 1rem;
}

.page-news__cta-button--large {
  padding: 18px 35px;
  font-size: 1.2rem;
}

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

/* Categories Section */
.page-news__categories-section {
  padding: 60px 0;
  background-color: #08160F;
}

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

.page-news__category-card {
  background-color: #11271B; /* Card BG */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
  display: flex;
  flex-direction: column;
}

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

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

.page-news__category-card h3 {
  font-size: 1.5rem;
  color: #F2FFF6; /* Text Main */
  padding: 15px 20px 10px;
  font-weight: 700;
}

.page-news__category-card p {
  font-size: 0.95rem;
  color: #A7D9B8; /* Text Secondary */
  padding: 0 20px 15px;
  flex-grow: 1;
}

.page-news__card-link {
  display: block;
  text-align: center;
  padding: 10px 20px;
  background-color: #22C768; /* Auxiliary color */
  color: #08160F; /* Dark text for contrast */
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 15px 15px;
  transition: background-color 0.3s ease;
}

.page-news__card-link:hover {
  background-color: #11A84E; /* Primary color */
  color: #F2FFF6;
}

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

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

.page-news__benefit-item {
  background-color: #11271B;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E;
}

.page-news__benefit-title {
  font-size: 1.6rem;
  color: #F2C14E;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-news__benefit-text {
  font-size: 1rem;
  color: #A7D9B8;
}

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

.page-news__guide-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-news__guide-text-block {
  flex: 1;
  min-width: 300px;
}

.page-news__guide-text-block p {
  margin-bottom: 20px;
  color: #F2FFF6;
}

.page-news__guide-list {
  list-style: decimal;
  padding-left: 25px;
  margin-bottom: 30px;
  color: #F2FFF6;
}

.page-news__guide-list li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.page-news__guide-list strong {
  color: #F2C14E;
}

.page-news__guide-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-news__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

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

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

.page-news__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid #2E7A4E;
  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;
  transition: background-color 0.3s ease;
  user-select: none;
}

.page-news__faq-item[open] > .page-news__faq-question,
.page-news__faq-question:hover {
  background-color: #1E3A2A; /* Divider color for hover/active */
}

.page-news__faq-qtext {
  flex-grow: 1;
}

.page-news__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #F2C14E;
}

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

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

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

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

.page-news__conclusion-section .page-news__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.page-news__conclusion-section a {
  color: #F2C14E;
  text-decoration: underline;
}

.page-news__conclusion-section a:hover {
  color: #57E38D;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__section-title {
    font-size: 2rem;
  }

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

  .page-news__subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  }

  .page-news__category-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news__container {
    padding: 0 15px;
  }

  .page-news__hero-section {
    padding-bottom: 40px;
  }

  .page-news__hero-content {
    margin-top: -60px;
    padding: 20px;
  }

  .page-news__main-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .page-news__subtitle {
    font-size: clamp(0.85rem, 3vw, 1rem);
  }

  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-news__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-news__text-block,
  .page-news__benefit-text,
  .page-news__guide-list li,
  .page-news__faq-answer p {
    font-size: 0.95rem;
  }

  .page-news__category-card h3 {
    font-size: 1.3rem;
  }

  .page-news__benefit-title {
    font-size: 1.4rem;
  }

  .page-news__guide-content {
    flex-direction: column;
  }

  .page-news__guide-text-block,
  .page-news__guide-image-wrapper {
    min-width: unset;
    width: 100%;
  }

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

  .page-news__faq-toggle {
    font-size: 1.5rem;
  }

  /* Mobile image responsiveness */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__hero-image-wrapper,
  .page-news__category-card,
  .page-news__guide-image-wrapper,
  .page-news__container,
  .page-news__category-grid,
  .page-news__benefits-grid,
  .page-news__faq-list,
  .page-news__access-guide-section .page-news__guide-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Mobile button responsiveness */
  .page-news__cta-button,
  .page-news__card-link,
  .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-bottom: 10px; /* Add space between stacked buttons */
  }

  .page-news__hero-content .page-news__cta-button {
    margin: 0 auto 10px auto; /* Center button and add space */
  }

  .page-news__cta-button--large {
    font-size: 1.1rem !important;
    padding: 15px 30px !important;
  }

  .page-news__conclusion-section .page-news__cta-button {
    margin-top: 20px;
  }

  .page-news__cta-button-group {
    flex-direction: column;
    gap: 10px;
  }
}