/* style/latest-offers.css */

:root {
  --primary-color: #002060;
  --secondary-color: #FFD700;
  --text-on-dark: #ffffff;
  --text-on-light: #333333;
  --bg-dark: #000;
  --bg-light: #f4f7f6;
  --border-color: #e0e0e0;
}

.page-latest-offers {
  font-family: 'Arial', sans-serif;
  color: var(--text-on-dark); /* Default text color for dark body background */
  background-color: var(--bg-dark);
  padding-top: 10px; /* Initial padding for fixed header on desktop */
}

.page-latest-offers__dark-section {
  background-color: var(--primary-color);
  color: var(--text-on-dark);
}

.page-latest-offers__light-bg {
  background-color: var(--bg-light);
  color: var(--text-on-light);
}

.page-latest-offers__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-latest-offers__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 25px;
  color: inherit;
  line-height: 1.3;
}

.page-latest-offers__section-description {
  font-size: 18px;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: inherit;
}

/* Hero Section */
.page-latest-offers__hero-section {
  padding: 120px 0 80px 0; /* Adjust padding-top for fixed header */
  text-align: center;
  background-image: url('[GALLERY:bg:8daybet,latestoffers,hero]');
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.page-latest-offers__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.page-latest-offers__main-title {
  font-size: 52px;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-latest-offers__hero-description {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-on-dark);
  line-height: 1.8;
}

.page-latest-offers__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-latest-offers__cta-button {
  display: inline-block;
  padding: 16px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
}

.page-latest-offers__btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-latest-offers__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-latest-offers__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.page-latest-offers__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Video Section */
.page-latest-offers__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
}

.page-latest-offers__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-latest-offers__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-latest-offers__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-latest-offers__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 宽高比 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-latest-offers__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from blocking click event */
}

.page-latest-offers__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-latest-offers__video-link:hover .page-latest-offers__video-overlay {
  opacity: 1;
}

.page-latest-offers__video-click-hint {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(0, 123, 255, 0.8);
  border-radius: 5px;
  white-space: nowrap;
}

.page-latest-offers__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-latest-offers__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

.page-latest-offers__play-now-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-latest-offers__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Featured Promos Section */
.page-latest-offers__featured-promos-section {
  padding: 80px 0;
}

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

.page-latest-offers__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-latest-offers__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.page-latest-offers__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  color: var(--text-on-light);
}

.page-latest-offers__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-latest-offers__card-text {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-latest-offers__card-button {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-align: center;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-latest-offers__card-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

/* How To Claim Section */
.page-latest-offers__how-to-claim-section {
  padding: 80px 0;
}

.page-latest-offers__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: guide-counter;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-latest-offers__guide-item {
  background-color: #ffffff;
  color: var(--text-on-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  padding-top: 70px; /* Space for number */
  display: flex;
  flex-direction: column;
}

.page-latest-offers__guide-item::before {
  counter-increment: guide-counter;
  content: counter(guide-counter);
  position: absolute;
  top: 25px;
  left: 30px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-latest-offers__guide-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-latest-offers__guide-item p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-latest-offers__guide-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--text-on-dark);
  text-align: center;
  border-radius: 5px;
  text-decoration: none;
  font-size: 15px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: auto;
}

.page-latest-offers__guide-button:hover {
  background-color: #003399;
}

/* Terms Section */
.page-latest-offers__terms-section {
  padding: 80px 0;
}

.page-latest-offers__terms-list {
  list-style: none;
  padding: 0;
}

.page-latest-offers__terms-item {
  background-color: #ffffff;
  color: var(--text-on-light);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.page-latest-offers__terms-heading {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-latest-offers__terms-item p {
  font-size: 16px;
  line-height: 1.7;
}

/* FAQ Section */
.page-latest-offers__faq-section {
  padding: 80px 0;
}

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

.page-latest-offers__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-latest-offers__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-on-light);
}

.page-latest-offers__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-latest-offers__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: var(--primary-color);
}

.page-latest-offers__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-latest-offers__faq-item.active .page-latest-offers__faq-toggle {
  transform: rotate(45deg); /* Change to X or rotate */
  color: var(--secondary-color);
}

.page-latest-offers__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #f9f9f9;
  color: var(--text-on-light);
}

.page-latest-offers__faq-item.active .page-latest-offers__faq-answer {
  max-height: 2000px !important; /* Sufficiently large for content */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 8px 8px;
}

.page-latest-offers__faq-answer p {
  margin: 0;
  line-height: 1.7;
  font-size: 16px;
}

/* Why Choose Section */
.page-latest-offers__why-choose-section {
  padding: 80px 0;
}

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

