/* style/casino.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* Base styles for the casino page content */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Explicitly set for content area */
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF;
  background-color: #26A9E0; /* Brand color for hero background */
  padding: 60px 20px;
  /* Fixed header spacing - applied to the first content section */
  padding-top: var(--header-offset, 120px);
  overflow: hidden; /* Ensure no overflow */
}

.page-casino__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-casino__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image to ensure text contrast */
}

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.page-casino__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #F0F0F0;
}

.page-casino__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Section Styling */
.page-casino__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-casino__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

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

/* Light background sections */
.page-casino__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

/* Dark background sections */
.page-casino__dark-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #FFFFFF;
}

.page-casino__dark-section .page-casino__section-title {
  color: #FFFFFF;
}

.page-casino__dark-section .page-casino__text-block {
  color: #F0F0F0;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__card-button,
.page-casino__guide-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-casino__btn-primary {
  background-color: #EA7C07; /* Login/Register button color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-casino__btn-primary:hover {
  background-color: #d46b00;
  border-color: #d46b00;
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-casino__hero-section .page-casino__btn-secondary {
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.page-casino__hero-section .page-casino__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.page-casino__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #26A9E0;
}

.page-casino__card-button {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
  margin-top: 15px;
  width: 100%; /* Ensure card buttons are full width */
}

.page-casino__card-button:hover {
  background-color: #1e87b6;
  border-color: #1e87b6;
}

.page-casino__guide-button {
  margin-top: 20px;
  width: auto;
  min-width: 180px;
}

/* Video Section */
.page-casino__video-section {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  background-color: #000;
}

.page-casino__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-casino__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  cursor: pointer;
}

.page-casino__video-caption {
  text-align: center;
  margin-top: 15px;
  font-style: italic;
  color: #F0F0F0;
}

/* Game Grid Section */
.page-casino__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__game-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

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

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

.page-casino__card-text {
  font-size: 1em;
  text-align: justify;
  flex-grow: 1; /* Allow text to take up available space */
}

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

.page-casino__advantage-item {
  text-align: center;
  padding: 25px;
  background-color: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-casino__advantage-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-casino__advantage-description {
  font-size: 0.95em;
  color: #555555;
  text-align: justify;
}

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

.page-casino__promo-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

/* Guide Section */
.page-casino__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-casino__guide-item {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.page-casino__guide-step-description {
  font-size: 1.1em;
  color: #555555;
  text-align: justify;
  margin-bottom: 15px;
}

/* FAQ Section */
.page-casino__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}