/* style/news.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #8B0000;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --background-dark: #121212;
  --card-background-light: #f9f9f9;
  --card-background-medium: rgba(139, 0, 0, 0.7); /* Slightly transparent secondary color */
  --border-color-light: #e0e0e0;
}

.page-news {
  font-family: 'Arial', sans-serif;
  color: var(--text-color-light); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Inherited from shared.css body */
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #4a0000 100%); /* Darker gradient */
  color: var(--text-color-light);
  overflow: hidden;
}

.page-news__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 30px;
}

.page-news__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-color-dark);
  text-decoration: none;
  border-radius: 50px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-news__cta-button:hover {
  background: #ffe033; /* Slightly lighter primary color */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-news__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-news__articles-section,
.page-news__promotions-section,
.page-news__insights-section,
.page-news__cta-section {
  padding: 60px 20px;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-news__articles-container,
.page-news__promotions-container,
.page-news__insights-container,
.page-news__cta-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-news__article-card,
.page-news__promo-card,
.page-news__insight-card {
  background: var(--card-background-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-color-dark); /* Dark text for light card background */
}

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

.page-news__article-image,
.page-news__promo-image,
.page-news__insight-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 1px solid var(--border-color-light);
}

.page-news__promo-image,
.page-news__insight-image {
  height: 200px;
}

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

.page-news__article-link,
.page-news__promo-link,
.page-news__insight-link {
  text-decoration: none;
  color: inherit;
}

.page-news__article-title,
.page-news__promo-title,
.page-news__insight-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

.page-news__article-link:hover .page-news__article-title,
.page-news__promo-link:hover .page-news__promo-title,
.page-news__insight-link:hover .page-news__insight-title {
  color: var(--primary-color);
}

.page-news__article-date {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  display: block;
}

.page-news__article-excerpt,
.page-news__promo-description,
.page-news__insight-excerpt {
  font-size: 16px;
  color: var(--text-color-dark);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more-button,
.page-news__view-details-button,
.page-news__learn-more-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  align-self: flex-start;
  margin-top: auto; /* Push to bottom */
}

.page-news__read-more-button:hover,
.page-news__view-details-button:hover,
.page-news__learn-more-button:hover {
  background-color: #a30000; /* Darker secondary */
  transform: translateY(-2px);
}

.page-news__pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  gap: 10px;
}

.page-news__pagination-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-background-light);
  color: var(--text-color-dark);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-news__pagination-item:hover {
  background: var(--primary-color);
  color: var(--text-color-dark);
  transform: translateY(-2px);
}

.page-news__pagination-item--active {
  background: var(--primary-color);
  color: var(--text-color-dark);
  pointer-events: none;
}

.page-news__promotions-section {
  background: linear-gradient(135deg, #1f1f1f 0%, #0a0a0a 100%);
  color: var(--text-color-light);
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-news__promotions-section .page-news__section-title {
  color: var(--primary-color);
}

.page-news__promo-card {
  background: var(--card-background-medium);
  color: var(--text-color-light);
}

.page-news__promo-card .page-news__promo-title {
  color: var(--primary-color);
}

.page-news__promo-card .page-news__promo-description {
  color: var(--text-color-light);
}

.page-news__cta-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(45deg, var(--primary-color) 0%, #ffc107 100%); /* Gold gradient */
  color: var(--text-color-dark);
  overflow: hidden;
}

.page-news__cta-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-bottom: 30px;
}

.page-news__cta-section .page-news__section-title {
  color: var(--secondary-color);
  text-shadow: none;
  margin-bottom: 25px;
}

.page-news__cta-description {
  font-size: 18px;
  margin-bottom: 40px;
  color: var(--text-color-dark);
}

.page-news__cta-button--large {
  padding: 18px 50px;
  font-size: 22px;
  background: var(--secondary-color);
  color: var(--text-color-light);
}

.page-news__cta-button--large:hover {
  background: #a30000;
}

.page-news__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1; /* Subtle background image */
  z-index: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 42px;
  }
  .page-news__hero-description {
    font-size: 18px;
  }
  .page-news__section-title {
    font-size: 32px;
  }
  .page-news__article-grid,
  .page-news__promo-grid,
  .page-news__insight-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news {
    padding-top: var(--header-offset, 120px) !important;
    font-size: 16px;
    line-height: 1.6;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-news__hero-section,
  .page-news__articles-section,
  .page-news__promotions-section,
  .page-news__insights-section,
  .page-news__cta-section {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-news__hero-container,
  .page-news__articles-container,
  .page-news__promotions-container,
  .page-news__insights-container,
  .page-news__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden !important;
  }

  .page-news__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-news__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-news__cta-button {
    padding: 12px 30px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-news__article-grid,
  .page-news__promo-grid,
  .page-news__insight-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-news__article-card,
  .page-news__promo-card,
  .page-news__insight-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-news__article-image,
  .page-news__promo-image,
  .page-news__insight-image {
    height: 180px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-news__article-title,
  .page-news__promo-title,
  .page-news__insight-title {
    font-size: 18px;
  }

  .page-news__article-excerpt,
  .page-news__promo-description,
  .page-news__insight-excerpt {
    font-size: 15px;
  }

  .page-news__read-more-button,
  .page-news__view-details-button,
  .page-news__learn-more-button {
    padding: 8px 15px;
    font-size: 14px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__pagination {
    margin-top: 30px;
  }

  .page-news__pagination-item {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .page-news__cta-section .page-news__section-title {
    font-size: 26px;
  }

  .page-news__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-news__cta-button--large {
    padding: 15px 35px;
    font-size: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 28px;
  }
  .page-news__section-title {
    font-size: 24px;
  }
  .page-news__article-title,
  .page-news__promo-title,
  .page-news__insight-title {
    font-size: 17px;
  }
  .page-news__cta-button {
    font-size: 16px;
  }
  .page-news__cta-button--large {
    font-size: 18px;
  }
}

/* Ensure no image filters are used */
.page-news img {
  filter: none !important;
}