/* style/news.css */
:root {
  --primary-color: #0A2A5C;
  --secondary-color: #FFD700;
  --accent-color: #E53935;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #121212;
  --background-light: #f8f9fa;
  --border-color: #e0e0e0;
}

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

/* Fixed Header Spacing */
.page-news__hero-section {
  padding-top: 120px; /* Desktop: Adjust based on fixed header height */
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust based on fixed header height */
  }
}

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-news__highlight {
  color: var(--secondary-color);
}

.page-news__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 60px 0;
  text-align: center;
}

.page-news__light-bg {
  background-color: var(--background-light);
  color: var(--text-dark);
  padding: 60px 0;
}

/* Hero Section */
.page-news__hero-section {
  background-image: url('[GALLERY:hero:ax88 vip,news-hero,banner]');
  background-size: cover;
  background-position: center;
  padding: 120px 0 80px;
  position: relative;
  z-index: 1;
}

.page-news__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

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

.page-news__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.8;
  color: #e0e0e0;
}

.page-news__hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  text-align: center;
}

.page-news__btn-primary {
  background-color: var(--accent-color);
  color: var(--text-light);
}

.page-news__btn-primary:hover {
  background-color: #c42d2a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-news__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Section Titles */
.page-news__section-title {
  font-size: 2.8em;
  margin-bottom: 15px;
  font-weight: bold;
  color: var(--primary-color);
}

.page-news__dark-section .page-news__section-title {
  color: var(--text-light);
}

.page-news__section-subtitle {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #666;
}

.page-news__dark-section .page-news__section-subtitle {
  color: #ccc;
}

/* Featured News */
.page-news__featured-news {
  padding: 80px 0;
}

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

.page-news__featured-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-dark);
}

.page-news__featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-news__featured-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

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

.page-news__featured-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.3;
}

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

.page-news__link-title:hover {
  color: var(--accent-color);
}

.page-news__featured-excerpt {
  font-size: 1em;
  color: #555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__meta {
  font-size: 0.9em;
  color: #777;
  margin-top: auto;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.page-news__meta-date,
.page-news__meta-category {
  padding: 5px 10px;
  background: #f0f0f0;
  border-radius: 5px;
}

.page-news__read-more {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-news__read-more:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

/* News List Section */
.page-news__news-list-section {
  padding: 80px 0;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-news__categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
}

.page-news__category-button {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 1px solid var(--primary-color);
  white-space: nowrap;
}

.page-news__category-button:hover,
.page-news__category-button--active {
  background: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-news__article-card {
  background: #fff;
  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;
  color: var(--text-dark);
}

.page-news__article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-news__article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

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

.page-news__article-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  font-weight: bold;
  line-height: 1.4;
}

.page-news__article-excerpt {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 15px;
  flex-grow: 1;
}

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

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

.page-news__pagination-link:hover,
.page-news__pagination-link--active {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: scale(1.05);
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-news__cta-description {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2.2em;
  }
  .page-news__featured-grid {
    grid-template-columns: 1fr;
  }
  .page-news__featured-image {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-news__dark-section, .page-news__light-bg {
    padding: 40px 0;
  }

  .page-news__hero-section {
    padding: 80px 0 60px;
  }
  
  .page-news__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  
  .page-news__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  
  .page-news__hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-news__section-title {
    font-size: 1.8em;
  }
  
  .page-news__section-subtitle {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  
  .page-news__featured-image {
    height: 200px;
  }
  
  .page-news__featured-title {
    font-size: 1.4em;
  }
  
  .page-news__featured-excerpt {
    font-size: 0.9em;
  }

  .page-news__categories {
    gap: 10px;
    margin-bottom: 30px;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }

  .page-news__categories::-webkit-scrollbar {
    height: 5px;
  }

  .page-news__categories::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
  }

  .page-news__categories::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .page-news__category-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  
  .page-news__articles-grid {
    grid-template-columns: 1fr;
  }
  
  .page-news__article-image {
    height: 180px;
  }
  
  .page-news__article-title {
    font-size: 1.2em;
  }
  
  .page-news__article-excerpt {
    font-size: 0.9em;
  }
  
  .page-news__pagination {
    margin-top: 30px;
  }
  
  .page-news__pagination-link {
    width: 35px;
    height: 35px;
    font-size: 0.9em;
  }
  
  .page-news__cta-title {
    font-size: 1.8em;
  }
  
  .page-news__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  /* Image responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__hero-section,
  .page-news__featured-news,
  .page-news__news-list-section,
  .page-news__cta-section,
  .page-news__container,
  .page-news__featured-card,
  .page-news__article-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-news__featured-content, .page-news__article-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}