/* style/casino.css */

/* Căn chỉnh cho nội dung không bị che bởi header cố định */
.page-casino {
  padding-top: 120px; /* Khoảng cách cho header cố định trên desktop */
  color: #ffffff; /* Mặc định chữ màu sáng cho nền tối */
  background-color: var(--dark-bg-1);
}

@media (max-width: 768px) {
  .page-casino {
    padding-top: 100px; /* Khoảng cách cho header cố định trên mobile */
  }
}

/* -------------------- Hero Section -------------------- */
.page-casino__hero-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #0A2463, #1A4080);
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-casino__hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #E0B14A;
}

.page-casino__hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-casino__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-casino__hero-image {
  width: 100%;
  max-width: 1000px;
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

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

/* -------------------- General Sections & Containers -------------------- */
.page-casino__section--dark-bg {
  background-color: var(--dark-bg-1);
  color: #ffffff;
  padding: 80px 0;
}

.page-casino__section--light-bg {
  background-color: #f9f9f9;
  color: #333333;
  padding: 80px 0;
}

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

.page-casino__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #E0B14A;
  text-align: center;
  margin-bottom: 20px;
}

.page-casino__section--light-bg .page-casino__section-title {
  color: #0A2463;
}

.page-casino__section-description {
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  opacity: 0.9;
}

.page-casino__subtitle {
  font-size: 28px;
  font-weight: 600;
  color: #E0B14A;
  margin-top: 40px;
  margin-bottom: 15px;
  text-align: center;
}

.page-casino__section--light-bg .page-casino__subtitle {
  color: #0A2463;
}

.page-casino__cta-box {
  background: rgba(224, 177, 74, 0.1);
  border: 1px solid #E0B14A;
  border-radius: 8px;
  padding: 30px;
  margin-top: 50px;
  text-align: center;
}

.page-casino__cta-box p {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #E0B14A;
}

.page-casino__cta-box--center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* -------------------- Buttons -------------------- */
.page-casino__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.page-casino__btn--primary {
  background: #E0B14A;
  color: #0A2463;
  border-color: #E0B14A;
}

.page-casino__btn--primary:hover {
  background: #f0c25a;
  border-color: #f0c25a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(224, 177, 74, 0.4);
}

.page-casino__btn--secondary {
  background: transparent;
  color: #E0B14A;
  border-color: #E0B14A;
}

.page-casino__btn--secondary:hover {
  background: rgba(224, 177, 74, 0.1);
  color: #f0c25a;
  border-color: #f0c25a;
  transform: translateY(-2px);
}

.page-casino__btn--link {
  background: none;
  border: none;
  color: #E0B14A;
  padding: 0;
  font-size: 15px;
  text-decoration: underline;
  font-weight: 500;
}

.page-casino__btn--link:hover {
  color: #f0c25a;
  text-decoration: none;
  transform: none;
  box-shadow: none;
}

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

.page-casino__card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-casino__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-casino__card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-casino__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-casino__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #0A2463;
}

.page-casino__card-title a {
  color: #0A2463;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__card-title a:hover {
  color: #E0B14A;
}

.page-casino__card-content p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-casino__promo-card {
  background: #1A4080;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

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

.page-casino__promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-casino__promo-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-casino__promo-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #E0B14A;
}

.page-casino__promo-content p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.9;
  flex-grow: 1;
}

/* -------------------- Account Guide Steps -------------------- */
.page-casino__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-casino__step-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333;
  padding: 20px;
}

.page-casino__step-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
  margin: 0 auto 20px auto;
}

.page-casino__step-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-casino__step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0A2463;
}

.page-casino__step-content p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* -------------------- Security & Support Features -------------------- */
.page-casino__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-casino__feature-item {
  background: #1A4080;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-casino__feature-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto 20px auto;
}

.page-casino__feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #E0B14A;
}

.page-casino__feature-item p {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
}

/* -------------------- FAQ Section -------------------- */
.page-casino__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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;
  padding: 0 15px;
  opacity: 0;
  color: #333333;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #e9e9e9;
  border-radius: 0 0 5px 5px;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #333333;
}

.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: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #0A2463;
}

.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  color: #333;
}

/* -------------------- Latest News Section -------------------- */
.page-casino__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__news-card {
  background: #1A4080;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-casino__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-casino__news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-casino__news-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-casino__news-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-casino__news-title a {
  color: #E0B14A;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__news-title a:hover {
  color: #f0c25a;
}

.page-casino__news-content p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 15px;
  opacity: 0.9;
  flex-grow: 1;
}

.page-casino__news-date {
  font-size: 14px;
  opacity: 0.7;
  color: #ffffff;
}

/* -------------------- Responsive Design -------------------- */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 40px;
  }
  .page-casino__section-title {
    font-size: 32px;
  }
  .page-casino__subtitle {
    font-size: 24px;
  }
  .page-casino__grid-cards, .page-casino__promo-grid, .page-casino__steps-grid, .page-casino__features-grid, .page-casino__news-grid {
    gap: 20px;
  }
  .page-casino__card img, .page-casino__promo-card img, .page-casino__news-card img {
    height: 180px;
  }
  .page-casino__card-title, .page-casino__promo-title, .page-casino__step-title, .page-casino__feature-title, .page-casino__news-title {
    font-size: 20px;
  }
  .page-casino__faq-question h3 {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-banner {
    padding: 40px 15px;
  }
  .page-casino__hero-title {
    font-size: 32px;
  }
  .page-casino__hero-description {
    font-size: 16px;
  }
  .page-casino__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__btn {
    padding: 12px 25px;
    font-size: 15px;
  }
  .page-casino__section--dark-bg, .page-casino__section--light-bg {
    padding: 50px 0;
  }
  .page-casino__container {
    padding: 0 15px;
  }
  .page-casino__section-title {
    font-size: 28px;
  }
  .page-casino__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-casino__subtitle {
    font-size: 22px;
  }
  .page-casino__cta-box p {
    font-size: 18px;
  }
  .page-casino__grid-cards, .page-casino__promo-grid, .page-casino__steps-grid, .page-casino__features-grid, .page-casino__news-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-casino__card img, .page-casino__promo-card img, .page-casino__news-card img {
    height: 200px;
  }
  .page-casino__step-card img, .page-casino__feature-item img {
    width: 70px;
    height: 70px;
  }
  .page-casino__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-casino__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-casino__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-casino__faq-answer {
    padding: 0 15px;
  }
  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px !important;
  }
  /* Mobile image responsiveness */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-casino__section--dark-bg,
  .page-casino__section--light-bg,
  .page-casino__container,
  .page-casino__card,
  .page-casino__promo-card,
  .page-casino__step-card,
  .page-casino__feature-item,
  .page-casino__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino__cta-box, .page-casino__promo-content, .page-casino__step-content, .page-casino__feature-item, .page-casino__news-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}