/* slot-games.css */

:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --text-main-color: #333333;
    --card-bg-color: #FFFFFF;
    --background-color-page: #F5F7FA;
    --border-color: #E0E0E0;
}

.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color);
    background-color: var(--background-color-page);
}

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

.page-slot-games__section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-slot-games__section-subtitle {
    font-size: 18px;
    color: #666666;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.5;
}

.page-slot-games__content-area p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-main-color);
}

.page-slot-games__dark-bg {
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-slot-games__dark-bg .page-slot-games__section-title,
.page-slot-games__dark-bg .page-slot-games__section-subtitle {
    color: #ffffff;
}

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

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__btn-primary {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
}

.page-slot-games__btn-secondary {
    background-color: var(--card-bg-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 60px;
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.page-slot-games__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em);
    font-weight: 900;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-slot-games__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: #f0f0f0;
    line-height: 1.6;
}

.page-slot-games__hero-cta {
    margin-top: 20px;
}

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

/* Featured Games Section */
.page-slot-games__featured-games-section {
    padding: 60px 0;
}

.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-color: var(--card-bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-slot-games__game-trial-frame {
    width: 100%;
    height: 250px;
    border: none;
    display: block;
}

.page-slot-games__game-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 20px 10px;
}

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

.page-slot-games__game-cta {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

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

/* Why Choose Section */
.page-slot-games__why-choose-section {
    padding: 60px 0;
}

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

.page-slot-games__benefit-item {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.page-slot-games__benefit-item:hover {
    transform: translateY(-5px);
}

.page-slot-games__benefit-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: none; /* Ensure no color filters */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}

.page-slot-games__benefit-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-slot-games__benefit-description {
    font-size: 16px;
    color: #666666;
    line-height: 1.7;
}

/* How to Play Section */
.page-slot-games__how-to-play-section {
    padding: 60px 0;
}

.page-slot-games__how-to-list {
    list-style: none;
    counter-reset: how-to-step;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
}

.page-slot-games__how-to-list li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.8;
    color: #ffffff;
}

.page-slot-games__how-to-list li:last-child {
    margin-bottom: 0;
}

.page-slot-games__how-to-list li::before {
    counter-increment: how-to-step;
    content: counter(how-to-step);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--secondary-color);
    color: #ffffff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.page-slot-games__how-to-list strong {
    color: var(--secondary-color);
}

/* Promotions Section */
.page-slot-games__promotions-section {
    padding: 60px 0;
}

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

.page-slot-games__promotion-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-slot-games__promotion-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    filter: none; /* Ensure no color filters */
}

.page-slot-games__promotion-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 20px 10px;
}

.page-slot-games__promotion-description {
    font-size: 15px;
    color: #666666;
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-slot-games__promotion-card .page-slot-games__btn-secondary {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

/* Mobile App Section */
.page-slot-games__mobile-app-section {
    padding: 60px 0;
}

.page-slot-games__mobile-app-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.page-slot-games__mobile-app-text {
    flex: 1;
    min-width: 300px;
}

.page-slot-games__mobile-app-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-slot-games__mobile-app-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    filter: none; /* Ensure no color filters */
}

.page-slot-games__download-cta {
    margin-top: 30px;
}

/* FAQ Section */
details.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
  box-shadow: 0 4px 15px 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 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--primary-color);
}
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: #fdfdfd;
}
.page-slot-games__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color);
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question:hover .page-slot-games__faq-qtext {
    color: var(--primary-color);
}
.page-slot-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
    color: var(--secondary-color);
}
details.page-slot-games__faq-item .page-slot-games__faq-answer {
  padding: 0 25px 20px;
  background: #f9f9f9;
  border-radius: 0 0 10px 10px;
  color: #555555;
}
details.page-slot-games__faq-item .page-slot-games__faq-answer p {
    font-size: 16px;
    line-height: 1.7;
    color: #555555;
}

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

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

.page-slot-games__cta-final-section .page-slot-games__section-subtitle {
    font-size: 20px;
    margin-bottom: 50px;
}

.page-slot-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__container {
        padding: 20px 30px;
    }
    .page-slot-games__hero-content {
        padding: 30px 20px;
    }
    .page-slot-games__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }
    .page-slot-games__hero-description {
        font-size: 18px;
    }
    .page-slot-games__section-title {
        font-size: 30px;
    }
    .page-slot-games__section-subtitle {
        font-size: 16px;
    }
    .page-slot-games__game-grid,
    .page-slot-games__benefits-grid,
    .page-slot-games__promotions-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-slot-games__mobile-app-content {
        flex-direction: column;
        text-align: center;
    }
    .page-slot-games__mobile-app-text,
    .page-slot-games__mobile-app-image-wrapper {
        min-width: unset;
        width: 100%;
    }
    .page-slot-games__cta-final-section .page-slot-games__section-title {
        font-size: 36px;
    }
    .page-slot-games__cta-final-section .page-slot-games__section-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        padding-bottom: 40px;
    }
    .page-slot-games__hero-image {
        object-fit: contain; /* Banner 849px contain */
        height: auto;
        max-height: 400px;
    }
    .page-slot-games__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-slot-games__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        padding: 12px 20px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-slot-games__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-slot-games__section-title {
        font-size: 26px;
        margin-bottom: 10px;
    }
    .page-slot-games__section-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .page-slot-games__content-area p {
        font-size: 15px;
    }
    .page-slot-games__game-grid,
    .page-slot-games__benefits-grid,
    .page-slot-games__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-slot-games__how-to-list li {
        padding-left: 40px;
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-slot-games__how-to-list li::before {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    .page-slot-games__promotion-image {
        height: 180px;
    }
    .page-slot-games__mobile-app-content {
        gap: 30px;
    }
    .page-slot-games__mobile-app-image {
        box-shadow: none;
    }
    .page-slot-games__download-cta {
        width: 100%;
    }
    .page-slot-games__cta-final-section {
        padding: 60px 0;
    }
    .page-slot-games__cta-final-section .page-slot-games__section-title {
        font-size: 30px;
    }
    .page-slot-games__cta-final-section .page-slot-games__section-subtitle {
        font-size: 16px;
    }
    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    details.page-slot-games__faq-item summary.page-slot-games__faq-question {
        padding: 15px;
    }
    .page-slot-games__faq-qtext {
        font-size: 16px;
    }
    .page-slot-games__faq-toggle {
        font-size: 24px;
        width: 24px;
    }
    details.page-slot-games__faq-item .page-slot-games__faq-answer {
        padding: 0 15px 15px;
    }
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-slot-games__benefit-icon {
        min-width: 100px; /* Adjust min size for mobile */
        min-height: 100px;
        width: 100px;
        height: 100px;
    }
}

/* Ensure all images maintain original color */
.page-slot-games img {
    filter: none; /* Absolutely no CSS filters */
}

/* Override specific element styles to ensure contrast */
.page-slot-games__dark-bg .page-slot-games__content-area p,
.page-slot-games__dark-bg .page-slot-games__how-to-list li {
    color: #ffffff; /* Ensure white text on dark background */
}

.page-slot-games__light-bg .page-slot-games__content-area p,
.page-slot-games__light-bg .page-slot-games__benefit-description,
.page-slot-games__light-bg .page-slot-games__promotion-description,
.page-slot-games__light-bg .page-slot-games__faq-answer p {
    color: var(--text-main-color); /* Ensure dark text on light background */
}