/* style/promotions.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1E90FF; /* Deep Blue */
  --text-color-dark-bg: #ffffff;
  --text-color-light-bg: #333333;
  --background-dark: #0a0a0a; /* Body background from shared.css */
  --card-background-dark-mode: rgba(255, 255, 255, 0.1);
  --border-color-dark-mode: rgba(255, 255, 255, 0.2);
}

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

/* --- General Section & Container Styles --- */
.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-promotions__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-promotions__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: var(--text-color-dark-bg);
  line-height: 1.8;
}

.page-promotions__dark-bg {
  background-color: #1a1a1a;
  color: var(--text-color-dark-bg);
}

.page-promotions__light-bg {
  background-color: #2a2a2a;
  color: var(--text-color-dark-bg);
}

/* --- Video Section --- */
.page-promotions__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Desktop: Adjust based on fixed header height */
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
}

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

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

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

.page-promotions__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

.page-promotions__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.4);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

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

.page-promotions__video-click-hint {
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
  padding: 12px 25px;
  background: rgba(var(--secondary-color-rgb, 30, 144, 255), 0.8);
  border-radius: 8px;
  white-space: nowrap;
}

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

.page-promotions__play-now-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--primary-color);
  color: var(--text-color-dark-bg);
  text-decoration: none;
  border-radius: 10px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-promotions__play-now-button:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* --- Hero Section --- */
.page-promotions__hero-section {
  padding: 80px 20px;
  background: url('[GALLERY:bg:f1686 game, khuyến mãi, cá cược trực tuyến, nền tảng, hiện đại, banner]') no-repeat center center/cover;
  text-align: center;
  color: var(--text-color-dark-bg);
  position: relative;
  z-index: 1;
  padding-top: 120px; /* Adjust based on fixed header height */
}

.page-promotions__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-promotions__main-title {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--primary-color);
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.page-promotions__main-title .highlight {
  color: var(--secondary-color);
}

.page-promotions__hero-description {
  font-size: 20px;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
  color: #f0f0f0;
}

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

