/* style/news.css */
/* Page-specific styles for the News page */

/* CSS Variables for consistent theming */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f9f9f9;
  --background-white: #ffffff;
  --border-color: #e0e0e0;
  --login-color: #EA7C07; /* Custom color for login */
}

.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--background-white); /* Body background is white */
}

/* 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;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, var(--primary-color) 0%, #4ac0f7 100%); /* Slightly lighter gradient for visual appeal */
  color: var(--text-light); /* Light text on gradient background */
  overflow: hidden;
}

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

.page-news__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

.page-news__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.page-news__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--text-light); /* Ensure title is white on dark/gradient background */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}

.page-news__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light); /* Ensure description is white */
  font-weight: 400;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--login-color); /* Using custom login color for CTA for visibility */
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box; /* Responsive button */
  white-space: normal; /* Responsive button text */
  word-wrap: break-word; /* Responsive button text */
}

.page-news__cta-button:hover {
  background: #c76700; /* Darker shade of #EA7C07 */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-news__section-description {
  font-size: 1.1em;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.page-news__subsection-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

/* Latest News Section */
.page-news__latest-news-section {
  background-color: var(--background-light);
  padding: 60px 0;
}

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

.page-news__news-card {
  background-color: var(--background-white);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__news-image {
  width: 100%;
  height: 220px; /* Fixed height for consistent card appearance */
  overflow: hidden;
}

.page-news__news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.page-news__news-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.4;
  font-weight: 600;
}

.page-news__news-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__news-title a:hover {
  color: #1f8ec4; /* Darker shade of #26A9E0 */
}

.page-news__news-meta {
  font-size: 0.9em;
  color: #777;
  margin-bottom: 15px;
}

.page-news__news-excerpt {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.5;
}

.page-news__read-more-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box; /* Responsive button */
  white-space: normal; /* Responsive button text */
  word-wrap: break-word; /* Responsive button text */
}

.page-news__read-more-button:hover {
  background: #1f8ec4; /* Darker shade of #26A9E0 */
}

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

.page-news__pagination-link {
  display: block;
  padding: 10px 15px;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.page-news__pagination-link:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-news__pagination-link--active {
  background-color: var(--primary-color);
  color: var(--text-light);
  font-weight: bold;
}

/* CTA Promo Section */
.page-news__cta-promo-section {
  background-color: var(--primary-color); /* Using brand primary color for dark background */
  color: var(--text-light);
  padding: 80px 20px;
  text-align: center;
}

.page-news__cta-promo-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-news__cta-promo-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--text-light);
  font-weight: 700;
}

.page-news__cta-promo-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.page-news__cta-promo-button {
  display: inline-block;
  padding: 18px 50px;
  background: var(--login-color); /* Using custom login color for CTA */
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box; /* Responsive button */
  white-space: normal; /* Responsive button text */
  word-wrap: break-word; /* Responsive button text */
}

.page-news__cta-promo-button:hover {
  background: #c76700; /* Darker shade of #EA7C07 */
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Deep Content Section */
.page-news__deep-content-section {
    padding: 60px 0;
    background-color: var(--background-white);
}

.page-news__deep-content-section p {
    margin-bottom: 20px;
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2.2em;
  }
  .page-news__cta-promo-title {
    font-size: 2.4em;
  }
  .page-news__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile padding-top */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-news__hero-image {
    margin-bottom: 20px;
  }

  .page-news__hero-image img {
    border-radius: 4px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__hero-content {
    padding: 0 15px;
  }

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

  .page-news__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-news__container {
    padding: 30px 15px;
  }

  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-news__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-news__subsection-title {
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-news__news-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .page-news__news-image {
    height: 180px;
  }

  .page-news__news-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__news-card {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }

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

  .page-news__read-more-button {
    padding: 8px 15px;
    font-size: 0.85em;
    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-link {
    padding: 8px 12px;
    font-size: 0.9em;
  }

  .page-news__cta-promo-section {
    padding: 50px 15px;
  }

  .page-news__cta-promo-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-news__cta-promo-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-news__deep-content-section {
    padding: 40px 0;
  }
  .page-news__deep-content-section p {
    font-size: 1em;
  }
  /* Ensuring all images and containers are responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__cta-promo-content,
  .page-news__news-grid,
  .page-news__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}