/* style/casino.css */

/* --- General Page Styles --- */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared, fallback to white */
}

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

.page-casino__section {
  padding: 60px 0;
  text-align: center;
}

.page-casino__section-title {
  font-size: 36px;
  color: #26A9E0; /* Primary color for titles */
  margin-bottom: 30px;
  font-weight: bold;
}

.page-casino__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #333333; /* Ensure contrast */
}

.page-casino__text-block--center {
  text-align: center;
}

/* --- CTA Buttons --- */
.page-casino__cta-buttons {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap; /* Allow wrapping for multiple buttons */
  justify-content: center;
  gap: 20px;
}

.page-casino__cta-buttons--center {
  text-align: center;
}

.page-casino__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-casino__cta-button--primary {
  background: #26A9E0; /* Primary color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-casino__cta-button--primary:hover {
  background: #1e87c0;
  border-color: #1e87c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-casino__cta-button--secondary {
  background: #ffffff;
  color: #26A9E0; /* Primary color for text */
  border: 2px solid #26A9E0;
}

.page-casino__cta-button--secondary:hover {
  background: #f0f8ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- Hero Section --- */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #26A9E0, #a0d8f7); /* Light blue gradient */
  overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-casino__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-casino__hero-title {
  font-size: 48px;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-casino__hero-description {
  font-size: 22px;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* --- Game Section --- */
.page-casino__games-section {
  background-color: #f9f9f9; /* Light background for contrast */
}

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

.page-casino__game-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

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

.page-casino__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-casino__game-title {
  font-size: 24px;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-casino__game-description {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow description to take available space */
}

/* --- Promotions Section --- */
.page-casino__promotions-section {
  background-color: #26A9E0; /* Primary brand color for dark background */
  color: #ffffff;
}

.page-casino__promotions-section .page-casino__section-title {
  color: #ffffff; /* White title on dark background */
}

.page-casino__promotions-section .page-casino__text-block {
  color: #f0f0f0; /* Lighter text for readability */
}

.page-casino__promotion-banner {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 12px;
  margin: 30px auto;
  display: block;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-casino__promo-list {
  list-style: none;
  padding: 0;
  margin: 30px auto 0;
  max-width: 800px;
  text-align: left;
}

.page-casino__promo-item {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark blue */
  margin-bottom: 15px;
  padding: 18px 25px;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1.5;
  color: #ffffff;
  border-left: 5px solid #ffffff; /* Accent border */
}

.page-casino__promo-item strong {
  color: #ffffff;
}

/* --- Registration Section --- */
.page-casino__registration-section {
  background-color: #ffffff;
}

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

.page-casino__guide-step {
  background: #f0f8ff; /* Light blue background */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-casino__guide-step:hover {
  transform: translateY(-5px);
}

.page-casino__guide-step-title {
  font-size: 20px;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-casino__guide-step p {
  font-size: 16px;
  color: #555555;
}

/* --- Payment Section --- */
.page-casino__payment-section {
  background-color: #f9f9f9;
}

.page-casino__payment-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 12px;
  margin: 30px auto;
  display: block;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-casino__payment-list {
  list-style: none;
  padding: 0;
  margin: 30px auto 0;
  max-width: 800px;
  text-align: left;
}

.page-casino__payment-item {
  background: #ffffff;
  margin-bottom: 15px;
  padding: 18px 25px;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1.5;
  color: #333333;
  border-left: 5px solid #26A9E0; /* Primary color accent */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-casino__payment-item strong {
  color: #26A9E0;
}

/* --- Security & Support Section --- */
.page-casino__security-support-section {
  background-color: #26A9E0; /* Primary brand color for dark background */
  color: #ffffff;
}

.page-casino__security-support-section .page-casino__section-title {
  color: #ffffff;
}

.page-casino__security-support-section .page-casino__text-block {
  color: #f0f0f0;
}

.page-casino__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-casino__feature-item {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark blue */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  height: 100%; /* Ensure cards are same height */
  display: flex;
  flex-direction: column;
}

.page-casino__feature-title {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-casino__feature-item p {
  font-size: 16px;
  color: #f0f0f0;
  flex-grow: 1;
}

/* --- FAQ Section --- */
.page-casino__faq-section {
  background-color: #ffffff;
}

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

/* FAQ容器样式 */
.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 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 15px;
  opacity: 0;
}

/* FAQ展开状态 - ⚠️ Sử dụng!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.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 bất kỳ nội dung nào */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}