:root {
    --kubet8-orange-main: #FF8C1A;
    --kubet8-orange-light: #FFA53A;
    --kubet8-card-bg: #17191F;
    --kubet8-bg-dark: #0D0E12;
    --kubet8-text-main: #FFF3E6;
    --kubet8-border: #A84F0C;
    --kubet8-glow: #FFB04D;
    --kubet8-deep-orange: #D96800;
}

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

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

.page-slot-games__dark-section {
    background-color: var(--kubet8-card-bg);
}

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

.page-slot-games__center-content {
    text-align: center;
}

.page-slot-games__section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--kubet8-orange-light);
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-slot-games__text-block {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--kubet8-text-main);
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, shared.css handles body padding */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--kubet8-bg-dark);
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-height: 675px;
    overflow: hidden;
    margin-bottom: 40px;
}

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

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

.page-slot-games__main-title {
    font-size: clamp(32px, 4.5vw, 56px); /* Responsive font size */
    font-weight: 900;
    color: var(--kubet8-glow);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(255,176,77,0.5);
}

.page-slot-games__hero-description {
    font-size: 18px;
    color: var(--kubet8-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-play,
.page-slot-games__btn-view-promo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
}

.page-slot-games__btn-primary {
    background: linear-gradient(180deg, var(--kubet8-orange-light) 0%, var(--kubet8-deep-orange) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 15px rgba(255,140,26,0.4);
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255,140,26,0.6);
    filter: brightness(1.1);
}

.page-slot-games__btn-secondary {
    background: transparent;
    color: var(--kubet8-orange-light);
    border: 2px solid var(--kubet8-orange-light);
}

.page-slot-games__btn-secondary:hover {
    background: var(--kubet8-orange-light);
    color: #ffffff;
    transform: translateY(-3px);
}

.page-slot-games__btn-play, .page-slot-games__btn-view-promo {
    padding: 10px 20px;
    font-size: 16px;
    background: linear-gradient(180deg, var(--kubet8-orange-light) 0%, var(--kubet8-deep-orange) 100%);
    color: #ffffff;
    border: none;
    border-radius: 5px;
}

.page-slot-games__btn-play:hover, .page-slot-games__btn-view-promo:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Features Grid */
.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 {
    background-color: var(--kubet8-bg-dark);
    border: 1px solid var(--kubet8-border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255,140,26,0.2);
}

.page-slot-games__feature-icon {
    width: 100%;
    height: auto;
    max-width: 150px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
}

.page-slot-games__feature-title {
    font-size: 24px;
    color: var(--kubet8-orange-light);
    margin-bottom: 15px;
}

.page-slot-games__feature-description {
    font-size: 16px;
    color: var(--kubet8-text-main);
}

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

.page-slot-games__game-card {
    background-color: var(--kubet8-card-bg);
    border: 1px solid var(--kubet8-border);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-slot-games__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255,140,26,0.2);
}

.page-slot-games__game-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--kubet8-border);
}

.page-slot-games__game-title {
    font-size: 22px;
    color: var(--kubet8-orange-light);
    margin: 20px 15px 10px;
}

.page-slot-games__game-description {
    font-size: 15px;
    color: var(--kubet8-text-main);
    padding: 0 15px 20px;
    flex-grow: 1;
}

.page-slot-games__btn-play {
    margin: 0 15px 20px;
    width: calc(100% - 30px);
}

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

.page-slot-games__promo-card {
    background-color: var(--kubet8-bg-dark);
    border: 1px solid var(--kubet8-border);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-slot-games__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255,140,26,0.2);
}

.page-slot-games__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--kubet8-border);
}

.page-slot-games__promo-title {
    font-size: 22px;
    color: var(--kubet8-orange-light);
    margin: 20px 15px 10px;
}

.page-slot-games__promo-description {
    font-size: 15px;
    color: var(--kubet8-text-main);
    padding: 0 15px 20px;
    flex-grow: 1;
}

.page-slot-games__btn-view-promo {
    margin: 0 15px 20px;
    width: calc(100% - 30px);
}

.page-slot-games__center-buttons {
    margin-top: 40px;
}

/* How To Play & Tips Sections */
.page-slot-games__steps-list,
.page-slot-games__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-slot-games__step-item,
.page-slot-games__tip-item {
    background-color: var(--kubet8-card-bg);
    border: 1px solid var(--kubet8-border);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
}

