/* style/slot-games.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-color: #C30808;
    --login-color: #C30808;
    --register-login-font-color: #FFFF00;
}

.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light body background */
    line-height: 1.6;
    background-color: var(--secondary-color); /* Matches body background */
}

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

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

.page-slot-games__text-center {
    text-align: center;
}

.page-slot-games__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    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: var(--register-color);
    border-radius: 2px;
}

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

.page-slot-games__section-title--light::after {
    background-color: var(--secondary-color);
}

.page-slot-games__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    text-align: justify;
}

.page-slot-games__text-block--light {
    color: rgba(255, 255, 255, 0.9);
}

.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: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.page-slot-games__btn-primary {
    background: var(--register-color); /* Using register color for primary CTA */
    color: var(--register-login-font-color); /* Using register/login font color */
}

.page-slot-games__btn-primary:hover {
    background: #a30606; /* Darken register color */
    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(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 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); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, var(--primary-color), #32a05d); /* Gradient background for hero */
}

.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(--secondary-color);
}

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

.page-slot-games__hero-description {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

/* Game Types Grid */
.page-slot-games__dark-section {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

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

.page-slot-games__card {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 20px;
    color: #333333;
}

.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: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.page-slot-games__card-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-slot-games__card-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-slot-games__card-link:hover {
    color: var(--register-color);
}

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

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

.page-slot-games__strategy-item {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: transform 0.3s ease;
}

.page-slot-games__strategy-item:hover {
    transform: translateY(-5px);
}

.page-slot-games__strategy-heading {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 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: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    padding-bottom: 20px;
}

.page-slot-games__promo-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.page-slot-games__promo-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 15px;
}

.page-slot-games__promo-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    padding: 0 15px;
    color: var(--secondary-color);
}

.page-slot-games__promo-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    padding: 0 15px;
}

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

.page-slot-games__feature-item {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-slot-games__feature-item:hover {
    transform: translateY(-5px);
}

.page-slot-games__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-slot-games__feature-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* FAQ Section */
.page-slot-games__faq-list {
    margin-top: 40px;
}

.page-slot-games__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: 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;
    padding: 0 15px;
    opacity: 0;
    color: #333333;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: var(--secondary-color);
    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 #e0e0e0;
    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);
}

.page-slot-games__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

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

.page-slot-games__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px; /* Slightly larger for readability */
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--primary-color);
}

.page-slot-games__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    color: var(--register-color); /* Change color when active */
}

/* Final CTA */
.page-slot-games__cta-final {
    background-color: #f5f5f5;
}

.page-slot-games__cta-final .page-slot-games__section-title {
    color: var(--primary-color);
}

.page-slot-games__cta-final .page-slot-games__text-block {
    color: #555555;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 40px;
    }
    .page-slot-games__hero-description {
        font-size: 18px;
    }
    .page-slot-games__section-title {
        font-size: 30px;
    }
    .page-slot-games__card-title, .page-slot-games__promo-title, .page-slot-games__feature-title {
        font-size: 20px;
    }
    .page-slot-games__strategy-heading {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .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: 20px;
    }
    .page-slot-games__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        width: 100%; /* Ensure buttons are full width on mobile */
        max-width: 100%;
        box-sizing: border-box;
        white-space: normal;
        word-wrap: break-word;
    }
    .page-slot-games__section-spacing {
        padding: 40px 0;
    }
    .page-slot-games__section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    .page-slot-games__text-block {
        font-size: 16px;
    }
    .page-slot-games__grid-container, 
    .page-slot-games__promo-grid, 
    .page-slot-games__features-grid, 
    .page-slot-games__strategy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-slot-games__card-image, .page-slot-games__promo-image {
        height: 180px;
    }
    .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);
    }
    .page-slot-games__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-slot-games__faq-answer {
        padding: 0 15px;
    }
    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 15px !important;
    }
    .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__cta-buttons, .page-slot-games__button-group, .page-slot-games__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-slot-games__hero-title {
        font-size: 28px;
    }
    .page-slot-games__section-title {
        font-size: 24px;
    }
    .page-slot-games__text-block {
        font-size: 15px;
    }
    .page-slot-games__faq-question h3 {
        font-size: 15px;
    }
}