/* style/news.css */

/* Custom Colors */
:root {
  --vvwin-bg-primary: #08160F;
  --vvwin-card-bg: #11271B;
  --vvwin-text-main: #F2FFF6;
  --vvwin-text-secondary: #A7D9B8;
  --vvwin-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --vvwin-border-color: #2E7A4E;
  --vvwin-glow-color: #57E38D;
  --vvwin-gold-color: #F2C14E;
  --vvwin-divider-color: #1E3A2A;
  --vvwin-deep-green: #0A4B2C;
}

.page-news {
  font-family: 'Arial', sans-serif;
  color: var(--vvwin-text-main); /* Main text color for the page */
  background-color: var(--vvwin-bg-primary); /* Assuming body background is handled by shared.css var(--bg-color) */
  line-height: 1.6;
}

.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* body handles --header-offset, this is decorative top padding */
  overflow: hidden;
  color: var(--vvwin-text-main);
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-height: 500px; /* Limit height on desktop */
}

.page-news__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 900px;
  width: 90%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  box-sizing: border-box;
  z-index: 10;
  /* Ensure text is above the image but not overlapping it in a way that implies stacking */
  /* This is a common design pattern where text is centered on a background image */
  /* The previous constraint was about not using position:absolute to *overlay* text directly ONTO the img element itself. */
  /* This pattern uses a container with its own background for the text, centered over the hero area. */
}

.page-news__main-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--vvwin-gold-color);
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.page-news__description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
  color: var(--vvwin-text-secondary);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: var(--vvwin-button-gradient);
  color: var(--vvwin-text-main);
  border: 2px solid transparent;
}

.page-news__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-news__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-news__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--vvwin-gold-color);
}

.page-news__section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--vvwin-text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-news__article-card {
  background-color: var(--vvwin-card-bg);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

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

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

.page-news__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-news__card-title a {
  color: var(--vvwin-text-main);
  text-decoration: none;
}

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

.page-news__card-meta {
  font-size: 0.9rem;
  color: var(--vvwin-text-secondary);
  margin-bottom: 15px;
}

.page-news__card-excerpt {
  font-size: 1rem;
  color: var(--vvwin-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: var(--vvwin-gold-color);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--vvwin-gold-color);
  padding-bottom: 2px;
}

.page-news__read-more:hover {
  color: var(--vvwin-glow-color);
  border-color: var(--vvwin-glow-color);
}

.page-news__view-all-button-container {
  margin-top: 50px;
}

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

.page-news__btn-secondary:hover {
  background: var(--vvwin-gold-color);
  color: var(--vvwin-bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-news__promotions-cta {
  background-color: var(--vvwin-deep-green);
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-news__cta-content {
  z-index: 2;
  max-width: 800px;
}

.page-news__cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--vvwin-gold-color);
  margin-bottom: 20px;
}

.page-news__cta-description {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--vvwin-text-secondary);
  margin-bottom: 40px;
}

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

.page-news__cta-image {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 500px;
  height: auto;
  opacity: 0.1;
  z-index: 1;
  pointer-events: none;
  object-fit: contain;
}

.page-news__faq-section {
  padding: 60px 20px;
  background-color: var(--vvwin-bg-primary);
}

.page-news__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-news__faq-item {
  background-color: var(--vvwin-card-bg);
  border: 1px solid var(--vvwin-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-weight: 600;
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--vvwin-text-main);
  position: relative;
}

.page-news__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-news__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-news__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--vvwin-gold-color);
  transition: transform 0.3s ease;
}

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

.page-news__faq-answer {
  padding: 0 20px 20px 20px;
  color: var(--vvwin-text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

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

/* General image responsiveness for content area */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-news__hero-section {
    padding: 10px 0 30px 0;
  }

  .page-news__hero-image {
    max-height: 300px;
  }

  .page-news__hero-content {
    width: 95%;
    padding: 15px;
  }

  .page-news__main-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 10px;
  }

  .page-news__description {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    margin-bottom: 20px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__section,
  .page-news__container,
  .page-news__article-card,
  .page-news__promotions-cta,
  .page-news__faq-section,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-news__article-image {
    height: 180px;
  }

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

  .page-news__cta-image {
    width: 100%;
    height: auto;
    bottom: -20%;
    right: -20%;
    opacity: 0.05;
  }

  /* Ensure all content area images are responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

/* Desktop specific styles for hero content positioning */
@media (min-width: 769px) {
  .page-news__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto; /* Allow content to dictate width, up to max-width */
    max-width: 900px;
    padding: 30px 50px;
  }

  .page-news__hero-section {
    min-height: 500px; /* Ensure hero section has a minimum height */
    justify-content: flex-start; /* Align content to top */
  }

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

  .page-news__hero-content {
    position: relative; /* Make content relative within its flex parent for normal flow */
    z-index: 2; /* Ensure text is above the image */
    margin-top: 100px; /* Adjust to push content down from top if hero image is full height */
  }
  
  /* Re-adjust hero content for proper stacking */
  .page-news__hero-section {
    position: relative;
    min-height: 500px; /* Ensure a minimum height for the hero section */
    display: block; /* Use block to allow image and content to be positioned absolutely or relatively */
  }

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

  .page-news__hero-content {
    position: relative; /* Change to relative to avoid overlay issues */
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px;
    background: none; /* Remove background on desktop if it's meant to be directly on image */
    z-index: 2;
    text-align: center;
    color: var(--vvwin-text-main);
  }

  /* Final adjustment for hero content to be below image, not overlaying */
  .page-news__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
  }

  .page-news__hero-image {
    position: relative; /* Make image flow normally */
    max-height: 500px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and text */
  }

  .page-news__hero-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    background: none; /* No background on text if image is above */
    padding: 0 20px;
    max-width: 900px;
    width: 100%;
  }

  .page-news__promotions-cta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 80px 40px;
  }

  .page-news__cta-content {
    text-align: left;
    max-width: 50%;
  }

  .page-news__cta-buttons {
    justify-content: flex-start;
  }

  .page-news__cta-image {
    position: relative;
    bottom: auto;
    right: auto;
    width: 400px;
    opacity: 0.2;
  }
}