.page-slot-games__step-item:last-child,
.page-slot-games__tip-item:last-child {
    margin-bottom: 0;
}

.page-slot-games__step-title,
.page-slot-games__tip-title {
    font-size: 22px;
    color: var(--kubet8-orange-light);
    margin-top: 0;
    margin-bottom: 15px;
}

.page-slot-games__step-item p,
.page-slot-games__tip-item p {
    font-size: 16px;
    color: var(--kubet8-text-main);
    text-align: left;
}

/* FAQ Section */
details.page-slot-games__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--kubet8-border);
    overflow: hidden;
    background: var(--kubet8-card-bg);
    color: var(--kubet8-text-main);
}

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: rgba(255, 140, 26, 0.1);
}

.page-slot-games__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--kubet8-orange-light);
}

.page-slot-games__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--kubet8-glow);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}

details.page-slot-games__faq-item .page-slot-games__faq-answer {
    padding: 0 20px 20px;
    background: var(--kubet8-bg-dark);
    border-radius: 0 0 8px 8px;
}

details.page-slot-games__faq-item .page-slot-games__faq-answer p {
    color: var(--kubet8-text-main);
    font-size: 16px;
    text-align: left;
}

/* Bottom CTA Section */
.page-slot-games__cta-bottom-section {
    padding: 80px 0;
    background: linear-gradient(90deg, #0D0E12 0%, #17191F 50%, #0D0E12 100%);
    border-top: 2px solid var(--kubet8-deep-orange);
}

/* General Image styles */
.page-slot-games img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-slot-games__section,
.page-slot-games__card,
.page-slot-games__container {
    width: 100%;
    box-sizing: border-box;
}

/* Media Queries */
@media (max-width: 1024px) {
    .page-slot-games__section-title {
        font-size: 32px;
    }

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

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

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

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

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

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

    .page-slot-games__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-slot-games__text-block {
        font-size: 16px;
        text-align: left;
        max-width: 100%;
    }

    /* HERO 主图区域 */
    .page-slot-games__hero-section {
        padding-top: 10px; /* Small top padding */
        padding-bottom: 40px;
    }
    .page-slot-games__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 25px;
    }
    .page-slot-games__hero-image {
        object-fit: contain !important; /* 禁止 cover 裁切两侧 */
        aspect-ratio: unset !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-slot-games__main-title {
        font-size: clamp(26px, 7vw, 36px);
        margin-bottom: 15px;
    }
    .page-slot-games__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-slot-games__hero-cta-buttons {
        flex-direction: column;
        gap: 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__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__btn-play,
    .page-slot-games__btn-view-promo,
    .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__hero-cta-buttons,
    .page-slot-games__cta-buttons,
    .page-slot-games__button-group,
    .page-slot-games__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        flex-wrap: wrap !important;
        gap: 15px;
        flex-direction: column; /* Ensure vertical stacking for multiple buttons */
    }

    /* 产品展示图区域 & Features Grid */
    .page-slot-games__features-grid,
    .page-slot-games__game-cards-grid,
    .page-slot-games__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    .page-slot-games__feature-card,
    .page-slot-games__game-card,
    .page-slot-games__promo-card {
        padding: 20px;
    }

    .page-slot-games__feature-icon {
        max-width: 100px;
    }
    .page-slot-games__feature-title {
        font-size: 20px;
    }
    .page-slot-games__game-thumbnail,
    .page-slot-games__promo-image {
        height: 180px;
    }
    .page-slot-games__game-title,
    .page-slot-games__promo-title {
        font-size: 20px;
    }

    /* 装饰主标题 + 长文 SEO 区 */
    .page-slot-games__intro-section .page-slot-games__text-block,
    .page-slot-games__how-to-play-section .page-slot-games__text-block,
    .page-slot-games__tips-section .page-slot-games__text-block,
    .page-slot-games__cta-bottom-section .page-slot-games__text-block {
        text-align: left;
        max-width: 100%;
    }

    .page-slot-games__step-item,
    .page-slot-games__tip-item {
        padding: 20px;
    }
    .page-slot-games__step-title,
    .page-slot-games__tip-title {
        font-size: 20px;
    }

    /* FAQ */
    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;
    }
    details.page-slot-games__faq-item .page-slot-games__faq-answer p {
        font-size: 15px;
    }
}