/* style/news.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #ffffff;
  --background-dark: #26A9E0;
  --border-color: #e0e0e0;
  --button-login: #EA7C07; /* Specific color for login */
  --black: #000000; /* Specific color for #000000 */
}

/* Base styles for the news page content */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background: var(--background-light); /* Default background color for the page */
}

/* Header offset for fixed header */
.page-news__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Sections */
.page-news__section-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light); /* Text color for gradient background */
}

.page-news__hero-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-news__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: var(--text-light);
  max-width: 900px;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-login); /* Use specific login color for CTA */
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
}

.page-news__cta-button:hover {
  background: #d66f06; /* Darken for hover effect */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General container for content sections */
.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Latest Articles Grid */
.page-news__latest-articles {
  background: var(--background-light);
}

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

.page-news__article-card {
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__article-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.page-news__article-content {
  padding: 20px;
}

.page-news__article-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-excerpt {
  font-size: 15px;
  color: #666;
  margin-bottom: 15px;
}

.page-news__read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: bold;
}

/* Featured Articles */
.page-news__featured-articles {
  background: var(--background-dark);
  color: var(--text-light);
}

.page-news__featured-articles .page-news__section-title,
.page-news__featured-articles .page-news__section-description {
  color: var(--text-light);
}

.page-news__featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-news__featured-card {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark background */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__featured-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.page-news__featured-image {
  width: 100%;
  height: 400px; /* Larger image for featured */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-news__featured-content {
  padding: 30px;
  color: var(--text-light);
}

.page-news__featured-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.3;
}