/* style/casino.css */

/* Biến màu sắc */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --accent-color-login: #EA7C07;
  --text-dark: #333333;
  --text-light: #ffffff;
  --border-color: #e0e0e0;
  --background-light: #f9f9f9;
}

/* Cấu trúc chung của trang casino */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Body background is light, so use dark text */
  background-color: var(--secondary-color);
}

.page-casino__section {
  padding: 60px 20px;
  margin: 0 auto;
}

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

.page-casino__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-casino__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-dark);
}

/* HERO Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, header offset handled by body */
  background-color: var(--primary-color);
  color: var(--text-light);
  overflow: hidden;
}

.page-casino__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure it takes full width within max-width */
}

.page-casino__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.page-casino__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-casino__hero-section h1 {
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(28px, 4vw, 56px);
}

.page-casino__hero-description {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: var(--text-light);
}

.page-casino__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-casino__btn-primary {
  background: var(--accent-color-login); /* Login color for primary action */
  color: var(--text-light);
  border: 2px solid transparent;
}

.page-casino__btn-primary:hover {
  background: #c76705;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-casino__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Introduction Section */
.page-casino__introduction .page-casino__text-block {
  font-size: 18px;
  line-height: 1.8;
}

/* Games Section */
.page-casino__games {
  background-color: var(--background-light);
}

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

.page-casino__card {
  background: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  color: var(--text-dark);
}

.page-casino__game-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-casino__card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 25px 15px 15px 15px;
  line-height: 1.3;
}

.page-casino__card-text {
  font-size: 16px;
  padding: 0 20px;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-casino__game-card .page-casino__btn-primary {
  margin: 0 20px 25px 20px;
  padding: 12px 25px;
  font-size: 16px;
  align-self: center;
  width: calc(100% - 40px);
}

/* Promotions Section */
.page-casino__promotions {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-casino__promotions .page-casino__section-title {
  color: var(--text-light);
}

.page-casino__promotions .page-casino__text-block {
  color: var(--text-light);
}

.page-casino__promotion-list {
  list-style: none;
  padding: 0;
  margin: 30px auto 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-casino__promotion-list li {
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 18px 25px;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1.5;
  border-left: 5px solid var(--accent-color-login);
}

.page-casino__promotion-list li strong {
  color: var(--text-light);
}

/* Security and Payment Section */
.page-casino__security-payment {
  background-color: var(--secondary-color);
}

.page-casino__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-casino__feature-item {
  background: var(--background-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border-color);
}

.page-casino__feature-item img {
  
  
  margin-bottom: 20px;
  object-fit: contain;
}

.page-casino__feature-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-casino__feature-item p {
  font-size: 15px;
  color: var(--text-dark);
}

/* App Experience Section */
.page-casino__app-experience {
  background-color: var(--background-light);
}

.page-casino__app-showcase {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-top: 40px;
}

.page-casino__app-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
}

.page-casino__app-content h3 {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-casino__app-content ul {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.page-casino__app-content li {
  margin-bottom: 10px;
  font-size: 16px;
}

.page-casino__app-image {
  flex-shrink: 0;
  max-width: 350px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-radius: 15px;
  overflow: hidden;
}

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

/* Support Section */
.page-casino__support {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-casino__support .page-casino__section-title {
  color: var(--text-light);
}

.page-casino__support .page-casino__text-block {
  color: var(--text-light);
}

.page-casino__support-channels {
  margin-top: 30px;
  text-align: center;
}

.page-casino__support-channels p {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-casino__support-channels ul {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto 40px auto;
}

.page-casino__support-channels li {
  background: rgba(255, 255, 255, 0.15);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 17px;
  color: var(--text-light);
  border-left: 4px solid var(--accent-color-login);
}

/* FAQ Section */
.page-casino__faq {
  background-color: var(--secondary-color);
}

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

details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--secondary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
}

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: var(--background-light);
}

.page-casino__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}

.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-casino__faq-item .page-casino__faq-answer {
  padding: 0 25px 20px;
  background: var(--background-light);
  border-radius: 0 0 8px 8px;
  font-size: 16px;
  color: var(--text-dark);
}

.page-casino__faq-answer p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.page-casino__faq-answer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-casino__faq-answer a:hover {
  text-decoration: underline;
}

/* ----- Responsive Styles ----- */

@media (max-width: 1024px) {
  .page-casino__section-title {
    font-size: 32px;
  }
  .page-casino__hero-section h1 {
    font-size: clamp(24px, 5vw, 48px);
  }
  .page-casino__hero-description {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-casino__section {
    padding: 40px 15px;
  }

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

  .page-casino__text-block {
    font-size: 16px;
    text-align: left;
  }

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

  .page-casino__hero-image img {
    border-radius: 4px;
  }

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

  .page-casino__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-casino__game-cards {
    grid-template-columns: 1fr;
  }

  .page-casino__card-title {
    font-size: 20px;
  }

  .page-casino__promotion-list li {
    font-size: 16px;
    padding: 15px 20px;
  }

  .page-casino__features {
    grid-template-columns: 1fr;
  }

  .page-casino__app-showcase {
    flex-direction: column;
    gap: 30px;
  }

  .page-casino__app-content {
    max-width: 100%;
    padding: 0 15px;
  }

  .page-casino__app-content h3 {
    font-size: 24px;
  }

  .page-casino__app-image {
    max-width: 280px;
    width: 100%;
    border-radius: 10px;
  }

  details.page-casino__faq-item summary.page-casino__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }

  .page-casino__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  details.page-casino__faq-item .page-casino__faq-answer {
    padding: 0 20px 15px;
    font-size: 15px;
  }

  /* Ensure all images are responsive and do not overflow */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-container,
  .page-casino__hero-content,
  .page-casino__app-content,
  .page-casino__app-image,
  .page-casino__game-cards,
  .page-casino__features,
  .page-casino__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino__hero-container, .page-casino__app-showcase {
    padding-left: 0;
    padding-right: 0;
  }
  .page-casino__hero-image {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-casino__section-title {
    font-size: 24px;
  }
  .page-casino__hero-section h1 {
    font-size: clamp(22px, 6vw, 40px);
  }
  .page-casino__hero-description {
    font-size: 15px;
  }
  .page-casino__cta-button {
    font-size: 15px;
    padding: 10px 25px;
  }
  .page-casino__card-title {
    font-size: 18px;
  }
  .page-casino__card-text {
    font-size: 14px;
  }
  .page-casino__feature-title {
    font-size: 18px;
  }
  .page-casino__app-content h3 {
    font-size: 22px;
  }
}