/* style/promotions-daily-bonus.css */

:root {
  --page-promotions-daily-bonus-primary-color: #017439;
  --page-promotions-daily-bonus-secondary-color: #FFFFFF;
  --page-promotions-daily-bonus-text-dark: #333333;
  --page-promotions-daily-bonus-text-light: #ffffff;
  --page-promotions-daily-bonus-bg-dark: #0a0a0a; /* Inherited from body */
  --page-promotions-daily-bonus-bg-light: #f8f8f8;
  --page-promotions-daily-bonus-card-bg-dark-mode: rgba(255, 255, 255, 0.1);
  --page-promotions-daily-bonus-register-btn-color: #C30808;
  --page-promotions-daily-bonus-login-btn-color: #C30808;
  --page-promotions-daily-bonus-register-login-font-color: #FFFF00;
}

.page-promotions-daily-bonus {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-promotions-daily-bonus-text-light); /* Default text color for dark body background */
  background-color: var(--page-promotions-daily-bonus-bg-dark);
}

.page-promotions-daily-bonus__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.page-promotions-daily-bonus__hero-section {
  position: relative;
  padding: 100px 20px 60px; /* Adjust top padding for header offset */
  text-align: center;
  background-color: var(--page-promotions-daily-bonus-primary-color);
  background-image: url('[GALLERY:hero_main:1920x1080:gem_b52,daily_bonus,excitement,rewards,online_gambling,vietnam]');
  background-size: cover;
  background-position: center;
  color: var(--page-promotions-daily-bonus-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-promotions-daily-bonus__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
  z-index: 1;
}

.page-promotions-daily-bonus__hero-section > .page-promotions-daily-bonus__container {
  position: relative;
  z-index: 2;
}

.page-promotions-daily-bonus__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--page-promotions-daily-bonus-text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-promotions-daily-bonus__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--page-promotions-daily-bonus-text-light);
}

.page-promotions-daily-bonus__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-promotions-daily-bonus__btn-primary,
.page-promotions-daily-bonus__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
}

.page-promotions-daily-bonus__btn-primary {
  background-color: var(--page-promotions-daily-bonus-primary-color);
  color: var(--page-promotions-daily-bonus-text-light);
  border-color: var(--page-promotions-daily-bonus-primary-color);
}

.page-promotions-daily-bonus__btn-primary:hover {
  background-color: #005a2b;
  transform: translateY(-2px);
}

.page-promotions-daily-bonus__btn-secondary {
  background-color: var(--page-promotions-daily-bonus-secondary-color);
  color: var(--page-promotions-daily-bonus-primary-color);
  border-color: var(--page-promotions-daily-bonus-primary-color);
}

.page-promotions-daily-bonus__btn-secondary:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

/* General Section Styling */
.page-promotions-daily-bonus__benefits-section,
.page-promotions-daily-bonus__how-it-works,
.page-promotions-daily-bonus__featured-bonus,
.page-promotions-daily-bonus__faq-section,
.page-promotions-daily-bonus__cta-final {
  padding: 60px 0;
  text-align: center;
}

.page-promotions-daily-bonus__light-bg {
  background-color: var(--page-promotions-daily-bonus-bg-light);
  color: var(--page-promotions-daily-bonus-text-dark);
}

.page-promotions-daily-bonus__dark-bg {
  background-color: var(--page-promotions-daily-bonus-bg-dark);
  color: var(--page-promotions-daily-bonus-text-light);
}

.page-promotions-daily-bonus__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: inherit;
}

