/* style/slot-games.css */

/* --- Base Styles --- */
.page-slot-games {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color, adjusted by background later */
    background-color: var(--bg-color); /* From shared.css, body background */
}

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

.page-slot-games__section-title {
    font-size: clamp(28px, 4vw, 42px); /* Responsive H2 */
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.page-slot-games__text-block {
    font-size: 17px;
    color: var(--text-main);
    margin-bottom: 20px;
    text-align: justify;
}

/* --- Color Contrast Handling (Based on body background from shared.css) --- */
/* Assuming shared.css defines --bg-color as #08160F (Deep Green) which is dark */
.page-slot-games {
  color: var(--text-main, #F2FFF6); /* Dark background -> Light text */
}

.page-slot-games__light-bg {
  background-color: var(--card-bg, #11271B); /* Card background is also dark */
  color: var(--text-main, #F2FFF6);
}

.page-slot-games__dark-bg {
  background-color: var(--background, #08160F); /* Main background is dark */
  color: var(--text-main, #F2FFF6);
}

.page-slot-games__card {
  background-color: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- Hero Section --- */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-slot-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Darken image for text readability */
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    color: #ffffff; /* Explicitly white for hero content */
}

.page-slot-games__main-title {
    font-size: clamp(36px, 6vw, 64px); /* H1 size, responsive */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--gold, #F2C14E); /* Using gold for main title */
}

.page-slot-games__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: #f2fff6; /* Text main */
}

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

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

.page-slot-games__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-slot-games__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: var(--text-main, #F2FFF6);
    border: 2px solid var(--glow, #57E38D);
}

.page-slot-games__btn-secondary:hover {
    background-color: var(--glow, #57E38D);
    color: var(--background, #08160F);
    transform: translateY(-2px);
}

.page-slot-games__btn-tertiary {
    background-color: var(--deep-green, #0A4B2C);
    color: var(--text-main, #F2FFF6);
    border: 1px solid var(--glow, #57E38D);
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
}

.page-slot-games__btn-tertiary:hover {
    background-color: var(--glow, #57E38D);
    color: var(--deep-green, #0A4B2C);
}


/* --- Sections Padding --- */
.page-slot-games__introduction-section,
.page-slot-games__features-section,
.page-slot-games__game-showcase-section,
.page-slot-games__why-choose-section,
.page-slot-games__promotions-section,
.page-slot-games__how-to-play-section,
.page-slot-games__faq-section,
.page-slot-games__cta-section {
    padding: 60px 0;
}

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

.page-slot-games__feature-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-slot-games__feature-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-slot-games__feature-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--gold, #F2C14E);
}

.page-slot-games__feature-description {
    font-size: 16px;
    color: var(--text-secondary, #A7D9B8);
    text-align: center;
}

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

.page-slot-games__game-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-slot-games__game-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gold, #F2C14E);
}

.page-slot-games__game-description {
    font-size: 15px;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

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

/* --- Why Choose Section --- */
.page-slot-games__why-choose-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-slot-games__why-choose-list .page-slot-games__list-item {
    background-color: var(--card-bg, #11271B);
    border: 1px solid var(--border, #2E7A4E);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__why-choose-list .page-slot-games__list-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold, #F2C14E);
    margin-bottom: 10px;
}

.page-slot-games__why-choose-list p {
    font-size: 16px;
    color: var(--text-secondary, #A7D9B8);
}

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

.page-slot-games__promotion-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-slot-games__promotion-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gold, #F2C14E);
}

.page-slot-games__promotion-description {
    font-size: 15px;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 20px;
    flex-grow: 1;
}

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

/* --- How To Play Section --- */
.page-slot-games__how-to-play-list {
    list-style: none;
    counter-reset: how-to-step;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.page-slot-games__how-to-play-list .page-slot-games__list-item {
    position: relative;
    background-color: var(--card-bg, #11271B);
    border: 1px solid var(--border, #2E7A4E);
    border-radius: 10px;
    padding: 25px 25px 25px 70px; /* Left padding for step number */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__how-to-play-list .page-slot-games__list-item::before {
    counter-increment: how-to-step;
    content: counter(how-to-step);
    position: absolute;
    left: 25px;
    top: 25px;
    font-size: 24px;
    font-weight: 800;
    color: var(--gold, #F2C14E);
    background-color: var(--deep-green, #0A4B2C);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--glow, #57E38D);
}

.page-slot-games__how-to-play-list .page-slot-games__list-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold, #F2C14E);
    margin-bottom: 10px;
}

.page-slot-games__how-to-play-list p {
    font-size: 16px;
    color: var(--text-secondary, #A7D9B8);
}

.page-slot-games__cta-play {
    text-align: center;
    margin-top: 50px;
}

/* --- FAQ Section --- */
.page-slot-games__faq-list {
    margin-top: 40px;
}

.page-slot-games__faq-item {
    background-color: var(--card-bg, #11271B);
    border: 1px solid var(--border, #2E7A4E);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-slot-games__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--gold, #F2C14E);
    background-color: var(--deep-green, #0A4B2C);
    border-bottom: 1px solid var(--border, #2E7A4E);
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-item summary:hover {
    background-color: var(--glow, #57E38D);
    color: var(--deep-green, #0A4B2C);
}

.page-slot-games__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-slot-games__faq-qtext {
    flex-grow: 1;
}

.page-slot-games__faq-toggle {
    font-size: 24px;
    font-weight: 700;
    margin-left: 15px;
    color: var(--gold, #F2C14E); /* Default color for toggle */
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
    color: var(--deep-green, #0A4B2C); /* Color when open */
}

.page-slot-games__faq-answer {
    padding: 20px 25px;
    font-size: 16px;
    color: var(--text-secondary, #A7D9B8);
    background-color: var(--card-bg, #11271B);
}

.page-slot-games__faq-answer p {
    margin-bottom: 10px;
}

.page-slot-games__faq-answer p:last-child {
    margin-bottom: 0;
}


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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-slot-games__hero-content {
        padding: 15px;
    }

    .page-slot-games__main-title {
        font-size: clamp(32px, 5vw, 56px);
    }

    .page-slot-games__hero-description {
        font-size: 18px;
    }

    .page-slot-games__section-title {
        font-size: clamp(26px, 3.5vw, 38px);
    }

    .page-slot-games__cta-buttons {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .page-slot-games__container {
        padding: 0 15px;
    }

    .page-slot-games__hero-section {
        min-height: 500px;
        padding-bottom: 40px;
    }

    .page-slot-games__main-title {
        font-size: clamp(28px, 8vw, 48px);
    }

    .page-slot-games__hero-description {
        font-size: 16px;
    }

    .page-slot-games__section-title {
        font-size: clamp(24px, 7vw, 36px);
        margin-bottom: 30px;
    }

    .page-slot-games__text-block {
        font-size: 15px;
    }

    .page-slot-games__cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__btn-tertiary {
        width: 100%;
        max-width: 300px !important; /* Specific max-width for smaller buttons */
        padding: 12px 25px;
        font-size: 16px;
    }

    .page-slot-games__features-grid,
    .page-slot-games__game-cards-grid,
    .page-slot-games__promotion-cards-grid,
    .page-slot-games__why-choose-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-slot-games__feature-title,
    .page-slot-games__game-title,
    .page-slot-games__promotion-title,
    .page-slot-games__why-choose-list .page-slot-games__list-title,
    .page-slot-games__how-to-play-list .page-slot-games__list-title {
        font-size: 20px;
    }

    .page-slot-games__feature-description,
    .page-slot-games__game-description,
    .page-slot-games__promotion-description,
    .page-slot-games__why-choose-list p,
    .page-slot-games__how-to-play-list p {
        font-size: 15px;
    }

    .page-slot-games__how-to-play-list .page-slot-games__list-item {
        padding: 20px 20px 20px 60px;
    }

    .page-slot-games__how-to-play-list .page-slot-games__list-item::before {
        left: 20px;
        top: 20px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .page-slot-games__faq-item summary {
        font-size: 16px;
        padding: 15px 20px;
    }

    .page-slot-games__faq-answer {
        padding: 15px 20px;
        font-size: 15px;
    }

    /* Mobile image/video/button responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__cta-buttons,
    .page-slot-games__view-all-games,
    .page-slot-games__cta-play {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Ensure no horizontal scroll */
    }
    
    .page-slot-games__hero-section {
        padding-left: 0;
        padding-right: 0;
    }

    .page-slot-games__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-slot-games__cta-buttons {
        flex-wrap: wrap !important;
        gap: 15px;
    }
}