/* style/news.css */

/* Base styles for page-news */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light background */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared.css, default to white */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Header offset for fixed header */
.page-news__hero-section {
  padding-top: var(--header-offset, 120px); /* Apply header offset to the first content section */
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 600px; /* Adjust as needed */
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-news__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-news__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-news__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-news__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.8;
}

.page-news__hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* General Section Styles */
.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-news__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
}

.page-news__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

/* Grid for news cards and guide cards */
.page-news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

/* Card Styles */
.page-news__news-card,
.page-news__guide-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  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.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-news__card-title a {
  text-decoration: none;
  color: #26A9E0;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: #1a7fb3; /* Slightly darker shade on hover */
}

.page-news__card-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-flex;
  align-items: center;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #1a7fb3;
}

.page-news__read-more-icon {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.page-news__read-more:hover .page-news__read-more-icon {
  transform: translateX(5px);
}

.page-news__view-all-button-container {
  text-align: center;
  margin-top: 20px;
}

/* Featured Video Section */
.page-news__featured-video {
  padding: 60px 0;
  background-color: #26A9E0; /* Brand color as background */
  color: #ffffff;
}

.page-news__featured-video .page-news__section-title,
.page-news__featured-video .page-news__section-intro {
  color: #ffffff;
}