/* style/casino.css */
/* body đã có padding-top: var(--header-offset); nên các section đầu tiên trong main chỉ cần padding-top nhỏ */

.page-casino {
  font-family: Arial, sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

.page-casino__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-casino__main-title {
  font-size: 3.2em;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 30px;
  color: #F2FFF6; /* Text Main */
}

.page-casino__description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #A7D9B8; /* Text Secondary */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__dark-bg {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

/* HERO Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px 20px 60px; /* Small top padding, then regular bottom */
  box-sizing: border-box;
}

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

.page-casino__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.4);
}

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Ensure text readability over video */
  border-radius: 10px;
}

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

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

.page-casino__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
  border: none;
}

.page-casino__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-casino__btn-secondary {
  background: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #57E38D; /* Glow */
}

.page-casino__btn-secondary:hover {
  background: #57E38D;
  color: #08160F; /* Background */
  transform: translateY(-2px);
}

/* About Us Section */
.page-casino__about-us {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-casino__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-casino__text-block p {
  margin-bottom: 15px;
  line-height: 1.7;
  color: #A7D9B8; /* Text Secondary */
}

.page-casino__text-block p strong {
  color: #F2FFF6; /* Text Main */
}

.page-casino__image-wrapper {
  text-align: center;
}

.page-casino__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block; /* For responsive image fix */
  margin: 0 auto;
}

/* Game Types Section */
.page-casino__game-types {
  background-color: #11271B; /* Card BG */
}

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

.page-casino__game-card {
  background-color: #08160F; /* Background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(87, 227, 141, 0.3);
}

.page-casino__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block; /* For responsive image fix */
}

.page-casino__card-title {
  font-size: 1.5em;
  margin: 20px 0 10px;
  color: #F2FFF6; /* Text Main */
}

.page-casino__card-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: #A7D9B8; /* Text Secondary */
  padding: 0 20px;
}

/* Benefits Section */
.page-casino__benefits {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-casino__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-casino__benefit-item {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-casino__benefit-title {
  font-size: 1.4em;
  color: #57E38D; /* Glow */
  margin-bottom: 15px;
}

.page-casino__benefit-item p {
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
}

/* Registration Guide Section */
.page-casino__registration-guide {
  background-color: #11271B; /* Card BG */
}

.page-casino__guide-steps {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.page-casino__guide-step {
  background-color: #08160F; /* Background */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.page-casino__step-title {
  font-size: 1.8em;
  color: #57E38D; /* Glow */
  margin-bottom: 20px;
}

.page-casino__guide-step p {
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Promotions Section */
.page-casino__promotions {
  background-color: #08160F; /* Background */
}

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

.page-casino__promo-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(87, 227, 141, 0.3);
}

/* Security Section */
.page-casino__security {
  background-color: #11271B; /* Card BG */
}

.page-casino__security-features {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-casino__feature-item {
  background-color: #0A4B2C; /* Deep Green */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-casino__feature-title {
  font-size: 1.4em;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-casino__feature-item p {
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
}

/* Customer Support Section */
.page-casino__customer-support {
  background-color: #08160F; /* Background */
}

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

.page-casino__channel-card {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
}

/* FAQ Section */
.page-casino__faq-section {
  background-color: #11271B; /* Card BG */
}

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

.page-casino__faq-item {
  background-color: #08160F; /* Background */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  background-color: #0A4B2C; /* Deep Green */
  border-bottom: 1px solid #1E3A2A; /* Divider */
  list-style: none; /* For details/summary */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.page-casino__faq-question::-webkit-details-marker {
  display: none;
}

.page-casino__faq-item[open] .page-casino__faq-question {
  border-bottom: 1px solid #2E7A4E; /* Border */
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #57E38D; /* Glow */
}

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

.page-casino__faq-answer {
  padding: 20px 25px;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.7;
  background-color: #08160F; /* Background */
}

/* Conclusion Section */
.page-casino__conclusion {
  background-color: #08160F; /* Background */
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__main-title {
    font-size: 2.8em;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
  .page-casino__grid-two-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-casino__image-wrapper {
    order: -1; /* Image on top for smaller screens */
  }
}

@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-casino__hero-section {
    min-height: 60vh;
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-casino__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-casino__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-casino__description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .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: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-casino__section,
  .page-casino__container,
  .page-casino__hero-content,
  .page-casino__game-card,
  .page-casino__benefit-item,
  .page-casino__guide-step,
  .page-casino__promo-card,
  .page-casino__feature-item,
  .page-casino__channel-card,
  .page-casino__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal overflow */
  }
  .page-casino img,
  .page-casino video,
  .page-casino__hero-video,
  .page-casino__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-casino__hero-video-wrapper,
  .page-casino__video-container,
  .page-casino__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-casino__game-cards-grid,
  .page-casino__benefits-list,
  .page-casino__promo-cards-grid,
  .page-casino__security-features,
  .page-casino__support-channels {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-casino__guide-step {
    padding: 25px;
  }
  .page-casino__step-title {
    font-size: 1.5em;
  }
  .page-casino__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-casino__faq-answer {
    padding: 15px 20px;
  }
  .page-casino__button-group {
    flex-direction: column;
    gap: 15px;
    flex-wrap: wrap !important;
  }
  .page-casino__button-group .page-casino__btn-primary,
  .page-casino__button-group .page-casino__btn-secondary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .page-casino__main-title {
    font-size: 1.8em;
  }
  .page-casino__section-title {
    font-size: 1.5em;
  }
  .page-casino__hero-content {
    padding: 15px;
  }
  .page-casino__hero-section {
    padding-bottom: 30px;
  }
}