/* style/slot-games.css */

/* Base styles for the page content */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color, #08160F); /* Fallback to custom deep green if var not set */
    color: var(--text-main, #F2FFF6); /* Main text color on dark background */
    line-height: 1.6;
}

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

/* 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-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    box-sizing: border-box;
    overflow: hidden; /* Ensure no overflow */
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for aesthetic */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-slot-games__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    z-index: 1; /* Ensure content is above any potential background effects */
}

.page-slot-games__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    color: var(--gold, #F2C14E);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-slot-games__hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__hero-cta {
    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-card,
.page-slot-games__btn-text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
}

.page-slot-games__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-slot-games__btn-secondary {
    background: transparent;
    color: var(--gold, #F2C14E);
    border: 2px solid var(--gold, #F2C14E);
}

.page-slot-games__btn-secondary:hover {
    background: var(--gold, #F2C14E);
    color: #11271B; /* Dark text on gold hover */
    transform: translateY(-2px);
}

.page-slot-games__btn-card {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.95rem;
    margin-top: auto; /* Push button to bottom of card */
}

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

.page-slot-games__btn-text-link {
    background: none;
    color: var(--gold, #F2C14E);
    border: none;
    padding: 5px 10px;
    font-weight: 600;
    text-decoration: underline;
}

.page-slot-games__btn-text-link:hover {
    color: #ffffff;
}

/* Section common styles */
.page-slot-games__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--gold, #F2C14E);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
}

.page-slot-games__sub-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-main, #F2FFF6);
    margin-bottom: 20px;
    font-weight: 600;
}

.page-slot-games__text-block {
    font-size: 1rem;
    color: var(--text-secondary, #A7D9B8);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

/* Introduction Section */
.page-slot-games__introduction-section {
    padding: 80px 0;
    background-color: var(--deep-green, #0A4B2C);
}

.page-slot-games__image-text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}

.page-slot-games__content-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games__text-content {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.page-slot-games__list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-slot-games__list li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23F2C14E"><path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/></svg>') no-repeat left 8px;
    background-size: 18px 18px;
    padding-left: 30px;
    margin-bottom: 15px;
    color: var(--text-secondary, #A7D9B8);
}

.page-slot-games__list li strong {
    color: var(--text-main, #F2FFF6);
}

/* Games Showcase Section */
.page-slot-games__games-showcase-section {
    padding: 80px 0;
    background-color: var(--background-color, #08160F);
}

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

.page-slot-games__game-card {
    background-color: var(--card-bg, #11271B); /* Card background dark */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    padding: 20px;
    text-align: center;
}

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

.page-slot-games__card-title {
    font-size: 1.4rem;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-slot-games__card-description {
    font-size: 0.95rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

/* How To Play Section */
.page-slot-games__how-to-play-section {
    padding: 80px 0;
    background-color: var(--deep-green, #0A4B2C);
}

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

.page-slot-games__step-card {
    background-color: var(--card-bg, #11271B);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-slot-games__step-title {
    font-size: 1.3rem;
    color: var(--gold, #F2C14E);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-slot-games__step-description {
    font-size: 0.95rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Promotions Section */
.page-slot-games__promotions-section {
    padding: 80px 0;
    background-color: var(--background-color, #08160F);
}

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

.page-slot-games__promo-card {
    background-color: var(--card-bg, #11271B);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    padding: 20px;
    text-align: center;
}

.page-slot-games__promo-card .page-slot-games__card-image {
    height: 180px; /* Slightly smaller for promo cards */
}

.page-slot-games__promo-card .page-slot-games__card-title {
    margin-bottom: 10px;
}

.page-slot-games__promo-card .page-slot-games__card-title a {
    color: var(--text-main, #F2FFF6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-slot-games__promo-card .page-slot-games__card-title a:hover {
    color: var(--gold, #F2C14E);
}

.page-slot-games__full-promotions-cta {
    text-align: center;
    margin-top: 60px;
}

/* FAQ Section */
.page-slot-games__faq-section {
    padding: 80px 0;
    background-color: var(--deep-green, #0A4B2C);
}

.page-slot-games__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

.page-slot-games__faq-item {
    background-color: var(--card-bg, #11271B);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden; /* For details tag */
}

.page-slot-games__faq-item summary {
    list-style: none; /* Hide default marker for details */
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main, #F2FFF6);
    background-color: var(--divider, #1E3A2A); /* Slightly different background for summary */
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-item summary:hover {
    background-color: var(--deep-green, #0A4B2C);
}

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

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

.page-slot-games__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold, #F2C14E);
}

.page-slot-games__faq-answer {
    padding: 20px 25px;
    font-size: 0.95rem;
    color: var(--text-secondary, #A7D9B8);
    background-color: var(--card-bg, #11271B);
    border-top: 1px solid var(--divider, #1E3A2A);
}

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

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

/* Responsive Design */
@media (min-width: 769px) {
    .page-slot-games__image-text-block {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }

    .page-slot-games__content-image {
        flex-shrink: 0;
    }

    .page-slot-games__text-content {
        padding-left: 40px;
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        padding-bottom: 40px;
    }

    .page-slot-games__main-title {
        font-size: 2rem;
    }

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

    .page-slot-games__hero-cta {
        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;
    }

    .page-slot-games__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-slot-games__sub-title {
        font-size: 1.3rem;
    }

    .page-slot-games__text-block {
        margin-bottom: 30px;
    }

    .page-slot-games__introduction-section,
    .page-slot-games__games-showcase-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__promotions-section,
    .page-slot-games__faq-section {
        padding: 40px 0;
    }

    .page-slot-games__image-text-block {
        flex-direction: column;
        gap: 30px;
        margin-top: 30px;
    }

    .page-slot-games__text-content {
        padding-left: 0;
        text-align: center;
    }

    .page-slot-games__list {
        text-align: left; /* Keep list items left-aligned */
    }

    .page-slot-games__game-grid,
    .page-slot-games__steps-grid,
    .page-slot-games__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-slot-games__card-image,
    .page-slot-games__promo-card .page-slot-games__card-image {
        height: 150px;
    }

    .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 {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    
    .page-slot-games__video-section {
      padding-top: 10px !important; /* body already handles --header-offset */
    }

    /* Video responsiveness (if any video is added) */
    .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-section {
      padding-top: 10px !important;
    }
    
    .page-slot-games__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }
}

/* Color Contrast Fixes (if needed, though initial design should prevent it) */
.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;
}