/* style/resources-u888-vip-latest-promotions.css */

:root {
  --page-primary-color: #1A202C;
  --page-accent-color: #FFD700;
  --page-text-light: #ffffff;
  --page-text-dark: #333333;
  --page-bg-dark: #1A202C;
  --page-bg-light: #f9f9f9;
  --page-border-color: #e0e0e0;
}

/* Fixed Header Spacing */
.page-resources-u888-vip-latest-promotions {
  padding-top: 120px; /* Default for desktop */
  color: var(--page-text-dark); /* Default text color for light sections */
}

@media (max-width: 768px) {
  .page-resources-u888-vip-latest-promotions {
    padding-top: 100px; /* Adjusted for mobile fixed header */
  }
}

/* General Styles for the page content */
.page-resources-u888-vip-latest-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-resources-u888-vip-latest-promotions__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--page-accent-color);
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.page-resources-u888-vip-latest-promotions__text-block {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

/* Background color variations */
.page-resources-u888-vip-latest-promotions__dark-bg {
  background-color: var(--page-bg-dark);
  color: var(--page-text-light);
}

.page-resources-u888-vip-latest-promotions__dark-bg .page-resources-u888-vip-latest-promotions__text-block {
  color: #cccccc;
}

.page-resources-u888-vip-latest-promotions__dark-bg .page-resources-u888-vip-latest-promotions__section-title {
  color: var(--page-accent-color);
}

.page-resources-u888-vip-latest-promotions__light-bg {
  background-color: var(--page-bg-light);
  color: var(--page-text-dark);
}

.page-resources-u888-vip-latest-promotions__light-bg .page-resources-u888-vip-latest-promotions__section-title {
  color: var(--page-primary-color);
}

/* Buttons */
.page-resources-u888-vip-latest-promotions__btn-primary,
.page-resources-u888-vip-latest-promotions__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.page-resources-u888-vip-latest-promotions__btn-primary {
  background-color: var(--page-accent-color);
  color: var(--page-primary-color);
  border-color: var(--page-accent-color);
}

.page-resources-u888-vip-latest-promotions__btn-primary:hover {
  background-color: #e6b800;
  border-color: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

.page-resources-u888-vip-latest-promotions__btn-secondary {
  background-color: var(--page-primary-color);
  color: var(--page-accent-color);
  border-color: var(--page-accent-color);
}

.page-resources-u888-vip-latest-promotions__btn-secondary:hover {
  background-color: var(--page-accent-color);
  color: var(--page-primary-color);
  border-color: var(--page-accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

/* Hero Banner Section */
.page-resources-u888-vip-latest-promotions__hero-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-resources-u888-vip-latest-promotions__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources-u888-vip-latest-promotions__hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--page-accent-color);
}

.page-resources-u888-vip-latest-promotions__hero-description {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--page-text-light);
}

.page-resources-u888-vip-latest-promotions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2;
}

.page-resources-u888-vip-latest-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Intro Section */
.page-resources-u888-vip-latest-promotions__intro-section {
  padding: 80px 0;
}

/* Quick Links Section */
.page-resources-u888-vip-latest-promotions__quick-links-section {
  padding: 60px 0;
  text-align: center;
}

.page-resources-u888-vip-latest-promotions__links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Promotions Detail Section */
.page-resources-u888-vip-latest-promotions__promotions-detail-section {
  padding: 80px 0;
}

.page-resources-u888-vip-latest-promotions__promo-category {
  margin-bottom: 60px;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.page-resources-u888-vip-latest-promotions__promo-category-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--page-primary-color);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.page-resources-u888-vip-latest-promotions__promo-category-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--page-accent-color);
  border-radius: 2px;
}

.page-resources-u888-vip-latest-promotions__promo-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  background-color: var(--page-bg-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources-u888-vip-latest-promotions__promo-item:last-child {
  margin-bottom: 0;
}

.page-resources-u888-vip-latest-promotions__promo-image-wrapper {
  flex-shrink: 0;
  width: 350px;
  height: 250px;
  overflow: hidden;
}

.page-resources-u888-vip-latest-promotions__promo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-resources-u888-vip-latest-promotions__promo-content {
  padding: 30px;
  flex-grow: 1;
}

.page-resources-u888-vip-latest-promotions__promo-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--page-primary-color);
  margin-bottom: 15px;
}

