/* Base styles for the casino page */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background: #0D0E12; /* Background */
}

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

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

.page-casino__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #FFB04D; /* Glow */
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.2;
}

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

.page-casino__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 130, 26, 0.4);
}

.page-casino__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%); /* Glow to Main color */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 130, 26, 0.6);
}

.page-casino__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FFA53A; /* Auxiliary color */
  border: 2px solid #A84F0C; /* Border color */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-secondary:hover {
  background: #2a2d37;
  color: #FFB04D; /* Glow color */
  border-color: #FF8C1A; /* Main color */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-casino__btn-text-link {
  background: transparent;
  color: #FFA53A;
  border: none;
  padding: 8px 0;
  font-size: 16px;
  text-align: left;
  display: inline-block;
}

.page-casino__btn-text-link:hover {
  color: #FFB04D;
  text-decoration: underline;
  background: transparent;
}

.page-casino__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-casino__cta-buttons--center .page-casino__btn {
  width: auto;
  min-width: 200px;
  text-align: center;
}

/* 1. HERO主图区域 */
.page-casino__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, assuming body has padding-top from shared.css */
  background: #0D0E12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  height: auto;
  max-height: 700px; /* Limit height on large screens */
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Desktop: cover to fill space */
  filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up slightly over the bottom of the image for visual flow */
  background: rgba(13, 14, 18, 0.8); /* Semi-transparent background for content block */
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
  color: #FFB04D; /* Glow color */
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

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

/* General Content Blocks */
.page-casino__about-section,
.page-casino__games-section,
.page-casino__live-casino-section,
.page-casino__promotions-section,
.page-casino__security-section,
.page-casino__how-to-play-section,
.page-casino__faq-section,
.page-casino__call-to-action-section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(168, 79, 12, 0.3); /* Border color with transparency */
}

.page-casino__about-section p,
.page-casino__security-section p,
.page-casino__text-content p {
  font-size: 1.1em;
  color: #FFF3E6;
  text-align: justify;
  margin-bottom: 15px;
}

.page-casino__content-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-casino__content-block--reversed {
  flex-direction: row-reverse;
}

.page-casino__text-content {
  flex: 1;
}

.page-casino__image-content {
  flex: 1;
  text-align: center;
}

.page-casino__content-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

/* 2. Sản phẩm hiển thị khu vực hình ảnh */
.page-casino__games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Desktop: 3 columns */
  gap: 30px;
  margin-top: 40px;
}

.page-casino__game-card {
  background: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 130, 26, 0.4);
}

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

.page-casino__game-title {
  font-size: 24px;
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 10px;
  font-weight: 700;
}

.page-casino__game-text {
  font-size: 1em;
  color: #FFF3E6;
  margin-bottom: 15px;
  flex-grow: 1;
}

/* How-to-play steps */
.page-casino__steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-casino__step-card {
  background: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 130, 26, 0.4);
}

.page-casino__step-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__step-title {
  font-size: 20px;
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 10px;
  font-weight: 700;
}

.page-casino__step-text {
  font-size: 0.95em;
  color: #FFF3E6;
}

/* FAQ Section */
details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #A84F0C; /* Border color */
  overflow: hidden;
  background: #17191F; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
details.page-casino__faq-item summary.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF3E6; /* Text Main */
  font-weight: 600;
}
details.page-casino__faq-item summary.page-casino__faq-question::-webkit-details-marker {
  display: none;
}
details.page-casino__faq-item summary.page-casino__faq-question:hover {
  background: rgba(255, 130, 26, 0.1); /* Subtle hover effect using main color */
}
.page-casino__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6;
}
.page-casino__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFA53A; /* Auxiliary color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-casino__faq-item .page-casino__faq-answer {
  padding: 0 25px 25px;
  background: rgba(255, 130, 26, 0.05); /* Very subtle background for answer */
  border-top: 1px solid rgba(168, 79, 12, 0.2);
  border-radius: 0 0 8px 8px;
}
.page-casino__faq-answer p {
  color: #FFF3E6;
  font-size: 1em;
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-casino__hero-content {
    margin-top: -80px;
    padding: 30px 20px;
  }
  .page-casino__section-title {
    font-size: 32px;
  }
  .page-casino__games-grid {
    grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columns */
    gap: 25px;
  }
  .page-casino__steps-grid {
    grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columns */
    gap: 25px;
  }
  .page-casino__content-block {
    flex-direction: column;
    gap: 30px;
  }
  .page-casino__content-block--reversed {
    flex-direction: column; /* Tablet: stack in default order */
  }
  .page-casino__hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
}

