/* General styles for the slot-games page */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #F3F8FF; /* Text Main - light color for dark background */
    background-color: var(--deep-navy); /* From shared.css, #08162B */
}

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

.page-slot-games__section-title {
    font-size: 3em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #F2C14E; /* Gold */
    line-height: 1.2;
}

.page-slot-games__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #AFC4E8; /* Text Secondary */
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    background-color: var(--deep-navy);
}

.page-slot-games__hero-content-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    width: 100%;
}

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

.page-slot-games__hero-text-overlay {
    position: relative; /* Changed from absolute to relative to be below image */
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(180deg, rgba(17, 59, 122, 0.8), rgba(8, 22, 43, 0.9)); /* Dark overlay for text readability */
    width: 100%;
    max-width: 900px;
    margin-top: -100px; /* Pull up to overlap image slightly for design, but text is below image in DOM */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1; /* Ensure text overlay is above background image */
}

.page-slot-games__hero-title {
    font-size: 3.5em;
    color: #F2C14E; /* Gold */
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 800;
}

.page-slot-games__hero-description {
    font-size: 1.3em;
    color: #AFC4E8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-slot-games__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Custom button color */
    color: #F3F8FF; /* Text Main */
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-slot-games__btn-primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-slot-games__btn-secondary {
    background: #10233F; /* Card BG */
    color: #AFC4E8; /* Text Secondary */
    border: 2px solid #244D84; /* Border color */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-slot-games__btn-secondary:hover {
    background: #1B3357; /* Divider */
    color: #F3F8FF; /* Text Main */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* General Sections */
.page-slot-games__intro-section,
.page-slot-games__game-types-section,
.page-slot-games__tips-section,
.page-slot-games__promotions-section,
.page-slot-games__cta-section {
    padding: 60px 20px;
    background-color: var(--deep-navy);
}

.page-slot-games__dark-section {
    background-color: #113B7A; /* Main color */
    padding: 60px 20px;
}

.page-slot-games__dark-bg {
    background-color: #10233F; /* Card BG */
    padding: 60px 20px;
}

.page-slot-games__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-slot-games__image-wrapper {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink */
}

.page-slot-games__content-image,
.page-slot-games__promo-image,
.page-slot-games__cta-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-slot-games__image-full-width {
    margin-top: 40px;
    text-align: center;
}

.page-slot-games__image-full-width .page-slot-games__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.page-slot-games__text-content {
    flex: 1;
}

.page-slot-games__text-content p {
    text-align: left;
    color: #AFC4E8;
}

.page-slot-games__text-content ol,
.page-slot-games__text-content ul {
    text-align: left;
    margin-top: 20px;
    padding-left: 25px;
    color: #AFC4E8;
}

.page-slot-games__text-content li {
    margin-bottom: 10px;
    font-size: 1.05em;
    color: #AFC4E8;
}

.page-slot-games__text-content strong {
    color: #F3F8FF;
}

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

.page-slot-games__card {
    background: #10233F; /* Card BG */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    border: 1px solid #244D84; /* Border color */
}

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

.page-slot-games__card-title {
    font-size: 1.8em;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    font-weight: 700;
}

.page-slot-games__card-description {
    font-size: 1em;
    color: #AFC4E8; /* Text Secondary */
}

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

.page-slot-games__game-card {
    background: #10233F; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    text-align: center;
    border: 1px solid #244D84;
}

.page-slot-games__game-iframe {
    width: 100%;
    height: 200px; /* Adjusted height for iframe, will be responsive */
    border: none;
    background-color: #000; /* Fallback for loading iframe */
}

.page-slot-games__game-title {
    font-size: 1.5em;
    color: #F3F8FF; /* Text Main */
    margin: 15px 10px 5px;
}

.page-slot-games__game-provider {
    font-size: 0.9em;
    color: #AFC4E8; /* Text Secondary */
    margin-bottom: 15px;
}

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

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

.page-slot-games__feature-item {
    background: rgba(17, 59, 122, 0.5); /* Semi-transparent main color */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #244D84;
}

.page-slot-games__feature-title {
    font-size: 1.6em;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    font-weight: 700;
}

.page-slot-games__feature-description {
    font-size: 1em;
    color: #AFC4E8; /* Text Secondary */
}

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

.page-slot-games__promo-card {
    padding: 0; /* Remove padding from card, image will fill */
    text-align: left;
    overflow: hidden;
}

.page-slot-games__promo-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px 10px 0 0;
    object-fit: cover;
    min-height: 200px; /* Ensure images are not too small */
}

.page-slot-games__promo-card .page-slot-games__promo-title {
    font-size: 1.6em;
    color: #F3F8FF; /* Text Main */
    margin: 20px 20px 10px;
}

.page-slot-games__promo-card .page-slot-games__promo-description {
    font-size: 1em;
    color: #AFC4E8; /* Text Secondary */
    margin: 0 20px 20px;
}

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

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

details.page-slot-games__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    background: #10233F; /* Card BG */
    border: 1px solid #244D84; /* Border color */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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: #F3F8FF; /* Text Main */
}

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: #1B3357; /* Divider */
}

