/* style/slot-games.css */

/* General page styling */
.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #f8f8f8; /* Slightly off-white background for main content */
}

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

.page-slot-games__section {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-slot-games__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #1A237E; /* Primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-slot-games__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700; /* Auxiliary color for underline */
    border-radius: 2px;
}

.page-slot-games__paragraph {
    font-size: 17px;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* 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);
    background: linear-gradient(135deg, #1A237E 0%, #3F51B5 100%); /* Deep blue gradient */
    color: #ffffff;
    overflow: hidden;
}

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

.page-slot-games__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-slot-games__hero-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    color: #FFD700; /* Golden for prominence */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
}

.page-slot-games__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-slot-games__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: #FFD700; /* Auxiliary color for CTA */
    color: #1A237E; /* Primary color for text to ensure contrast */
    text-decoration: none;
    border-radius: 8px;
    font-size: 22px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__cta-button:hover {
    background: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Introduction Section */
.page-slot-games__introduction {
    background-color: #ffffff;
}

/* Game Types Section */
.page-slot-games__game-types {
    background-color: #1A237E; /* Dark background for this section */
    color: #ffffff;
    padding-bottom: 80px;
}

.page-slot-games__section-title--light {
    color: #FFD700;
}
.page-slot-games__section-title--light::after {
    background-color: #ffffff;
}

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

.page-slot-games__card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333; /* Dark text for light card background */
    padding-bottom: 25px;
}

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

.page-slot-games__card-image {
    width: 100%;
    height: 250px; /* Fixed height for card images */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
}

.page-slot-games__card-title {
    font-size: 24px;
    font-weight: bold;
    color: #1A237E;
    margin: 20px 25px 10px;
}

.page-slot-games__card-description {
    font-size: 16px;
    color: #555555;
    padding: 0 25px;
    text-align: justify;
}

/* Benefits Section */
.page-slot-games__benefits {
    background-color: #f0f2f5;
}

.page-slot-games__list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 40px auto 0;
}

.page-slot-games__list-item {
    font-size: 17px;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: #444444;
}

.page-slot-games__list-item::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: #1A237E; /* Primary color for icon */
    font-size: 20px;
    line-height: 1.6;
}

/* Guide Section */
.page-slot-games__guide {
    background-color: #FFD700; /* Auxiliary color background */
    color: #1A237E; /* Primary color text for contrast */
}

.page-slot-games__guide .page-slot-games__section-title {
    color: #1A237E;
}
.page-slot-games__guide .page-slot-games__section-title::after {
    background-color: #1A237E;
}

.page-slot-games__guide-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-slot-games__guide-steps {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-slot-games__step {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #1A237E;
}

.page-slot-games__step-title {
    font-size: 22px;
    color: #1A237E;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-slot-games__step p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 15px;
}

.page-slot-games__button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 17px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__btn-primary {
    background: #1A237E;
    color: #ffffff;
}

.page-slot-games__btn-primary:hover {
    background: #3F51B5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-secondary {
    background: #ffffff;
    color: #1A237E;
    border-color: #1A237E;
}

.page-slot-games__btn-secondary:hover {
    background: #f0f0f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__guide-image {
    flex: 1;
    text-align: center;
}

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

/* Promotions Section */
.page-slot-games__promotions {
    background-color: #1A237E;
    color: #ffffff;
}

.page-slot-games__promotions .page-slot-games__section-title {
    color: #FFD700;
}
.page-slot-games__promotions .page-slot-games__section-title::after {
    background-color: #ffffff;
}

.page-slot-games__paragraph--light {
    color: #f0f0f0;
}

.page-slot-games__list--light .page-slot-games__list-item {
    color: #f0f0f0;
}
.page-slot-games__list--light .page-slot-games__list-item::before {
    color: #FFD700;
}

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

.page-slot-games__promotions-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.page-slot-games__cta-button--golden {
    background: #FFD700;
    color: #1A237E;
    border: none;
}
.page-slot-games__cta-button--golden:hover {
    background: #e6c200;
}


/* Security & Support Section */
.page-slot-games__security-support {
    background-color: #ffffff;
}

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

.page-slot-games__security-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    border-top: 4px solid #1A237E;
}

.page-slot-games__security-title {
    font-size: 22px;
    color: #1A237E;
    margin-top: 0;
    margin-bottom: 15px;
}

.page-slot-games__security-item p {
    font-size: 16px;
    color: #555555;
}

/* FAQ Section */
.page-slot-games__faq {
    background-color: #f0f2f5;
    padding-bottom: 80px;
}

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

/* FAQ item styling */
.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ default state - answer hidden */
.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;
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height */
.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important for priority, value large enough for content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #ffffff;
  border-radius: 0 0 5px 5px;
  box-shadow: inset 0 3px 8px rgba(0,0,0,0.05);
}

/* Question styling */
.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1A237E; /* Primary color for question background */
  color: #ffffff; /* White text for contrast */
  border: 1px solid #1A237E;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.page-slot-games__faq-question:hover {
  background: #3F51B5; /* Slightly lighter primary on hover */
  border-color: #3F51B5;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.page-slot-games__faq-question:active {
  background: #1A237E;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

/* Question title styling */
.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click events */
  color: #ffffff; /* Ensure title text is white */
}

/* Toggle icon */
.page-slot-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Auxiliary color for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
  color: #ffffff; /* White when active */
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .page-slot-games__container {
        padding: 20px 15px;
    }

    .page-slot-games__section {
        padding: 40px 0;
    }

    .page-slot-games__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-slot-games__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-slot-games__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-slot-games__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-slot-games__cta-button {
        padding: 15px 30px;
        font-size: 18px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-slot-games__card-image {
        height: 200px;
    }

    .page-slot-games__card-title {
        font-size: 20px;
        margin: 15px 20px 8px;
    }

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

    .page-slot-games__list-item {
        font-size: 16px;
        padding-left: 25px;
    }

    .page-slot-games__list-item::before {
        font-size: 18px;
    }

    .page-slot-games__guide-content {
        flex-direction: column;
        gap: 30px;
    }

    .page-slot-games__guide-steps {
        width: 100%;
    }
    
    .page-slot-games__step {
        padding: 20px;
    }

    .page-slot-games__step-title {
        font-size: 20px;
    }

    .page-slot-games__button-group {
        flex-direction: column;
        gap: 10px;
    }

    .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 15px;
        font-size: 16px;
    }

    .page-slot-games__guide-image {
        width: 100%;
    }

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

    .page-slot-games__security-title {
        font-size: 20px;
    }

    .page-slot-games__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-slot-games__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
        line-height: 1.4;
    }
    
    .page-slot-games__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 22px;
    }
    
    .page-slot-games__faq-answer {
        padding: 0 15px;
    }
    
    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 15px !important;
    }

    /* Mobile image adaptation */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__hero-section,
    .page-slot-games__guide-content,
    .page-slot-games__button-group,
    .page-slot-games__security-grid,
    .page-slot-games__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }
}