/* style/news.css */

/* Base Styles & Typography for .page-news */
.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Matches body background for consistency */
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: #ffc107; /* Accent color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensures content clears fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 500px;
}

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

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

.page-news__hero-title {
  font-size: 3.5em;
  color: #ffc107;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

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

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1em;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-news__btn-primary {
  background-color: #ffc107;
  color: #1a1a2e;
  border: 2px solid #ffc107;
}

.page-news__btn-primary:hover {
  background-color: #e0a800;
  border-color: #e0a800;
  color: #1a1a2e;
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #ffc107;
  border: 2px solid #ffc107;
}

.page-news__btn-secondary:hover {
  background-color: #ffc107;
  color: #1a1a2e;
}

.page-news__btn-text {
  color: #ffc107;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.page-news__btn-text:hover {
  color: #e0a800;
}

.page-news__arrow {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.page-news__btn-text:hover .page-news__arrow {
  transform: translateX(5px);
}

/* Section Styling */
.page-news__latest-section,
.page-news__casino-slots,
.page-news__company-updates,
.page-news__cta-section {
  padding: 80px 0;
}

.page-news__sports-updates,
.page-news__promotions,
.page-news__faq-section {
  padding: 80px 0;
}

.page-news__dark-bg {
  background-color: #007bff;
  color: #ffffff;
}

.page-news__light-bg {
  background-color: #f8f9fa;
  color: #1a1a2e;
}

.page-news__light-bg .page-news__section-title {
  color: #007bff;
}

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

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

.page-news__article-card {
  background-color: #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;
  color: #1a1a2e; /* Dark text for light card background */
}

.page-news__article-card.page-news__card-inverted {
  background-color: rgba(0, 0, 0, 0.2); /* Semi-transparent dark background for dark sections */
  color: #ffffff;
}

.page-news__dark-bg .page-news__article-card {
  background-color: rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-news__dark-bg .page-news__article-card .page-news__article-title a {
  color: #ffc107;
}

.page-news__dark-bg .page-news__article-card .page-news__article-excerpt {
  color: #f0f0f0;
}

.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: 225px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
}

.page-news__article-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-news__article-title a {
  color: #007bff; /* Link color for article titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #0056b3;
}

.page-news__article-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-news__dark-bg .page-news__article-excerpt {
  color: #f0f0f0;
}

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

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: rgba(0, 0, 0, 0.3); /* Darker background for question */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-news__faq-title {
  font-size: 1.2em;
  color: #ffc107;
  margin: 0;
}

.page-news__faq-toggle {
  font-size: 1.8em;
  color: #ffc107;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to form an X */
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: rgba(0, 0, 0, 0.15); /* Lighter background for answer */
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px 25px 25px;
}

.page-news__faq-answer p {
  color: #ffffff;
  margin: 0;
  font-size: 1em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 3em;
  }
  .page-news__hero-description {
    font-size: 1.1em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-news__hero-title {
    font-size: 2.5em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .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;
  }
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-news__latest-section,
  .page-news__sports-updates,
  .page-news__casino-slots,
  .page-news__promotions,
  .page-news__company-updates,
  .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__article-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  .page-news__article-image {
    height: auto;
  }
  .page-news__article-content {
    padding: 20px;
  }
  .page-news__article-title {
    font-size: 1.2em;
  }
  .page-news__faq-question {
    padding: 15px 20px;
  }
  .page-news__faq-title {
    font-size: 1.1em;
  }
  .page-news__faq-answer {
    padding: 0 20px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px 20px 20px 20px;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  .page-news__cta-buttons .page-news__btn-primary,
  .page-news__cta-buttons .page-news__btn-secondary {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 2em;
  }
  .page-news__section-title {
    font-size: 1.6em;
  }
  .page-news__articles-grid {
    grid-template-columns: 1fr;
  }
}