/* style/slots.css */
.page-slots {
  font-family: 'Arial', sans-serif;
  color: #f0f0f0; /* Sử dụng màu chữ nhạt cho nền tối */
  background-color: var(--dark-bg-1); /* Kế thừa từ shared.css */
}

/* Đảm bảo nội dung không bị che bởi header cố định */
.page-slots__hero-alt-section {
  padding-top: 120px; /* Khoảng cách cho desktop */
}

@media (max-width: 768px) {
  .page-slots__hero-alt-section {
    padding-top: 100px; /* Khoảng cách cho mobile */
  }
}

/* Hero Alt Section */
.page-slots__hero-alt-section {
  width: 100%;
  padding: 80px 20px;
  background: linear-gradient(135deg, #FFD700, #000000); /* Màu chủ đạo và phụ đạo */
  color: #ffffff;
  text-align: center;
}

.page-slots__hero-alt-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-slots__hero-alt-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-slots__highlight {
  color: #FFD700;
}

.page-slots__hero-alt-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* General Section Styling */
.page-slots__section {
  padding: 60px 20px;
  width: 100%;
  box-sizing: border-box;
}

.page-slots__section--about {
  background-color: var(--dark-bg-1);
}

.page-slots__section--game-types {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-slots__section--guide {
  background-color: var(--dark-bg-1);
}

.page-slots__section--tips {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-slots__section--faq {
  background-color: var(--dark-bg-1);
}

.page-slots__section--cta {
  background: linear-gradient(90deg, #000000, #333333);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.page-slots__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-slots__container--centered {
  max-width: 800px;
}

.page-slots__heading {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
  color: #ffffff; /* Đảm bảo độ tương phản */
}

.page-slots__heading--cta {
  font-size: 42px;
  margin-bottom: 30px;
}

.page-slots__cta-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Buttons */
.page-slots__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.page-slots__btn--primary {
  background-color: #FFD700;
  color: #000000;
}

.page-slots__btn--primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-slots__btn--secondary {
  background-color: #333333;
  color: #FFD700;
  border: 2px solid #FFD700;
  padding: 10px 20px;
  font-size: 16px;
}

.page-slots__btn--secondary:hover {
  background-color: #FFD700;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

.page-slots__btn--large {
  padding: 20px 40px;
  font-size: 20px;
}

/* Grid Layouts */
.page-slots__grid {
  display: grid;
  gap: 30px;
}

.page-slots__grid--2-cols {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-slots__grid--3-cols {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Card Styling */
.page-slots__card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #f0f0f0;
}

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

.page-slots__card-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px auto;
  overflow: hidden;
  border-radius: 50%;
  background-color: rgba(255, 215, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-slots__card-icon img {
  max-width: 80%;
  max-height: 80%;
  height: auto;
  display: block;
}

.page-slots__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-slots__card-text {
  font-size: 16px;
  line-height: 1.6;
}

/* Game Type Card Styling */
.page-slots__game-type-card {
  background-color: rgba(255, 255, 255, 0.08);
  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;
  color: #f0f0f0;
  text-align: center;
  padding-bottom: 20px;
}

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

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

.page-slots__game-type-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFD700;
  padding: 0 15px;
}

.page-slots__game-type-description {
  font-size: 15px;
  line-height: 1.5;
  padding: 0 15px;
}

/* Guide Steps Styling */
.page-slots__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.page-slots__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-top: 60px; /* Space for number */
}

.page-slots__step-number {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #FFD700;
  color: #000000;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  border: 4px solid #000000;
  box-shadow: 0 0 0 5px rgba(255, 215, 0, 0.3);
}

.page-slots__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-slots__step-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* Tip Card Styling */
.page-slots__tip-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-left: 5px solid #FFD700;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #f0f0f0;
}

.page-slots__tip-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.page-slots__tip-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFD700;
}

.page-slots__tip-description {
  font-size: 16px;
  line-height: 1.6;
}

/* FAQ Section Styling */
.page-slots__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-slots__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-slots__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #FFD700;
}

.page-slots__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #f0f0f0;
  pointer-events: none;
}

.page-slots__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  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: 32px;
  height: 32px;
}

.page-slots__faq-item.active .page-slots__faq-toggle {
  transform: rotate(180deg);
  color: #ffffff;
}

.page-slots__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;
  color: #cccccc;
}

.page-slots__faq-item.active .page-slots__faq-answer {
  max-height: 2000px !important; /* Đảm bảo đủ cao cho mọi nội dung */
  padding: 20px 25px !important;
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 0 0 8px 8px;
}

.page-slots__faq-answer p {
  margin: 0;
  line-height: 1.7;
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slots__heading {
    font-size: 32px;
  }
  .page-slots__hero-alt-title {
    font-size: 40px;
  }
  .page-slots__hero-alt-description {
    font-size: 17px;
  }
  .page-slots__card-title {
    font-size: 22px;
  }
  .page-slots__game-type-title {
    font-size: 20px;
  }
  .page-slots__step-title {
    font-size: 20px;
  }
  .page-slots__tip-title {
    font-size: 18px;
  }
  .page-slots__faq-question h3 {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-slots__hero-alt-section {
    padding: 60px 15px;
  }
  .page-slots__hero-alt-title {
    font-size: 32px;
  }
  .page-slots__hero-alt-description {
    font-size: 16px;
  }
  .page-slots__heading {
    font-size: 28px;
    margin-bottom: 40px;
  }
  .page-slots__heading--cta {
    font-size: 32px;
  }
  .page-slots__section {
    padding: 40px 15px;
  }
  .page-slots__grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-slots__card {
    padding: 25px;
  }
  .page-slots__card-icon {
    width: 80px;
    height: 80px;
  }
  .page-slots__card-title {
    font-size: 20px;
  }
  .page-slots__card-text {
    font-size: 15px;
  }
  .page-slots__game-type-image {
    height: 180px;
  }
  .page-slots__game-type-title {
    font-size: 18px;
  }
  .page-slots__game-type-description {
    font-size: 14px;
  }
  .page-slots__guide-steps {
    gap: 30px;
  }
  .page-slots__step-item {
    padding: 50px 25px 25px 25px;
  }
  .page-slots__step-number {
    width: 45px;
    height: 45px;
    font-size: 24px;
    top: -20px;
  }
  .page-slots__step-title {
    font-size: 18px;
  }
  .page-slots__step-description {
    font-size: 15px;
  }
  .page-slots__tip-card {
    padding: 20px;
  }
  .page-slots__tip-title {
    font-size: 17px;
  }
  .page-slots__tip-description {
    font-size: 15px;
  }
  .page-slots__faq-question {
    padding: 15px 20px;
  }
  .page-slots__faq-question h3 {
    font-size: 16px;
  }
  .page-slots__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-slots__faq-answer {
    padding: 0 20px;
  }
  .page-slots__faq-item.active .page-slots__faq-answer {
    padding: 15px 20px !important;
  }
  .page-slots__faq-answer p {
    font-size: 15px;
  }
  .page-slots__btn--large {
    padding: 15px 30px;
    font-size: 18px;
  }

  /* Mobile image responsiveness */
  .page-slots img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-slots__section,
  .page-slots__card,
  .page-slots__container,
  .page-slots__game-type-card,
  .page-slots__step-item,
  .page-slots__tip-card,
  .page-slots__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-slots__hero-alt-container {
    padding-left: 0;
    padding-right: 0;
  }
}