/* style/slot-games.css */

/* Variables from shared.css: --primary-color: #FFD700; --secondary-color: #000080; */
/* Body background is #f4f4f4 (light), so default text color should be dark. */

.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #f4f4f4; /* Explicitly set for consistency, though shared.css defines body */
}

/* --- Hero Section --- */
.page-slot-games__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); /* Ensures content is below fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #ffffff;
  overflow: hidden; /* Prevent content overflow */
}

.page-slot-games__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-slot-games__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 800px; /* Limit image width in hero for better composition */
}

.page-slot-games__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 900px;
}

.page-slot-games__hero-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
  color: #ffffff; /* Ensure white text on gradient background */
}

.page-slot-games__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0; /* Slightly off-white for description */
}

.page-slot-games__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--primary-color);
  color: var(--secondary-color); /* Gold button with dark blue text for contrast */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-slot-games__cta-button:hover {
  background: #ffdb4d; /* Lighter gold on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- General Section Styles --- */
.page-slot-games__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  color: var(--secondary-color); /* Dark blue for section titles */
}

.page-slot-games__dark-text {
  color: var(--secondary-color);
}

.page-slot-games__light-bg {
  background-color: #f9f9f9; /* Slightly off-white for subtle contrast */
  padding: 80px 0;
}

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

.page-slot-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-slot-games__highlight {
  color: var(--primary-color);
  font-weight: bold;
}

/* --- Introduction Section --- */
.page-slot-games__introduction-section {
  padding: 80px 0;
}

/* --- Games Showcase Section --- */
.page-slot-games__games-showcase-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-slot-games__card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-slot-games__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-slot-games__card-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--secondary-color);
  font-weight: bold;
}

.page-slot-games__card-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1; /* Allows descriptions to take up available space */
}

.page-slot-games__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* For button responsiveness */
  box-sizing: border-box; /* For button responsiveness */
  white-space: normal; /* For button responsiveness */
  word-wrap: break-word; /* For button responsiveness */
}

.page-slot-games__btn-primary:hover {
  background: #000066; /* Darker blue on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- Tips & Strategy Section --- */
.page-slot-games__tips-strategy-section {
  padding: 80px 0;
}

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

.page-slot-games__tip-item {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__tip-image {
  width: 100%;
  height: 180px; /* Consistent image height */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

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

.page-slot-games__tip-description {
  font-size: 0.95em;
  color: #666666;
}

/* --- Promotions Section --- */
.page-slot-games__promotions-section {
  padding: 80px 0;
  background-color: var(--secondary-color); /* Dark blue background */
  color: #ffffff; /* White text for contrast */
}

.page-slot-games__promotions-section .page-slot-games__section-title {
  color: var(--primary-color); /* Gold title on dark blue background */
}

.page-slot-games__promotions-section .page-slot-games__text-block {
  color: #f0f0f0;
}

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

.page-slot-games__promo-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white card on dark blue background */
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  text-align: center;
  padding: 30px;
  transition: transform 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__promo-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
}

.page-slot-games__promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-slot-games__promo-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--primary-color); /* Gold title on card */
  font-weight: bold;
}

.page-slot-games__promo-description {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color); /* Gold button */
  color: var(--secondary-color); /* Dark blue text */
  text-decoration: none;
  border-radius: 6px;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* For button responsiveness */
  box-sizing: border-box; /* For button responsiveness */
  white-space: normal; /* For button responsiveness */
  word-wrap: break-word; /* For button responsiveness */
}

.page-slot-games__btn-secondary:hover {
  background: #ffdb4d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- Safety & Support Section --- */
.page-slot-games__safety-support-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

.page-slot-games__safety-item {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: left;
}

.page-slot-games__safety-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--secondary-color);
  font-weight: bold;
}

.page-slot-games__safety-description {
  font-size: 0.95em;
  color: #666666;
}

.page-slot-games__safety-description a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-slot-games__safety-description a:hover {
  text-decoration: underline;
}

/* --- FAQ Section --- */
.page-slot-games__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

/* FAQ容器样式 */
.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ默认状态 - 答案隐藏 */
.page-slot-games__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 15px;
  opacity: 0;
}

/* FAQ展开状态 - ⚠️ Sử dụng!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-slot-games__faq-item.active .page-slot-games__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 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* Vấn đề kiểu dáng */
.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  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;
}

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

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

/* Vấn đề tiêu đề kiểu dáng */
.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện nhấp */
  color: var(--secondary-color); /* Dark blue for FAQ questions */
}

/* Chuyển đổi biểu tượng */
.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color); /* Gold for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn chặn biểu tượng chặn sự kiện nhấp */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  color: var(--secondary-color); /* Dark blue when active */
  transform: rotate(45deg); /* Rotate for 'x' effect, or just change text to '-' */
}

/* --- News & Updates Section --- */
.page-slot-games__news-updates-section {
  padding: 80px 0;
}

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