/* style/casino.css */

/* Cài đặt cơ bản cho trang */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (#121212), so text should be light */
  background-color: #121212; /* Matches shared.css body background for consistency */
}

/* Tiêu đề chung cho các phần */
.page-casino__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

/* Nút và liên kết */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-casino__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

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

/* Highlight text */
.page-casino__highlight {
  color: #EA7C07;
  font-weight: bold;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #1a1a1a; /* Slightly lighter dark for contrast */
}

.page-casino__video-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

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

.page-casino__hero-content {
  text-align: center;
  max-width: 900px;
  margin-top: 40px;
}

.page-casino__main-title {
  color: #ffffff;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  /* clamp(min, preferred, max) for responsive font size, avoiding fixed large values */
  font-size: clamp(2.2rem, 4vw + 1rem, 3.5rem);
}

.page-casino__description {
  font-size: 1.1em;
  color: #e0e0e0;
  margin-bottom: 30px;
}

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

/* General Content Area */
.page-casino__section {
  padding: 80px 0;
}

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

.page-casino__intro-section p {
  font-size: 1.1em;
  color: #cccccc;
  margin-bottom: 20px;
  text-align: justify;
}

/* Game Grid Section */
.page-casino__games-section {
  background-color: #121212;
}

.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: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

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

.page-casino__game-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-casino__game-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-casino__game-card p {
  color: #cccccc;
  font-size: 0.95em;
}

.page-casino__content-area-text {
  font-size: 1.1em;
  color: #cccccc;
  text-align: center;
  margin-top: 40px;
}

/* Benefits Section */
.page-casino__benefits-section {
  background-color: #1a1a1a;
}

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

.page-casino__benefit-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  text-align: center;
}

.page-casino__benefit-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-casino__benefit-item p {
  color: #cccccc;
}

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

.page-casino__registration-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-casino__registration-content {
  flex: 1;
  min-width: 300px;
}

.page-casino__registration-content p,
.page-casino__registration-steps {
  color: #cccccc;
  font-size: 1.05em;
}

.page-casino__registration-steps {
  list-style: decimal;
  margin-left: 20px;
  padding-left: 0;
}

.page-casino__registration-steps li {
  margin-bottom: 15px;
}

.page-casino__registration-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

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

/* Promotions Section */
.page-casino__promotions-section {
  background-color: #1a1a1a;
}

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

.page-casino__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__promo-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

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

.page-casino__promo-card p {
  color: #cccccc;
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Support Section */
.page-casino__support-section {
  background-color: #121212;
}

.page-casino__support-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-casino__support-content {
  flex: 1;
  min-width: 300px;
}

.page-casino__support-content p,
.page-casino__support-list {
  color: #cccccc;
  font-size: 1.05em;
}

.page-casino__support-list {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.page-casino__support-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-casino__support-list li::before {
  content: '✔';
  color: #26A9E0;
  position: absolute;
  left: 0;
}

.page-casino__support-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

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

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

.page-casino__faq-list {
  margin-top: 40px;
}

.page-casino__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: #26A9E0;
  transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-casino__faq-item[open] > .page-casino__faq-question {
  background-color: rgba(255, 255, 255, 0.12);
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-casino__faq-answer {
  padding: 0 25px 18px;
  font-size: 1em;
  color: #cccccc;
}

/* Remove default details marker */
.page-casino__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-casino__faq-item summary::marker {
  display: none;
}

/* Conclusion Section */
.page-casino__conclusion-section {
  background-color: #121212;
  text-align: center;
}

.page-casino__conclusion-section p {
  font-size: 1.1em;
  color: #cccccc;
  margin-bottom: 25px;
}

/* Common styles for content areas to ensure contrast on dark backgrounds */
.page-casino p,
.page-casino li,
.page-casino a {
  color: #cccccc;
}

.page-casino a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-casino a:hover {
  color: #EA7C07;
}

/* Image and video responsive rules */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-casino__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-casino__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-casino__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-casino__hero-content {
    margin-top: 30px;
  }

  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-casino__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__section {
    padding: 50px 0;
  }

  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-casino__video-container,
  .page-casino__section,
  .page-casino__card,
  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__registration-section,
  .page-casino__promotions-section,
  .page-casino__support-section,
  .page-casino__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-casino__game-image,
  .page-casino__promo-image,
  .page-casino__registration-image,
  .page-casino__support-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-casino__registration-flex,
  .page-casino__support-flex {
    flex-direction: column;
  }

  .page-casino__registration-image-wrapper,
  .page-casino__support-image-wrapper {
    order: -1; /* Image first on mobile */
    margin-bottom: 20px;
  }

  .page-casino__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-casino__faq-answer {
    padding: 0 20px 15px;
  }
}