/* style/news.css */
.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Inherit from body or shared.css */
}

.page-news__section {
  padding: 60px 20px;
  margin-bottom: 0; /* Sections handle their own padding */
  box-sizing: border-box;
}

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

.page-news__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700; /* Primary brand color */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-news__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #8B0000; /* Secondary brand color */
  border-radius: 2px;
}

.page-news__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: -20px auto 40px auto;
  color: #e0e0e0;
}

/* Hero Banner Specifics */
.page-news__hero-banner {
  background: linear-gradient(135deg, #0d0d0d, #1a1a1a); /* Dark gradient for hero */
  padding: 120px 20px 60px 20px; /* Added padding-top for fixed header */
  text-align: center;
  box-sizing: border-box;
}

.page-news__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-news__hero-title {
  font-size: 48px;
  color: #FFD700; /* Gold color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* Article Grid */
.page-news__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-news__article-card {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards */
  border-radius: 12px;
  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__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-news__article-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

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

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

.page-news__article-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-news__article-excerpt {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-news__read-more {
  color: #8B0000; /* Secondary brand color */
  font-weight: bold;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #FFD700;
}

.page-news__view-all {
  text-align: center;
}

/* In-depth Analysis Section */
.page-news__dark-section {
  background: #1a1a1a; /* Darker background for contrast */
  color: #f0f0f0;
}

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

.page-news__analysis-card {
  background: rgba(255, 255, 255, 0.08); /* Slightly lighter transparent white */
  border-radius: 12px;
  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.15);
}

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

.page-news__analysis-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

.page-news__analysis-title {
  font-size: 20px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__analysis-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Info Grid (Security & Responsible Gaming) */
.page-news__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-news__info-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news__info-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 20px auto;
  display: block;
}

.page-news__info-card h3 {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-news__info-card p {
  font-size: 16px;
  color: #e0e0e0;
}

/* FAQ Section */
.page-news__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
}

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

.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #8B0000;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-news__faq-item.active .page-news__faq-toggle {
  color: #FFD700;
  transform: rotate(180deg);
}

.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, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.3);
  color: #e0e0e0;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news__faq-answer p {
  margin: 0;
  font-size: 16px;
  color: #e0e0e0;
}

/* CTA Section */
.page-news__cta-section {
  background: linear-gradient(90deg, #8B0000, #FFD700); /* Gradient background */
  text-align: center;
  padding: 80px 20px;
}

.page-news__cta-content {
  max-width: 800px;
}

.page-news__cta-content .page-news__section-title {
  color: #ffffff; /* White title on dark gradient */
  margin-bottom: 20px;
}

.page-news__cta-content .page-news__section-title::after {
  background-color: #ffffff;
}

.page-news__cta-content .page-news__section-description {
  color: #ffffff;
  margin-bottom: 40px;
}

/* Buttons */
.page-news__btn-primary {
  display: inline-block;
  background: #FFD700; /* Gold button */
  color: #1a1a1a; /* Dark text for gold button */
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news__btn-primary:hover {
  background-color: #e6c200; /* Slightly darker gold on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* 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__articles-grid, .page-news__analysis-grid, .page-news__info-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news__hero-banner {
    padding: 100px 15px 40px 15px; /* Mobile padding-top for fixed header */
  }
  .page-news__hero-title {
    font-size: 32px;
  }
  .page-news__hero-description {
    font-size: 16px;
  }
  .page-news__section {
    padding: 40px 15px;
  }
  .page-news__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-news__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-news__articles-grid, .page-news__analysis-grid, .page-news__info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-image-wrapper, .page-news__analysis-image-wrapper {
    height: 180px;
  }
  .page-news__article-title {
    font-size: 18px;
  }
  .page-news__analysis-title {
    font-size: 17px;
  }
  .page-news__info-card h3 {
    font-size: 20px;
  }
  .page-news__faq-question {
    padding: 15px 20px;
  }
  .page-news__faq-question h3 {
    font-size: 16px;
  }
  .page-news__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }
  .page-news__faq-answer {
    padding: 0 20px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px 20px !important;
  }
  .page-news__btn-primary {
    padding: 12px 25px;
    font-size: 16px;
  }

  /* Mobile image adaptation */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-news__section,
  .page-news__article-card,
  .page-news__analysis-card,
  .page-news__info-card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}