/* style/news.css */

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

/* Base styles for the page-news scope */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--mk88-text-main); /* Light text for dark background */
  background-color: var(--mk88-bg-main); /* Dark background from custom palette */
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  box-sizing: border-box;
  text-align: center;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

.page-news__hero-content {
  max-width: 900px;
  margin: 0 auto;
  color: var(--mk88-text-main);
}

.page-news__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive font size */
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--mk88-gold);
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--mk88-text-secondary);
}

/* General Section Styles */
.page-news__section {
  padding: 80px 20px;
  box-sizing: border-box;
}

.page-news__dark-section {
  background-color: var(--mk88-deep-green);
  color: var(--mk88-text-main);
}

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%; /* Ensure container takes full width on smaller screens */
  box-sizing: border-box;
}

.page-news__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--mk88-gold);
}

.page-news__section-description {
  font-size: 1.05rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--mk88-text-secondary);
}

/* Article Grid */
.page-news__articles-grid,
.page-news__promotions-grid,
.page-news__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-news__article-card,
.page-news__promotion-card,
.page-news__game-card {
  background-color: var(--mk88-bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--mk88-text-main);
}

.page-news__article-card:hover,
.page-news__promotion-card:hover,
.page-news__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__article-image,
.page-news__promotion-image,
.page-news__game-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-news__article-content,
.page-news__promotion-content,
.page-news__game-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__article-title,
.page-news__promotion-title,
.page-news__game-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-news__article-title a,
.page-news__promotion-title a,
.page-news__game-title a {
  color: var(--mk88-text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover,
.page-news__promotion-title a:hover,
.page-news__game-title a:hover {
  color: var(--mk88-gold);
}

.page-news__article-date {
  font-size: 0.9rem;
  color: var(--mk88-text-secondary);
  margin-bottom: 15px;
  display: block;
}

.page-news__article-excerpt,
.page-news__promotion-description,
.page-news__game-description {
  font-size: 1rem;
  color: var(--mk88-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  color: var(--mk88-color-secondary);
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
  margin-top: auto;
}

.page-news__read-more:hover {
  color: var(--mk88-gold);
}

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

.page-news__read-more:hover .page-news__arrow {
  transform: translateX(5px);
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.page-news__btn-primary {
  background: var(--mk88-btn-gradient);
  color: #ffffff; /* White text for contrast */
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Invert gradient on hover */
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-news__btn-secondary:hover {
  background-color: var(--mk88-color-primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

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

.page-news__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
}

/* FAQ Section */
.page-news__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__faq-item {
  background-color: var(--mk88-bg-card);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--mk88-text-main);
}

.page-news__faq-item summary {
  list-style: none; /* Remove default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--mk88-gold);
  background-color: var(--mk88-deep-green);
  border-bottom: 1px solid var(--mk88-divider);
}

.page-news__faq-item summary::-webkit-details-marker {
  display: none; /* Hide Chrome/Safari marker */
}

.page-news__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--mk88-gold);
}

.page-news__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--mk88-text-secondary);
  border-top: 1px solid var(--mk88-divider);
}

.page-news__faq-item[open] summary {
  border-bottom: none;
}

.page-news__cta-section .page-news__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

  .page-news__hero-section {
    padding: 40px 15px;
  }

  .page-news__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

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

  .page-news__section {
    padding: 50px 15px;
  }

  .page-news__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .page-news__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

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

  .page-news__article-image,
  .page-news__promotion-image,
  .page-news__game-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-news__article-title,
  .page-news__promotion-title,
  .page-news__game-title {
    font-size: 1.15rem;
  }

  .page-news__article-excerpt,
  .page-news__promotion-description,
  .page-news__game-description {
    font-size: 0.95rem;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-news__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-news__hero-image-wrapper,
  .page-news__article-card,
  .page-news__promotion-card,
  .page-news__game-card,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Video responsiveness (if any, although none added yet) */
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-news__video-section {
    padding-top: 10px !important;
  }
}