/* style/index-popular-slot-games.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #ffffff;
    --background-dark: #017439;
    --button-register: #C30808;
    --button-login: #C30808;
    --button-font-color: #FFFF00;
}

.page-index-popular-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light background */
    background-color: var(--background-light);
}

.page-index-popular-slot-games__dark-bg {
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-index-popular-slot-games__light-bg {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-index-popular-slot-games__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-offset, 120px); /* Account for fixed header */
    min-height: 600px;
    text-align: center;
    overflow: hidden;
    padding: 60px 20px;
}

.page-index-popular-slot-games__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-index-popular-slot-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.page-index-popular-slot-games__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.page-index-popular-slot-games__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index-popular-slot-games__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.page-index-popular-slot-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-index-popular-slot-games__btn-primary,
.page-index-popular-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-index-popular-slot-games__btn-primary {
    background-color: var(--button-register);
    color: var(--button-font-color);
    border: 2px solid var(--button-register);
}

.page-index-popular-slot-games__btn-primary:hover {
    background-color: darken(var(--button-register), 10%);
    border-color: darken(var(--button-register), 10%);
}

.page-index-popular-slot-games__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-index-popular-slot-games__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.page-index-popular-slot-games__section {
    padding: 60px 20px;
}

.page-index-popular-slot-games__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.page-index-popular-slot-games__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: inherit;
}

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

