/* style/news.css */

:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg: #111111;
  --background-color: #0A0A0A;
  --text-main-color: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-news {
  font-family: 'Arial', sans-serif;
  background-color: var(--background-color); /* Body background is var(--main-bg), assuming it's dark */
  color: var(--text-main-color); /* Use light text color for dark body background */
  line-height: 1.6;
}

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

.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;
  color: var(--primary-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: var(--secondary-color);
  border-radius: 2px;
}

.page-news__section-description {
  font-size: 18px;
  color: rgba(255, 246, 214, 0.8);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
}

/* Hero Banner Section */
.page-news__hero-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  overflow: hidden;
}

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

.page-news__hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

.page-news__main-title {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-news__description {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-main-color);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #000000; /* Ensure black text for gradient button */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
  border: none;
  cursor: pointer;
}

.page-news__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

.page-news__cta-button--inverted {
  background: var(--text-main-color);
  color: var(--background-color);
}

.page-news__cta-button--inverted:hover {
  background: #ffffff;
  color: #000000;
}

.page-news__cta-button--secondary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  margin-left: 20px;
  box-shadow: none;
}

.page-news__cta-button--secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  box-shadow: none;
}

/* Latest News Section */
.page-news__latest-updates {
  background-color: var(--background-color);
}

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

.page-news__news-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

.page-news__card-image-wrapper {
  width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  overflow: hidden;
}

.page-news__card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-news__news-card:hover .page-news__card-image-wrapper img {
  transform: scale(1.05);
}

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

.page-news__post-date {
  font-size: 14px;
  color: rgba(255, 246, 214, 0.6);
  margin-bottom: 10px;
  display: block;
}

.page-news__card-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

.page-news__card-title a:hover {
  color: var(--secondary-color);
}

.page-news__card-excerpt {
  font-size: 16px;
  color: rgba(255, 246, 214, 0.7);
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

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

.page-news__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: #000000; /* Ensure black text for primary button */
  text-decoration: none;
  border-radius: 6px;
  font-size: 17px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-news__view-all-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

/* In-depth Article Section */
.page-news__in-depth-article {
  background-color: var(--card-bg);
}

.page-news__in-depth-article p {
  color: rgba(255, 246, 214, 0.8);
  margin-bottom: 20px;
  font-size: 17px;
}

.page-news__sub-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 25px;
}

.page-news__image-container {
  margin: 30px 0;
  text-align: center;
}

.page-news__image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 0 auto;
}

.page-news__image-caption {
  font-size: 14px;
  color: rgba(255, 246, 214, 0.6);
  margin-top: 10px;
}

.page-news__game-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.page-news__game-list li {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 15px 20px;
  transition: background-color 0.3s ease;
}

.page-news__game-list li:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-news__game-list li a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  display: block;
}

.page-news__game-list li a:hover {
  color: var(--primary-color);
}

/* CTA Section */
.page-news__cta-section {
  background: var(--primary-color);
  color: #000000; /* Dark text for primary color background */
  text-align: center;
}

.page-news__cta-section.page-news__dark-section {
  background: var(--card-bg);
  color: var(--text-main-color);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.page-news__section-description--light {
  color: rgba(255, 246, 214, 0.8);
}

/* FAQ Section */
details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  color: var(--text-main-color);
}
details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-news__faq-item summary.page-news__faq-question::-webkit-details-marker {
  display: none;
}
details.page-news__faq-item summary.page-news__faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--primary-color);
}
.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-news__faq-item .page-news__faq-answer {
  padding: 0 25px 25px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0 0 8px 8px;
  font-size: 16px;
  color: rgba(255, 246, 214, 0.7);
}

/* Related Articles Section */
.page-news__related-articles {
  background-color: var(--background-color);
}

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

.page-news__related-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

.page-news__related-card .page-news__card-image-wrapper {
  height: 180px;
}

.page-news__related-card .page-news__card-title {
  font-size: 20px;
}

.page-news__related-card .page-news__card-excerpt {
  font-size: 15px;
}

/* Global Image Responsive Styles */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-news__image-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__section-title {
    font-size: 32px;
  }
  .page-news__section-description {
    font-size: 16px;
  }
  .page-news__main-title {
    font-size: clamp(24px, 5vw, 40px);
  }
  .page-news__description {
    font-size: clamp(15px, 2.5vw, 18px);
  }
  .page-news__news-grid, .page-news__related-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
  .page-news__card-title {
    font-size: 20px;
  }
  .page-news__card-excerpt {
    font-size: 15px;
  }
  .page-news__sub-title {
    font-size: 26px;
  }
  .page-news__in-depth-article p {
    font-size: 16px;
  }
  .page-news__faq-qtext {
    font-size: 17px;
  }
  .page-news__faq-toggle {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-banner {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-news__hero-content {
    padding: 15px;
  }
  .page-news__main-title {
    font-size: clamp(22px, 6vw, 36px);
    margin-bottom: 15px;
  }
  .page-news__description {
    font-size: clamp(14px, 3vw, 16px);
    margin-bottom: 25px;
  }
  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-news__cta-button--secondary {
    margin-left: 10px;
  }
  .page-news__section {
    padding: 40px 0;
  }
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-news__section-description {
    font-size: 15px;
    margin-bottom: 40px;
  }
  .page-news__news-grid, .page-news__related-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__card-image-wrapper {
    height: 180px;
  }
  .page-news__card-content {
    padding: 20px;
  }
  .page-news__card-title {
    font-size: 18px;
  }
  .page-news__card-excerpt {
    font-size: 14px;
  }
  .page-news__view-all-button {
    padding: 10px 25px;
    font-size: 15px;
  }
  .page-news__sub-title {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .page-news__in-depth-article p {
    font-size: 15px;
  }
  .page-news__game-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  details.page-news__faq-item summary.page-news__faq-question {
    padding: 15px 20px;
  }
  .page-news__faq-qtext {
    font-size: 16px;
  }
  .page-news__faq-toggle {
    font-size: 24px;
    width: 25px;
  }
  details.page-news__faq-item .page-news__faq-answer {
    padding: 0 20px 20px;
  }
  
  /* Mobile specific image and button styles */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-news__section, .page-news__container, .page-news__hero-banner, .page-news__hero-content, .page-news__news-card, .page-news__related-card, .page-news__image-container, .page-news__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-news__cta-button, .page-news__view-all-button, .page-news a[class*="button"], .page-news a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important; /* Reset margin for secondary button */
    margin-top: 15px; /* Add top margin for stacked buttons */
  }
  .page-news__hero-content .page-news__cta-button:first-of-type {
    margin-top: 0; /* No top margin for first button in hero */
  }
  .page-news__cta-section .page-news__cta-button {
    margin-top: 15px;
  }
  .page-news__cta-section .page-news__cta-button:first-of-type {
    margin-top: 0;
  }
}