:root {
  --main-green: #11A84E;
  --secondary-green: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --page-bg: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* style/casino.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */

.page-casino {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color for the page content */
  background-color: var(--page-bg); /* Use the specified background color */
}

/* Ensure all images are responsive by default */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block; /* Prevents extra space below images */
  border-radius: 8px; /* General style, adjust as needed */
  object-fit: cover; /* Ensures images cover their area without distortion */
}

/* Headings */
.page-casino h1,
.page-casino h2,
.page-casino h3,
.page-casino h4,
.page-casino h5,
.page-casino h6 {
  color: var(--text-main);
  margin-bottom: 1em;
  line-height: 1.2;
}

.page-casino__main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-main);
  position: relative;
  padding-bottom: 15px;
}

.page-casino__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--button-gradient);
  border-radius: 2px;
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  overflow: hidden;
  background-color: var(--page-bg);
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0; /* Hero image usually full width, no border-radius */
}

.page-casino__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  z-index: 10;
}

.page-casino__description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: var(--text-secondary);
}

/* Video Section */
.page-casino__video-section {
  position: relative;
  width: 100%;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  background-color: var(--page-bg);
  text-align: center;
}

.page-casino__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio (9 / 16 * 100%) */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  background-color: var(--deep-green); /* Placeholder background */
}

.page-casino__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px; /* Ensure video itself has border radius */
}

.page-casino__video-caption {
    margin-top: 20px;
    font-size: 1rem;
    color: var(--text-secondary);
}

/* CTA Buttons */
.page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-casino__cta-buttons--center {
  margin-top: 40px;
}

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  text-align: center;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.page-casino__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: none;
}

.page-casino__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__btn-primary--large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

.page-casino__btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--main-green);
}

.page-casino__btn-secondary:hover {
  background: var(--main-green);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__btn-link {
  background: transparent;
  color: var(--gold-color);
  border: 1px solid var(--gold-color);
  padding: 8px 15px;
  font-size: 0.9rem;
  border-radius: 20px;
}

.page-casino__btn-link:hover {
  background: var(--gold-color);
  color: var(--page-bg);
  box-shadow: none;
}

/* General Section Styling */
.page-casino__introduction-section,
.page-casino__game-types-section,
.page-casino__promotions-section,
.page-casino__why-choose-section,
.page-casino__deposits-withdrawals-section,
.page-casino__responsible-gaming-section,
.page-casino__faq-section,
.page-casino__final-cta-section {
  padding: 80px 0;
  background-color: var(--page-bg); /* Ensure sections have the dark background */
}

.page-casino__text-block {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: left;
}

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

.page-casino__image-full {
    width: 100%;
    height: auto;
    margin: 40px 0;
    border-radius: 12px;
}

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

.page-casino__card {
  background-color: var(--card-bg); /* Dark card background */
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 450px; /* Ensure consistent card height */
}

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

.page-casino__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-casino__card-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 20px;
}

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

.page-casino__promo-card {
    min-height: 500px; /* Adjust min-height for promo cards */
}

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

.page-casino__feature-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__feature-icon {
  width: 100px; /* Icon size */
  height: 100px; /* Icon size */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 0; /* Icons don't need border-radius typically */
}

.page-casino__feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-casino__feature-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

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

.page-casino__payment-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__payment-icon {
  width: 120px; /* Payment icon size */
  height: 80px; /* Payment icon size */
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 0;
}

.page-casino__payment-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-casino__payment-description {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

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