/* style/news.css */

/* Base styles for the news page */
.page-news {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #000000; /* Dark background for contrast */
  color: #FFFFFF; /* Light text for dark background */
  padding: 0;
}

.page-news__hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-news__hero-content {
  max-width: 800px;
}

.page-news__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for emphasis */
  line-height: 1.2;
}

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

.page-news__hero-button {
  display: inline-block;
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text for light button */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-news__hero-button:hover {
  background-color: #e0a53a;
}

/* Articles Section */
.page-news__articles-section {
  background-color: #FFFFFF;
  padding: 60px 20px;
}

.page-news__articles-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-news__articles-heading {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 2.2em;
  margin-bottom: 40px;
  color: #000000;
}

.page-news__article-card {
  background-color: #F8F8F8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

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

.page-news__article-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #000000;
}

.page-news__article-title a {
  text-decoration: none;
  color: #000000;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #FCBC45;
}

.page-news__article-date {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 15px;
}

.page-news__article-summary {
  font-size: 1em;
  color: #333333;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__article-readmore {
  display: inline-block;
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text for light button */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-news__article-readmore:hover {
  background-color: #e0a53a;
}

/* Call to Action Section */
.page-news__cta-section {
  background-color: #000000; /* Dark background */
  color: #FFFFFF; /* Light text */
  padding: 80px 20px;
  text-align: center;
}

.page-news__cta-container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-news__cta-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto 40px auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-news__cta-title {
  font-size: 2.5em;
  color: #FCBC45; /* Login button color */
  margin-bottom: 20px;
}

.page-news__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #F0F0F0;
}

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

.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__cta-button--register {
  background-color: #FFFFFF; /* Register button color */
  color: #000000; /* Dark text for light button */
}

.page-news__cta-button--register:hover {
  background-color: #F0F0F0;
}

.page-news__cta-button--login {
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text for light button */
}

.page-news__cta-button--login:hover {
  background-color: #e0a53a;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-news__hero-title {
    font-size: 2em;
  }

  .page-news__hero-description,
  .page-news__cta-description {
    font-size: 1em;
  }

  .page-news__articles-heading {
    font-size: 1.8em;
  }

  .page-news__article-title {
    font-size: 1.2em;
  }

  .page-news__cta-title {
    font-size: 2em;
  }

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

  .page-news__cta-button {
    width: 100%;
  }

  /* Ensure images do not overflow on mobile */
  .page-news__hero-image,
  .page-news__article-image,
  .page-news__cta-image {
    max-width: 100%;
    height: auto;
  }

  /* Content area images must not be smaller than 200px */
  .page-news__articles-container img, 
  .page-news__cta-container img {
    min-width: 200px; 
    min-height: 200px; 
    width: 100%; 
    height: auto; /* Override fixed height for responsiveness if needed */
  }

  .page-news__article-image {
    height: auto; /* Allow auto height on mobile */
  }
}

@media (max-width: 480px) {
  .page-news__hero-section,
  .page-news__articles-section,
  .page-news__cta-section {
    padding: 30px 15px;
  }

  .page-news__hero-title {
    font-size: 1.8em;
  }

  .page-news__articles-heading {
    font-size: 1.6em;
  }

  .page-news__cta-title {
    font-size: 1.8em;
  }
}