/* style/casino.css */

/* Variables and Base Styles */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #EA7C07; /* Login color for CTA */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #ffffff;
  --background-dark: #202020; /* A darker shade for contrast sections if needed, but primary is #26A9E0 */
  --border-color: #e0e0e0;
  --gap-md: 20px;
  --gap-lg: 30px;
}

.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--background-light); /* Default page background */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

/* Ensure images are responsive and not smaller than 200px in content areas */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Minimum size for all content images */
  min-height: 200px; /* Minimum size for all content images */
}

/* Sections */
.page-casino__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: var(--gap-lg);
  font-weight: bold;
  line-height: 1.2;
}

.page-casino__text-block {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--gap-lg) auto;
  font-size: 1.1em;
  color: var(--text-dark);
}

.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px var(--gap-md);
}

/* 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;
  background: linear-gradient(135deg, var(--primary-color), var(--background-light)); /* Blend brand colors */
  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;
  z-index: 1;
}

.page-casino__hero-image {
  width: 100%;
  margin-bottom: var(--gap-lg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

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

.page-casino__hero-title {
  font-size: 3.5em;
  color: var(--text-dark); /* Changed to dark for contrast on light background blend */
  margin-bottom: var(--gap-md);
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.page-casino__hero-description {
  font-size: 1.3em;
  color: var(--text-dark); /* Changed to dark for contrast on light background blend */
  max-width: 900px;
  margin: 0 auto var(--gap-lg) auto;
}

.page-casino__hero-cta-buttons {
  display: flex;
  gap: var(--gap-md);
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-casino__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Ensure buttons are not too small */
  text-align: center;
  box-sizing: border-box;
}

.page-casino__cta-button--primary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-casino__cta-button--primary:hover {
  background: #1e87b6; /* Darken primary color */
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__cta-button--secondary {
  background: var(--secondary-color); /* Using login color for secondary CTA */
  color: var(--text-light);
  border: 2px solid var(--secondary-color);
}

.page-casino__cta-button--secondary:hover {
  background: #c36706; /* Darken secondary color */
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* About Section */
.page-casino__about-section {
  padding: 80px 0;
  background-color: var(--background-light);
  color: var(--text-dark);
}

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

.page-casino__feature-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: var(--gap-md);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-casino__feature-item img {
  width: 100%;
  height: 250px; /* Fixed height for feature images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: var(--gap-md);
  min-width: 200px;
  min-height: 200px;
}

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

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Darker background for contrast */
  color: var(--text-light);
}

.page-casino__games-section .page-casino__section-title,
.page-casino__games-section .page-casino__text-block {
  color: var(--text-light);
}

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

.page-casino__game-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on primary background */
  border-radius: 10px;
  padding: var(--gap-md);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-casino__game-card img {
  width: 100%;
  height: 220px; /* Fixed height for game images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: var(--gap-md);
  min-width: 200px;
  min-height: 200px;
}

.page-casino__game-title {
  font-size: 1.6em;
  color: var(--text-light);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-casino__game-description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--gap-md);
  flex-grow: 1;
}

.page-casino__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background: var(--text-light);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--text-light);
  min-width: 150px; /* Ensure buttons are not too small */
  text-align: center;
  box-sizing: border-box;
}

.page-casino__btn-secondary:hover {
  background: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 0;
  background-color: var(--background-light);
  color: var(--text-dark);
}

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

.page-casino__promo-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: var(--gap-md);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-casino__promo-card img {
  width: 100%;
  height: 200px; /* Fixed height for promo images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: var(--gap-md);
  min-width: 200px;
  min-height: 200px;
}

.page-casino__promo-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-casino__promo-description {
  color: var(--text-dark);
  margin-bottom: var(--gap-md);
  flex-grow: 1;
}

.page-casino__btn-primary {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  min-width: 150px; /* Ensure buttons are not too small */
  text-align: center;
  box-sizing: border-box;
}

.page-casino__btn-primary:hover {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-casino__call-to-action {
  text-align: center;
  margin-top: var(--gap-lg);
  padding: var(--gap-lg);
  background: #f0f8ff; /* Light blue background for CTA */
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-casino__call-to-action p {
  font-size: 1.2em;
  color: var(--text-dark);
  margin-bottom: var(--gap-md);
}

/* Security and Support Section */
.page-casino__security-support-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark background for contrast */
  color: var(--text-light);
}

.page-casino__security-support-section .page-casino__section-title,
.page-casino__security-support-section .page-casino__text-block {
  color: var(--text-light);
}

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

.page-casino__info-item {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on primary background */
  border-radius: 10px;
  padding: var(--gap-md);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__info-item img {
  width: 100%;
  height: 200px; /* Fixed height for info images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: var(--gap-md);
  min-width: 200px;
  min-height: 200px;
}

.page-casino__info-title {
  font-size: 1.5em;
  color: var(--text-light);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-casino__info-item p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--gap-md);
  flex-grow: 1;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 0;
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-casino__faq-list {
  max-width: 900px;
  margin: var(--gap-lg) auto 0 auto;
}

/* FAQ容器样式 */
.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.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 20px;
  opacity: 0;
  background: #f9f9f9;
}

/* FAQ展开状态 - ⚠️ Sử dụng!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 2000px !important; /* ⚠️ Sử dụng!important để đảm bảo độ ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}