/* style/news.css */

/* Base styles for the news page */
.page-news {
  background-color: #0a0a0a; /* Dark background as per shared.css body */
  color: #ffffff; /* Light text for contrast */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Hero Banner Section */
.page-news__hero-banner-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 0; /* Assuming shared.css handles body padding-top, so set to 0 here */
}

.page-news__hero-banner-container {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  text-align: center;
}

.page-news__hero-banner-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-news__hero-banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  max-width: 80%;
}

.page-news__hero-banner-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  color: #FFD700; /* Gold for main title */
  font-weight: bold;
  line-height: 1.2;
}

.page-news__hero-banner-description {
  font-size: 1.2em;
  line-height: 1.5;
  color: #f0f0f0;
}

/* Main Content Section */
.page-news__main-content-section {
  padding: 60px 20px;
}

.page-news__main-content-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 3fr 1fr; /* Main content + sidebar */
  gap: 30px;
}

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

.page-news__news-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly visible card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-news__news-card-image-wrapper {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  overflow: hidden;
}

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

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

.page-news__news-card-title {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 10px;
  color: #FFD700; /* Gold for article titles */
  line-height: 1.3;
}

.page-news__news-card-excerpt {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* Limit to 4 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-news__news-card-readmore {
  color: #1E90FF; /* Blue for read more link */
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-news__arrow {
  transition: transform 0.3s ease;
}

.page-news__news-card-link:hover .page-news__arrow {
  transform: translateX(5px);
}

/* Sidebar */
.page-news__sidebar {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news__sidebar-module {
  margin-bottom: 30px;
}

.page-news__sidebar-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-top: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.page-news__category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-news__category-list li {
  margin-bottom: 10px;
}

.page-news__category-list a {
  color: #cccccc;
  text-decoration: none;
  font-size: 1.1em;
  transition: color 0.3s ease;
  display: block;
  padding: 5px 0;
}

.page-news__category-list a:hover {
  color: #1E90FF;
}

.page-news__sidebar-cta p {
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-news__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #1E90FF; /* Dark blue text for contrast */
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__cta-button:hover {
  background-color: #e0b800; /* Slightly darker gold on hover */
  transform: translateY(-2px);
  color: #0d6efd; /* Slightly darker blue on hover */
}

/* Pagination */
.page-news__pagination-section {
  padding: 40px 20px 60px;
  text-align: center;
}

.page-news__pagination-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.page-news__pagination-link {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1em;
}

.page-news__pagination-link:hover {
  background-color: #1E90FF;
  color: #ffffff;
}

.page-news__pagination-current {
  background-color: #FFD700;
  color: #1E90FF;
  padding: 10px 18px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1em;
}

/* Responsive Design */
/* Tablet Styles */
@media (max-width: 1024px) {
  .page-news__main-content-container {
    grid-template-columns: 1fr; /* Stack main content and sidebar */
  }
  .page-news__hero-banner-title {
    font-size: 2.5em;
  }
  .page-news__hero-banner-description {
    font-size: 1.1em;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .page-news__hero-banner-section {
    padding-top: 0 !important; /* Ensure no double padding on mobile */
  }
  .page-news__hero-banner-image {
    height: 250px;
  }
  .page-news__hero-banner-content {
    max-width: 90%;
  }
  .page-news__hero-banner-title {
    font-size: 2em;
    margin-bottom: 10px;
  }
  .page-news__hero-banner-description {
    font-size: 0.9em;
  }
  .page-news__main-content-section {
    padding: 40px 15px;
  }
  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__news-card-image-wrapper {
    height: 200px;
  }
  .page-news__news-card-title {
    font-size: 1.3em;
  }
  .page-news__news-card-excerpt {
    font-size: 0.9em;
    -webkit-line-clamp: 5; /* Allow more lines on mobile */
  }
  .page-news__sidebar-title {
    font-size: 1.5em;
  }
  .page-news__category-list a {
    font-size: 1em;
  }
  .page-news__cta-button {
    width: 100%;
    padding: 10px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    max-width: 100% !important;
  }
  .page-news__sidebar-cta {
    padding: 15px;
  }
  .page-news__pagination-section {
    padding: 30px 15px 40px;
  }
  .page-news__pagination-link,
  .page-news__pagination-current {
    padding: 8px 15px;
    font-size: 0.9em;
  }

  /* Mobile image and button responsiveness (forced) */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__hero-banner-section,
  .page-news__main-content-section,
  .page-news__pagination-section {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }
  .page-news__main-content-container,
  .page-news__articles-grid,
  .page-news__sidebar,
  .page-news__news-card,
  .page-news__hero-banner-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Buttons */
  .page-news__cta-button,
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news a[class*="button"],
  .page-news a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    /* padding-left and padding-right are handled by container for consistency */
  }
  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-news__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}