.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background #0a0a0a is dark, so text is white */
    background-color: #0a0a0a; /* Ensure consistency with shared.css body background */
}

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

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: calc(var(--header-offset, 120px) + 40px); /* Adjust for header offset */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #017439, #00502a); /* Brand color gradient */
    overflow: hidden;
}

.page-slot-games__hero-content {
    max-width: 800px;
    z-index: 1;
    position: relative;
}

.page-slot-games__hero-title {
    font-size: 3.5em;
    color: #FFFFFF;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-slot-games__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-slot-games__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.3; /* Subtle background image */
    z-index: 0;
}

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

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

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

.page-slot-games__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

.page-slot-games__btn-secondary {
    background-color: #017439; /* Main brand color */
    color: #FFFFFF;
    border: 2px solid #017439;
}

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

/* General Section Styles */
.page-slot-games__intro-section,
.page-slot-games__games-showcase,
.page-slot-games__tips-section,
.page-slot-games__cta-final {
    padding: 60px 20px;
    color: #333333; /* Light background, dark text */
}

.page-slot-games__download-section,
.page-slot-games__promotions-section,
.page-slot-games__faq-section {
    padding: 60px 20px;
    color: #ffffff; /* Dark background, light text */
}

.page-slot-games__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-slot-games__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-slot-games__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.page-slot-games__light-bg .page-slot-games__section-title {
    color: #017439; /* Brand color for titles on light background */
}

.page-slot-games__dark-bg .page-slot-games__section-title {
    color: #FFFFFF; /* White for titles on dark background */
}

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

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

.page-slot-games__feature-card {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #333333;
}

.page-slot-games__feature-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

.page-slot-games__feature-text {
    font-size: 1em;
    color: #555555;
}

/* Download Section */
.page-slot-games__download-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-slot-games__download-content {
    flex: 1;
    min-width: 300px;
}

.page-slot-games__download-steps {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-slot-games__download-steps li {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-left: 5px solid #C30808;
    border-radius: 5px;
    color: #f0f0f0;
}

.page-slot-games__download-steps li strong {
    color: #FFFFFF;
}

.page-slot-games__btn-download {
    margin-top: 30px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__download-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

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

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

.page-slot-games__game-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #333333;
}

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

.page-slot-games__game-title {
    font-size: 1.3em;
    margin: 15px 10px 10px 10px;
    color: #017439;
}

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

.page-slot-games__game-title a:hover {
    color: #00502a;
    text-decoration: underline;
}

.page-slot-games__game-text {
    font-size: 0.95em;
    color: #555555;
    padding: 0 15px 20px 15px;
}

/* Video Section */
.page-slot-games__video-section {
    margin-top: 60px;
    text-align: center;
    background-color: #f0f0f0;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-slot-games__video-title {
    font-size: 2em;
    color: #017439;
    margin-bottom: 20px;
}

.page-slot-games__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 0 auto 20px auto;
    border-radius: 8px;
}

.page-slot-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
    display: block; /* Ensure it behaves like a block element */
}

.page-slot-games__video-description {
    color: #555555;
    font-size: 1em;
    margin-top: 15px;
}

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

.page-slot-games__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #ffffff;
}

.page-slot-games__promo-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-slot-games__promo-title {
    font-size: 1.3em;
    margin: 15px 10px 10px 10px;
    color: #FFFFFF;
}

.page-slot-games__promo-title a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-slot-games__promo-title a:hover {
    color: #f0f0f0;
    text-decoration: underline;
}

.page-slot-games__promo-text {
    font-size: 0.95em;
    color: #f0f0f0;
    padding: 0 15px 20px 15px;
}

/* Tips Section */
.page-slot-games__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__tip-item {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-slot-games__tip-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

.page-slot-games__tip-text {
    font-size: 1em;
    color: #555555;
}

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

.page-slot-games__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-slot-games__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

.page-slot-games__faq-item summary {
    list-style: none;
}

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

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #FFFF00; /* Yellow for toggle icon */
}

.page-slot-games__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 1em;
    color: #f0f0f0;
    line-height: 1.6;
}

/* Final CTA */
.page-slot-games__cta-final {
    text-align: center;
}

.page-slot-games__cta-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-slot-games__cta-content {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-slot-games__cta-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

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


/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 2.8em;
    }
    .page-slot-games__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        flex-direction: column;
        padding-top: var(--header-offset, 120px) !important; /* Adjust for mobile header offset */
    }

    .page-slot-games__hero-title {
        font-size: 2.2em;
    }

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

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

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95em;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

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

    .page-slot-games__download-flex,
    .page-slot-games__cta-flex {
        flex-direction: column;
    }

    .page-slot-games__download-image-wrapper,
    .page-slot-games__cta-image-wrapper {
        order: -1; /* Image above text on mobile */
    }

    .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,
    .page-slot-games__hero-section,
    .page-slot-games__download-section,
    .page-slot-games__games-showcase,
    .page-slot-games__promotions-section,
    .page-slot-games__tips-section,
    .page-slot-games__faq-section,
    .page-slot-games__cta-final {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .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: 0; /* Handled by parent container padding */
      padding-right: 0; /* Handled by parent container padding */
      overflow: hidden !important;
    }

    .page-slot-games__video-wrapper {
        padding-bottom: 56.25% !important; /* Ensure aspect ratio */
        height: 0 !important;
    }
}

@media (max-width: 480px) {
    .page-slot-games__hero-title {
        font-size: 1.8em;
    }
    .page-slot-games__section-title {
        font-size: 1.5em;
    }
    .page-slot-games__feature-title,
    .page-slot-games__game-title,
    .page-slot-games__promo-title,
    .page-slot-games__tip-title {
        font-size: 1.2em;
    }
    .page-slot-games__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-slot-games__faq-answer {
        padding: 10px 20px 15px 20px;
    }
}