/* style/slot-games.css */

/* Custom Colors */
:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B; /* Body background color, derived from shared.css */
}

/* Base Styles - ensure text is light on dark body background */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Light text for dark body background */
    line-height: 1.6;
    background-color: transparent; /* Body handles background */
}

.page-slot-games h1, .page-slot-games h2, .page-slot-games h3, .page-slot-games h4, .page-slot-games h5, .page-slot-games h6 {
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-slot-games h1 {
    /* No fixed large font-size for h1 */
    font-weight: 900;
    letter-spacing: -0.02em;
    max-width: 900px; /* Constrain width to prevent overly long lines */
}

.page-slot-games h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.page-slot-games h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 10px auto 0;
}

.page-slot-games p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.page-slot-games a {
    color: var(--glow-color);
    text-decoration: none;
}

.page-slot-games a:hover {
    text-decoration: underline;
}

/* Section Styling */
.page-slot-games__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-slot-games__content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px; /* Ensure space for content below image */
    background-color: var(--deep-navy);
}

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

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

.page-slot-games__hero-content {
    padding: 30px 20px;
    text-align: center;
    max-width: 800px;
    margin-top: 30px;
}

.page-slot-games__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    color: var(--text-main);
}

.page-slot-games__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-slot-games__btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

/* Why Choose Section */
.page-slot-games__why-choose {
    background-color: var(--deep-navy);
}

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

.page-slot-games__card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    max-width: 100%;
}

.page-slot-games__card-image {
    width: 100%;
    height: auto;
    max-width: 400px; /* Ensure images are not too wide in cards */
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Min image size */
    min-height: 200px;
}

.page-slot-games__card-title {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 15px;
}

.page-slot-games__card-text {
    color: var(--text-secondary);
    flex-grow: 1;
}

/* Types Section */
.page-slot-games__types {
    background-color: var(--deep-navy);
}

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

.page-slot-games__list-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-slot-games__list-title {
    color: var(--text-main);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.page-slot-games__list-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 15px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* Get Started Section */
.page-slot-games__get-started {
    background-color: var(--deep-navy);
}

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

.page-slot-games__steps-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-slot-games__steps-title {
    color: var(--text-main);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Strategy Section */
.page-slot-games__strategy {
    background-color: var(--deep-navy);
}

.page-slot-games__flex-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.page-slot-games__text-block {
    flex: 2;
}

.page-slot-games__image-block {
    flex: 1;
    min-width: 250px;
}

.page-slot-games__image-full {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

.page-slot-games__tips-list {
    list-style: disc;
    padding-left: 25px;
    color: var(--text-secondary);
}

.page-slot-games__tips-list li {
    margin-bottom: 10px;
}

.page-slot-games__tips-list li strong {
    color: var(--text-main);
}

/* Safety and Responsibility Section */
.page-slot-games__safety-responsibility {
    background-color: var(--deep-navy);
}

/* FAQ Section */
.page-slot-games__faq {
    background-color: var(--deep-navy);
}

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

.page-slot-games__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--card-bg);
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.3s ease;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
    border-bottom-color: var(--border-color);
}

.page-slot-games__faq-question::-webkit-details-marker {
    display: none;
}

.page-slot-games__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--glow-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.page-slot-games__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--text-secondary);
}

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

.page-slot-games__faq-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
}

/* Conclusion Section */
.page-slot-games__conclusion {
    background-color: var(--deep-navy);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__flex-wrapper {
        flex-direction: column;
    }
    .page-slot-games__text-block, .page-slot-games__image-block {
        flex: none;
        width: 100%;
    }
    .page-slot-games__image-block {
        order: -1; /* Image appears above text on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-slot-games__section {
        padding: 40px 15px;
    }

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

    .page-slot-games__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

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

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

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }
    
    .page-slot-games__grid-container {
        grid-template-columns: 1fr;
    }

    .page-slot-games__card,
    .page-slot-games__steps-item,
    .page-slot-games__list-item {
        padding: 20px;
    }

    .page-slot-games__card-image,
    .page-slot-games__image-full,
    .page-slot-games__list-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

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

    /* Ensure containers with images/videos are responsive */
    .page-slot-games__hero-image-wrapper,
    .page-slot-games__card,
    .page-slot-games__steps-item,
    .page-slot-games__list-item,
    .page-slot-games__image-block,
    .page-slot-games__content-wrapper,
    .page-slot-games__faq-list,
    .page-slot-games__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-slot-games__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    .page-slot-games__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-slot-games__faq-answer {
        padding: 0 20px 15px;
    }

    .page-slot-games__tips-list {
        padding-left: 20px;
    }
}