.page-promotions__cta-buttons--center {
  margin-top: 50px;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 16px 35px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.page-promotions__cta-button--primary {
  background: var(--primary-color);
  color: var(--text-color-dark-bg);
  border: 2px solid var(--primary-color);
}

.page-promotions__cta-button--primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__cta-button--secondary:hover {
  background: var(--primary-color);
  color: var(--background-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* --- Current Promotions Section --- */
.page-promotions__current-promotions {
  padding: 80px 20px;
}

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

.page-promotions__promotion-card {
  background: var(--card-background-dark-mode);
  border: 1px solid var(--border-color-dark-mode);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-promotions__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-promotions__card-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.4;
}

.page-promotions__card-text {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-promotions__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--text-color-dark-bg);
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-promotions__btn-primary:hover {
  background: #187bcd; /* Slightly darker blue */
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* --- Claim Guide Section --- */
.page-promotions__claim-guide {
  padding: 80px 20px;
  background-color: var(--background-dark);
}

.page-promotions__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-promotions__guide-item {
  background: var(--card-background-dark-mode);
  border: 1px solid var(--border-color-dark-mode);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-promotions__guide-item p {
  color: #cccccc;
}

.page-promotions__guide-step-title {
  font-size: 26px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

/* --- Why Choose Section --- */
.page-promotions__why-choose {
  padding: 80px 20px;
}

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

.page-promotions__feature-item {
  text-align: center;
  background: var(--card-background-dark-mode);
  border: 1px solid var(--border-color-dark-mode);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-promotions__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-promotions__feature-item p {
  font-size: 16px;
  color: #cccccc;
}

/* --- FAQ Section --- */
.page-promotions__faq-section {
  padding: 80px 20px;
  background-color: var(--background-dark);
}

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

.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color-dark-mode);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #1e1e1e;
  color: var(--text-color-dark-bg);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background: #2b2b2b;
}

.page-promotions__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-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #cccccc;
  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: 30px;
  height: 30px;
}

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

.page-promotions__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: #1a1a1a;
  color: #cccccc;
  border-top: 1px solid var(--border-color-dark-mode);
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain any content */
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 10px 10px;
}

.page-promotions__faq-answer p {
  margin: 0;
  font-size: 16px;
  color: #cccccc;
}

.page-promotions__faq-answer a {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* --- Brand Section --- */
.page-promotions__brand-section {
  padding: 80px 20px;
}

.page-promotions__brand-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__brand-item {
  text-align: center;
  background: var(--card-background-dark-mode);
  border: 1px solid var(--border-color-dark-mode);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-promotions__brand-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-promotions__brand-item h3 {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__brand-item p {
  font-size: 16px;
  color: #cccccc;
}

/* --- Blog Section --- */
.page-promotions__blog-section {
  padding: 80px 20px;
}

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

.page-promotions__blog-item {
  background: var(--card-background-dark-mode);
  border: 1px solid var(--border-color-dark-mode);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-promotions__blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.page-promotions__blog-link {
  display: block;
  padding: 20px;
  color: var(--text-color-dark-bg);
  text-decoration: none;
}

.page-promotions__blog-item-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1.4;
  font-weight: bold;
}

.page-promotions__blog-item-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-promotions__blog-item-date {
  font-size: 14px;
  color: #999999;
  display: block;
  text-align: right;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-promotions__section-title {
    font-size: 34px;
  }
  .page-promotions__main-title {
    font-size: 42px;
  }
  .page-promotions__hero-description {
    font-size: 18px;
  }
}

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

  /* Padding for fixed header on mobile */
  .page-promotions__video-section {
    padding-top: 10px !important; /* Mobile: Adjust based on mobile fixed header height */
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-promotions__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust based on mobile fixed header height */
    padding: 60px 15px;
  }

  .page-promotions__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-promotions__section-title {
    font-size: 28px;
  }

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

  .page-promotions__main-title {
    font-size: 32px;
  }

  .page-promotions__hero-description {
    font-size: 16px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__cta-button, .page-promotions__play-now-button, .page-promotions__btn-primary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }

  .page-promotions__promotion-card, .page-promotions__guide-item, .page-promotions__feature-item, .page-promotions__brand-item, .page-promotions__blog-item {
    padding: 20px;
    border-radius: 8px;
  }

  .page-promotions__promotion-image {
    height: 180px;
  }

  .page-promotions__card-title, .page-promotions__guide-step-title, .page-promotions__feature-title, .page-promotions__brand-item h3, .page-promotions__blog-item-title {
    font-size: 20px;
  }

  .page-promotions__card-text, .page-promotions__feature-item p, .page-promotions__brand-item p, .page-promotions__blog-item-excerpt {
    font-size: 15px;
  }

  .page-promotions__faq-question {
    padding: 15px 20px;
  }

  .page-promotions__faq-question h3 {
    font-size: 16px;
  }

  .page-promotions__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }

  .page-promotions__faq-answer {
    padding: 0 20px;
  }

  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px 20px !important;
  }

  .page-promotions__blog-image {
    height: 180px;
  }

  /* Image and Video responsive */
  .page-promotions img, .page-promotions video, .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-promotions__promotion-image, .page-promotions__feature-icon, .page-promotions__brand-icon, .page-promotions__blog-image {
    object-fit: contain !important; /* Ensure content images are fully visible */
  }
  .page-promotions__video-container, .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
  }
  .page-promotions__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-promotions__video-click-hint {
    font-size: 16px !important;
    padding: 10px 20px !important;
  }
}

@media (max-width: 480px) {
  .page-promotions__section-title {
    font-size: 24px;
  }
  .page-promotions__main-title {
    font-size: 28px;
  }
  .page-promotions__hero-description {
    font-size: 15px;
  }
  .page-promotions__cta-button, .page-promotions__play-now-button, .page-promotions__btn-primary {
    font-size: 15px !important;
    padding: 10px 15px !important;
  }
  .page-promotions__promotion-card, .page-promotions__guide-item, .page-promotions__feature-item, .page-promotions__brand-item, .page-promotions__blog-item {
    padding: 15px;
  }
  .page-promotions__card-title, .page-promotions__guide-step-title, .page-promotions__feature-title, .page-promotions__brand-item h3, .page-promotions__blog-item-title {
    font-size: 18px;
  }
  .page-promotions__card-text, .page-promotions__feature-item p, .page-promotions__brand-item p, .page-promotions__blog-item-excerpt {
    font-size: 14px;
  }
  .page-promotions__faq-question h3 {
    font-size: 15px;
  }
  .page-promotions__faq-toggle {
    font-size: 22px;
    width: 22px;
    height: 22px;
  }
}