/* style/news.css */
:root {
  --primary-color: #1A2B4C;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #0a0a0a;
  --background-light-grey: #f1f3f5;
  --accent-blue: #0066cc;
  --accent-dark-blue: #004499;
}

.page-news {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Body background is dark (#0a0a0a) */
  background-color: var(--background-dark);
}

.page-news__hero-banner {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 180px; /* Desktop: Adjust based on fixed header height */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  min-height: 400px;
  box-sizing: border-box;
}

.page-news__hero-content {
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-light);
  z-index: 2;
}

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

.page-news__hero-title .page-news__hero-link {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__hero-title .page-news__hero-link:hover {
  color: #fff;
  text-decoration: underline;
}

.page-news__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.page-news__hero-cta {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-news__hero-cta:hover {
  background: #fff;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-news__latest-articles-section,
.page-news__featured-analysis-section,
.page-news__promotional-news-section,
.page-news__responsible-gambling-section,
.page-news__faq-section {
  padding: 60px 0;
  background-color: var(--background-dark);
}

.page-news__latest-articles-section {
  padding-top: 40px;
}

.page-news__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-news__section-title .page-news__section-link {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__section-title .page-news__section-link:hover {
  color: #fff;
  text-decoration: underline;
}

.page-news__section-description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

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

.page-news__article-card,
.page-news__promotion-card {
  background: #1e2d4f; /* Dark card background for contrast on dark body */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-light);
}

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

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

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

.page-news__article-category {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 15px;
  align-self: flex-start;
}

.page-news__article-title,
.page-news__promotion-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.4;
  color: var(--text-light);
}

.page-news__article-title .page-news__article-link,
.page-news__promotion-title .page-news__article-link {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title .page-news__article-link:hover,
.page-news__promotion-title .page-news__article-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-news__article-excerpt,
.page-news__promotion-excerpt {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__inline-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__inline-link:hover {
  color: #fff;
  text-decoration: underline;
}

.page-news__article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: auto;
}

.page-news__read-more {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #fff;
  text-decoration: underline;
}

.page-news__view-all-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-news__view-all-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-news__view-all-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-news__featured-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-news__featured-article {
  background: #1e2d4f;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  color: var(--text-light);
}

.page-news__featured-image {
  width: 40%;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
}

.page-news__featured-text {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-news__featured-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.3;
  color: var(--text-light);
}

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

.page-news__featured-title .page-news__article-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-news__featured-excerpt {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-news__promotion-cta {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  align-self: flex-start;
  margin-top: auto;
}

.page-news__promotion-cta:hover {
  background: #fff;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.page-news__small-article-card {
  background: #1e2d4f;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: var(--text-light);
}

.page-news__small-article-card:hover {
  transform: translateY(-5px);
}

.page-news__small-article-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.4;
  color: var(--text-light);
}

.page-news__small-article-title .page-news__article-link {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__small-article-title .page-news__article-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-news__small-article-excerpt {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* FAQ styles */
.page-news__faq-section {
  background-color: var(--primary-color);
  padding: 60px 0;
}

.page-news__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #1e2d4f; /* Darker background for answer */
  border-radius: 0 0 5px 5px;
  color: rgba(255, 255, 255, 0.9);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1A2B4C; /* Primary color background */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-light);
}

.page-news__faq-question:hover {
  background: #253b61;
  border-color: rgba(255, 255, 255, 0.2);
}

.page-news__faq-question:active {
  background: #314d7a;
}

.page-news__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-light);
}

.page-news__faq-question h3 .page-news__inline-link {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__faq-question h3 .page-news__inline-link:hover {
  color: #fff;
  text-decoration: underline;
}

.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-news__faq-item.active .page-news__faq-toggle {
  color: #fff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 40px;
  }
  .page-news__hero-description {
    font-size: 18px;
  }
  .page-news__section-title {
    font-size: 30px;
  }
  .page-news__section-description {
    font-size: 16px;
  }
  .page-news__article-title,
  .page-news__promotion-title {
    font-size: 20px;
  }
  .page-news__featured-image {
    width: 35%;
  }
  .page-news__featured-title {
    font-size: 24px;
  }
  .page-news__featured-excerpt {
    font-size: 16px;
  }
  .page-news__small-article-title {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-banner {
    padding-top: 160px !important; /* Mobile: Adjust based on fixed header height */
    padding-bottom: 40px;
  }
  .page-news__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-news__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-news__hero-cta {
    padding: 12px 30px;
    font-size: 18px;
  }
  .page-news__latest-articles-section,
  .page-news__featured-analysis-section,
  .page-news__promotional-news-section,
  .page-news__responsible-gambling-section,
  .page-news__faq-section {
    padding: 40px 0;
  }
  .page-news__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__section-title {
    font-size: 26px;
    margin-bottom: 15px;
  }
  .page-news__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-news__articles-grid,
  .page-news__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-card,
  .page-news__promotion-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__article-image,
  .page-news__promotion-image {
    max-width: 100% !important;
    width: 100% !important;
    height: 180px;
  }
  .page-news__article-content,
  .page-news__promotion-content {
    padding: 20px;
  }
  .page-news__article-category {
    padding: 5px 10px;
    font-size: 12px;
    margin-bottom: 10px;
  }
  .page-news__article-title,
  .page-news__promotion-title {
    font-size: 18px;
    margin-bottom: 10px;
  }
  .page-news__article-excerpt,
  .page-news__promotion-excerpt {
    font-size: 14px;
    margin-bottom: 15px;
  }
  .page-news__featured-article {
    flex-direction: column;
  }
  .page-news__featured-image {
    width: 100%;
    height: 200px;
  }
  .page-news__featured-text {
    padding: 20px;
  }
  .page-news__featured-title {
    font-size: 22px;
  }
  .page-news__featured-excerpt {
    font-size: 15px;
  }
  .page-news__promotion-cta {
    padding: 10px 20px;
    font-size: 15px;
  }
  .page-news__responsible-articles {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__small-article-card {
    padding: 25px;
  }
  .page-news__small-article-title {
    font-size: 17px;
  }
  .page-news__small-article-excerpt {
    font-size: 14px;
  }
  .page-news__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-news__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-news__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-news__faq-answer {
    padding: 0 15px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px !important;
  }
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__section, .page-news__card, .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 28px;
  }
  .page-news__hero-description {
    font-size: 15px;
  }
  .page-news__hero-cta {
    padding: 10px 25px;
    font-size: 16px;
  }
  .page-news__section-title {
    font-size: 22px;
  }
  .page-news__section-description {
    font-size: 14px;
  }
  .page-news__article-image,
  .page-news__promotion-image {
    height: 160px;
  }
  .page-news__article-content,
  .page-news__promotion-content {
    padding: 15px;
  }
  .page-news__article-title,
  .page-news__promotion-title {
    font-size: 16px;
  }
  .page-news__article-excerpt,
  .page-news__promotion-excerpt {
    font-size: 13px;
  }
  .page-news__featured-image {
    height: 180px;
  }
  .page-news__featured-title {
    font-size: 18px;
  }
  .page-news__featured-excerpt {
    font-size: 14px;
  }
  .page-news__small-article-title {
    font-size: 16px;
  }
  .page-news__small-article-excerpt {
    font-size: 13px;
  }
}