/* style/news.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --dark-bg-color: #121212;
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --login-color: #EA7C07;
}

.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--light-text-color); /* Default text color for dark body background */
  background-color: var(--dark-bg-color); /* Ensure consistency with shared.css body background */
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a7bb0 100%);
  overflow: hidden;
  color: var(--light-text-color);
  text-align: center;
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

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

.page-news__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
}

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

.page-news__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2;
}

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* General Section Styling */
.page-news__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-news__light-bg {
  background-color: var(--secondary-color);
  color: var(--dark-text-color);
  padding: 80px 0;
}

.page-news__dark-bg {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  padding: 80px 0;
}

/* Featured News Grid */
.page-news__featured-news .page-news__section-title,
.page-news__featured-news .page-news__section-description {
  color: var(--dark-text-color);
}

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

.page-news__news-card {
  background-color: var(--secondary-color);
  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;
  color: var(--dark-text-color);
}

.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-news__news-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.page-news__news-content {
  padding: 25px;
}

.page-news__news-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__news-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__news-title a:hover {
  color: #1a7bb0;
}

.page-news__news-meta {
  font-size: 0.9em;
  color: #777;
  margin-bottom: 15px;
}

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

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

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

/* Promotions Section */
.page-news__promotions-section .page-news__section-title,
.page-news__promotions-section .page-news__section-description {
  color: var(--light-text-color);
}

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

.page-news__promo-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: var(--light-text-color);
  transition: background-color 0.3s ease;
}

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

.page-news__promo-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--light-text-color);
}

.page-news__promo-text {
  margin-bottom: 25px;
  opacity: 0.9;
}

/* Sports Updates Section */
.page-news__sports-updates .page-news__section-title,
.page-news__sports-updates .page-news__section-description {
  color: var(--dark-text-color);
}

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

.page-news__sports-card {
  background-color: var(--secondary-color);
  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;
  color: var(--dark-text-color);
}

.page-news__sports-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-news__sports-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.page-news__sports-content {
  padding: 25px;
}

.page-news__sports-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__sports-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__sports-title a:hover {
  color: #1a7bb0;
}

.page-news__sports-meta {
  font-size: 0.9em;
  color: #777;
  margin-bottom: 15px;
}

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

/* Guides Section */
.page-news__guides-section .page-news__section-title,
.page-news__guides-section .page-news__section-description {
  color: var(--light-text-color);
}

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

.page-news__guide-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: var(--light-text-color);
  transition: background-color 0.3s ease;
}

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

.page-news__guide-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

.page-news__guide-title a:hover {
  color: #f0f0f0;
}

.page-news__guide-text {
  font-size: 0.95em;
  margin-bottom: 20px;
  opacity: 0.9;
}

/* Security Section */
.page-news__security-section .page-news__section-title,
.page-news__security-section .page-news__section-description {
  color: var(--dark-text-color);
}

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

.page-news__feature-item {
  background-color: var(--secondary-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: var(--dark-text-color);
}

.page-news__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-news__feature-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-news__feature-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__feature-title a:hover {
  color: #1a7bb0;
}

.page-news__feature-text {
  font-size: 0.95em;
  color: #555;
}

/* FAQ Section */
.page-news__faq-section .page-news__section-title,
.page-news__faq-section .page-news__section-description {
  color: var(--light-text-color);
}

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

.page-news__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--light-text-color);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-news__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

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

.page-news__faq-qtext {
  flex-grow: 1;
  color: var(--light-text-color);
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--light-text-color);
}

.page-news__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
}

/* Call to Action Section */
.page-news__cta-section .page-news__section-title,
.page-news__cta-section .page-news__section-description {
  color: var(--dark-text-color);
}

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

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__read-more,
.page-news a[class*="button"],
.page-news a[class*="btn"] {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background-color: var(--login-color); /* Using login color for primary action */
  color: var(--light-text-color);
  border: 2px solid var(--login-color);
}

.page-news__btn-primary:hover {
  background-color: darken(var(--login-color), 10%);
  border-color: darken(var(--login-color), 10%);
}

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

.page-news__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--light-text-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news__hero-section {
    flex-direction: column;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    min-height: 500px;
  }

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

  .page-news__hero-description {
    font-size: 1em;
  }

  .page-news__hero-buttons,
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news a[class*="button"],
  .page-news a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 15px;
  }

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

  .page-news__light-bg,
  .page-news__dark-bg {
    padding: 60px 0;
  }

  .page-news__section-title {
    font-size: 1.8em;
  }

  .page-news__section-description {
    font-size: 0.95em;
  }

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

  .page-news__news-card,
  .page-news__sports-card,
  .page-news__feature-item,
  .page-news__promo-item,
  .page-news__guide-item,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__news-grid,
  .page-news__promo-list,
  .page-news__sports-grid,
  .page-news__guide-list,
  .page-news__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__news-image,
  .page-news__sports-image {
    height: 180px;
  }

  .page-news__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

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