/* style/slot-games.css */

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

/* Base styles for the page content */
.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Light text for dark background */
    background-color: var(--bg); /* Ensure main content background matches */
}

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

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

.page-slot-games__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: 20px; /* Space between image and content */
    z-index: 2; /* Ensure text is above any potential background elements */
}

.page-slot-games__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: var(--gold-color); /* Gold for main title */
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-slot-games__description {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.page-slot-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-small,
.page-slot-games__btn-readmore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-slot-games__btn-primary {
    background: var(--btn-gradient);
    color: #ffffff; /* White text for gradient button */
    border: none;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
    opacity: 0.9;
}

.page-slot-games__btn-secondary {
    background: transparent;
    color: var(--gold-color); /* Gold text for secondary button */
    border: 2px solid var(--gold-color);
    box-shadow: 0 2px 10px rgba(242, 193, 78, 0.3);
}

.page-slot-games__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.5);
}

.page-slot-games__btn-small {
    background: var(--btn-gradient);
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    font-size: 0.9em;
    border-radius: 6px;
}

.page-slot-games__btn-small:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.page-slot-games__btn-readmore {
    background: transparent;
    color: var(--glow-color);
    border: 1px solid var(--glow-color);
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 6px;
}

.page-slot-games__btn-readmore:hover {
    background: rgba(87, 227, 141, 0.1);
    transform: translateY(-1px);
}

/* General Section Styling */
.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(1.8em, 3vw, 2.8em);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
    position: relative;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-slot-games__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--glow-color);
    border-radius: 2px;
}

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

.page-slot-games__text-block a {
    color: var(--glow-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-slot-games__text-block a:hover {
    text-decoration: underline;
    color: var(--color-primary);
}

/* Game Showcase */
.page-slot-games__games-showcase {
    background-color: var(--deep-green);
    padding-bottom: 80px;
}

.page-slot-games__game-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(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}

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

.page-slot-games__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, will be responsive */
    object-fit: cover;
    display: block;
    border-bottom: 2px solid var(--border-color);
}

.page-slot-games__game-title {
    font-size: 1.4em;
    color: var(--text-main);
    margin: 20px 20px 10px 20px;
    text-align: center;
}

.page-slot-games__game-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-slot-games__game-title a:hover {
    color: var(--glow-color);
}

.page-slot-games__game-description {
    font-size: 0.95em;
    color: var(--text-secondary);
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: center;
}

.page-slot-games__game-card .page-slot-games__btn-small {
    align-self: center;
}

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

/* Features Section */
.page-slot-games__features-section {
    padding-bottom: 80px;
    background-color: var(--bg);
}

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

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

.page-slot-games__feature-icon {
    width: 100%;
    max-width: 120px; /* Constrain icon size */
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 8px rgba(87, 227, 141, 0.4)); /* Subtle glow */
    display: block; /* Ensure it respects max-width */
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__feature-title {
    font-size: 1.3em;
    color: var(--text-main);
    margin-bottom: 15px;
}

.page-slot-games__feature-description {
    font-size: 0.95em;
    color: var(--text-secondary);
}

.page-slot-games__feature-description a {
    color: var(--glow-color);
    text-decoration: none;
}

.page-slot-games__feature-description a:hover {
    text-decoration: underline;
}

/* How to Play Section */
.page-slot-games__how-to-play {
    padding-bottom: 80px;
    background-color: var(--deep-green);
}

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

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

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

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

.page-slot-games__step-description a {
    color: var(--glow-color);
    text-decoration: none;
}

.page-slot-games__step-description a:hover {
    text-decoration: underline;
}

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

/* FAQ Section */
.page-slot-games__faq-section {
    padding-bottom: 80px;
    background-color: var(--bg);
}

.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(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--border-color);
    user-select: none;
}

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

.page-slot-games__faq-item[open] > summary .page-slot-games__faq-toggle {
    content: '−'; /* Change to minus when open */
}

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

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

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

.page-slot-games__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 1em;
    color: var(--text-secondary);
    background-color: var(--card-bg);
}

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

/* Latest News Section */
.page-slot-games__latest-news {
    padding-bottom: 80px;
    background-color: var(--deep-green);
}

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

.page-slot-games__news-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-slot-games__news-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 2px solid var(--border-color);
}

.page-slot-games__news-title {
    font-size: 1.3em;
    color: var(--text-main);
    margin: 20px 20px 10px 20px;
    flex-grow: 1;
}

.page-slot-games__news-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-slot-games__news-title a:hover {
    color: var(--glow-color);
}

.page-slot-games__news-date {
    font-size: 0.85em;
    color: var(--text-secondary);
    margin: 0 20px 10px 20px;
}

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

.page-slot-games__news-card .page-slot-games__btn-readmore {
    align-self: flex-start;
    margin: 0 20px 20px 20px;
}

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

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

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles header offset */
    }

    .page-slot-games__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }

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

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

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__btn-small,
    .page-slot-games__btn-readmore {
        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__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: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }

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

    .page-slot-games__section-title {
        font-size: clamp(1.5em, 7vw, 2.2em);
        margin-bottom: 30px;
        padding-top: 40px;
    }

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

    .page-slot-games__game-grid,
    .page-slot-games__features-grid,
    .page-slot-games__steps-list,
    .page-slot-games__news-grid {
        gap: 20px;
        grid-template-columns: 1fr; /* Single column layout */
    }

    .page-slot-games__game-image,
    .page-slot-games__news-image {
        height: 180px; /* Adjust height for mobile */
    }

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

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

    /* All images must be responsive */
    .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__game-card,
    .page-slot-games__feature-item,
    .page-slot-games__step-item,
    .page-slot-games__news-card,
    .page-slot-games__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to prevent content touching edges */
        padding-right: 15px;
    }
    /* Remove specific padding for elements that already have it or shouldn't have it */
    .page-slot-games__hero-content,
    .page-slot-games__cta-buttons {
        padding-left: 0;
        padding-right: 0;
    }
    .page-slot-games__game-card, .page-slot-games__feature-item, .page-slot-games__step-item, .page-slot-games__news-card, .page-slot-games__faq-item {
        padding-left: 0;
        padding-right: 0;
    }
    .page-slot-games__game-image, .page-slot-games__news-image {
        margin-left: -15px; /* Compensate for parent padding */
        margin-right: -15px;
        width: calc(100% + 30px) !important;
    }
    .page-slot-games__game-description, .page-slot-games__news-excerpt {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-slot-games__news-card .page-slot-games__btn-readmore {
        margin-left: 15px;
        margin-right: 15px;
    }
    .page-slot-games__game-card .page-slot-games__btn-small {
        margin-left: 15px;
        margin-right: 15px;
        width: calc(100% - 30px) !important;
    }
    .page-slot-games__faq-question, .page-slot-games__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}