.page-slot-games-mechanics {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--bg-color); /* Lấy từ shared.css */
  color: var(--text-main); /* Mặc định cho nội dung chính */
}

.page-slot-games-mechanics__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px; /* Thêm padding cho nội dung */
  padding-top: 10px; /* Nhỏ hơn để body lo phần header offset */
  background: linear-gradient(180deg, #08160F 0%, #11271B 100%); /* Nền tối */
  color: var(--text-main);
  text-align: center;
  overflow: hidden;
}

.page-slot-games-mechanics__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin-bottom: 30px;
}

.page-slot-games-mechanics__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-slot-games-mechanics__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin-top: 20px;
}

.page-slot-games-mechanics__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-slot-games-mechanics__hero-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games-mechanics__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.page-slot-games-mechanics__btn-primary,
.page-slot-games-mechanics__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-slot-games-mechanics__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-slot-games-mechanics__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-slot-games-mechanics__btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 2px solid var(--border);
}

.page-slot-games-mechanics__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #2AD16F;
  color: #2AD16F;
}

.page-slot-games-mechanics__section {
  padding: 80px 20px;
}

.page-slot-games-mechanics__dark-bg {
  background-color: var(--bg-color);
  color: var(--text-main);
}

.page-slot-games-mechanics__light-bg {
  background-color: var(--card-b-g);
  color: var(--text-main);
}

.page-slot-games-mechanics__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-slot-games-mechanics__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

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

.page-slot-games-mechanics__sub-title {
  font-size: 1.8em;
  color: var(--text-main);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-slot-games-mechanics__text-block {
  font-size: 1.05em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-slot-games-mechanics__image-inline {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games-mechanics__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.page-slot-games-mechanics__list-item {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-slot-games-mechanics__list-item strong {
  color: var(--text-main);
}

.page-slot-games-mechanics__faq-list {
  margin-top: 40px;
}

.page-slot-games-mechanics__faq-item {
  background-color: var(--card-b-g);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-slot-games-mechanics__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  color: var(--text-main);
  font-size: 1.15em;
  background-color: #11271B; /* Slightly darker than card-bg for contrast */
  transition: background-color 0.3s ease;
  list-style: none; /* For <summary> */
}

.page-slot-games-mechanics__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-slot-games-mechanics__faq-question:hover {
  background-color: #1a3026;
}

.page-slot-games-mechanics__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--glow);
  margin-left: 15px;
}

.page-slot-games-mechanics__faq-answer {
  padding: 0 25px 20px;
  color: var(--text-secondary);
  font-size: 1em;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-slot-games-mechanics__faq-item[open] .page-slot-games-mechanics__faq-answer {
  max-height: 500px; /* Arbitrary large value for expansion */
  padding: 15px 25px 20px;
}

.page-slot-games-mechanics__faq-item.active .page-slot-games-mechanics__faq-answer {
  max-height: 500px !important;
  padding: 15px 25px 20px;
}

.page-slot-games-mechanics__faq-item.active .page-slot-games-mechanics__faq-question .page-slot-games-mechanics__faq-toggle {
  content: '−';
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-slot-games-mechanics__section {
    padding: 60px 20px;
  }

  .page-slot-games-mechanics__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }

  .page-slot-games-mechanics__section-title {
    font-size: 2em;
  }

  .page-slot-games-mechanics__sub-title {
    font-size: 1.5em;
  }
}

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

  .page-slot-games-mechanics__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-slot-games-mechanics__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
    margin-bottom: 10px;
  }

  .page-slot-games-mechanics__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-slot-games-mechanics__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-slot-games-mechanics__btn-primary,
  .page-slot-games-mechanics__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-slot-games-mechanics__section {
    padding: 40px 15px;
  }

  .page-slot-games-mechanics__container,
  .page-slot-games-mechanics__faq-item,
  .page-slot-games-mechanics__faq-question,
  .page-slot-games-mechanics__faq-answer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-slot-games-mechanics__faq-question {
    padding: 15px 20px;
  }

  .page-slot-games-mechanics__faq-answer {
    padding: 0 20px 15px;
  }
  
  .page-slot-games-mechanics__faq-item[open] .page-slot-games-mechanics__faq-answer {
    padding: 15px 20px 15px;
  }

  .page-slot-games-mechanics__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-slot-games-mechanics__sub-title {
    font-size: 1.3em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-slot-games-mechanics__text-block,
  .page-slot-games-mechanics__list-item {
    font-size: 0.95em;
  }

  .page-slot-games-mechanics img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-slot-games-mechanics__hero-image-wrapper {
    margin-bottom: 20px;
  }
}