/* style/news.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #1E90FF;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --bg-dark: #121212;
  --card-bg-dark: rgba(255, 255, 255, 0.08);
  --border-color-dark: rgba(255, 255, 255, 0.15);
}

.page-news {
  padding-top: 120px; /* Desktop padding from fixed header */
  background-color: var(--bg-dark);
  color: var(--text-color-light);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-news__container--center {
  text-align: center;
}

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

/* Hero Section */
.page-news__hero-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(30, 144, 255, 0.2), rgba(255, 215, 0, 0.2)), url('[GALLERY:bg:8kbet 7777,news_hero,abstract_background]') no-repeat center center/cover;
  text-align: center;
  border-bottom: 1px solid var(--border-color-dark);
}

.page-news__hero-title {
  font-size: 3.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 900;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.page-news__hero-description {
  font-size: 1.3em;
  color: var(--text-color-light);
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

.page-news__cta-button--primary {
  background-color: var(--primary-color);
  color: var(--text-color-dark);
  border: 2px solid var(--primary-color);
}

.page-news__cta-button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-news__cta-button--secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-color-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Categories Section */
.page-news__categories-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

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

.page-news__category-card {
  background-color: var(--card-bg-dark);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-color-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border-color-dark);
}

.page-news__category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

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

.page-news__category-title {
  font-size: 1.5em;
  color: var(--primary-color);
  padding: 20px 20px 10px;
  margin: 0;
}

.page-news__category-excerpt {
  padding: 0 20px 20px;
  font-size: 0.95em;
  flex-grow: 1;
}

/* Latest Articles Section */
.page-news__latest-articles-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-news__article-card {
  background-color: var(--card-bg-dark);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-news__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.page-news__article-link {
  text-decoration: none;
  color: var(--text-color-light);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-news__article-image {
  width: 100%;
  height: 220px;
  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.4em;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

.page-news__article-date {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: auto;
}

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

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

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

.page-news__pagination-link--active {
  background-color: var(--primary-color);
  color: var(--text-color-dark);
  border-color: var(--primary-color);
  cursor: default;
}

.page-news__pagination-link--active:hover {
  background-color: var(--primary-color);
  color: var(--text-color-dark);
  transform: none;
}

/* Bottom CTA Section */
.page-news__cta-bottom-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  text-align: center;
}

.page-news__cta-bottom-title {
  font-size: 2.8em;
  color: var(--text-color-light);
  margin-bottom: 20px;
  font-weight: 900;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.page-news__cta-bottom-description {
  font-size: 1.2em;
  color: var(--text-color-light);
  max-width: 700px;
  margin: 0 auto 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 3em;
  }
  .page-news__cta-bottom-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-news {
    padding-top: 100px !important; /* Mobile padding from fixed header */
  }

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

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

  .page-news__hero-description {
    font-size: 1.1em;
    padding: 0 15px;
  }

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

  .page-news__cta-button {
    width: 100%;
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-news__section-title {
    font-size: 2em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-news__categories-section,
  .page-news__latest-articles-section,
  .page-news__cta-bottom-section {
    padding: 50px 0;
  }

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

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

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

  .page-news__category-title,
  .page-news__article-title {
    font-size: 1.3em;
  }

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

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

  .page-news__cta-bottom-description {
    font-size: 1em;
    padding: 0 15px;
  }

  /* Ensure all images are responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__hero-section,
  .page-news__categories-section,
  .page-news__latest-articles-section,
  .page-news__cta-bottom-section,
  .page-news__container,
  .page-news__category-card,
  .page-news__article-card,
  .page-news__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 2em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__cta-bottom-title {
    font-size: 1.8em;
  }
  .page-news__pagination-link {
    width: 35px;
    height: 35px;
    font-size: 0.9em;
  }
}