/* style/slot-games.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-register: #C30808;
    --button-login: #C30808;
    --button-font-login-register: #FFFF00;
}

.page-slot-games {
    font-family: Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--secondary-color); /* Body background is light, so default text is dark */
}

.page-slot-games__hero-section {
    padding-top: 10px; /* Fixed header spacing - rely on body padding for main offset */
    background: linear-gradient(135deg, var(--primary-color) 0%, #005f2b 100%);
    color: var(--text-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    filter: brightness(0.8); /* Slightly dim the image for text readability if text were overlayed, but text is below */
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    padding: 30px 20px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.page-slot-games__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Use clamp for H1 font size */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-slot-games__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.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: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

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

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

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: var(--button-font-login-register);
    border: 2px solid var(--button-font-login-register);
}

.page-slot-games__btn-secondary:hover {
    background-color: var(--button-font-login-register);
    color: var(--button-login);
    transform: translateY(-2px);
}

.page-slot-games__btn-tertiary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    font-size: 0.95em;
}

.page-slot-games__btn-tertiary:hover {
    background-color: #005f2b;
    border-color: #005f2b;
}

.page-slot-games__games-showcase,
.page-slot-games__why-choose,
.page-slot-games__how-to-play,
.page-slot-games__faq-section,
.page-slot-games__cta-bottom {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-slot-games__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

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

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

.page-slot-games__game-card {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
    color: var(--text-dark);
}

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

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

.page-slot-games__game-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-slot-games__game-description {
    font-size: 0.95em;
    padding: 0 15px 20px;
}

.page-slot-games__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-slot-games__dark-bg .page-slot-games__section-title,
.page-slot-games__dark-bg h3 {
    color: var(--text-light);
}

.page-slot-games__dark-bg .page-slot-games__description,
.page-slot-games__dark-bg p {
    color: var(--text-light);
}

.page-slot-games__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-slot-games__light-bg .page-slot-games__section-title,
.page-slot-games__light-bg h3 {
    color: var(--primary-color);
}

.page-slot-games__light-bg .page-slot-games__description,
.page-slot-games__light-bg p {
    color: var(--text-dark);
}

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

.page-slot-games__feature-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    height: 100%; /* Ensure equal height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.page-slot-games__feature-icon {
    width: 150px; /* Increased size for content image */
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    max-width: 100%;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}

.page-slot-games__feature-item h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--text-light);
}

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

.page-slot-games__steps-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
}

.page-slot-games__steps-list li {
    background: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px;
    font-size: 1.05em;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.page-slot-games__steps-list li strong {
    color: var(--primary-color);
}

.page-slot-games__text-content {
    text-align: center;
    max-width: 800px;
    margin: 30px auto 0;
    font-size: 1.05em;
    color: var(--text-dark);
}

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

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: var(--text-dark);
}
.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  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: var(--text-dark);
}

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

.page-slot-games__cta-bottom {
    text-align: center;
    background: linear-gradient(135deg, #005f2b 0%, var(--primary-color) 100%);
    color: var(--text-light);
    padding: 80px 20px;
}

.page-slot-games__cta-bottom .page-slot-games__section-title {
    color: var(--text-light);
}

.page-slot-games__cta-bottom .page-slot-games__description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--text-light);
}

/* General image responsiveness */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-slot-games__hero-content {
        padding: 20px;
    }

    .page-slot-games__main-title {
        font-size: 3em;
    }

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

    .page-slot-games__games-showcase,
    .page-slot-games__why-choose,
    .page-slot-games__how-to-play,
    .page-slot-games__faq-section,
    .page-slot-games__cta-bottom {
        padding: 50px 20px;
    }
}

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

    .page-slot-games__hero-section {
        padding-top: 10px !important; /* Ensure minimal top padding on mobile */
    }

    .page-slot-games__hero-content {
        padding: 20px 15px 40px;
    }

    .page-slot-games__main-title {
        font-size: clamp(2em, 8vw, 2.5em);
        margin-bottom: 15px;
    }

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

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

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__btn-tertiary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-slot-games__games-showcase,
    .page-slot-games__why-choose,
    .page-slot-games__how-to-play,
    .page-slot-games__faq-section,
    .page-slot-games__cta-bottom {
        padding: 40px 15px;
    }

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

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

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

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

    .page-slot-games__game-title {
        font-size: 1.3em;
    }

    .page-slot-games__features-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-slot-games__feature-item {
        padding: 20px;
    }

    .page-slot-games__feature-icon {
        min-width: 200px !important;
        min-height: 200px !important;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 15px;
    }

    .page-slot-games__steps-list li {
        padding: 15px;
        font-size: 1em;
    }

    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; }

    .page-slot-games__cta-bottom {
        padding: 60px 15px;
    }

    .page-slot-games__cta-bottom .page-slot-games__description {
        font-size: 1.05em;
        margin-bottom: 30px;
    }

    /* General image responsiveness for all content images */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-slot-games__hero-section,
    .page-slot-games__games-showcase,
    .page-slot-games__why-choose,
    .page-slot-games__how-to-play,
    .page-slot-games__faq-section,
    .page-slot-games__cta-bottom,
    .page-slot-games__game-card,
    .page-slot-games__feature-item,
    .page-slot-games__steps-list li,
    details.page-slot-games__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-slot-games__games-showcase,
    .page-slot-games__why-choose,
    .page-slot-games__how-to-play,
    .page-slot-games__faq-section,
    .page-slot-games__cta-bottom {
        padding-left: 15px;
        padding-right: 15px;
    }
}