.page-resources-u888-vip-latest-promotions__promo-content p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--page-text-dark);
}

.page-resources-u888-vip-latest-promotions__game-promo-list,
.page-resources-u888-vip-latest-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-resources-u888-vip-latest-promotions__game-promo-list li,
.page-resources-u888-vip-latest-promotions__terms-list li {
  background-color: #f0f0f0;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--page-text-dark);
  border-left: 5px solid var(--page-accent-color);
}

.page-resources-u888-vip-latest-promotions__game-promo-list li strong,
.page-resources-u888-vip-latest-promotions__terms-list li strong {
  color: var(--page-primary-color);
}

/* Games Showcase Section */
.page-resources-u888-vip-latest-promotions__games-showcase-section {
  padding: 80px 0;
  text-align: center;
}

.page-resources-u888-vip-latest-promotions__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-u888-vip-latest-promotions__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  padding: 25px;
  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: 2px solid transparent;
}

.page-resources-u888-vip-latest-promotions__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--page-accent-color);
}

.page-resources-u888-vip-latest-promotions__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources-u888-vip-latest-promotions__game-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--page-accent-color);
  margin-bottom: 10px;
}

.page-resources-u888-vip-latest-promotions__game-description {
  font-size: 15px;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 20px;
}

/* Safety & Support Section */
.page-resources-u888-vip-latest-promotions__safety-support-section {
  padding: 80px 0;
  text-align: center;
}

.page-resources-u888-vip-latest-promotions__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-u888-vip-latest-promotions__info-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-border-color);
}

.page-resources-u888-vip-latest-promotions__info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.page-resources-u888-vip-latest-promotions__info-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-resources-u888-vip-latest-promotions__info-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--page-primary-color);
  margin-bottom: 15px;
}

.page-resources-u888-vip-latest-promotions__info-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--page-text-dark);
}

.page-resources-u888-vip-latest-promotions__contact-cta {
  margin-top: 50px;
}

/* FAQ Section */
.page-resources-u888-vip-latest-promotions__faq-section {
  padding: 80px 0;
}

.page-resources-u888-vip-latest-promotions__faq-list {
  margin-top: 40px;
}

/* FAQ容器样式 */
.page-resources-u888-vip-latest-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* FAQ默认状态 - 答案隐藏 */
.page-resources-u888-vip-latest-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 20px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-resources-u888-vip-latest-promotions__faq-item.active .page-resources-u888-vip-latest-promotions__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng !important đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
  color: var(--page-text-light);
}

/* 问题样式 */
.page-resources-u888-vip-latest-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--page-primary-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources-u888-vip-latest-promotions__faq-question:hover {
  background: #2a3447;
  border-color: var(--page-accent-color);
}

.page-resources-u888-vip-latest-promotions__faq-question:active {
  background: #3a475d;
}

/* 问题标题样式 */
.page-resources-u888-vip-latest-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: var(--page-accent-color);
}

/* 切换图标 */
.page-resources-u888-vip-latest-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--page-accent-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-resources-u888-vip-latest-promotions__faq-item.active .page-resources-u888-vip-latest-promotions__faq-toggle {
  color: var(--page-text-light);
  transform: rotate(180deg);
}

/* Blog Section */
.page-resources-u888-vip-latest-promotions__blog-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-resources-u888-vip-latest-promotions__blog-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-border-color);
  text-align: left;
}

.page-resources-u888-vip-latest-promotions__blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

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

.page-resources-u888-vip-latest-promotions__blog-content {
  padding: 25px;
}

.page-resources-u888-vip-latest-promotions__blog-link-title {
  text-decoration: none;
  color: inherit;
}

.page-resources-u888-vip-latest-promotions__blog-link-title h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--page-primary-color);
  margin-top: 0;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.page-resources-u888-vip-latest-promotions__blog-link-title:hover h3 {
  color: var(--page-accent-color);
}

.page-resources-u888-vip-latest-promotions__blog-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 15px;
}