.page-promotions-daily-bonus__section-subtitle {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

/* Card Styling */
.page-promotions-daily-bonus__benefits-grid,
.page-promotions-daily-bonus__steps-grid,
.page-promotions-daily-bonus__bonus-carousel {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

.page-promotions-daily-bonus__benefits-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-promotions-daily-bonus__steps-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.page-promotions-daily-bonus__bonus-carousel {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.page-promotions-daily-bonus__card {
  background-color: var(--page-promotions-daily-bonus-card-bg-dark-mode); /* For dark sections */
  color: var(--page-promotions-daily-bonus-text-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions-daily-bonus__light-bg .page-promotions-daily-bonus__card {
  background-color: var(--page-promotions-daily-bonus-secondary-color);
  color: var(--page-promotions-daily-bonus-text-dark);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.page-promotions-daily-bonus__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-promotions-daily-bonus__card-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-promotions-daily-bonus__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: inherit;
}

.page-promotions-daily-bonus__card-text {
  font-size: 1em;
  color: inherit;
}

.page-promotions-daily-bonus__card-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--page-promotions-daily-bonus-primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-promotions-daily-bonus__card-link:hover {
  text-decoration: underline;
}

/* How It Works Steps */
.page-promotions-daily-bonus__step-icon {
  width: 60px;
  height: 60px;
  background-color: var(--page-promotions-daily-bonus-primary-color);
  color: var(--page-promotions-daily-bonus-text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin: 0 auto 20px;
}

.page-promotions-daily-bonus__cta-center {
  margin-top: 50px;
}

/* FAQ Section */
.page-promotions-daily-bonus__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.page-promotions-daily-bonus__faq-item {
  background-color: var(--page-promotions-daily-bonus-card-bg-dark-mode);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions-daily-bonus__light-bg .page-promotions-daily-bonus__faq-item {
  background-color: var(--page-promotions-daily-bonus-secondary-color);
  border: 1px solid #e0e0e0;
}

.page-promotions-daily-bonus__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: inherit;
  transition: background-color 0.3s ease;
}

.page-promotions-daily-bonus__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-promotions-daily-bonus__light-bg .page-promotions-daily-bonus__faq-question:hover {
  background-color: #f0f0f0;
}

.page-promotions-daily-bonus__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-promotions-daily-bonus__faq-item.active .page-promotions-daily-bonus__faq-toggle {
  transform: rotate(45deg);
}

.page-promotions-daily-bonus__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: inherit;
}

.page-promotions-daily-bonus__faq-item.active .page-promotions-daily-bonus__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

.page-promotions-daily-bonus__faq-answer p {
  margin-bottom: 0;
  font-size: 1em;
  color: inherit;
}

/* Floating Buttons */
.page-promotions-daily-bonus__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-promotions-daily-bonus__floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 50px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1em;
  color: var(--page-promotions-daily-bonus-register-login-font-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.page-promotions-daily-bonus__floating-btn:hover {
  transform: translateY(-3px);
}

.page-promotions-daily-bonus__floating-btn--register {
  background-color: var(--page-promotions-daily-bonus-register-btn-color);
}

.page-promotions-daily-bonus__floating-btn--login {
  background-color: var(--page-promotions-daily-bonus-login-btn-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions-daily-bonus__hero-title {
    font-size: 2.8em;
  }
  .page-promotions-daily-bonus__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-promotions-daily-bonus__hero-section {
    padding: 80px 15px 40px;
    min-height: 400px;
  }
  .page-promotions-daily-bonus__hero-title {
    font-size: 2.2em;
  }
  .page-promotions-daily-bonus__hero-description {
    font-size: 1.1em;
  }
  .page-promotions-daily-bonus__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-promotions-daily-bonus__btn-primary,
  .page-promotions-daily-bonus__btn-secondary {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .page-promotions-daily-bonus__benefits-section,
  .page-promotions-daily-bonus__how-it-works,
  .page-promotions-daily-bonus__featured-bonus,
  .page-promotions-daily-bonus__faq-section,
  .page-promotions-daily-bonus__cta-final {
    padding: 40px 0;
  }
  
  .page-promotions-daily-bonus__section-title {
    font-size: 1.8em;
  }
  .page-promotions-daily-bonus__section-subtitle {
    font-size: 1em;
  }
  
  .page-promotions-daily-bonus__benefits-grid,
  .page-promotions-daily-bonus__steps-grid,
  .page-promotions-daily-bonus__bonus-carousel {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  /* Mobile image and video responsive */
  .page-promotions-daily-bonus img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions-daily-bonus video,
  .page-promotions-daily-bonus__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions-daily-bonus__section,
  .page-promotions-daily-bonus__card,
  .page-promotions-daily-bonus__container,
  .page-promotions-daily-bonus__video-section,
  .page-promotions-daily-bonus__video-container,
  .page-promotions-daily-bonus__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Important: Video section padding-top for mobile */
  .page-promotions-daily-bonus__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Consistent with shared */
  }

  /* Mobile button responsive */
  .page-promotions-daily-bonus__cta-button,
  .page-promotions-daily-bonus__btn-primary,
  .page-promotions-daily-bonus__btn-secondary,
  .page-promotions-daily-bonus a[class*="button"],
  .page-promotions-daily-bonus a[class*="btn"] {
    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-promotions-daily-bonus__cta-buttons,
  .page-promotions-daily-bonus__button-group,
  .page-promotions-daily-bonus__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-promotions-daily-bonus__cta-buttons {
    flex-direction: column;
  }

  .page-promotions-daily-bonus__floating-buttons {
    flex-direction: row;
    bottom: 10px;
    right: 10px;
    left: 10px;
    justify-content: space-around;
    width: auto;
  }

  .page-promotions-daily-bonus__floating-btn {
    width: 48%;
    height: 45px;
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .page-promotions-daily-bonus__hero-title {
    font-size: 1.8em;
  }
  .page-promotions-daily-bonus__section-title {
    font-size: 1.5em;
  }
}