/* style/slot-games.css */

/* Variables */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-register-bg: #C30808;
    --button-register-text: #FFFF00;
    --button-login-bg: #C30808;
    --button-login-text: #FFFF00;
    --border-color: #e0e0e0;
    --background-light: #f9f9f9;
}

/* Base styles for the page content */
.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light body background */
    background-color: var(--secondary-color); /* Matches body background from shared.css */
}

/* Section styling */
.page-slot-games__section {
    padding: 60px 0;
    text-align: center;
}

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

.page-slot-games__advantages-section,
.page-slot-games__tips-section,
.page-slot-games__cta-bottom-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

.page-slot-games__section-title {
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: bold;
}

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

.page-slot-games__text-block {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.8;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__text-block--white {
    color: var(--text-light);
}

.page-slot-games__highlight {
    font-weight: bold;
    color: var(--primary-color); /* Highlight color for light backgrounds */
}

.page-slot-games__dark-bg .page-slot-games__highlight {
    color: var(--button-register-text); /* Highlight color for dark backgrounds */
}


/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Gradient background for visual appeal */
}

.page-slot-games__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-slot-games__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-slot-games__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: var(--text-light); /* Text color over hero background */
}

.page-slot-games__hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slot-games__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* CTA Buttons */
.page-slot-games__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none; /* Remove default button border */
    max-width: 100%; /* Ensure button fits container */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__btn-register {
    background: var(--button-register-bg);
    color: var(--button-register-text);
}

.page-slot-games__btn-register:hover {
    background: #a30707; /* Darker red */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-login {
    background: var(--button-login-bg);
    color: var(--button-login-text);
    margin-left: 20px;
}

.page-slot-games__btn-login:hover {
    background: #a30707; /* Darker red */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-slot-games__btn-primary:hover {
    background: #005a2e; /* Darker green */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-slot-games__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


/* Grid layout for cards */
.page-slot-games__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-slot-games__card {
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-slot-games__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-slot-games__card-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-slot-games__card-title {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: bold;
}

.page-slot-games__card-text {
    font-size: 16px;
    line-height: 1.7;
    flex-grow: 1; /* Allows text to take up available space */
}

.page-slot-games__card--promotion {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}
.page-slot-games__card--promotion .page-slot-games__btn-secondary {
    margin-top: 20px;
    align-self: flex-start;
}

/* List styles */
.page-slot-games__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__list--white .page-slot-games__list-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark background */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-slot-games__list-item {
    background-color: var(--background-light);
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-slot-games__list-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.page-slot-games__list-title--white {
    color: var(--text-light);
}

.page-slot-games__list-item p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 0;
}

.page-slot-games__list--white .page-slot-games__list-item p {
    color: var(--text-light);
}

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

.page-slot-games__main-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.page-slot-games__cta-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-slot-games__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}


/* FAQ Section */
.page-slot-games__faq-section {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-slot-games__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 2000px !important; /* Ensure enough height for content */
    padding: 20px 15px !important;
    opacity: 1;
    border-radius: 0 0 5px 5px;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: var(--primary-color); /* Question text color */
}

.page-slot-games__faq-question:hover {
    background: var(--background-light);
    border-color: #d0d0d0;
}

.page-slot-games__faq-question:active {
    background: #eeeeee;
}