/* style/slot-games.css */

/* Custom properties for colors */
:root {
    --fo88-primary-color: #11A84E;
    --fo88-secondary-color: #22C768;
    --fo88-button-gradient-start: #2AD16F;
    --fo88-button-gradient-end: #13994A;
    --fo88-card-bg: #11271B;
    --fo88-background: #08160F;
    --fo88-text-main: #F2FFF6;
    --fo88-text-secondary: #A7D9B8;
    --fo88-border: #2E7A4E;
    --fo88-glow: #57E38D;
    --fo88-gold: #F2C14E;
    --fo88-divider: #1E3A2A;
    --fo88-deep-green: #0A4B2C;
}

.page-slot-games {
    font-family: Arial, sans-serif;
    color: var(--fo88-text-main); /* Default text color for the page */
    background-color: var(--fo88-background); /* Page background from custom color */
}

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

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
}

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

.page-slot-games__hero-content {
    position: relative; /* Ensure content is above the background image in flow */
    z-index: 1;
    max-width: 900px;
    margin-top: -150px; /* Overlap slightly with image for visual integration */
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-slot-games__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    color: var(--fo88-gold);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-slot-games__description {
    font-size: 1.1em;
    color: var(--fo88-text-main);
    margin-bottom: 30px;
    line-height: 1.6;
}

.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 {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-slot-games__btn-primary {
    background: var(--fo88-button-gradient-start);
    background: linear-gradient(180deg, var(--fo88-button-gradient-start) 0%, var(--fo88-button-gradient-end) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

.page-slot-games__btn-secondary {
    background: none;
    color: var(--fo88-gold);
    border: 2px solid var(--fo88-gold);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

.page-slot-games__btn-secondary:hover {
    background: var(--fo88-gold);
    color: var(--fo88-background);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

.page-slot-games__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-slot-games__section {
    padding: 60px 20px;
    text-align: center;
}

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

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

.page-slot-games__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: var(--fo88-gold);
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-slot-games__text-block {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--fo88-text-secondary);
    text-align: left;
}

.page-slot-games__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-slot-games__image--center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.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(--fo88-card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--fo88-border);
    transition: transform 0.3s ease;
    color: var(--fo88-text-main);
}

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

.page-slot-games__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, object-fit will handle aspect ratio */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it behaves as a block element */
}

.page-slot-games__card-title {
    font-size: 1.4em;
    color: var(--fo88-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-slot-games__card-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--fo88-text-secondary);
    text-align: left;
}

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

.page-slot-games__step-item {
    background-color: var(--fo88-card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--fo88-border);
    color: var(--fo88-text-main);
}

.page-slot-games__step-number {
    font-size: 3em;
    font-weight: 700;
    color: var(--fo88-gold);
    margin-bottom: 15px;
    line-height: 1;
}

.page-slot-games__step-title {
    font-size: 1.5em;
    color: var(--fo88-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-slot-games__step-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--fo88-text-secondary);
    margin-bottom: 20px;
    text-align: left;
}

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

.page-slot-games__game-type-card {
    background-color: var(--fo88-card-bg);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--fo88-border);
    color: var(--fo88-text-main);
}

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

.page-slot-games__game-type-title {
    font-size: 1.3em;
    color: var(--fo88-gold);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-slot-games__game-type-text {
    font-size: 0.9em;
    line-height: 1.5;
    color: var(--fo88-text-secondary);
    text-align: left;
}

.page-slot-games__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

.page-slot-games__list-item {
    background-color: var(--fo88-card-bg);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--fo88-text-main);
    border-left: 5px solid var(--fo88-primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__list-item strong {
    color: var(--fo88-gold);
}

.page-slot-games__faq-list {
    margin-top: 40px;
    text-align: left;
}

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

.page-slot-games__faq-item summary {
    list-style: none; /* Hide default marker */
}

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

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--fo88-text-main);
    cursor: pointer;
    border-bottom: 1px solid var(--fo88-divider);
}

.page-slot-games__faq-question:hover {
    color: var(--fo88-gold);
}

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

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

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--fo88-gold);
    transition: transform 0.3s ease;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
    transform: rotate(45deg);
}

.page-slot-games__faq-answer {
    padding: 15px 20px 20px;
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--fo88-text-secondary);
}

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

.page-slot-games__cta-buttons--center {
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__hero-content {
        margin-top: -100px;
        padding: 25px;
    }
    .page-slot-games__main-title {
        font-size: clamp(1.8em, 3.5vw, 3em);
    }
    .page-slot-games__description {
        font-size: 1em;
    }
    .page-slot-games__section-title {
        font-size: clamp(1.6em, 2.5vw, 2.5em);
    }
    .page-slot-games__card-image, .page-slot-games__game-type-image {
        height: 150px;
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        padding-bottom: 40px;
    }
    .page-slot-games__hero-content {
        margin-top: -80px;
        padding: 20px;
    }
    .page-slot-games__main-title {
        font-size: 2em !important;
    }
    .page-slot-games__description {
        font-size: 0.95em;
    }
    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-slot-games__section {
        padding: 40px 15px;
    }
    .page-slot-games__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-slot-games__image,
    .page-slot-games__card-image,
    .page-slot-games__game-type-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-slot-games__card,
    .page-slot-games__step-item,
    .page-slot-games__game-type-card,
    .page-slot-games__list-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__text-block, .page-slot-games__card-text, .page-slot-games__step-text, .page-slot-games__game-type-text, .page-slot-games__list-item, .page-slot-games__faq-answer {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .page-slot-games__hero-content {
        margin-top: -60px;
        padding: 15px;
    }
    .page-slot-games__main-title {
        font-size: 1.8em !important;
    }
    .page-slot-games__section-title {
        font-size: 1.5em !important;
    }
    .page-slot-games__grid, .page-slot-games__steps-grid, .page-slot-games__game-type-grid {
        grid-template-columns: 1fr;
    }
    .page-slot-games__card-image, .page-slot-games__game-type-image {
        height: auto; /* Allow auto height on very small screens */
    }
}