/* Tổng quan */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: #1F2D3D; /* Sử dụng Text Main */
    background: #F4F7FB; /* Sử dụng Background */
    line-height: 1.6;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Nhỏ hơn var(--header-offset) */
    background: linear-gradient(180deg, #6FA3FF 0%, #2F6BFF 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 50px;
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit height for hero image */
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin-top: 30px; /* Space between image and content */
    padding: 0 20px;
}

.page-slot-games__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem); /* Sử dụng clamp cho H1 */
    font-weight: 700;
    color: #ffffff; /* Sáng trên nền tối */
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__hero-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Cho phép xuống dòng trên mobile */
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__game-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
    white-space: normal; /* Cho phép văn bản xuống dòng */
    word-wrap: break-word; /* Đảm bảo từ xuống dòng */
}

.page-slot-games__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-slot-games__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
}

.page-slot-games__btn-secondary {
    background: #ffffff;
    color: #2F6BFF; /* Sử dụng Main Color */
    border: 2px solid #2F6BFF; /* Sử dụng Main Color */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__btn-secondary:hover {
    background: #2F6BFF; /* Sử dụng Main Color */
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* General Section Styling */
.page-slot-games__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-slot-games__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: #1F2D3D; /* Sử dụng Text Main */
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-slot-games__section-description {
    font-size: 1.1rem;
    color: #555555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Game Showcase */
.page-slot-games__games-showcase {
    background: #F4F7FB; /* Sử dụng Background */
}

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

.page-slot-games__game-card {
    background: #FFFFFF; /* Sử dụng Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 20px;
}

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

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

.page-slot-games__game-title {
    font-size: 1.5rem;
    color: #1F2D3D; /* Sử dụng Text Main */
    margin: 10px 15px;
    font-weight: 600;
}

.page-slot-games__game-description {
    font-size: 0.95rem;
    color: #666666;
    margin: 0 15px 20px 15px;
    flex-grow: 1;
}

.page-slot-games__game-play-btn {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    padding: 10px 20px;
    margin: 0 15px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
}

.page-slot-games__game-play-btn:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

.page-slot-games__view-all-games {
    text-align: center;
    margin-top: 30px;
}

/* Features Section */
.page-slot-games__features-section {
    background: #2F6BFF; /* Sử dụng Main Color */
    color: #ffffff; /* Chữ trắng trên nền xanh */
}

.page-slot-games__features-section .page-slot-games__section-title,
.page-slot-games__features-section .page-slot-games__section-description {
    color: #ffffff;
}

.page-slot-games__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-slot-games__feature-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-slot-games__feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-slot-games__feature-text {
    font-size: 0.95rem;
    color: #f0f0f0;
}

/* How To Play Section */
.page-slot-games__how-to-play {
    background: #F4F7FB; /* Sử dụng Background */
}

.page-slot-games__steps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-slot-games__step-item {
    background: #FFFFFF; /* Sử dụng Card BG */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    padding-top: 60px;
}

.page-slot-games__step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(47, 107, 255, 0.4);
}

.page-slot-games__step-title {
    font-size: 1.3rem;
    color: #1F2D3D; /* Sử dụng Text Main */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-slot-games__step-text {
    font-size: 0.95rem;
    color: #666666;
}

.page-slot-games__call-to-action {
    text-align: center;
    margin-top: 30px;
}

/* Promotions Section */
.page-slot-games__promotions-section {
    background: #F4F7FB; /* Sử dụng Background */
}

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

.page-slot-games__promo-card {
    background: #FFFFFF; /* Sử dụng Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 20px;
}

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

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

.page-slot-games__promo-title {
    font-size: 1.4rem;
    color: #1F2D3D; /* Sử dụng Text Main */
    margin: 10px 15px;
    font-weight: 600;
}

.page-slot-games__promo-text {
    font-size: 0.95rem;
    color: #666666;
    margin: 0 15px 20px 15px;
    flex-grow: 1;
}

.page-slot-games__view-all-promos {
    text-align: center;
    margin-top: 30px;
}

/* FAQ Section - Using <details> */
.page-slot-games__faq-section {
    background: #F4F7FB; /* Sử dụng Background */
}

details.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF; /* Sử dụng Border Color */
  overflow: hidden;
  background: #FFFFFF; /* Sử dụng Card BG */
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question::-webkit-details-marker {
  display: none;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question:hover {
  background: #f5f5f5;
}
.page-slot-games__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Sử dụng Text Main */
}
.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF; /* Sử dụng Main Color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-slot-games__faq-item .page-slot-games__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
  font-size: 0.95rem;
}

/* Responsive Styles for max-width: 768px */
@media (max-width: 768px) {
    .page-slot-games__hero-section {
        padding-top: 10px !important; /* Ensure small top padding for mobile */
        padding-bottom: 30px;
    }

    .page-slot-games__hero-image {
        max-height: 300px;
    }

    .page-slot-games__hero-content {
        margin-top: 20px;
        padding: 0 15px;
    }

    .page-slot-games__main-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .page-slot-games__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-slot-games__hero-cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        width: 100%;
        padding: 0 15px;
    }

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__game-play-btn,
    .page-slot-games a[class*="button"],
    .page-slot-games a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-slot-games__section {
        padding: 40px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-slot-games__section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .page-slot-games__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .page-slot-games__game-grid,
    .page-slot-games__feature-list,
    .page-slot-games__steps-list,
    .page-slot-games__promo-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-slot-games__game-image,
    .page-slot-games__promo-image {
        height: 180px; /* Adjust image height for mobile cards */
    }

    .page-slot-games img { /* General image adaptation */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-slot-games__game-card,
    .page-slot-games__feature-item,
    .page-slot-games__step-item,
    .page-slot-games__promo-card,
    .page-slot-games__container { /* General container adaptation */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-slot-games__step-item {
        padding-top: 50px;
    }

    .page-slot-games__step-number {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        top: -20px;
    }

    details.page-slot-games__faq-item summary.page-slot-games__faq-question { padding: 15px; }
    .page-slot-games__faq-qtext { font-size: 15px; }
    details.page-slot-games__faq-item .page-slot-games__faq-answer { padding: 0 15px 15px; }
}