.page-index-popular-slot-games__image-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.page-index-popular-slot-games__image-left {
    flex: 1;
    min-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index-popular-slot-games__text-content {
    flex: 1;
}

.page-index-popular-slot-games__sub-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-index-popular-slot-games__text-content p {
    margin-bottom: 15px;
    color: inherit;
}

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

.page-index-popular-slot-games__feature-card,
.page-index-popular-slot-games__game-card {
    background-color: var(--background-light);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-popular-slot-games__feature-card:hover,
.page-index-popular-slot-games__game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index-popular-slot-games__feature-icon,
.page-index-popular-slot-games__game-image {
    width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
    max-width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-index-popular-slot-games__feature-title,
.page-index-popular-slot-games__game-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-index-popular-slot-games__game-title a {
    text-decoration: none;
    color: var(--primary-color);
}

.page-index-popular-slot-games__game-title a:hover {
    text-decoration: underline;
}

.page-index-popular-slot-games__game-description {
    font-size: 0.95em;
    color: var(--text-dark);
}

.page-index-popular-slot-games__guide-list,
.page-index-popular-slot-games__tips-list {
    list-style: none;
    padding: 0;
    margin-bottom: 60px;
}

.page-index-popular-slot-games__guide-item,
.page-index-popular-slot-games__tips-item {
    background-color: var(--background-light);
    color: var(--text-dark);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    counter-increment: guide-counter;
    position: relative;
    padding-left: 70px;
}

.page-index-popular-slot-games__guide-item::before {
    content: counter(guide-counter);
    position: absolute;
    left: 20px;
    top: 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

.page-index-popular-slot-games__guide-title,
.page-index-popular-slot-games__tips-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-index-popular-slot-games__guide-item p,
.page-index-popular-slot-games__tips-item p {
    color: inherit;
}

.page-index-popular-slot-games__image-right-block {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
}

.page-index-popular-slot-games__image-right {
    max-width: 100%;
    width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index-popular-slot-games__image-center {
    text-align: center;
    margin-top: 40px;
}

.page-index-popular-slot-games__image-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-index-popular-slot-games__promo-card {
    background-color: var(--background-light);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-popular-slot-games__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index-popular-slot-games__promo-image {
    width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
    max-width: 100%;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-index-popular-slot-games__promo-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-index-popular-slot-games__promo-title a {
    text-decoration: none;
    color: var(--primary-color);
}

.page-index-popular-slot-games__promo-title a:hover {
    text-decoration: underline;
}

.page-index-popular-slot-games__promo-text {
    font-size: 0.95em;
    color: var(--text-dark);
}

.page-index-popular-slot-games__center-buttons {
    margin-top: 40px;
}

.page-index-popular-slot-games__faq-list {
    margin-top: 40px;
}

.page-index-popular-slot-games__faq-item {
    background-color: var(--background-light);
    color: var(--text-dark);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-index-popular-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

.page-index-popular-slot-games__faq-question:hover {
    background-color: #f0f0f0;
}

.page-index-popular-slot-games__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: var(--primary-color);
}

.page-index-popular-slot-games__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-index-popular-slot-games__faq-item.active .page-index-popular-slot-games__faq-toggle {
    transform: rotate(45deg);
}

.page-index-popular-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-dark);
}

.page-index-popular-slot-games__faq-item.active .page-index-popular-slot-games__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to accommodate content */
    padding: 15px 25px 25px;
}

.page-index-popular-slot-games__cta-section {
    padding: 80px 20px;
    text-align: center;
}

.page-index-popular-slot-games__cta-content {
    max-width: 900px;
}

.page-index-popular-slot-games__cta-title {
    font-size: 2.8em;
    margin-bottom: 25px;
    color: var(--text-light);
}

.page-index-popular-slot-games__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.page-index-popular-slot-games__video-section {
    position: relative;
    width: 100%;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure video section starts below header */
}

.page-index-popular-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;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-index-popular-slot-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index-popular-slot-games__hero-section {
        min-height: 500px;
    }
    .page-index-popular-slot-games__main-title {
        font-size: 2.8em;
    }
    .page-index-popular-slot-games__hero-description {
        font-size: 1.1em;
    }
    .page-index-popular-slot-games__section-title {
        font-size: 2em;
    }
    .page-index-popular-slot-games__image-text-block {
        flex-direction: column;
    }
    .page-index-popular-slot-games__image-left,
    .page-index-popular-slot-games__image-right {
        min-width: unset;
        width: 100%;
    }
    .page-index-popular-slot-games__image-right-block {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-index-popular-slot-games__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-index-popular-slot-games__main-title {
        font-size: 2.2em;
    }
    .page-index-popular-slot-games__hero-description {
        font-size: 1em;
    }
    .page-index-popular-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-index-popular-slot-games__btn-primary,
    .page-index-popular-slot-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-index-popular-slot-games__section-title {
        font-size: 1.8em;
    }
    .page-index-popular-slot-games__section-description {
        font-size: 0.95em;
    }
    .page-index-popular-slot-games__image-text-block {
        flex-direction: column;
    }
    .page-index-popular-slot-games__image-left,
    .page-index-popular-slot-games__image-right,
    .page-index-popular-slot-games__image-fluid {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-index-popular-slot-games__feature-card,
    .page-index-popular-slot-games__game-card,
    .page-index-popular-slot-games__promo-card {
        padding: 20px;
    }
    .page-index-popular-slot-games__guide-item,
    .page-index-popular-slot-games__tips-item {
        padding-left: 20px;
    }
    .page-index-popular-slot-games__guide-item::before {
        left: 10px;
        top: 15px;
        width: 30px;
        height: 30px;
        font-size: 1em;
    }
    .page-index-popular-slot-games__guide-title,
    .page-index-popular-slot-games__tips-title {
        font-size: 1.4em;
    }
    .page-index-popular-slot-games__faq-question {
        padding: 15px 20px;
    }
    .page-index-popular-slot-games__faq-title {
        font-size: 1.1em;
    }
    .page-index-popular-slot-games__faq-answer {
        padding: 10px 20px 20px;
    }
    .page-index-popular-slot-games__cta-title {
        font-size: 2em;
    }
    .page-index-popular-slot-games__cta-description {
        font-size: 1em;
    }
    .page-index-popular-slot-games__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-index-popular-slot-games__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-index-popular-slot-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-index-popular-slot-games__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-index-popular-slot-games__section,
    .page-index-popular-slot-games__content-area,
    .page-index-popular-slot-games__cta-section,
    .page-index-popular-slot-games__image-text-block,
    .page-index-popular-slot-games__image-right-block,
    .page-index-popular-slot-games__image-center,
    .page-index-popular-slot-games__features-grid,
    .page-index-popular-slot-games__game-categories-grid,
    .page-index-popular-slot-games__promotions-grid,
    .page-index-popular-slot-games__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-index-popular-slot-games__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-index-popular-slot-games__main-title {
        font-size: 1.8em;
    }
    .page-index-popular-slot-games__section-title {
        font-size: 1.6em;
    }
    .page-index-popular-slot-games__sub-title,
    .page-index-popular-slot-games__feature-title,
    .page-index-popular-slot-games__game-title,
    .page-index-popular-slot-games__promo-title,
    .page-index-popular-slot-games__guide-title,
    .page-index-popular-slot-games__tips-title {
        font-size: 1.2em;
    }
    .page-index-popular-slot-games__cta-title {
        font-size: 1.8em;
    }
}