/* style/slot-games.css */

/* Base styles for the page content */
.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background: var(--bg-color, #FFFFFF); /* Inherit from shared or default to white */
    padding-bottom: 40px;
}

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

.page-slot-games__section-title {
    font-size: 32px;
    font-weight: 700;
    color: #26A9E0; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.page-slot-games__main-title {
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF; /* White text for hero section */
    text-align: center;
    max-width: 900px;
    margin: 0 auto 20px;
    /* Using clamp for responsive font size, avoiding fixed large values */
    font-size: clamp(2.2rem, 5vw, 3.5rem); 
}

.page-slot-games__description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #f0f0f0; /* Slightly off-white for description */
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
    background: linear-gradient(to bottom, #26A9E0, #1a7eb3); /* Gradient for hero background */
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height of the image */
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin-bottom: 30px; /* Space between image and content */
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly dim the image for text contrast, not color change */
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    text-align: center;
    max-width: 90%;
    box-sizing: border-box;
}

/* CTA Buttons */
.page-slot-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    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 buttons don't overflow */
}

.page-slot-games__btn-primary {
    background: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-slot-games__btn-primary:hover {
    background: #1a7eb3;
    border-color: #1a7eb3;
    transform: translateY(-2px);
}

.page-slot-games__btn-secondary {
    background: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-slot-games__btn-secondary:hover {
    background: #f0f0f0;
    color: #1a7eb3;
    transform: translateY(-2px);
}

.page-slot-games__btn-play {
    background: #EA7C07; /* Login color for play button */
    color: #FFFFFF;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 5px;
}

.page-slot-games__btn-play:hover {
    background: #c26605;
}

/* Intro Section */
.page-slot-games__intro-section .page-slot-games__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-slot-games__intro-section .page-slot-games__text-block {
    flex: 1;
}

.page-slot-games__intro-section .page-slot-games__image-block {
    flex: 1;
    text-align: center;
}

.page-slot-games__intro-section .page-slot-games__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Features Section */
.page-slot-games__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-slot-games__feature-card {
    background: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.page-slot-games__feature-image {
    width: 100%;
    height: 200px; /* Fixed height for feature images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-slot-games__feature-title {
    font-size: 22px;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-slot-games__feature-description {
    font-size: 15px;
    color: #555555;
}

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

.page-slot-games__game-card {
    background: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

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

.page-slot-games__game-title {
    font-size: 20px;
    color: #333333;
    margin-bottom: 10px;
}

.page-slot-games__game-title a {
    text-decoration: none;
    color: #26A9E0;
    transition: color 0.3s ease;
}

.page-slot-games__game-title a:hover {
    color: #1a7eb3;
}

.page-slot-games__game-provider {
    font-size: 14px;
    color: #777777;
    margin-bottom: 15px;
}

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

/* How to Play Section */
.page-slot-games__steps-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    counter-reset: step-counter;
}

.page-slot-games__step-item {
    background: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    position: relative;
    padding-top: 60px; /* Space for step number */
}

.page-slot-games__step-item::before {
    counter-increment: step-counter;
    content: "0" counter(step-counter);
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 36px;
    font-weight: bold;
    color: #26A9E0;
    opacity: 0.2;
}

.page-slot-games__step-title {
    font-size: 22px;
    color: #26A9E0;
    margin-bottom: 10px;
}

/* Promotions Section */
.page-slot-games__promo-card {
    background: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    align-items: center;
}

.page-slot-games__promo-image {
    width: 50%;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-slot-games__promo-content {
    width: 50%;
    padding: 30px;
    box-sizing: border-box;
}

.page-slot-games__promo-title {
    font-size: 28px;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-slot-games__promo-description {
    font-size: 16px;
    color: #555555;
    margin-bottom: 25px;
}

/* FAQ Section */
details.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
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: #f5f5f5;
}
.page-slot-games__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-slot-games__faq-item .page-slot-games__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* Final CTA Section */
.page-slot-games__final-cta {
    background: linear-gradient(to right, #26A9E0, #1a7eb3);
    color: #FFFFFF;
    padding: 50px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

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

.page-slot-games__cta-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-slot-games__cta-description {
    font-size: 18px;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-slot-games__cta-image-wrapper {
    flex: 1;
    text-align: right;
}

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

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

    .page-slot-games__container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-slot-games__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        min-height: 400px;
    }

    .page-slot-games__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem); /* Adjust for smaller screens */
        margin-bottom: 15px;
    }

    .page-slot-games__description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-slot-games__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }

    .page-slot-games__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to container */
    }

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__btn-play {
        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;
    }

    /* Intro Section Mobile */
    .page-slot-games__intro-section .page-slot-games__content-wrapper {
        flex-direction: column; /* Stack text and image vertically */
        gap: 20px;
    }

    .page-slot-games__intro-section .page-slot-games__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Features Section Mobile */
    .page-slot-games__features-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }

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

    /* Games Showcase Mobile */
    .page-slot-games__game-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }

    .page-slot-games__game-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* How to Play Section Mobile */
    .page-slot-games__steps-list {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }

    /* Promotions Section Mobile */
    .page-slot-games__promo-card {
        flex-direction: column; /* Stack image and content vertically */
    }

    .page-slot-games__promo-image,
    .page-slot-games__promo-content {
        width: 100%;
        padding: 20px;
    }

    .page-slot-games__promo-title {
        font-size: 24px;
    }

    /* FAQ Section Mobile */
    details.page-slot-games__faq-item summary.page-slot-games__faq-question {
        padding: 15px;
    }
    .page-slot-games__faq-qtext {
        font-size: 15px;
    }
    details.page-slot-games__faq-item .page-slot-games__faq-answer {
        padding: 0 15px 15px;
    }

    /* Final CTA Section Mobile */
    .page-slot-games__final-cta {
        flex-direction: column; /* Stack content and image vertically */
        text-align: center;
        padding: 30px 15px;
        gap: 20px;
    }

    .page-slot-games__cta-image-wrapper {
        text-align: center;
    }

    .page-slot-games__cta-title {
        font-size: 28px;
    }

    .page-slot-games__cta-description {
        font-size: 16px;
    }

    /* General image and container responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__text-block,
    .page-slot-games__image-block,
    .page-slot-games__feature-card,
    .page-slot-games__game-card,
    .page-slot-games__step-item,
    .page-slot-games__promo-card,
    .page-slot-games__final-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}