.page-resources-u888-vip-latest-promotions__blog-date {
  font-size: 14px;
  color: #999999;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-u888-vip-latest-promotions__hero-title {
    font-size: 42px;
  }
  .page-resources-u888-vip-latest-promotions__hero-description {
    font-size: 18px;
  }
  .page-resources-u888-vip-latest-promotions__section-title {
    font-size: 32px;
  }
  .page-resources-u888-vip-latest-promotions__promo-image-wrapper {
    width: 300px;
    height: 220px;
  }
  .page-resources-u888-vip-latest-promotions__promo-title {
    font-size: 22px;
  }
  .page-resources-u888-vip-latest-promotions__game-image {
    height: 180px;
  }
  .page-resources-u888-vip-latest-promotions__info-icon {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 768px) {
  .page-resources-u888-vip-latest-promotions__hero-banner {
    padding: 60px 0;
  }
  .page-resources-u888-vip-latest-promotions__hero-title {
    font-size: 32px;
  }
  .page-resources-u888-vip-latest-promotions__hero-description {
    font-size: 16px;
  }
  .page-resources-u888-vip-latest-promotions__btn-primary {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-resources-u888-vip-latest-promotions__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-resources-u888-vip-latest-promotions__text-block {
    font-size: 15px;
  }
  .page-resources-u888-vip-latest-promotions__container {
    padding: 0 15px;
  }
  .page-resources-u888-vip-latest-promotions__links-grid {
    grid-template-columns: 1fr;
  }
  .page-resources-u888-vip-latest-promotions__promo-category {
    padding: 20px;
  }
  .page-resources-u888-vip-latest-promotions__promo-category-title {
    font-size: 26px;
    margin-bottom: 20px;
  }
  .page-resources-u888-vip-latest-promotions__promo-item {
    flex-direction: column;
    margin-bottom: 30px;
  }
  .page-resources-u888-vip-latest-promotions__promo-image-wrapper {
    width: 100%;
    height: 200px;
  }
  .page-resources-u888-vip-latest-promotions__promo-content {
    padding: 20px;
  }
  .page-resources-u888-vip-latest-promotions__promo-title {
    font-size: 20px;
  }
  .page-resources-u888-vip-latest-promotions__promo-content p {
    font-size: 15px;
  }
  .page-resources-u888-vip-latest-promotions__game-promo-list li,
  .page-resources-u888-vip-latest-promotions__terms-list li {
    font-size: 15px;
  }
  .page-resources-u888-vip-latest-promotions__games-grid,
  .page-resources-u888-vip-latest-promotions__info-grid,
  .page-resources-u888-vip-latest-promotions__blog-grid {
    grid-template-columns: 1fr;
  }
  .page-resources-u888-vip-latest-promotions__game-card,
  .page-resources-u888-vip-latest-promotions__info-card,
  .page-resources-u888-vip-latest-promotions__blog-card {
    padding: 20px;
  }
  .page-resources-u888-vip-latest-promotions__game-image {
    height: 160px;
  }
  .page-resources-u888-vip-latest-promotions__info-icon {
    width: 60px;
    height: 60px;
  }
  .page-resources-u888-vip-latest-promotions__faq-question {
    padding: 15px;
  }
  .page-resources-u888-vip-latest-promotions__faq-question h3 {
    font-size: 16px;
  }
  .page-resources-u888-vip-latest-promotions__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-resources-u888-vip-latest-promotions__faq-item.active .page-resources-u888-vip-latest-promotions__faq-answer {
    padding: 15px !important;
  }
  .page-resources-u888-vip-latest-promotions__blog-image {
    height: 180px;
  }
  .page-resources-u888-vip-latest-promotions__blog-link-title h3 {
    font-size: 20px;
  }
  
  /* Mobile image adaptation */
  .page-resources-u888-vip-latest-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-resources-u888-vip-latest-promotions__section,
  .page-resources-u888-vip-latest-promotions__card,
  .page-resources-u888-vip-latest-promotions__container,
  .page-resources-u888-vip-latest-promotions__promo-category,
  .page-resources-u888-vip-latest-promotions__promo-item,
  .page-resources-u888-vip-latest-promotions__game-card,
  .page-resources-u888-vip-latest-promotions__info-card,
  .page-resources-u888-vip-latest-promotions__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}