/* style/blog-bet88-latest-news.css */

/* Base styles and typography */
.page-blog-bet88-latest-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  padding-top: 10px; /* Small top padding for first section, body padding-top handled by shared.css */
}

.page-blog-bet88-latest-news__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-blog-bet88-latest-news__section-title {
  color: #F2C14E; /* Primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-blog-bet88-latest-news__section-description {
  color: #FFF6D6;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
}

.page-blog-bet88-latest-news__lead-text {
  color: #FFF6D6;
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.25rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Color contrast classes */
.page-blog-bet88-latest-news__dark-bg {
  background-color: #0A0A0A;
  color: #FFF6D6;
}

.page-blog-bet88-latest-news__card-bg {
  background-color: #111111; /* Card BG */
  color: #FFF6D6;
}

/* Hero Section */
.page-blog-bet88-latest-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure sufficient height */
  overflow: hidden;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, larger bottom for content */
}

.page-blog-bet88-latest-news__hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-blog-bet88-latest-news__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken video for text readability */
}

.page-blog-bet88-latest-news__video-link {
  display: block;
  width: 100%;
  height: 100%;
}

.page-blog-bet88-latest-news__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
  border-radius: 8px;
}

.page-blog-bet88-latest-news__main-title {
  color: #FFD36B; /* Glow color for main title */
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.1;
  letter-spacing: -1px;
}

/* CTA Buttons */
.page-blog-bet88-latest-news__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-blog-bet88-latest-news__btn-primary,
.page-blog-bet88-latest-news__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  min-width: 200px;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog-bet88-latest-news__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-blog-bet88-latest-news__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
  opacity: 0.9;
}

.page-blog-bet88-latest-news__btn-secondary {
  background-color: transparent;
  color: #F2C14E; /* Primary color */
  border: 2px solid #F2C14E; /* Primary color for border */
}

.page-blog-bet88-latest-news__btn-secondary:hover {
  background-color: #F2C14E;
  color: #0A0A0A;
  transform: translateY(-3px);
}

/* Recent Posts Grid */
.page-blog-bet88-latest-news__posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-blog-bet88-latest-news__post-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog-bet88-latest-news__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(242, 193, 78, 0.2);
}

.page-blog-bet88-latest-news__post-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-blog-bet88-latest-news__post-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog-bet88-latest-news__post-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: bold;
  line-height: 1.3;
}

.page-blog-bet88-latest-news__post-title a {
  color: #FFD36B; /* Glow color for post titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog-bet88-latest-news__post-title a:hover {
  color: #F2C14E;
}

.page-blog-bet88-latest-news__post-meta {
  font-size: 0.9rem;
  color: #A0A0A0;
  margin-bottom: 15px;
}

.page-blog-bet88-latest-news__post-excerpt {
  font-size: 1rem;
  color: #FFF6D6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog-bet88-latest-news__read-more-btn {
  display: inline-block;
  color: #F2C14E;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog-bet88-latest-news__read-more-btn:hover {
  color: #FFD36B;
  text-decoration: underline;
}

.page-blog-bet88-latest-news__view-all-button-container {
  text-align: center;
  margin-top: 50px;
}

/* About Us Section */
.page-blog-bet88-latest-news__about-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-blog-bet88-latest-news__about-image {
  flex: 1;
  max-width: 50%;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-blog-bet88-latest-news__about-text {
  flex: 1;
  color: #FFF6D6;
}

.page-blog-bet88-latest-news__about-text p {
  margin-bottom: 15px;
  font-size: 1.05rem;
}

/* Promotions Section */
.page-blog-bet88-latest-news__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-blog-bet88-latest-news__promo-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog-bet88-latest-news__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(242, 193, 78, 0.2);
}

.page-blog-bet88-latest-news__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-blog-bet88-latest-news__promo-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog-bet88-latest-news__promo-title {
  font-size: 1.5rem;
  color: #FFD36B; /* Glow color */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-blog-bet88-latest-news__promo-text {
  font-size: 1rem;
  color: #FFF6D6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-blog-bet88-latest-news__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-blog-bet88-latest-news__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog-bet88-latest-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: bold;
  color: #F2C14E; /* Primary color for questions */
  transition: background-color 0.3s ease;
}

.page-blog-bet88-latest-news__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

.page-blog-bet88-latest-news__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-blog-bet88-latest-news__faq-item.active .page-blog-bet88-latest-news__faq-toggle {
  transform: rotate(45deg); /* Plus sign becomes 'x' or 'minus' */
}

.page-blog-bet88-latest-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
}

.page-blog-bet88-latest-news__faq-item.active .page-blog-bet88-latest-news__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px 20px;
}

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

/* Contact CTA Section */
.page-blog-bet88-latest-news__contact-cta {
  text-align: center;
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-blog-bet88-latest-news__about-content {
    flex-direction: column;
    text-align: center;
  }

  .page-blog-bet88-latest-news__about-image {
    max-width: 80%;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-blog-bet88-latest-news {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog-bet88-latest-news__section {
    padding: 40px 15px;
  }

  .page-blog-bet88-latest-news__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .page-blog-bet88-latest-news__section-description,
  .page-blog-bet88-latest-news__lead-text {
    font-size: 1rem;
  }

  .page-blog-bet88-latest-news__main-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

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

  .page-blog-bet88-latest-news__btn-primary,
  .page-blog-bet88-latest-news__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    min-width: unset;
    padding: 12px 20px;
    font-size: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog-bet88-latest-news__hero-content {
    padding: 15px;
  }

  .page-blog-bet88-latest-news__post-image,
  .page-blog-bet88-latest-news__promo-image {
    height: 200px;
  }

  .page-blog-bet88-latest-news__post-title,
  .page-blog-bet88-latest-news__promo-title {
    font-size: 1.2rem;
  }

  .page-blog-bet88-latest-news__post-card,
  .page-blog-bet88-latest-news__promo-card {
    margin-bottom: 20px;
  }

  .page-blog-bet88-latest-news__about-image {
    max-width: 100%;
  }

  .page-blog-bet88-latest-news__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  /* Image and Video responsiveness */
  .page-blog-bet88-latest-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-blog-bet88-latest-news__hero-video-wrapper,
  .page-blog-bet88-latest-news__video-container,
  .page-blog-bet88-latest-news__posts-grid,
  .page-blog-bet88-latest-news__promotions-grid,
  .page-blog-bet88-latest-news__about-content,
  .page-blog-bet88-latest-news__faq-list,
  .page-blog-bet88-latest-news__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }

  .page-blog-bet88-latest-news__hero-section {
    padding-top: 10px !important; /* Ensure small top padding, not header offset */
  }

  .page-blog-bet88-latest-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog-bet88-latest-news__faq-item.active .page-blog-bet88-latest-news__faq-answer {
    padding: 10px 20px 15px !important;
  }
}