/* slot-games.css */

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --background-dark-color: #08160F;
    --card-bg-color: #11271B;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Default text color for the page */
    background-color: var(--background-dark-color); /* Ensure content contrast with body background */
}

.page-slot-games img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

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

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    margin-bottom: 40px;
    overflow: hidden;
}

.page-slot-games__hero-image {
    width: 100%;
    height: 600px; /* Fixed height for desktop */
    position: relative;
}

.page-slot-games__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers the area */
    border-radius: 10px;
}

.page-slot-games__hero-content {
    text-align: center;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.4); /* Slightly transparent background for readability */
    border-radius: 10px;
    margin: -100px auto 0; /* Overlap slightly with the image for visual flow */
    max-width: 900px;
    position: relative; /* Ensure content is above other elements */
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}

.page-slot-games__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px var(--glow-color);
}

.page-slot-games__tagline {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary-color);
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-slot-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-slot-games__cta-buttons--center {
    margin-top: 30px;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-slot-games__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main-color);
    border: 2px solid var(--glow-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3), 0 0 20px var(--glow-color) inset;
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4), 0 0 25px var(--glow-color) inset;
}

.page-slot-games__btn-secondary {
    background: var(--card-bg-color);
    color: var(--glow-color);
    border: 2px solid var(--glow-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-slot-games__btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    background: var(--glow-color);
    color: var(--background-dark-color);
}

/* General Section Styling */
.page-slot-games__section {
    padding: 60px 0;
    margin-bottom: 40px;
    position: relative;
}

.page-slot-games__section:nth-of-type(even) {
    background-color: var(--card-bg-color);
}

.page-slot-games__section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
}

.page-slot-games__text-block {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
    text-align: justify;
}

.page-slot-games__text-block strong {
    color: var(--text-main-color);
}

.page-slot-games__dark-section {
    background-color: var(--card-bg-color);
    color: var(--text-main-color);
}

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

.page-slot-games__feature-card,
.page-slot-games__game-type-card {
    background: var(--background-dark-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.page-slot-games__feature-card:hover,
.page-slot-games__game-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.6), 0 0 15px var(--glow-color) inset;
}

.page-slot-games__feature-card img,
.page-slot-games__game-type-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--divider-color);
}

.page-slot-games__card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-slot-games__card-text {
    font-size: 1rem;
    color: var(--text-secondary-color);
    line-height: 1.7;
}

/* Guide Section */
.page-slot-games__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

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

.page-slot-games__list-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-slot-games__list-item p {
    font-size: 1.05rem;
    color: var(--text-secondary-color);
    line-height: 1.7;
}

.page-slot-games__list-item a {
    color: var(--glow-color);
    text-decoration: underline;
    font-weight: 600;
}

.page-slot-games__list-item a:hover {
    color: var(--gold-color);
}

/* Tips Section */
.page-slot-games__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-slot-games__tips-list .page-slot-games__list-item {
    background: var(--card-bg-color);
}

/* FAQ Section */
details.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--background-dark-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main-color);
}
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: var(--card-bg-color);
}
.page-slot-games__faq-qtext {
  flex: 1;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--gold-color);
}
.page-slot-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--glow-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-slot-games__faq-item .page-slot-games__faq-answer {
  padding: 0 25px 25px;
  background: var(--card-bg-color);
  border-radius: 0 0 8px 8px;
}
.page-slot-games__faq-answer p {
    color: var(--text-secondary-color);
    line-height: 1.7;
    font-size: 1rem;
}

/* Conclusion Section */
.page-slot-games__conclusion-section {
    text-align: center;
    padding-bottom: 80px;
}

/* Responsive Styles */

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
    .page-slot-games__hero-image {
        height: 500px;
    }
    .page-slot-games__hero-content {
        margin: -80px auto 0;
        max-width: 800px;
    }
    .page-slot-games__main-title {
        font-size: 3rem;
    }
    .page-slot-games__tagline {
        font-size: 1.1rem;
    }
    .page-slot-games__section-title {
        font-size: 2.5rem;
    }
    .page-slot-games__cta-buttons {
        gap: 15px;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .page-slot-games__container {
        padding: 15px;
    }

    /* HERO Section */
    .page-slot-games__hero-section {
        padding-top: 10px; /* Ensure small top padding */
        margin-bottom: 20px;
    }
    .page-slot-games__hero-image {
        height: 300px;
        aspect-ratio: unset !important; /* Override aspect ratio */
    }
    .page-slot-games__hero-image img {
        object-fit: contain !important; /* Ensure image is fully visible */
        width: 100% !important;
        height: auto !important;
    }
    .page-slot-games__hero-content {
        margin: -60px auto 0;
        padding: 25px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-slot-games__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-slot-games__tagline {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        font-size: 1rem;
        padding: 12px 20px;
        max-width: 100% !important;
        width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General Section Styling */
    .page-slot-games__section {
        padding: 40px 0;
        margin-bottom: 20px;
    }
    .page-slot-games__section-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        margin-bottom: 30px;
        text-align: center;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-slot-games__text-block {
        font-size: 0.95rem;
        padding: 0 5px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Features Grid / Why Choose Section */
    .page-slot-games__features-grid,
    .page-slot-games__game-type-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
        margin-top: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    .page-slot-games__feature-card,
    .page-slot-games__game-type-card {
        padding: 20px;
    }
    .page-slot-games__feature-card img,
    .page-slot-games__game-type-card img {
        
        max-width: 100% !important;
        width: 100% !important;
    }
    .page-slot-games__card-title {
        font-size: 1.2rem;
    }
    .page-slot-games__card-text {
        font-size: 0.9rem;
    }

    /* Guide Section */
    .page-slot-games__step-list {
        margin-top: 20px;
    }
    .page-slot-games__list-item {
        padding: 20px;
    }
    .page-slot-games__list-title {
        font-size: 1.3rem;
    }
    .page-slot-games__list-item p {
        font-size: 0.95rem;
    }

    /* Tips Section */
    .page-slot-games__tips-list {
        margin-top: 20px;
    }

    /* FAQ Section */
    details.page-slot-games__faq-item summary.page-slot-games__faq-question {
        padding: 15px;
    }
    .page-slot-games__faq-qtext {
        font-size: 1rem;
    }
    .page-slot-games__faq-toggle {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }
    details.page-slot-games__faq-item .page-slot-games__faq-answer {
        padding: 0 15px 15px;
    }
    .page-slot-games__faq-answer p {
        font-size: 0.95rem;
    }

    /* Conclusion Section */
    .page-slot-games__conclusion-section {
        padding-bottom: 40px;
    }

    /* Universal image and container responsive rules */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__features-grid,
    .page-slot-games__game-type-grid,
    .page-slot-games__cta-buttons,
    .page-slot-games__introduction-section,
    .page-slot-games__why-choose-section,
    .page-slot-games__game-types-section,
    .page-slot-games__guide-section,
    .page-slot-games__tips-section,
    .page-slot-games__faq-section,
    .page-slot-games__conclusion-section,
    .page-slot-games__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Ensure no horizontal overflow */
    }
    .page-slot-games__cta-buttons {
        padding-left: 0;
        padding-right: 0;
    }
}