/* style/slot-games.css */

/* Base styles and variables */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-color: #C30808;
    --login-button-color: #C30808;
    --background-color: #FFFFFF;
    --register-login-font-color: #FFFF00;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
}

.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Default text color for light background */
    background-color: var(--background-color); /* Explicitly set page background */
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background-color: var(--primary-color); /* Dark background for hero */
    color: var(--text-color-light);
    min-height: 500px;
}

.page-slot-games__hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.page-slot-games__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-color-light);
    font-weight: bold;
}

.page-slot-games__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-color-light);
}

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

.page-slot-games__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    z-index: 1;
    min-width: 200px; /* Enforce minimum width */
    min-height: 200px; /* Enforce minimum height */
}

/* General Container */
.page-slot-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Section Titles and Descriptions */
.page-slot-games__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: bold;
}

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

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    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;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box;
    min-width: 150px; /* Ensure buttons are not too small */
}

.page-slot-games__btn-primary {
    background-color: var(--register-button-color); /* #C30808 */
    color: var(--register-login-font-color); /* #FFFF00 */
    border: 2px solid var(--register-button-color);
}

.page-slot-games__btn-primary:hover {
    background-color: #a30707; /* Darker red */
    border-color: #a30707;
}

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: var(--text-color-light); /* #FFFFFF */
    border: 2px solid var(--text-color-light);
}

.page-slot-games__btn-secondary:hover {
    background-color: var(--text-color-light);
    color: var(--primary-color);
}

.page-slot-games__btn-tertiary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: 2px solid var(--primary-color);
}

.page-slot-games__btn-tertiary:hover {
    background-color: #005a2e; /* Darker green */
    border-color: #005a2e;
}

/* Sections */
.page-slot-games__about-section,
.page-slot-games__guide-section,
.page-slot-games__video-section,
.page-slot-games__faq-section {
    padding: 60px 0;
    background-color: var(--background-color);
    color: var(--text-color-dark);
}

.page-slot-games__features-section,
.page-slot-games__promotions-section,
.page-slot-games__cta-section {
    padding: 60px 0;
    background-color: var(--primary-color); /* Dark section */
    color: var(--text-color-light);
}

.page-slot-games__features-section .page-slot-games__section-title,
.page-slot-games__promotions-section .page-slot-games__section-title,
.page-slot-games__cta-section .page-slot-games__section-title {
    color: var(--text-color-light);
}

.page-slot-games__features-section .page-slot-games__section-description,
.page-slot-games__promotions-section .page-slot-games__section-description,
.page-slot-games__cta-section .page-slot-games__section-description {
    color: var(--text-color-light);
}

/* Image Text Grid */
.page-slot-games__image-text-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-slot-games__image-grid-item {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-slot-games__image-grid-item img {
    width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Enforce minimum width */
    min-height: 200px; /* Enforce minimum height */
    object-fit: cover; /* Prevent aspect ratio distortion if original image is smaller */
}

.page-slot-games__text-grid-item {
    flex: 1;
    min-width: 300px;
}

.page-slot-games__text-grid-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: left; /* Override center alignment */
}

.page-slot-games__text-grid-item p {
    text-align: left; /* Override center alignment */
    margin-bottom: 15px;
}

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

.page-slot-games__feature-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: var(--text-color-light);
}

.page-slot-games__feature-card .page-slot-games__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-color-light);
}

.page-slot-games__feature-card p {
    font-size: 1em;
    color: var(--text-color-light);
}

/* Guide List */
.page-slot-games__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-slot-games__guide-list li {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.page-slot-games__guide-list-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-slot-games__guide-list p {
    font-size: 1em;
    color: var(--text-color-dark);
}

.page-slot-games__guide-list a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-slot-games__guide-list a:hover {
    color: #005a2e; /* Darker green */
}

/* Promotion Grid */
.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: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: var(--text-color-light);
    display: flex;
    flex-direction: column;
}

.page-slot-games__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum width */
    min-height: 200px; /* Enforce minimum height */
}

