.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (#0a0a0a), so text should be light */
  background-color: transparent; /* Rely on shared body background */
}

.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 */
  overflow: hidden;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-casino__hero-content {
  max-width: 900px;
  text-align: center;
  color: #ffffff;
}

.page-casino__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* Use clamp for H1 font-size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #26A9E0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino__intro-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  text-align: center;
}

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

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

.page-casino__btn-secondary {
  background: #EA7C07; /* Use 'Đăng nhập' color for secondary */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-casino__btn-secondary:hover {
  background: #c76706;
  border-color: #c76706;
}

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

.page-casino__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

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

.page-casino__sub-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-casino p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-casino__dark-bg {
  background-color: rgba(38, 169, 224, 0.1); /* Slightly transparent brand color for dark background */
  color: #ffffff;
  padding: 60px 0;
}

.page-casino__about-section p {
  font-size: 1rem;
  color: #f0f0f0;
}

.page-casino__image-text-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.page-casino__image-wrapper {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__content-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-casino__text-content {
  flex: 2;
  min-width: 300px;
}

.page-casino__games-section {
  padding: 60px 0;
}

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

.page-casino__game-card {
  background-color: rgba(255, 255, 255, 0.05); /* Light transparent background for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-casino__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
  padding: 0 15px;
}

.page-casino__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-casino__card-title a:hover {
  text-decoration: underline;
}

.page-casino__game-card p {
  font-size: 0.95rem;
  color: #cccccc;
  padding: 0 15px;
  flex-grow: 1;
}

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

.page-casino__promotions-section {
  padding: 60px 0;
}

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

.page-casino__promo-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-casino__promo-card .page-casino__card-title {
  font-size: 1.3rem;
  color: #26A9E0;
  margin-bottom: 15px;
}

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

.page-casino__promo-card .page-casino__btn-secondary {
  margin-top: auto;
  padding: 10px 20px;
  font-size: 0.9rem;
  background: #EA7C07;
  color: #ffffff;
  border-color: #EA7C07;
}

.page-casino__promo-card .page-casino__btn-secondary:hover {
  background: #c76706;
  border-color: #c76706;
}

.page-casino__security-section {
  padding: 60px 0;
}

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

.page-casino__feature-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-casino__feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-casino__feature-item p {
  color: #cccccc;
  font-size: 0.95rem;
}

.page-casino__how-to-join-section {
  padding: 60px 0;
}

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

.page-casino__step-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-casino__step-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #26A9E0;
  background-color: rgba(38, 169, 224, 0.1);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  border: 2px solid #26A9E0;
}

.page-casino__step-card .page-casino__card-title {
  font-size: 1.3rem;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-casino__step-card p {
  color: #cccccc;
  font-size: 0.95rem;
  flex-grow: 1;
}

.page-casino__faq-section {
  padding: 60px 0;
}

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

.page-casino__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: rgba(38, 169, 224, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details/summary */
}

.page-casino__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

.page-casino__faq-question:hover {
  background-color: rgba(38, 169, 224, 0.1);
}

.page-casino__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #EA7C07;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-casino__faq-item[open] .page-casino__faq-toggle {
  transform: rotate(45deg);
}

.page-casino__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #cccccc;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-casino__cta-bottom-section {
  padding: 60px 0;
  text-align: center;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-casino__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-casino__hero-content {
    padding: 0 15px;
  }

  .page-casino__image-text-block {
    flex-direction: column;
    gap: 20px;
  }

  .page-casino__text-content, .page-casino__image-wrapper {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

  .page-casino__intro-text {
    font-size: 1rem;
  }

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

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-casino__content-area,
  .page-casino__dark-bg,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__security-section,
  .page-casino__how-to-join-section,
  .page-casino__faq-section,
  .page-casino__cta-bottom-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

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

  .page-casino__card-image {
    height: 180px; /* Adjust height for mobile cards */
  }

  .page-casino__section-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .page-casino__section-description {
    font-size: 0.95rem;
  }

  .page-casino__sub-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  .page-casino__game-grid,
  .page-casino__promo-grid,
  .page-casino__features-grid,
  .page-casino__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-casino__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.95rem;
  }

  .page-casino__feature-icon {
    width: 80px;
    height: 80px;
  }
}