@media (max-width: 849px) {
  .page-casino__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    max-height: 400px; /* Adjust max height for contain */
    width: 100%; /* Ensure width is 100% */
  }
}

@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }

  /* 1. HERO 主图区域 */
  .page-casino__hero-section {
    padding-top: 10px; /* Consistent small top padding */
  }
  .page-casino__hero-image-wrapper {
    max-height: 300px; /* Smaller max height on mobile */
  }
  .page-casino__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* Ensure image is fully visible */
    aspect-ratio: unset !important;
  }
  .page-casino__hero-content {
    padding: 25px 15px;
    margin-top: -60px; /* Adjust pull-up margin */
  }
  .page-casino__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-casino__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  /* 2. Sản phẩm hiển thị khu vực hình ảnh (products grid) */
  .page-casino__games-grid {
    grid-template-columns: 1fr; /* Mobile: 1 column */
    gap: 20px;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  .page-casino__games-section {
    overflow-x: hidden; /* Ensure section itself doesn't cause overflow */
  }
  .page-casino__game-card {
    padding: 15px;
  }
  .page-casino__game-image {
    height: 180px; /* Slightly smaller fixed height for mobile */
  }
  .page-casino__game-title {
    font-size: 20px;
  }
  .page-casino__game-text {
    font-size: 0.9em;
  }

  /* 3. 装饰主标题 + 长文 SEO 区 (general section titles and content) */
  .page-casino__section-title {
    font-size: clamp(24px, 6vw, 28px);
    margin-bottom: 20px;
    padding: 0 15px;
    text-align: center;
  }
  .page-casino__section-description {
    font-size: 1em;
    margin-bottom: 30px;
    padding: 0 15px;
  }
  .page-casino__content-block {
    flex-direction: column; /* Stack vertically */
    gap: 20px;
    padding: 0 15px;
  }
  .page-casino__content-block--reversed {
    flex-direction: column; /* Consistent stacking */
  }
  .page-casino__text-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-casino__text-content p {
    text-align: left; /* Align text left on mobile */
  }
  .page-casino__image-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-casino__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* General images and containers */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-casino__section,
  .page-casino__card,
  .page-casino__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 4. Hướng Dẫn Bắt Đầu Chơi (How-to-play steps) */
  .page-casino__steps-grid {
    grid-template-columns: 1fr; /* Mobile: 1 column */
    gap: 20px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino__step-card {
    padding: 20px;
  }
  .page-casino__step-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }
  .page-casino__step-title {
    font-size: 18px;
  }
  .page-casino__step-text {
    font-size: 0.9em;
  }

  /* FAQ Section Mobile */
  details.page-casino__faq-item summary.page-casino__faq-question {
    padding: 15px 20px;
  }
  .page-casino__faq-qtext {
    font-size: 16px;
  }
  .page-casino__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-casino__faq-item .page-casino__faq-answer {
    padding: 0 20px 20px;
  }
  .page-casino__faq-answer p {
    font-size: 0.95em;
  }

  /* 5. Buttons and button containers */
  .page-casino__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino__btn {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino__cta-buttons,
  .page-casino__button-group,
  .page-casino__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-casino__cta-buttons--center .page-casino__btn {
    min-width: unset;
  }
}