/* style/news.css */
:root {
  --primary-color: #1A237E;
  --secondary-color: #FFD700;
  --text-on-dark: #ffffff;
  --text-on-light: #333333;
  --background-dark: #121212;
  --background-light: #f8f9fa;
  --border-color: #333333;
}

.page-news {
  color: var(--text-on-dark); /* Body background is dark #121212 */
  background-color: var(--background-dark);
  min-height: 100vh;
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

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

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

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

.page-news__hero-section {
  text-align: center;
  background-image: url('[GALLERY:hero:game xn88,news,hero_background]');
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  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__main-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: var(--text-on-dark);
}

.page-news__hero-description {
  font-size: 1.3rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 100%; /* Ensure button adapts to container width */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background-color: var(--secondary-color);
  color: var(--text-on-light);
  border: 2px solid var(--secondary-color);
}

.page-news__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
  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(--text-on-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__cta-button--large {
  padding: 18px 45px;
  font-size: 1.3rem;
}

.page-news__section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-on-dark);
  font-weight: bold;
}

.page-news__light-bg .page-news__section-title {
  color: var(--text-on-light);
}

.page-news__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #ccc;
}

.page-news__light-bg .page-news__section-description {
  color: #666;
}

.page-news__featured-article-section {
  padding: 80px 0;
  background-color: var(--background-dark);
  color: var(--text-on-dark);
}

.page-news__featured-article-card {
  display: flex;
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  align-items: center;
}

.page-news__featured-article-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-news__featured-article-content {
  width: 50%;
  padding: 40px;
}

.page-news__featured-article-title {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.3;
  font-weight: bold;
}

.page-news__featured-article-title a {
  color: var(--text-on-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__featured-article-title a:hover {
  color: var(--secondary-color);
}

.page-news__featured-article-excerpt {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #b0b0b0;
}

.page-news__featured-article-meta {
  font-size: 0.9rem;
  color: #888;
  display: block;
  margin-top: 20px;
}

.page-news__read-more-button {
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 6px;
}

.page-news__latest-articles-section {
  padding: 80px 0;
}

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

.page-news__article-card {
  background: #ffffff;
  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;
}

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

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

.page-news__article-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  color: var(--text-on-light);
}

.page-news__article-card-title {
  font-size: 1.35rem;
  margin-bottom: 15px;
  line-height: 1.4;
  font-weight: bold;
}

.page-news__article-card-title a {
  color: var(--text-on-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-card-title a:hover {
  color: var(--primary-color);
}

.page-news__article-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__article-meta {
  font-size: 0.85rem;
  color: #999;
  display: block;
  margin-bottom: 15px;
}

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

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

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

.page-news__pagination-link--active {
  background-color: var(--secondary-color);
  color: var(--text-on-light);
}

.page-news__category-overview-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-on-dark);
}

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

.page-news__category-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: var(--text-on-dark);
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__category-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.page-news__category-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-news__category-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #e0e0e0;
}

.page-news__call-to-action-section {
  background-color: var(--background-dark);
  padding: 80px 0;
  text-align: center;
  color: var(--text-on-dark);
}

.highlight {
  color: var(--secondary-color);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 3rem;
  }
  .page-news__section-title {
    font-size: 2.2rem;
  }
  .page-news__featured-article-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .page-news {
    padding-top: 100px !important; /* Adjust for fixed header on mobile */
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-news__hero-section {
    padding: 80px 0;
  }

  .page-news__main-title {
    font-size: 2.5rem;
  }

  .page-news__hero-description {
    font-size: 1.1rem;
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-news__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1rem;
  }

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

  .page-news__section-description {
    font-size: 1rem;
    margin-bottom: 40px;
  }

  .page-news__featured-article-card {
    flex-direction: column;
  }

  .page-news__featured-article-image,
  .page-news__featured-article-content {
    width: 100%;
  }

  .page-news__featured-article-content {
    padding: 30px;
  }

  .page-news__featured-article-title {
    font-size: 1.5rem;
  }

  .page-news__featured-article-excerpt {
    font-size: 1rem;
  }

  .page-news__article-grid {
    grid-template-columns: 1fr;
  }

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

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

  .page-news__article-card-title {
    font-size: 1.2rem;
  }

  .page-news__article-excerpt {
    font-size: 0.9rem;
  }

  .page-news__category-grid {
    grid-template-columns: 1fr;
  }

  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__hero-section,
  .page-news__featured-article-section,
  .page-news__latest-articles-section,
  .page-news__category-overview-section,
  .page-news__call-to-action-section,
  .page-news__container,
  .page-news__featured-article-card,
  .page-news__article-card,
  .page-news__category-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-news__featured-article-content, .page-news__article-content, .page-news__category-card {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: 2rem;
  }
  .page-news__section-title {
    font-size: 1.8rem;
  }
  .page-news__hero-section {
    padding: 60px 0;
  }
}