/* style/news.css */

/* Base styles for the news page */
.page-news {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: #ffffff; /* For dark sections */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
  font-weight: bold;
}

.page-news__light-bg .page-news__section-title {
  color: #333333;
}

.page-news__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439; /* Brand color */
  border-radius: 2px;
}

.page-news__description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-news__light-bg .page-news__description {
  color: #555555;
}

.page-news__text-center {
  text-align: center;
}

/* Hero Section */
.page-news__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Apply header offset */
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

.page-news__hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.page-news__dark-bg {
  background-color: #1a1a2e; /* From body background, but explicitly set for section */
  color: #ffffff;
}

.page-news__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-news__light-bg .page-news__card-title a,
.page-news__light-bg .page-news__card-date,
.page-news__light-bg .page-news__card-description,
.page-news__light-bg .page-news__card-link {
  color: #333333;
}

.page-news__hero-content {
  flex: 1;
  padding-right: 40px;
  max-width: 600px;
  z-index: 1;
}

.page-news__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
  font-weight: bold;
}

.page-news__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-news__hero-cta {
  display: flex;
  gap: 20px;
}

.page-news__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  max-width: 50%;
  z-index: 1;
}

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

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

.page-news__btn-primary {
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-news__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #017439; /* Brand color */
  border: 2px solid #017439;
}

.page-news__dark-bg .page-news__btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
}
.page-news__dark-bg .page-news__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

.page-news__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Latest News Section */
.page-news__latest-news,
.page-news__guides-section,
.page-news__promotions-cta,
.page-news__faq-section,
.page-news__final-cta {
  padding: 80px 0;
}

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

.page-news__news-card,
.page-news__guide-card {
  background-color: rgba(255, 255, 255, 0.08); /* Light transparent background for dark sections */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__light-bg .page-news__news-card,
.page-news__light-bg .page-news__guide-card {
  background-color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


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

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

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

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