.page-latest-offers__benefit-item {
  background-color: #ffffff;
  color: var(--text-on-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-latest-offers__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-latest-offers__benefit-heading {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-latest-offers__benefit-item p {
  font-size: 16px;
  line-height: 1.7;
}

/* Final CTA Section */
.page-latest-offers__final-cta-section {
  padding: 80px 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-latest-offers__main-title {
    font-size: 44px;
  }
  .page-latest-offers__section-title {
    font-size: 32px;
  }
  .page-latest-offers__hero-description,
  .page-latest-offers__section-description {
    font-size: 17px;
  }
  .page-latest-offers__cta-button {
    font-size: 17px;
    padding: 14px 30px;
  }
}

@media (max-width: 768px) {
  .page-latest-offers {
    padding-top: 10px !important; /* Mobile padding for fixed header */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-latest-offers__hero-section {
    padding: 100px 0 60px 0;
  }

  .page-latest-offers__main-title {
    font-size: 36px;
    margin-bottom: 15px;
  }

  .page-latest-offers__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-latest-offers__section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .page-latest-offers__section-description {
    font-size: 15px;
    margin-bottom: 40px;
    padding: 0 15px;
  }

  .page-latest-offers__cta-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-latest-offers__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 25px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Video Section Mobile */
  .page-latest-offers__video-section {
    padding-top: 40px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-latest-offers__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  
  .page-latest-offers__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-latest-offers__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 4px;
    overflow: hidden !important;
  }
  
  .page-latest-offers__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain; /* Ensure video fits within bounds */
  }
  
  .page-latest-offers__video-cta {
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-latest-offers__play-now-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-latest-offers__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }

  /* General Section Padding */
  .page-latest-offers__featured-promos-section,
  .page-latest-offers__how-to-claim-section,
  .page-latest-offers__terms-section,
  .page-latest-offers__faq-section,
  .page-latest-offers__why-choose-section,
  .page-latest-offers__final-cta-section {
    padding: 50px 0;
  }

  .page-latest-offers__container {
    padding: 0 15px;
  }

  .page-latest-offers__promos-grid,
  .page-latest-offers__guide-list,
  .page-latest-offers__benefits-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-latest-offers__promo-card,
  .page-latest-offers__guide-item,
  .page-latest-offers__benefit-item,
  .page-latest-offers__terms-item {
    padding: 20px;
  }

  .page-latest-offers__promo-image {
    height: 180px;
  }

  .page-latest-offers__card-title,
  .page-latest-offers__guide-title,
  .page-latest-offers__terms-heading,
  .page-latest-offers__benefit-heading {
    font-size: 20px;
  }

  .page-latest-offers__card-text,
  .page-latest-offers__guide-item p,
  .page-latest-offers__terms-item p,
  .page-latest-offers__benefit-item p {
    font-size: 15px;
  }

  .page-latest-offers__faq-question {
    padding: 15px 20px;
  }
  .page-latest-offers__faq-question h3 {
    font-size: 16px;
  }
  .page-latest-offers__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-latest-offers__faq-answer {
    padding: 0 20px;
  }
  .page-latest-offers__faq-item.active .page-latest-offers__faq-answer {
    padding: 15px 20px !important;
  }
}

@media (max-width: 480px) {
  .page-latest-offers__main-title {
    font-size: 30px;
  }
  .page-latest-offers__section-title {
    font-size: 24px;
  }
  .page-latest-offers__cta-button {
    padding: 12px 20px !important;
    font-size: 15px !important;
  }
  .page-latest-offers__promo-image {
    height: 160px;
  }
  .page-latest-offers__card-title {
    font-size: 20px;
  }
  .page-latest-offers__guide-item {
    padding-top: 60px;
  }
  .page-latest-offers__guide-item::before {
    width: 35px;
    height: 35px;
    font-size: 20px;
    top: 20px;
    left: 20px;
  }
  .page-latest-offers__guide-title {
    font-size: 18px;
  }
}

/* Image responsiveness */
.page-latest-offers img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .page-latest-offers img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-latest-offers__section,
  .page-latest-offers__card,
  .page-latest-offers__container,
  .page-latest-offers__promos-grid,
  .page-latest-offers__promo-card,
  .page-latest-offers__guide-list,
  .page-latest-offers__guide-item,
  .page-latest-offers__terms-list,
  .page-latest-offers__terms-item,
  .page-latest-offers__faq-list,
  .page-latest-offers__faq-item,
  .page-latest-offers__why-choose-section,
  .page-latest-offers__benefits-list,
  .page-latest-offers__benefit-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-latest-offers__hero-section,
  .page-latest-offers__final-cta-section {
    padding-left: 0;
    padding-right: 0;
  }
}