/* style/news.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #1E90FF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f9f9f9;
  --background-dark: #0d0d0d; /* Assuming from shared.css var(--dark-bg-1) */
  --card-background: #ffffff;
  --border-color: #e0e0e0;
}

.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default to light text as body is dark-bg-1 */
  background-color: var(--background-dark);
}

/* 🚨 Fixed Header Padding for Desktop */
.page-news__hero-banner {
  padding-top: 180px; /* Desktop: Adjust based on actual header height */
}

/* Hero Banner Section */
.page-news__hero-banner {
  position: relative;
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, #FFA500 100%); /* Gold gradient */
  color: var(--text-light);
  padding: 60px 20px;
  box-sizing: border-box;
}

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

.page-news__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-news__subtitle {
  font-size: 22px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

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

.page-news__cta-button:hover {
  background: #187bcd; /* Darker blue */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-news__section-padding {
  padding: 60px 0;
}

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

.page-news__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color); /* Gold color for titles on dark background */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-news__section-title--light {
  color: var(--text-light);
}

.page-news__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #cccccc;
}

.page-news__section-description--light {
  color: var(--text-light);
}

.page-news__highlight {
  color: var(--primary-color);
  font-weight: bold;
}

/* Latest Articles Section */
.page-news__latest-articles {
  background-color: var(--background-dark);
  color: var(--text-light);
}

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

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

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

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

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

.page-news__article-title a {
  color: var(--primary-color); /* Gold for article titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #ffd700; /* Lighter gold on hover */
  text-decoration: underline;
}

.page-news__article-excerpt {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-news__article-date {
  font-size: 14px;
  color: #999999;
  display: block;
  margin-bottom: 15px;
}

.page-news__read-more-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-news__read-more-button:hover {
  background: #187bcd;
}

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

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

.page-news__view-all-button:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Game Guides Section */
.page-news__game-guides {
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  color: var(--text-light);
}

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

.page-news__guide-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  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__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

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

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

.page-news__guide-title a:hover {
  color: #ffd700;
  text-decoration: underline;
}

.page-news__guide-excerpt {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-news__read-more-button--dark {
  background: var(--primary-color);
  color: var(--text-dark);
}

.page-news__read-more-button--dark:hover {
  background: #e6c200;
}

/* Promotional News Section */
.page-news__promotional-news {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-news__promos-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-news__promo-item {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  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__promo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__promo-image {
  width: 250px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-news__promo-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-news__promo-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

.page-news__promo-title a:hover {
  color: #ffd700;
  text-decoration: underline;
}

.page-news__promo-description {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
}

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

.page-news__promo-description a:hover {
  color: #187bcd;
  text-decoration: underline;
}

.page-news__promo-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

.page-news__promo-button:hover {
  background: #187bcd;
}

/* FAQ Section */
.page-news__faq-section {
  background-color: var(--background-dark);
  color: var(--text-light);
}

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

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.08); /* Slightly lighter on dark bg */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-news__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color); /* Gold for FAQ questions */
  pointer-events: none;
}

.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #cccccc;
  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: 32px;
  height: 32px;
}

.page-news__faq-item.active .page-news__faq-toggle {
  color: var(--text-light);
  transform: rotate(45deg); /* Rotate plus to become cross for active state */
}

.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(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 8px 8px;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  color: #eeeeee;
}

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

.page-news__faq-answer a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-news__faq-answer a:hover {
  text-decoration: underline;
}

/* 🚨 Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 40px;
  }
  .page-news__subtitle {
    font-size: 20px;
  }
  .page-news__section-title {
    font-size: 30px;
  }
  .page-news__section-description {
    font-size: 16px;
  }
  .page-news__article-title, .page-news__guide-title {
    font-size: 20px;
  }
  .page-news__promo-item {
    flex-direction: column;
  }
  .page-news__promo-image {
    width: 100%;
    height: 200px;
  }
  .page-news__promo-content {
    align-items: center;
    text-align: center;
  }
  .page-news__promo-button {
    align-self: center;
  }
}

@media (max-width: 768px) {
  /* 🚨 Mobile Padding Top for fixed header */
  .page-news__hero-banner {
    padding-top: 160px !important; /* Mobile: Adjust based on actual header height */
    min-height: 300px;
  }
  .page-news__main-title {
    font-size: 32px;
  }
  .page-news__subtitle {
    font-size: 18px;
  }
  .page-news__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-news__section-padding {
    padding: 40px 0;
  }
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__section-title {
    font-size: 26px;
  }
  .page-news__section-description {
    font-size: 15px;
  }
  .page-news__articles-grid, .page-news__guides-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-image, .page-news__guide-image {
    height: 180px;
  }
  .page-news__article-content, .page-news__guide-content {
    padding: 20px;
  }
  .page-news__article-title, .page-news__guide-title {
    font-size: 18px;
  }
  .page-news__article-excerpt, .page-news__guide-excerpt, .page-news__promo-description, .page-news__faq-answer p {
    font-size: 14px;
  }
  .page-news__article-date {
    font-size: 13px;
  }
  .page-news__read-more-button, .page-news__promo-button {
    padding: 10px 20px;
    font-size: 14px;
  }
  .page-news__promo-item {
    flex-direction: column;
  }
  .page-news__promo-image {
    width: 100%;
    height: 150px;
  }
  .page-news__promo-content {
    padding: 20px;
  }
  .page-news__promo-title {
    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: 28px;
    height: 28px;
  }
  .page-news__faq-answer {
    padding: 0 20px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px 20px !important;
  }
  /* 🚨 Mobile image responsive adaptation */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-news__section, .page-news__card, .page-news__container, .page-news__hero-banner, .page-news__articles-grid, .page-news__guides-grid, .page-news__promos-list, .page-news__promo-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}