/* style/news.css */
/* 
  Body background color: #08160F (Deep Green) from shared.css --background-color.
  Therefore, text colors in .page-news must be light for sufficient contrast.
*/
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main for general content */
  background-color: transparent; /* body handles the main background */
}

.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, text below */
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 40px; /* Space below hero text */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #08160F; /* Ensure hero section has background */
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Limit hero image height for better content visibility */
  filter: brightness(0.7); /* Slightly darken image to make text pop if needed, but not changing color */
}

.page-news__hero-content {
  text-align: center;
  padding: 20px 15px;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 20px; /* Space between image and text */
}

.page-news__main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: bold;
  color: #F2C14E; /* Gold color for main title */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-news__intro-text {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__section {
  padding: 60px 0;
  background-color: #08160F; /* Default section background */
  color: #F2FFF6; /* Default text color */
}

.page-news__section--dark {
  background-color: #11271B; /* Card BG color for dark sections */
}

.page-news__section--faq {
  padding-bottom: 80px; /* More padding for FAQ section */
}

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

.page-news__container--flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-news__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: bold;
  color: #F2C14E; /* Gold color for section titles */
  text-align: center;
  margin-bottom: 25px;
}

.page-news__section-description {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-news__section-title--cta {
  color: #F2FFF6; /* Main text color for CTA title */
}

.page-news__section-description--cta {
  color: #A7D9B8; /* Secondary text color for CTA description */
}

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

.page-news__grid-item,
.page-news__promo-card,
.page-news__guide-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
  border: 1px solid #2E7A4E; /* Border color */
}

.page-news__grid-item:hover,
.page-news__promo-card:hover,
.page-news__guide-card:hover {
  transform: translateY(-5px);
}

.page-news__image,
.page-news__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  /* Ensure minimum size for content images */
  min-width: 200px;
  min-height: 200px;
}

.page-news__item-title,
.page-news__promo-title,
.page-news__guide-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  padding: 15px 20px 0;
  margin-bottom: 10px;
}

.page-news__item-text,
.page-news__promo-text,
.page-news__guide-text {
  font-size: 0.95rem;
  color: #A7D9B8; /* Text Secondary */
  padding: 0 20px 15px;
  flex-grow: 1;
}

.page-news__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  margin: 15px 20px 20px;
  max-width: calc(100% - 40px); /* Adjust for padding */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-news__button--primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Text Main for button */
  border: none;
}

.page-news__button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-news__button--secondary {
  background-color: transparent;
  color: #2AD16F; /* Button color for secondary */
  border: 2px solid #2AD16F; /* Button color for secondary */
}

.page-news__button--secondary:hover {
  background-color: #2AD16F;
  color: #11271B; /* Darker text on hover for contrast */
  transform: translateY(-2px);
}

.page-news__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0 15px;
}

.page-news__cta-buttons .page-news__button {
  flex-grow: 1;
  max-width: 250px; /* Limit individual button width */
  margin: 0; /* Override card margin */
}

.page-news__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping */
}

.page-news__image--left {
  flex: 1 1 400px; /* Allow image to grow/shrink */
  max-width: 50%;
  border-radius: 10px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

.page-news__security-text {
  flex: 1 1 400px;
  max-width: 50%;
}

.page-news__security-text .page-news__item-title {
  color: #F2C14E; /* Gold for security titles */
  margin-top: 20px;
}

.page-news__security-text .page-news__item-text {
  margin-bottom: 20px;
}

.page-news__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__faq-item {
  background-color: #0A4B2C; /* Deep Green for FAQ item background */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6; /* Text Main */
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  background-color: #11271B; /* Card BG for question header */
  color: #F2FFF6; /* Text Main */
  list-style: none; /* Remove default marker for details summary */
  position: relative;
}

.page-news__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for WebKit browsers */
}

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

.page-news__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  border-top: 1px solid #2E7A4E; /* Divider */
}

/* Ensure images meet minimum size requirements for content images */
.page-news img {
  /* Default minimum size for all content images, excluding small icons */
  min-width: 200px;
  min-height: 200px;
}

/* Specific rule for content images to prevent smaller than 200px */
.page-news__grid-item img,
.page-news__promo-card img,
.page-news__guide-card img,
.page-news__security-content img {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-news__image--left,
  .page-news__security-text {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .page-news__image--left {
    margin-bottom: 30px;
  }
  .page-news__security-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-bottom: 30px;
  }
  .page-news__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-news__intro-text {
    font-size: 1rem;
  }
  .page-news__section {
    padding: 40px 0;
  }
  .page-news__section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }
  .page-news__section-description {
    margin-bottom: 30px;
  }
  .page-news__grid,
  .page-news__promotions-grid,
  .page-news__guide-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__image,
  .page-news__promo-image,
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__container,
  .page-news__grid-item,
  .page-news__promo-card,
  .page-news__guide-card,
  .page-news__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-news__button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 10px 0 !important;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-news__cta-buttons .page-news__button {
    max-width: 100%;
  }
  .page-news__security-text .page-news__item-title {
    margin-top: 0;
  }
  .page-news__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-news__faq-answer {
    padding: 10px 20px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .page-news__section-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }
}