/* style/news.css */

/* Base Styles */
.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-news__section-title,
.page-news__cta-title {
  font-size: 2.5rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__section-description,
.page-news__cta-description {
  font-size: 1.1rem;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__btn-primary {
  display: inline-block;
  background-color: #017439;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-news__btn-primary:hover {
  background-color: #005a2e;
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  display: inline-block;
  background-color: #ffffff;
  color: #017439;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
  border: 2px solid #017439;
  cursor: pointer;
}

.page-news__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #005a2e;
  transform: translateY(-2px);
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  padding: 100px 0;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  text-align: center;
  background-color: #017439; /* Brand color as background */
  background-image: url('[GALLERY:hero:1920x1080:188v_vip_news_hero,online_betting_platform,dynamic_background]');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Minimum height for hero */
}

.page-news__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  z-index: 0;
}

.page-news__hero-section .page-news__container {
  position: relative;
  z-index: 1;
}

.page-news__hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

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

/* Grid Layout for News Cards */
.page-news__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* News Card Styles */
.page-news__news-card,
.page-news__promo-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for cards */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

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

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

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

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

.page-news__card-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: #C30808; /* Highlight color for links */
}

.page-news__card-text {
  font-size: 1rem;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__card-link {
  display: inline-block;
  color: #C30808; /* Link color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push link to bottom */
}

.page-news__card-link:hover {
  color: #ff5555;
}

/* Section Specific Styles */
.page-news__announcements-section,
.page-news__game-updates-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Darker background for content */
}

.page-news__promotions-section,
.page-news__industry-insights-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Even darker background for contrast */
}

/* Dark Background Helper Class for contrast */
.page-news__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-news__dark-section {
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-news__light-bg {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #017439; /* Brand color background */
  background-image: url('[GALLERY:cta_bg:1920x400:188v_vip_cta_background,call_to_action,join_us]');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  position: relative;
}

.page-news__cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
  z-index: 0;
}

.page-news__cta-content {
  position: relative;
  z-index: 1;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-news__faq-item {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter for FAQ items */
  color: #ffffff;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-news__faq-toggle {
  font-size: 1.5rem;
  font-weight: normal;
  transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
  transform: rotate(45deg);
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px;
}

.page-news__faq-answer p {
  margin-bottom: 0;
}

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

  .page-news__section-title,
  .page-news__cta-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 80px 0;
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

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

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

  .page-news__section-title,
  .page-news__cta-title {
    font-size: 1.8rem;
  }

  .page-news__section-description,
  .page-news__cta-description {
    font-size: 1rem;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-news__grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__news-card,
  .page-news__promo-card {
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-news__card-image {
    height: 200px;
  }

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

  .page-news__card-text {
    font-size: 0.95rem;
  }

  .page-news__announcements-section,
  .page-news__promotions-section,
  .page-news__game-updates-section,
  .page-news__industry-insights-section,
  .page-news__faq-section,
  .page-news__cta-section {
    padding: 60px 0;
  }

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

  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__cta-content,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .page-news__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

  .page-news__faq-answer {
    padding: 0 20px;
  }

  .page-news__faq-item.active .page-news__faq-answer {
    padding: 10px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 2rem;
  }

  .page-news__section-title,
  .page-news__cta-title {
    font-size: 1.5rem;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    font-size: 0.9rem;
    padding: 10px 15px;
  }

  .page-news__faq-question {
    font-size: 1rem;
  }
}