/* style/slot-games.css */

/* --- Base Styles --- */
.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Assuming body background is light for content sections */
}

/* --- Section Styling --- */
.page-slot-games__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-slot-games__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

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

/* Dark background sections */
.page-slot-games__dark-bg {
    background-color: #017439; /* Main brand color */
    color: #ffffff; /* White text for contrast */
    padding: 80px 0;
}

.page-slot-games__dark-bg .page-slot-games__section-title,
.page-slot-games__dark-bg .page-slot-games__section-description {
    color: #ffffff;
}

/* Light background sections */
.page-slot-games__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 80px 0;
}

/* --- Hero Section --- */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    overflow: hidden;
    text-align: center;
    background-color: #017439; /* Ensure dark background for hero */
    color: #ffffff;
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    box-sizing: border-box;
}

.page-slot-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

.page-slot-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-slot-games__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-slot-games__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-slot-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Overlay effect */
}

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

.page-slot-games__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 2px solid #C30808;
}

.page-slot-games__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
}

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-slot-games__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

/* For buttons in light sections */
.page-slot-games__light-bg .page-slot-games__btn-secondary {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

.page-slot-games__light-bg .page-slot-games__btn-secondary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}


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

.page-slot-games__about-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-slot-games__about-item-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-slot-games__about-item-text {
    font-size: 1em;
    color: #555555;
}

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

.page-slot-games__game-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-slot-games__game-card-title {
    font-size: 1.5em;
    color: #017439;
    margin: 20px 15px 10px 15px;
    font-weight: bold;
}

.page-slot-games__game-card-text {
    font-size: 0.95em;
    color: #555555;
    padding: 0 15px 20px 15px;
    flex-grow: 1;
}

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

/* --- How To Play Section --- */
.page-slot-games__how-to-play-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-slot-games__how-to-play-item {
    background-color: #f9f9f9;
    padding: 25px 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-slot-games__how-to-play-item-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__how-to-play-item-text {
    font-size: 1em;
    color: #555555;
}

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

/* --- 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: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-slot-games__promo-card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-slot-games__promo-card-title {
    font-size: 1.5em;
    color: #017439;
    margin: 20px 15px 10px 15px;
    font-weight: bold;
}

.page-slot-games__promo-card-text {
    font-size: 0.95em;
    color: #555555;
    padding: 0 15px 20px 15px;
    flex-grow: 1;
}

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

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

.page-slot-games__security-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-slot-games__security-item-image {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: contain; /* Use contain for icon-like images */
    margin-bottom: 20px;
    display: block;
}

.page-slot-games__security-item-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-slot-games__security-item-text {
    font-size: 1em;
    color: #555555;
}

/* --- Mobile Section --- */
.page-slot-games__mobile-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on mobile */
    justify-content: center;
}

.page-slot-games__mobile-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-slot-games__mobile-subtitle {
    font-size: 2em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-slot-games__mobile-paragraph {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-slot-games__mobile-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
}

.page-slot-games__mobile-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* --- 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: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #e8f5e9; /* Lighter green for question background */
    color: #017439;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
    background-color: #d4edda;
}

.page-slot-games__faq-question-text {
    margin: 0;
    font-size: 1.1em;
    color: #017439;
}

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

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #555555;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 25px;
}

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

/* --- Call To Action Section --- */
.page-slot-games__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #017439;
    color: #ffffff;
}

.page-slot-games__cta-content {
    max-width: 900px;
}

.page-slot-games__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-slot-games__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

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

/* --- Image specific styles (min size enforcement) --- */
.page-slot-games img {
  min-width: 200px;
  min-height: 200px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 3em;
    }
    .page-slot-games__section-title {
        font-size: 2em;
    }
    .page-slot-games__hero-description {
        font-size: 1.1em;
    }
    .page-slot-games__cta-title {
        font-size: 2.2em;
    }
}

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

    /* Padding for mobile containers */
    .page-slot-games__container,
    .page-slot-games__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-slot-games__hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: var(--header-offset, 120px) !important; /* Ensure fixed header offset on mobile */
        min-height: 500px;
    }

    .page-slot-games__hero-image-wrapper {
        position: static; /* Remove absolute positioning on mobile */
        height: 250px; /* Adjust height */
    }

    .page-slot-games__hero-image {
        opacity: 0.2; /* Lighter overlay on smaller screens */
    }

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

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

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

    .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-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;
        flex-direction: column; /* Stack buttons vertically */
    }

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

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

    .page-slot-games__about-grid,
    .page-slot-games__games-grid,
    .page-slot-games__promo-grid,
    .page-slot-games__security-grid {
        grid-template-columns: 1fr;
    }

    .page-slot-games__about-item-title,
    .page-slot-games__game-card-title,
    .page-slot-games__promo-card-title,
    .page-slot-games__security-item-title {
        font-size: 1.5em;
    }

    .page-slot-games__how-to-play-item-title {
        font-size: 1.3em;
    }

    .page-slot-games__mobile-content {
        flex-direction: column;
        text-align: center;
    }

    .page-slot-games__mobile-text {
        text-align: center;
    }

    .page-slot-games__mobile-subtitle {
        font-size: 1.8em;
    }

    .page-slot-games__cta-title {
        font-size: 2em;
    }

    /* Image responsive enforcement */
    .page-slot-games img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: unset;
        min-height: unset;
    }
}