/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (#0a0a0a), so text should be light */
  background-color: transparent; /* Use transparent as body handles the main background */
}

.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-casino__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #FFD700; /* Auxiliary color for titles */
  text-align: center;
  margin-bottom: 20px;
}

.page-casino__section-description {
  font-size: 18px;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Fixed height for hero for visual impact */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Apply header offset here if shared doesn't */
}

.page-casino__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-casino__hero-overlay {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  padding: 40px;
  border-radius: 10px;
  max-width: 900px;
}

.page-casino__hero-title {
  font-size: 48px;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: 22px;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Introduction Section */
.page-casino__introduction-section {
  padding: 80px 0;
}

.page-casino__intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-casino__intro-content p {
  margin-bottom: 15px;
  font-size: 17px;
  color: #f0f0f0;
}

.page-casino__intro-image-wrapper {
  text-align: center;
}

.page-casino__intro-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

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

.page-casino__game-card {
  background-color: rgba(255, 255, 255, 0.1); /* Card background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-casino__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-casino__game-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__game-description {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 20px;
  padding: 0 15px;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 0;
}

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

.page-casino__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-casino__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-casino__promo-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__promo-description {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 20px;
  padding: 0 15px;
}

/* Security Section */
.page-casino__security-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-casino__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-casino__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-casino__security-icon {
  width: 150px; /* Increased size from 100px to meet min 200x200 requirement */
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-casino__security-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-casino__security-description {
  font-size: 16px;
  color: #e0e0e0;
}

/* Payment & Support Section */
.page-casino__payment-support-section {
  padding: 80px 0;
}

.page-casino__payment-support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.page-casino__payment-info, .page-casino__support-info {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-casino__payment-info h2, .page-casino__support-info h2 {
  text-align: left;
  font-size: 30px;
  margin-bottom: 20px;
}

.page-casino__payment-info p, .page-casino__support-info p {
  font-size: 17px;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-casino__payment-info ul, .page-casino__support-info ul {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.page-casino__payment-info li, .page-casino__support-info li {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 8px;
  position: relative;
  padding-left: 25px;
}

.page-casino__payment-info li::before, .page-casino__support-info li::before {
  content: '✔';
  color: #FFD700;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05);
}

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

/* FAQ容器样式 */
.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.08);
}

/* FAQ默认状态 - 答案隐藏 */
.page-casino__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;
  color: #e0e0e0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-casino__faq-item.active .page-casino__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.15);
  border-radius: 0 0 8px 8px;
}

/* 问题样式 */
.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1A237E; /* Main brand color for question background */
  border: 1px solid #FFD700; /* Auxiliary color for border */
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-casino__faq-question:hover {
  background: #2C3E50; /* Slightly lighter dark blue on hover */
  border-color: #ffd700;
}

.page-casino__faq-question:active {
  background: #34495E;
}

/* 问题标题样式 */
.page-casino__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff; /* White text for questions */
  pointer-events: none; /* 防止h3标签阻止点击事件 */
}

/* 切换图标 */
.page-casino__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold color for toggle icon */
  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-casino__faq-item.active .page-casino__faq-toggle {
  color: #ffffff; /* White when active */
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

/* CTA Section */
.page-casino__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-casino__cta-content {
  max-width: 900px;
}

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

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow word breaking */
}

.page-casino__btn-primary {
  background-color: #FFD700; /* Gold background */
  color: #1A237E; /* Dark blue text */
  border: 2px solid #FFD700;
}

.page-casino__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-casino__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A237E;
  transform: translateY(-3px);
}

.page-casino__btn-tertiary {
  background-color: #1A237E; /* Dark blue background */
  color: #FFD700; /* Gold text */
  border: 2px solid #1A237E;
  padding: 10px 20px;
  font-size: 16px;
}

.page-casino__btn-tertiary:hover {
  background-color: #2C3E50;
  border-color: #2C3E50;
  transform: translateY(-3px);
}

/* Color Contrast Fixes */
.page-casino__dark-bg {
  background: #1A237E; /* Main brand color for dark sections */
  color: #ffffff; /* White text on dark background */
}

.page-casino__dark-bg .page-casino__section-title {
  color: #FFD700; /* Gold title on dark background */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 40px;
  }
  .page-casino__hero-description {
    font-size: 20px;
  }
  .page-casino__section-title {
    font-size: 30px;
  }
  .page-casino__intro-grid,
  .page-casino__payment-support-grid {
    grid-template-columns: 1fr;
  }
  .page-casino__intro-content,
  .page-casino__payment-info,
  .page-casino__support-info {
    text-align: center;
  }
  .page-casino__payment-info h2, .page-casino__support-info h2 {
    text-align: center;
  }
  .page-casino__payment-info ul, .page-casino__support-info ul {
    text-align: left;
    display: inline-block;
  }
}

@media (max-width: 768px) {
  .page-casino__container {
    padding: 20px 15px !important; /* Mobile padding */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
  
  .page-casino__hero-section {
    height: auto;
    min-height: 450px;
    padding-top: var(--header-offset, 90px) !important; /* Adjust header offset for mobile */
  }

  .page-casino__hero-overlay {
    padding: 20px;
  }

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

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

  .page-casino__hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-casino__btn-primary, .page-casino__btn-secondary, .page-casino__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
    overflow: hidden;
  }

  .page-casino__section-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .page-casino__section-description {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .page-casino__introduction-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__security-section,
  .page-casino__payment-support-section,
  .page-casino__faq-section,
  .page-casino__cta-section {
    padding: 40px 0;
  }

  .page-casino__intro-grid,
  .page-casino__games-grid,
  .page-casino__promo-grid,
  .page-casino__security-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__security-item {
    padding: 20px;
  }

  .page-casino__game-image {
    height: 180px;
  }
  .page-casino__promo-image {
    height: 200px;
  }

  .page-casino__game-title, .page-casino__promo-title {
    font-size: 20px;
  }

  .page-casino__security-icon {
    width: 120px;
    height: 120px;
  }

  .page-casino__payment-info h2, .page-casino__support-info h2 {
    font-size: 24px;
  }
  
  /* Mobile FAQ */
  .page-casino__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-casino__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-casino__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-casino__faq-answer {
    padding: 0 15px;
  }
  
  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images are responsive and prevent overflow */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-casino__section, .page-casino__card, .page-casino__container, .page-casino__hero-section, .page-casino__intro-grid, .page-casino__games-grid, .page-casino__promo-grid, .page-casino__security-grid, .page-casino__payment-support-grid, .page-casino__faq-list, .page-casino__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
}