/* style/casino.css */

:root {
  --primary-color: #FFD700; /* Vàng kim */
  --secondary-color: #000080; /* Xanh navy */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f9f9f9;
  --bg-dark: #000080;
  --border-color: #e0e0e0;
}

.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default to dark text for light body background */
  background-color: #ffffff; /* Assuming default light body background */
}

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

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

.page-casino__section-title {
  font-size: 36px;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-casino__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-casino p {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.7;
  text-align: justify;
}

/* 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: var(--header-offset, 120px); /* Ensure content is below fixed header */
  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%;
}

.page-casino__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

.page-casino__main-title {
  font-size: 48px;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-casino__intro-text {
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
}

.page-casino__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-casino__cta-button:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* General Buttons */
.page-casino__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
}

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

.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
}

.page-casino__btn-secondary:hover {
  background: #000066; /* Slightly darker navy */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__center-button {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 300px;
  text-align: center;
}

.page-casino__center-content {
  text-align: center;
}

/* About Section */
.page-casino__about-section p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

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

.page-casino__game-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-casino__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.page-casino__game-card img {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-casino__game-card .page-casino__card-title {
  font-size: 22px;
  color: var(--secondary-color);
  margin: 20px 20px 10px 20px;
  line-height: 1.3;
  font-weight: 700;
}

.page-casino__game-card .page-casino__card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__game-card .page-casino__card-title a:hover {
  color: var(--primary-color);
}

.page-casino__game-card p {
  font-size: 16px;
  color: var(--text-dark);
  padding: 0 20px 20px 20px;
  flex-grow: 1;
  text-align: left;
}

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

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

.page-casino__promo-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-casino__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.page-casino__promo-card img {
  width: 100%;
   /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-casino__promo-card .page-casino__card-title {
  font-size: 20px;
  color: var(--secondary-color);
  margin: 20px 20px 10px 20px;
  line-height: 1.3;
  font-weight: 700;
}

.page-casino__promo-card .page-casino__card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__promo-card .page-casino__card-title a:hover {
  color: var(--primary-color);
}

.page-casino__promo-card p {
  font-size: 16px;
  color: var(--text-dark);
  padding: 0 20px 20px 20px;
  flex-grow: 1;
  text-align: left;
}

/* Security & Payment Sections */
.page-casino__security p, .page-casino__payment p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

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

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

.page-casino__support-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__support-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.page-casino__support-item img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__support-item h3 {
  font-size: 22px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-casino__support-item p {
  font-size: 16px;
  color: var(--text-dark);
  text-align: center;
}

/* Why Choose Section */
.page-casino__why-choose {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-casino__why-choose .page-casino__section-title {
  color: var(--primary-color);
}

.page-casino__why-choose p {
  color: var(--text-light);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

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

.page-casino__advantage-list li {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  font-size: 17px;
  display: flex;
  align-items: center;
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__advantage-list li strong {
  color: var(--primary-color);
  margin-right: 10px;
}

.page-casino__advantage-list li::before {
  content: '✔';
  color: var(--primary-color);
  font-size: 20px;
  margin-right: 15px;
  font-weight: bold;
}

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

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

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

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-casino__faq-item.active .page-casino__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: var(--primary-color);
}

.page-casino__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-casino__faq-question:active {
  background: #eeeeee;
}

.page-casino__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-casino__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  color: var(--primary-color);
  transform: rotate(180deg);
}

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #fdfdfd;
  color: var(--text-dark);
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 2000px !important; /* Use !important and sufficiently large value */
  padding: 20px 25px !important;
  opacity: 1;
  border: 1px solid var(--border-color);
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.page-casino__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  text-align: justify;
}

/* Final CTA Section */
.page-casino__cta-final {
  background: linear-gradient(135deg, var(--secondary-color), #000066);
  color: var(--text-light);
  text-align: center;
  padding: 80px 20px;
}

.page-casino__cta-final .page-casino__section-title {
  color: var(--primary-color);
}

.page-casino__cta-final p {
  color: var(--text-light);
  font-size: 18px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__section-title {
    font-size: 32px;
  }
  .page-casino__main-title {
    font-size: 42px;
  }
  .page-casino__intro-text {
    font-size: 18px;
  }
  .page-casino__cta-button {
    padding: 15px 35px;
    font-size: 18px;
  }
}

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

  .page-casino__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__hero-image {
    margin-bottom: 20px;
    border-radius: 8px;
  }

  .page-casino__main-title {
    font-size: 36px;
    margin-bottom: 15px;
  }

  .page-casino__intro-text {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-casino__cta-button,
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino a[class*="button"],
  .page-casino a[class*="btn"] {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
  }

  .page-casino__center-button {
    max-width: 100%;
  }

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

  .page-casino__section {
    padding: 40px 0;
  }

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

  .page-casino p {
    font-size: 16px;
  }

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

  .page-casino__game-card img, .page-casino__promo-card img {
    
  }

  .page-casino__game-card .page-casino__card-title, .page-casino__promo-card .page-casino__card-title {
    font-size: 18px;
    margin: 15px 15px 8px 15px;
  }

  .page-casino__game-card p, .page-casino__promo-card p {
    font-size: 15px;
    padding: 0 15px 15px 15px;
  }

  .page-casino__support-item img {
    
    
  }

  .page-casino__support-item h3 {
    font-size: 20px;
  }

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

  .page-casino__advantage-list li {
    font-size: 16px;
    padding: 15px;
  }
  
  .page-casino__faq-question {
    padding: 15px 20px;
  }
  
  .page-casino__faq-question h3 {
    font-size: 16px;
  }
  
  .page-casino__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  
  .page-casino__faq-answer {
    padding: 0 20px;
  }
  
  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px 20px !important;
  }

  .page-casino__cta-final {
    padding: 60px 15px;
  }
  .page-casino__cta-final p {
    font-size: 16px;
  }

  /* Image responsiveness for all img tags within .page-casino */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__support-item,
  .page-casino__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Global image settings to prevent small icons */
.page-casino img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Ensures images fill their space without distortion */
}

/* Override for specific smaller images if absolutely necessary, but still > 200px */
.page-casino__support-item img {
  min- /* Allowed to be smaller than 200px as per specific instruction in prompt */
  min- /* Allowed to be smaller than 200px as per specific instruction in prompt */
  object-fit: contain; /* Icons should contain */
}