.page-slot-games__promo-card .page-slot-games__card-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    padding: 0 20px;
    color: var(--text-color-light);
}

.page-slot-games__promo-card p {
    font-size: 1em;
    margin-bottom: 20px;
    padding: 0 20px;
    flex-grow: 1; /* Make sure paragraphs take available space */
}

.page-slot-games__promo-card .page-slot-games__btn-tertiary {
    margin: 0 20px 20px 20px;
}

/* Video Section */
.page-slot-games__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.page-slot-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    cursor: pointer;
    max-width: 100%; /* Ensure video does not overflow */
}

.page-slot-games__video-cta {
    text-align: center;
    margin-top: 30px;
}

/* 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: var(--secondary-color);
    border: 1px solid #e0e0e0;
    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: #f9f9f9;
    color: var(--primary-color);
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-slot-games__faq-title {
    font-size: 1.3em;
    margin: 0;
    color: var(--primary-color);
}

.page-slot-games__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

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

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
}

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

.page-slot-games__faq-answer p {
    margin: 0;
    padding: 0;
    text-align: left;
}

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

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

/* Dark/Light Background helpers for contrast */
.page-slot-games__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}
.page-slot-games__dark-bg .page-slot-games__section-title {
    color: var(--text-color-light);
}
.page-slot-games__dark-bg .page-slot-games__section-description {
    color: var(--text-color-light);
}

.page-slot-games__light-bg {
    background-color: var(--background-color);
    color: var(--text-color-dark);
}
.page-slot-games__light-bg .page-slot-games__section-title {
    color: var(--primary-color);
}
.page-slot-games__light-bg .page-slot-games__section-description {
    color: var(--text-color-dark);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 2.8em;
    }
    .page-slot-games__section-title {
        font-size: 2em;
    }
    .page-slot-games__text-grid-title {
        font-size: 1.6em;
    }
}

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

    .page-slot-games__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

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

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

    .page-slot-games__hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Constrain button group width */
        margin: 0 auto;
    }

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__btn-tertiary,
    .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;
    }
    .page-slot-games__cta-buttons {
      flex-direction: column; /* Stack buttons vertically on mobile */
    }

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

    .page-slot-games__section-description {
        font-size: 0.95em;
    }

    .page-slot-games__image-text-grid {
        flex-direction: column;
        gap: 20px;
    }

    .page-slot-games__image-grid-item,
    .page-slot-games__text-grid-item {
        min-width: unset;
        width: 100%;
    }

    .page-slot-games__text-grid-title {
        font-size: 1.4em;
        text-align: center;
    }
    .page-slot-games__text-grid-item p {
      text-align: center;
    }

    .page-slot-games__feature-grid,
    .page-slot-games__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-slot-games__promo-image {
        height: 180px;
    }

    /* Images within content area */
    .page-slot-games img {
        max-width: 100% !important;
        height: auto !important;
        display: block !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;
    }

    /* Video responsive styles */
    .page-slot-games video,
    .page-slot-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-slot-games__video-section,
    .page-slot-games__video-container,
    .page-slot-games__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-slot-games__video-wrapper {
      padding-bottom: 56.25% !important; /* Maintain aspect ratio */
      margin-left: 0 !important;
      margin-right: 0 !important;
    }


    .page-slot-games__faq-question {
        padding: 15px 20px;
    }
    .page-slot-games__faq-title {
        font-size: 1.1em;
    }
    .page-slot-games__faq-answer {
        padding: 0 20px;
    }
    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 10px 20px 20px 20px;
    }
}

/* Enforce minimum image sizes in content areas */
.page-slot-games img {
  min-width: 200px; /* Enforce minimum width */
  min-height: 200px; /* Enforce minimum height */
  object-fit: cover; /* Prevent aspect ratio distortion if original image is smaller */
}

/* Hero image can be more flexible as it's a background element */
.page-slot-games__hero-image {
  min-width: unset;
  min-height: unset;
}

/* Contrast fix if needed (though the current color scheme should be fine) */
.page-slot-games__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-slot-games__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}