/* style/news.css */

/* Custom Colors */
:root {
  --bet88-primary: #11A84E;
  --bet88-secondary: #22C768;
  --bet88-button-gradient-start: #2AD16F;
  --bet88-button-gradient-end: #13994A;
  --bet88-card-bg: #11271B;
  --bet88-background: #08160F;
  --bet88-text-main: #F2FFF6;
  --bet88-text-secondary: #A7D9B8;
  --bet88-border: #2E7A4E;
  --bet88-glow: #57E38D;
  --bet88-gold: #F2C14E;
  --bet88-divider: #1E3A2A;
  --bet88-deep-green: #0A4B2C;
}

/* General Page Styles */
.page-news {
  font-family: Arial, sans-serif;
  color: var(--bet88-text-main);
  background-color: var(--bet88-background); /* Body background from shared.css, this is for main content sections */
}

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

.page-news__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--bet88-text-main);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-news__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--bet88-text-main);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-news p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 1em;
  color: var(--bet88-text-secondary);
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body handles padding-top, this is for internal spacing */
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  position: relative;
  margin-bottom: 40px;
}

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

.page-news__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-news__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 800;
  color: var(--bet88-gold);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-news__hero-description {
  font-size: 1.2em;
  color: var(--bet88-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(180deg, var(--bet88-button-gradient-start) 0%, var(--bet88-button-gradient-end) 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

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

/* Latest News Section */
.page-news__latest-news-section {
  background-color: var(--bet88-card-bg);
  padding: 60px 0;
  text-align: center;
}

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

.page-news__news-card {
  background-color: var(--bet88-deep-green);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--bet88-text-secondary);
}

.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

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

.page-news__card-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

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

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

.page-news__card-excerpt {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-news__read-more:hover {
  color: var(--bet88-primary);
}

.page-news__view-all-button-wrapper {
  margin-top: 20px;
}

.page-news__cta-button--secondary {
  background: var(--bet88-primary);
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-news__cta-button--secondary:hover {
  background: var(--bet88-secondary);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

/* Content Area */
.page-news__content-area {
  background-color: var(--bet88-background);
  padding: 60px 0;
  color: var(--bet88-text-secondary);
}

.page-news__text-block {
  margin-bottom: 40px;
  padding: 20px;
  background-color: var(--bet88-card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-top: 25px;
  margin-bottom: 25px;
}

/* FAQ Section */
.page-news__faq-section {
  background-color: var(--bet88-deep-green);
  padding: 60px 0;
  color: var(--bet88-text-main);
}

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

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

.page-news__faq-item summary {
  list-style: none;
}

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--bet88-text-main);
  cursor: pointer;
  background-color: var(--bet88-border);
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: var(--bet88-primary);
}

.page-news__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  margin-left: 15px;
  color: var(--bet88-gold);
}

.page-news__faq-answer {
  padding: 20px 25px;
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--bet88-text-secondary);
  background-color: var(--bet88-card-bg);
  border-top: 1px solid var(--bet88-divider);
}

/* Final CTA Section */
.page-news__cta-section {
  background-color: var(--bet88-background);
  padding: 60px 0;
  text-align: center;
}

.page-news__cta-description {
  font-size: 1.2em;
  color: var(--bet88-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-news__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-bottom: 40px;
  }
  .page-news__hero-image {
    max-height: 300px;
  }
  .page-news__main-title {
    font-size: clamp(1.8em, 6vw, 2.8em);
  }
  .page-news__hero-description,
  .page-news__cta-description,
  .page-news p,
  .page-news li {
    font-size: 1em;
    line-height: 1.5;
  }
  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-news__sub-title {
    font-size: 1.5em;
  }
  .page-news__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-news__cta-button,
  .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__latest-news-section,
  .page-news__content-area,
  .page-news__faq-section,
  .page-news__cta-section {
    padding: 40px 0;
  }
  .page-news__container,
  .page-news__text-block,
  .page-news__news-card,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__video-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: clamp(1.5em, 7vw, 2.2em);
  }
  .page-news__cta-button {
    padding: 10px 20px;
    font-size: 1em;
  }
  .page-news__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-news__faq-answer {
    font-size: 0.95em;
    padding: 15px 20px;
  }
}