/* style/slot-games.css */
:root {
    --hp88-green-main: #11A84E;
    --hp88-green-secondary: #22C768;
    --hp88-bg-primary: #08160F;
    --hp88-bg-card: #11271B;
    --hp88-text-main: #F2FFF6;
    --hp88-text-secondary: #A7D9B8;
    --hp88-border-color: #2E7A4E;
    --hp88-glow: #57E38D;
    --hp88-gold: #F2C14E;
    --hp88-divider: #1E3A2A;
    --hp88-deep-green: #0A4B2C;
    --hp88-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-slot-games {
    background-color: var(--hp88-bg-primary);
    color: var(--hp88-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-slot-games__section {
    padding: 60px 0;
}

.page-slot-games__section-title {
    font-size: clamp(2em, 3.5vw, 2.8em);
    font-weight: 700;
    color: var(--hp88-gold);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-slot-games__text-block {
    font-size: 1.1em;
    color: var(--hp88-text-secondary);
    text-align: center;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-slot-games__dark-section {
    background-color: var(--hp88-deep-green);
    color: var(--hp88-text-main);
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom */
    overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-height: 700px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

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

.page-slot-games__hero-description {
    font-size: 1.2em;
    color: var(--hp88-text-main);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-tertiary,
.page-slot-games__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box;
    text-align: center;
}

.page-slot-games__btn-primary {
    background: var(--hp88-btn-gradient);
    color: var(--hp88-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-slot-games__btn-secondary {
    background: var(--hp88-bg-primary);
    color: var(--hp88-green-secondary);
    border: 2px solid var(--hp88-green-secondary);
}

.page-slot-games__btn-secondary:hover {
    background: var(--hp88-green-secondary);
    color: var(--hp88-bg-primary);
    transform: translateY(-3px);
}

.page-slot-games__btn-tertiary {
    background: var(--hp88-bg-card);
    color: var(--hp88-text-main);
    border: 1px solid var(--hp88-border-color);
    padding: 10px 20px;
    font-size: 1em;
}

.page-slot-games__btn-tertiary:hover {
    background: var(--hp88-border-color);
    transform: translateY(-2px);
}

.page-slot-games__btn-link {
    color: var(--hp88-gold);
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    font-size: 1em;
}

.page-slot-games__btn-link:hover {
    color: var(--hp88-green-secondary);
}

/* Introduction Section */
.page-slot-games__introduction .page-slot-games__text-block {
    text-align: left;
    max-width: 100%;
}

.page-slot-games__image-content {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Why Choose Section */
.page-slot-games__why-choose .page-slot-games__section-title {
    color: var(--hp88-gold);
}

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

.page-slot-games__card {
    background-color: var(--hp88-bg-card);
    border: 1px solid var(--hp88-border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-slot-games__card-title {
    font-size: 1.5em;
    color: var(--hp88-gold);
    margin-bottom: 15px;
}

.page-slot-games__card-text {
    font-size: 1em;
    color: var(--hp88-text-secondary);
}

.page-slot-games__view-all-promotions {
    margin-top: 50px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

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

.page-slot-games__game-card {
    background-color: var(--hp88-bg-card);
    border: 1px solid var(--hp88-border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
}

.page-slot-games__game-card:hover {
    transform: translateY(-5px);
}

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

.page-slot-games__game-title {
    font-size: 1.4em;
    color: var(--hp88-gold);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-slot-games__game-description {
    font-size: 0.95em;
    color: var(--hp88-text-secondary);
    margin-bottom: 20px;
    padding: 0 15px;
}

/* How To Play Section */
.page-slot-games__steps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__step-item {
    background-color: var(--hp88-bg-card);
    border: 1px solid var(--hp88-border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--hp88-btn-gradient);
    color: var(--hp88-text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: 700;
    border: 3px solid var(--hp88-deep-green);
}

.page-slot-games__step-title {
    font-size: 1.3em;
    color: var(--hp88-gold);
    margin-top: 20px;
    margin-bottom: 15px;
}

.page-slot-games__step-description {
    font-size: 0.95em;
    color: var(--hp88-text-secondary);
    margin-bottom: 20px;
}

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

.page-slot-games__promo-card {
    background-color: var(--hp88-bg-card);
    border: 1px solid var(--hp88-border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
}

.page-slot-games__promo-card:hover {
    transform: translateY(-5px);
}

.page-slot-games__promo-image {
    width: 100%;
    height: 250px; /* Consistent image height */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-slot-games__promo-title {
    font-size: 1.4em;
    color: var(--hp88-gold);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-slot-games__promo-description {
    font-size: 0.95em;
    color: var(--hp88-text-secondary);
    margin-bottom: 20px;
    padding: 0 15px;
}

/* Tips Section */
.page-slot-games__tips .page-slot-games__section-title {
    color: var(--hp88-gold);
}

.page-slot-games__list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__list-item {
    background-color: var(--hp88-bg-card);
    border: 1px solid var(--hp88-border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    color: var(--hp88-text-secondary);
    font-size: 1.05em;
    line-height: 1.5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__list-item strong {
    color: var(--hp88-text-main);
}

/* Safety Section */
.page-slot-games__safety .page-slot-games__list-item strong {
    color: var(--hp88-gold);
}

/* FAQ Section */
.page-slot-games__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 700;
    color: var(--hp88-text-main);
    cursor: pointer;
    background-color: var(--hp88-deep-green);
    border-bottom: 1px solid var(--hp88-border-color);
    list-style: none; /* For details tag */
}

.page-slot-games__faq-question::-webkit-details-marker {
    display: none;
}

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

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--hp88-gold);
}

.page-slot-games__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: var(--hp88-text-secondary);
    line-height: 1.5;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
    border-bottom: 1px solid var(--hp88-border-color);
}

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

.page-slot-games__cta-final .page-slot-games__section-title {
    color: var(--hp88-gold);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__hero-image {
        height: 500px;
    }
}

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

    .page-slot-games__container {
        padding: 0 15px;
    }

    .page-slot-games__hero-section {
        padding: 10px 0 40px 0;
    }

    .page-slot-games__main-title {
        font-size: 2.2em;
    }

    .page-slot-games__hero-description {
        font-size: 1em;
    }

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

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__btn-tertiary,
    .page-slot-games__btn-link {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

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

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

    .page-slot-games__image-content,
    .page-slot-games__game-image,
    .page-slot-games__promo-image {
        height: auto !important;
        min-height: 200px; /* Ensure minimum size */
    }

    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__game-card,
    .page-slot-games__promo-card,
    .page-slot-games__step-item,
    .page-slot-games__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-slot-games__section-title {
        font-size: 1.8em;
    }

    .page-slot-games__text-block {
        font-size: 0.95em;
    }

    .page-slot-games__faq-question {
        font-size: 1em;
        padding: 15px;
    }

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

    .page-slot-games__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-slot-games__video-container,
    .page-slot-games__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-slot-games video,
    .page-slot-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}

@media (max-width: 480px) {
    .page-slot-games__main-title {
        font-size: 1.8em;
    }

    .page-slot-games__section-title {
        font-size: 1.5em;
    }
}