/* style/casino.css */
/* 
  Màu sắc chủ đạo: #017439
  Màu sắc phụ: #FFFFFF
  Màu đăng ký/đăng nhập: #C30808
  Màu nền: #121212 (từ shared.css) -> Văn bản cần màu sáng
  Màu chữ đăng ký/đăng nhập: #FFFF00
*/

.page-casino {
  color: #ffffff; /* Vì body background là #121212 (dark), text color phải là light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background handled by shared.css */
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #017439; /* Sử dụng màu chủ đạo làm nền hero */
  color: #ffffff;
  min-height: 70vh; /* Đảm bảo hero đủ lớn */
  overflow: hidden; /* Prevent image overflow */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-casino__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-casino__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  max-width: 100%; /* Ensure button doesn't exceed container */
  text-align: center;
}

.page-casino__btn-primary {
  background-color: #C30808; /* Màu đăng ký/đăng nhập */
  color: #FFFF00; /* Màu chữ đăng ký/đăng nhập */
  border: 2px solid #C30808;
}

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

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

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

.page-casino__btn-link {
  background-color: transparent;
  color: #017439;
  border: 1px solid #017439;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-casino__btn-link:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-casino__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3;
  overflow: hidden;
}

.page-casino__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image to improve text contrast */
}

/* General Section Styling */
.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-casino__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  font-weight: bold;
  color: #ffffff; /* Default for dark body background */
}

.page-casino__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0; /* Default for dark body background */
}

.page-casino__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for sections */
  color: #ffffff;
}

.page-casino__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Features Section */
.page-casino__features-section {
  background-color: #121212; /* Match body background */
  padding: 60px 0;
}

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

.page-casino__feature-card {
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-casino__feature-card:hover {
  transform: translateY(-10px);
}

.page-casino__feature-icon {
  width: 100%;
  height: auto;
  max-height: 200px; /* Constrain height */
  object-fit: contain; /* Ensure image fits without cropping */
  margin-bottom: 20px;
  border-radius: 8px;
  display: block; /* Ensure image is block level */
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-casino__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #017439; /* Use brand color for titles on light background */
}

.page-casino__card-description {
  font-size: 1em;
  color: #555555;
}

/* Popular Games Section */
.page-casino__popular-games {
  padding: 60px 0;
}

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

.page-casino__game-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  color: #ffffff; /* Light text on dark card */
}

.page-casino__game-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-casino__game-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-casino__game-card .page-casino__card-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #ffffff; /* White text for titles on dark card */
}

.page-casino__game-card .page-casino__card-title a {
  color: #ffffff;
  text-decoration: none;
}

.page-casino__game-card .page-casino__card-title a:hover {
  color: #FFFF00; /* Yellow hover for links on dark background */
  text-decoration: underline;
}

.page-casino__game-card .page-casino__card-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* CTA Section */
.page-casino__cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #017439; /* Brand color background */
  color: #ffffff;
}

.page-casino__cta-section .page-casino__section-title {
  color: #ffffff;
}

.page-casino__cta-section .page-casino__section-description {
  color: #f0f0f0;
}

.page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap */
}

/* Guide Section */
.page-casino__guide-section {
  background-color: #121212; /* Match body background */
  padding: 60px 0;
}

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

.page-casino__guide-card {
  background-color: #ffffff; /* Light background for guide cards */
  color: #333333; /* Dark text on light background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__guide-card .page-casino__card-title {
  color: #017439; /* Brand color for titles on light background */
}

.page-casino__guide-card p {
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Responsible Gambling Section */
.page-casino__responsible-gambling {
  padding: 60px 0;
  text-align: center;
}

.page-casino__responsible-gambling-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-casino__text-block {
  flex: 1;
  min-width: 300px;
  color: #ffffff;
}

.page-casino__sub-title {
  font-size: 1.8em;
  color: #FFFF00; /* Highlight sub-titles */
  margin-bottom: 15px;
}

.page-casino__text-block ul {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-casino__text-block li {
  margin-bottom: 10px;
}

.page-casino__text-block a {
  color: #FFFF00; /* Highlight links */
  text-decoration: underline;
}

.page-casino__text-block a:hover {
  color: #ffffff;
}

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

.page-casino__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* Payment Methods Section */
.page-casino__payment-methods {
  background-color: #121212; /* Match body background */
  padding: 60px 0;
}

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

.page-casino__payment-card {
  background-color: #ffffff; /* Light background for payment cards */
  color: #333333; /* Dark text on light background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__payment-icon {
  width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-casino__payment-card .page-casino__card-title {
  color: #017439; /* Brand color for titles on light background */
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 60px 0;
}

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

.page-casino__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff; /* Light text on dark background */
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #017439; /* Brand color for question background */
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
  background-color: #005a2e;
}

.page-casino__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #ffffff;
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #1a1a1a; /* Darker background for answer */
  color: #f0f0f0;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to reveal content */
  padding: 20px !important;
}

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

.page-casino__faq-answer a {
  color: #FFFF00; /* Highlight links in FAQ answers */
  text-decoration: underline;
}

.page-casino__faq-answer a:hover {
  color: #ffffff;
}

/* Contact CTA Section */
.page-casino__contact-cta {
  padding: 80px 20px;
  text-align: center;
  background-color: #017439; /* Brand color background */
  color: #ffffff;
}

.page-casino__contact-cta .page-casino__section-title {
  color: #ffffff;
}

.page-casino__contact-cta .page-casino__section-description {
  color: #f0f0f0;
}

.page-casino__contact-info {
  margin-top: 30px;
  font-size: 1.1em;
}

.page-casino__contact-info p {
  margin-bottom: 10px;
}

.page-casino__contact-info a {
  color: #FFFF00; /* Highlight contact links */
  text-decoration: none;
  font-weight: bold;
}

.page-casino__contact-info a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 3em;
  }

  .page-casino__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
  }

  .page-casino__hero-title {
    font-size: 2.5em;
  }

  .page-casino__hero-description {
    font-size: 1em;
  }

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

  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-link,
  .page-casino a[class*="button"],
  .page-casino a[class*="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; /* Add padding to prevent text touching edges */
    padding-right: 15px;
  }

  .page-casino__cta-buttons,
  .page-casino__hero-buttons {
    flex-wrap: wrap !important;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-casino__container {
    padding: 30px 15px;
  }

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

  .page-casino__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-casino__features-grid,
  .page-casino__games-grid,
  .page-casino__guide-steps,
  .page-casino__payment-grid {
    grid-template-columns: 1fr;
  }

  .page-casino__responsible-gambling-content {
    flex-direction: column;
  }

  /* Image responsiveness */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsiveness */
  .page-casino video,
  .page-casino__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/videos/buttons */
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__video-section,
  .page-casino__video-container,
  .page-casino__video-wrapper,
  .page-casino__cta-buttons,
  .page-casino__button-group,
  .page-casino__btn-container,
  .page-casino__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 2em;
  }
}