.page-slot-games__faq-qtext {
    flex: 1;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #F2C14E; /* Gold */
}

.page-slot-games__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: #F2C14E; /* Gold */
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}

details.page-slot-games__faq-item .page-slot-games__faq-answer {
    padding: 0 25px 25px;
    background: #08162B; /* Deep Navy */
    border-radius: 0 0 10px 10px;
    color: #AFC4E8; /* Text Secondary */
}

.page-slot-games__faq-answer p {
    text-align: left;
    color: #AFC4E8;
}

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

.page-slot-games__cta-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

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

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

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

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

    .page-slot-games__hero-title {
        font-size: 3em;
    }

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

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-slot-games__hero-text-overlay {
        margin-top: -80px;
        padding: 30px 15px;
    }

    .page-slot-games__content-grid {
        flex-direction: column;
    }

    .page-slot-games__game-iframe {
        height: 180px;
    }

    .page-slot-games__faq-qtext {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-slot-games {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-slot-games__container,
    .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__section-title {
        font-size: 2em;
        margin-bottom: 25px;
    }

    .page-slot-games__hero-section {
        padding-top: 10px; /* Small top padding for mobile */
        padding-bottom: 20px;
    }

    .page-slot-games__hero-image {
        max-height: 400px;
        object-fit: contain; /* Banner 849px object-fit:contain */
    }

    .page-slot-games__hero-text-overlay {
        margin-top: -50px;
        padding: 25px 15px;
        border-radius: 5px;
    }

    .page-slot-games__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

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

    .page-slot-games__hero-buttons,
    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%; /* Button container full width */
        max-width: 100%; /* Button container max width */
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to button container */
    }

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .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: 12px 15px; /* Adjust padding for mobile buttons */
        font-size: 1em;
    }

    .page-slot-games__intro-section,
    .page-slot-games__dark-section,
    .page-slot-games__dark-bg,
    .page-slot-games__game-types-section,
    .page-slot-games__tips-section,
    .page-slot-games__promotions-section,
    .page-slot-games__cta-section {
        padding: 40px 15px;
    }

    .page-slot-games__content-grid {
        gap: 20px;
    }

    .page-slot-games__card-grid,
    .page-slot-games__game-showcase-grid,
    .page-slot-games__features-grid,
    .page-slot-games__promo-card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-slot-games__card,
    .page-slot-games__game-card,
    .page-slot-games__feature-item,
    .page-slot-games__promo-card {
        padding: 20px;
    }
    
    .page-slot-games__promo-card {
        padding: 0; /* Override padding for promo card to allow image to fill */
    }

    .page-slot-games__promo-image {
        border-radius: 5px 5px 0 0;
        min-height: 180px;
    }

    .page-slot-games__promo-card .page-slot-games__promo-title {
        font-size: 1.4em;
        margin: 15px 15px 8px;
    }

    .page-slot-games__promo-card .page-slot-games__promo-description {
        margin: 0 15px 15px;
    }
    
    .page-slot-games__promo-card .page-slot-games__btn-secondary {
        margin: 0 15px 15px;
        width: calc(100% - 30px);
    }

    .page-slot-games__game-iframe {
        height: 160px;
    }

    details.page-slot-games__faq-item {
        border-radius: 5px;
    }

    details.page-slot-games__faq-item summary.page-slot-games__faq-question {
        padding: 15px;
    }

    .page-slot-games__faq-qtext {
        font-size: 1em;
    }

    .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;
    }
    
    /* Ensure all images are responsive on mobile */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}