/* style/casino.css */
/* body đã có padding-top: var(--header-offset) từ shared.css, không thêm vào đây để tránh nhân đôi */

/* General styles for page-casino scope */
.page-casino {
  font-family: Arial, sans-serif;
  color: #FFF5E1; /* Text Main from custom colors */
  background-color: #B71C1C; /* Background from custom colors */
  line-height: 1.6;
}

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

.page-casino__section-title {
  font-size: 2.5em;
  color: #FFD86A; /* Gold-like for titles */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-casino__subtitle {
  font-size: 1.1em;
  color: #FFF5E1;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__game-btn,
.page-casino__promo-btn,
.page-casino a[class*="button"],
.page-casino a[class*="btn"] {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%; /* Important for responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button custom color */
  color: #7A0E0E; /* Deep Red for text on primary button */
  border: 2px solid #F2B544; /* Border custom color */
}

.page-casino__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__btn-secondary {
  background: transparent;
  color: #FFD86A; /* Gold for text on secondary button */
  border: 2px solid #FFD86A; /* Gold for border */
}

.page-casino__btn-secondary:hover {
  background: #FFD86A;
  color: #7A0E0E; /* Deep Red for text on hover */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  width: 100%; /* Important for responsiveness */
  max-width: 100%; /* Important for responsiveness */
  box-sizing: border-box;
  overflow: hidden;
}

.page-casino__cta-buttons--center {
  justify-content: center;
  margin-top: 50px;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px; /* Small top padding, larger bottom */
  background: linear-gradient(180deg, #C91F17 0%, #B71C1C 100%);
}

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

.page-casino__hero-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid #F2B544; /* Border custom color */
}

.page-casino__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-casino__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  color: #FFCC66; /* Glow for main title */
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 204, 102, 0.8);
}

.page-casino__description {
  font-size: 1.2em;
  color: #FFF5E1;
  margin-bottom: 40px;
}

/* About Section */
.page-casino__dark-section {
  background-color: #7A0E0E; /* Deep Red for dark sections */
  padding: 80px 0;
}

.page-casino__about-section .page-casino__section-title {
  color: #FFD86A;
}

.page-casino__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-casino__text-block {
  flex: 1;
}

.page-casino__text-block p {
  margin-bottom: 20px;
  color: #FFF5E1;
  font-size: 1.1em;
}

.page-casino__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
}

.page-casino__image-block .page-casino__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border: 2px solid #F2B544; /* Border custom color */
  min-width: 200px;
  min-height: 200px;
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
  background-color: #B71C1C; /* Background from custom colors */
}

.page-casino__games-section .page-casino__section-title {
  color: #FFD86A;
}

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

.page-casino__game-card {
  background-color: #D32F2F; /* Card BG custom color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  border: 1px solid #F2B544; /* Border custom color */
}

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

.page-casino__game-title {
  font-size: 1.5em;
  color: #FFD86A;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__game-description {
  font-size: 0.95em;
  color: #FFF5E1;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-casino__game-btn {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E;
  border: 2px solid #F2B544;
  padding: 10px 20px;
  border-radius: 25px;
}

.page-casino__game-btn:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 0;
}

.page-casino__promotions-section .page-casino__section-title {
  color: #FFD86A;
}

.page-casino__promo-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 50px;
}

.page-casino__promo-card {
  background-color: #D32F2F; /* Card BG custom color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 550px;
  flex: 1 1 45%; /* Allow cards to grow/shrink, max 2 per row */
  display: flex;
  flex-direction: column;
  border: 1px solid #F2B544; /* Border custom color */
}

.page-casino__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for promo images */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-casino__promo-content {
  padding: 20px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__promo-title {
  font-size: 1.6em;
  color: #FFD86A;
  margin-bottom: 10px;
}

.page-casino__promo-description {
  font-size: 1em;
  color: #FFF5E1;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino__promo-btn {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E;
  border: 2px solid #F2B544;
  padding: 10px 20px;
  border-radius: 25px;
}

.page-casino__promo-btn:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Why Choose Section */
.page-casino__why-choose-section {
  padding: 80px 0;
  background-color: #B71C1C; /* Background from custom colors */
}

.page-casino__why-choose-section .page-casino__section-title {
  color: #FFD86A;
}

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

.page-casino__feature-card {
  background-color: #D32F2F; /* Card BG custom color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #F2B544; /* Border custom color */
}

.page-casino__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  /* These min-width/height are for the *image source*, not display size */
  /* The actual image generated will be 200x200px, but displayed at 80x80px */
  min-width: 200px; 
  min-height: 200px; 
}

.page-casino__feature-title {
  font-size: 1.4em;
  color: #FFD86A;
  margin-bottom: 10px;
}

.page-casino__feature-description {
  font-size: 0.95em;
  color: #FFF5E1;
}

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

.page-casino__faq-section .page-casino__section-title {
  color: #FFD86A;
}

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

.page-casino__faq-item {
  background-color: #D32F2F; /* Card BG custom color */
  border: 1px solid #F2B544; /* Border custom color */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD86A;
  cursor: pointer;
  background-color: #C91F17; /* Main color for question background */
  transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
  background-color: #E53935; /* Auxiliary color on hover */
}

.page-casino__faq-item[open] .page-casino__faq-question {
  background-color: #E53935;
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #FFD86A;
}

.page-casino__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #FFF5E1;
  line-height: 1.7;
}

.page-casino__faq-answer p {
  margin-bottom: 10px;
}
.page-casino__faq-answer p:last-child {
  margin-bottom: 0;
}

/* CTA Banner */
.page-casino__cta-banner {
  background: linear-gradient(135deg, #C91F17 0%, #E53935 100%);
  padding: 60px 0;
  text-align: center;
  border-top: 5px solid #F2B544; /* Border custom color */
}

.page-casino__cta-banner-title {
  font-size: 2.5em;
  color: #FFCC66; /* Glow for title */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-casino__cta-banner-description {
  font-size: 1.2em;
  color: #FFF5E1;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-casino__section-title {
    font-size: 2em;
  }
  .page-casino__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }
  .page-casino__content-grid {
    flex-direction: column;
  }
  .page-casino__promo-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-casino {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  /* Images responsiveness */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Image/Video containers responsiveness */
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-image-container,
  .page-casino__video-container,
  .page-casino__video-section,
  .page-casino__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  /* Videos responsiveness (if any were present) */
  .page-casino video,
  .page-casino__video { 
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Hero section top padding for mobile (small, not --header-offset) */
  .page-casino__hero-section {
    padding-top: 10px !important;
  }

  /* Buttons responsiveness */
  .page-casino__cta-button,
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .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 !important;
    padding-right: 15px !important;
  }
  
  .page-casino__cta-buttons,
  .page-casino__button-group,
  .page-casino__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex-direction: column !important;
    gap: 15px !important;
    overflow: hidden !important;
  }

  .page-casino__hero-image {
    margin-bottom: 20px;
  }
  .page-casino__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-casino__description {
    font-size: 1em;
  }
  .page-casino__cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .page-casino__about-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__why-choose-section,
  .page-casino__faq-section,
  .page-casino__cta-banner {
    padding: 40px 0;
  }
  .page-casino__game-image,
  .page-casino__promo-image {
    height: auto;
  }
  .page-casino__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-casino__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-casino__faq-answer {
    padding: 10px 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-casino__section-title {
    font-size: 1.8em;
  }
  .page-casino__main-title {
    font-size: clamp(1.6em, 8vw, 2em);
  }
}