/* style/news.css */
:root {
  --page-news-bg: #08160F;
  --page-news-card-bg: #11271B;
  --page-news-text-main: #F2FFF6;
  --page-news-text-secondary: #A7D9B8;
  --page-news-border: #2E7A4E;
  --page-news-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

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

.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--page-news-card-bg);
  overflow: hidden;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px; /* Limit height for large screens */
}

.page-news__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  margin-top: -150px; /* Adjust as needed for visual flow, ensures text is below image */
  background: rgba(17, 39, 27, 0.85); /* Slightly transparent background for readability */
  border-radius: 8px;
  padding-bottom: 40px;
}

.page-news__main-title {
  color: var(--page-news-text-main);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-news__description {
  color: var(--page-news-text-secondary);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.page-news__section {
  padding: 60px 20px;
  background-color: var(--page-news-bg);
  border-bottom: 1px solid var(--page-news-border);
}

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

.page-news__section-title {
  color: var(--page-news-text-main);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
}

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

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

.page-news__article-card,
.page-news__promotion-card,
.page-news__guide-card {
  background-color: var(--page-news-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__article-image,
.page-news__promotion-image,
.page-news__guide-image {
  width: 100%;
  height: 220px; /* Consistent height for card images */
  object-fit: cover;
  display: block;
}

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

.page-news__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

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

.page-news__card-meta {
  color: var(--page-news-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.page-news__card-excerpt {
  color: var(--page-news-text-secondary);
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-news__read-more:hover {
  color: var(--page-news-text-main);
}

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

.page-news__cta-section {
  text-align: center;
  padding: 80px 20px;
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: var(--page-news-button-gradient);
  color: var(--page-news-text-main);
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

.page-news__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(42, 209, 111, 0.6);
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #57E38D; /* Glow color */
  border: 2px solid #57E38D; /* Glow color */
}

.page-news__btn-secondary:hover {
  background-color: #57E38D;
  color: var(--page-news-bg);
  transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-news__hero-content {
    margin-top: -100px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important;
  }

  .page-news__hero-content {
    margin-top: -80px;
    padding: 15px;
  }

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

  .page-news__description {
    font-size: 1rem;
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-news__section {
    padding: 40px 15px;
  }

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

  .page-news__article-grid,
  .page-news__promotion-grid,
  .page-news__guide-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__article-card,
  .page-news__promotion-card,
  .page-news__guide-card {
    max-width: 100% !important;
    width: 100% !important;
  }

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

  .page-news__cta-section {
    padding: 60px 15px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-content {
    margin-top: -60px;
  }

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

  .page-news__description {
    font-size: 0.9rem;
  }

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