/* style/slot-games.css */

/* Global styles for the page content, ensuring contrast with body background */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f8f8f8; /* A very light grey for subtle contrast with body, but still light */
}

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

/* Section styling */
.page-slot-games__section {
    padding: 60px 0;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden; /* Ensure no horizontal scroll from internal elements */
}

.page-slot-games__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #017439; /* Primary brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

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

.page-slot-games__text-block {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #333333; /* Ensure readability */
}

/* Dark section for contrast */
.page-slot-games__dark-section {
    background-color: #017439; /* Primary brand color */
    color: #ffffff; /* White text for dark background */
}

.page-slot-games__dark-section .page-slot-games__section-title,
.page-slot-games__dark-section .page-slot-games__text-block,
.page-slot-games__dark-section .page-slot-games__list-title {
    color: #ffffff;
}

.page-slot-games__dark-section .page-slot-games__section-title::after {
    background-color: #ffffff;
}

/* 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); /* Fixed header offset */
    background: linear-gradient(135deg, #017439, #FFFFFF); /* Blending brand colors */
}

.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: 900px; /* Limit hero image width */
}

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

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white background for text */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games__main-title {
    font-size: 48px;
    font-weight: 900;
    color: #017439;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-slot-games__hero-description {
    font-size: 20px;
    color: #333333;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* CTA Button Styling */
.page-slot-games__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure button fits container */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.page-slot-games__btn-register {
    background: #C30808; /* Custom color for register */
    color: #FFFF00; /* Custom font color for register */
    border: 2px solid #C30808;
}

.page-slot-games__btn-register:hover {
    background: #a30606;
    border-color: #a30606;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-login {
    background: #C30808; /* Custom color for login */
    color: #FFFF00; /* Custom font color for login */
    border: 2px solid #C30808;
}

.page-slot-games__btn-login:hover {
    background: #a30606;
    border-color: #a30606;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-primary {
    background: #017439; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-slot-games__btn-primary:hover {
    background: #005a2e;
    border-color: #005a2e;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-secondary {
    background: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

.page-slot-games__btn-secondary:hover {
    background: #f0f0f0;
    color: #005a2e;
    border-color: #005a2e;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.page-slot-games__card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333; /* Ensure dark text on light card background */
}

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

.page-slot-games__card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Minimum image size */
    min-width: 200px; /* Minimum image size */
}

.page-slot-games__card-title {
    font-size: 22px;
    font-weight: bold;
    color: #017439;
    margin-bottom: 10px;
}

.page-slot-games__card-description {
    font-size: 15px;
    color: #555555;
    margin-bottom: 15px;
}

.page-slot-games__card-link {
    display: inline-block;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

.page-slot-games__card-link:hover {
    text-decoration: underline;
}

/* List Styling (How to Play, Tips, Security) */
.page-slot-games__steps-list,
.page-slot-games__tips-list,
.page-slot-games__security-features {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

.page-slot-games__dark-section .page-slot-games__list-item {
    background-color: rgba(255, 255, 255, 0.1); /* Lighter background for items in dark section */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__list-title {
    font-size: 20px;
    font-weight: bold;
    color: #017439;
    margin-bottom: 10px;
}

.page-slot-games__dark-section .page-slot-games__list-title {
    color: #ffffff;
}

.page-slot-games__list-item p {
    font-size: 15px;
    line-height: 1.6;
    color: #555555;
    text-align: left;
}

.page-slot-games__dark-section .page-slot-games__list-item p {
    color: #e0e0e0;
}

.page-slot-games__list-item a {
    color: #017439; /* Link color in light background */
    text-decoration: underline;
}

.page-slot-games__dark-section .page-slot-games__list-item a {
    color: #FFFF00; /* Yellow link color in dark background for better contrast */
}

/* Button Group */
.page-slot-games__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Final CTA Section */
.page-slot-games__cta-final {
    padding: 80px 0;
    text-align: center;
}

.page-slot-games__cta-final .page-slot-games__section-title {
    margin-bottom: 20px;
}

.page-slot-games__cta-final .page-slot-games__text-block {
    margin-bottom: 40px;
}

/* FAQ Section */
.page-slot-games__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: 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展开状态 - ☠️ 使用!important和足够大的max-height确保一定能展开 */
.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 */
.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;
}