/* style/index-game-features.css */

/* General Styles */
.page-index-game-features {
    font-family: Arial, sans-serif;
    color: #333333; /* Default dark text for light background */
    line-height: 1.6;
    background-color: #f5f5f5;
}

.page-index-game-features__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-index-game-features__section-title {
    font-size: 2.5em;
    color: #8B0000; /* Secondary color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-index-game-features__section-subtitle {
    font-size: 1.2em;
    text-align: center;
    color: #555555;
    margin-bottom: 40px;
}

.page-index-game-features__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Buttons */
.page-index-game-features__btn-primary,
.page-index-game-features__btn-secondary,
.page-index-game-features__btn-tertiary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-index-game-features__btn-primary {
    background-color: #FFD700; /* Primary color */
    color: #ffffff;
    border: 2px solid #FFD700;
}

.page-index-game-features__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-index-game-features__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Primary color */
    border: 2px solid #FFD700;
}

.page-index-game-features__btn-secondary:hover {
    background-color: #FFD700;
    color: #8B0000; /* Secondary color */
}

.page-index-game-features__btn-tertiary {
    background-color: #8B0000; /* Secondary color */
    color: #ffffff;
    border: 2px solid #8B0000;
    margin-top: 15px;
}

.page-index-game-features__btn-tertiary:hover {
    background-color: #6a0000;
    border-color: #6a0000;
}

/* Hero Section */
.page-index-game-features__hero-section {
    position: relative;
    width: 100%;
    height: 700px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-index-game-features__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.page-index-game-features__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.page-index-game-features__hero-content {
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.page-index-game-features__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFD700; /* Primary color for hero title */
}

.page-index-game-features__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
}

.page-index-game-features__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Introduction Section */
.page-index-game-features__introduction-section {
    padding: 80px 0;
}

/* Game Categories Section */
.page-index-game-features__game-categories {
    padding: 80px 0;
    background-color: #8B0000; /* Secondary color for background */
    color: #ffffff;
}

.page-index-game-features__game-categories .page-index-game-features__section-title,
.page-index-game-features__game-categories .page-index-game-features__section-subtitle {
    color: #FFD700; /* Primary color for titles on dark background */
}

.page-index-game-features__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-index-game-features__game-card {
    background-color: #ffffff;
    color: #333333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.page-index-game-features__game-card:hover {
    transform: translateY(-10px);
}

.page-index-game-features__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-index-game-features__card-title {
    font-size: 1.5em;
    color: #8B0000; /* Secondary color for card titles */
    margin: 20px 20px 10px;
    font-weight: bold;
}

.page-index-game-features__card-description {
    font-size: 1em;
    padding: 0 20px 20px;
    flex-grow: 1;
    text-align: justify;
}

.page-index-game-features__game-card .page-index-game-features__btn-tertiary {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

/* Unique Advantages Section */
.page-index-game-features__unique-advantages {
    padding: 80px 0;
}

.page-index-game-features__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-index-game-features__advantage-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-index-game-features__advantage-title {
    font-size: 1.4em;
    color: #8B0000; /* Secondary color */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-index-game-features__advantage-description {
    font-size: 1em;
    color: #555555;
}

/* Video Section */
.page-index-game-features__video-section {
    padding: 80px 0;
    background-color: #8B0000;
    color: #ffffff;
}

.page-index-game-features__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-bottom: 40px;
    border-radius: 10px;
}

.page-index-game-features__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    cursor: pointer;
}

.page-index-game-features__video-cta {
    text-align: center;
}

/* CTA Section */
.page-index-game-features__cta-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.page-index-game-features__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* FAQ Section */
.page-index-game-features__faq-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.page-index-game-features__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-index-game-features__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-index-game-features__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-weight: bold;
    color: #333333;
    transition: background-color 0.3s ease;
}

.page-index-game-features__faq-question:hover {
    background-color: #eaeaea;
}

.page-index-game-features__faq-question h3 {
    margin: 0;
    font-size: 1.1em;
    color: #8B0000; /* Secondary color for FAQ questions */
}

.page-index-game-features__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-index-game-features__faq-item.active .page-index-game-features__faq-toggle {
    transform: rotate(45deg);
}

.page-index-game-features__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

.page-index-game-features__faq-item.active .page-index-game-features__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to contain content */
    padding: 15px 20px;
}

/* Color Contrast Fixes (if needed, based on body background) */
.page-index-game-features__light-bg {
    background: #f5f5f5;
    color: #333333;
}

.page-index-game-features__dark-bg {
    background: #8B0000;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index-game-features__hero-title {
        font-size: 3em;
    }
    .page-index-game-features__section-title {
        font-size: 2em;
    }
    .page-index-game-features__hero-section {
        height: 600px;
    }
}

@media (max-width: 768px) {
    .page-index-game-features__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-index-game-features__hero-title {
        font-size: 2.2em;
    }
    .page-index-game-features__hero-description {
        font-size: 1.1em;
    }
    .page-index-game-features__hero-buttons,
    .page-index-game-features__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-index-game-features__btn-primary,
    .page-index-game-features__btn-secondary,
    .page-index-game-features__btn-tertiary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-index-game-features__section-title {
        font-size: 1.8em;
    }
    .page-index-game-features__section-subtitle {
        font-size: 1em;
    }

    /* Mobile image responsive */
    .page-index-game-features img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-index-game-features__section,
    .page-index-game-features__card,
    .page-index-game-features__container,
    .page-index-game-features__game-card,
    .page-index-game-features__advantage-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile video responsive */
    .page-index-game-features video,
    .page-index-game-features__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-index-game-features__video-section,
    .page-index-game-features__video-container,
    .page-index-game-features__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-game-features__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}

@media (max-width: 480px) {
    .page-index-game-features__hero-title {
        font-size: 1.8em;
    }
    .page-index-game-features__hero-description {
        font-size: 1em;
    }
    .page-index-game-features__section-title {
        font-size: 1.5em;
    }
    .page-index-game-features__hero-section {
        height: 400px;
    }
}