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

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --register-btn-bg: #C30808;
    --login-btn-bg: #C30808;
    --register-login-font: #FFFF00;
    --bg-white: #FFFFFF;
    --border-color: #e0e0e0;
}

.page-index-platform-features {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default for light background */
    background-color: var(--bg-white); /* Assuming body background is light or white */
}

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

/* Hero Section */
.page-index-platform-features__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 80px 0; /* Adjusted for header offset if not applied to body */
    background-color: var(--primary-color);
    color: var(--text-light);
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-index-platform-features__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-index-platform-features__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: brightness(0.8); /* Allow slight dimming for text readability */
}

.page-index-platform-features__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.page-index-platform-features__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-index-platform-features__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
    color: var(--text-light);
}

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

.page-index-platform-features__btn-primary,
.page-index-platform-features__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;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal;
    word-wrap: break-word;
}

.page-index-platform-features__btn-primary {
    background-color: var(--register-btn-bg);
    color: var(--register-login-font);
    border: 2px solid var(--register-btn-bg);
}

.page-index-platform-features__btn-primary:hover {
    background-color: darken(var(--register-btn-bg), 10%);
    border-color: darken(var(--register-btn-bg), 10%);
}

.page-index-platform-features__btn-secondary {
    background-color: transparent;
    color: var(--register-login-font);
    border: 2px solid var(--register-login-font);
}

.page-index-platform-features__btn-secondary:hover {
    background-color: var(--register-login-font);
    color: var(--login-btn-bg);
}

/* Section Titles and Descriptions */
.page-index-platform-features__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    margin-top: 60px;
}

.page-index-platform-features__section-description {
    font-size: 1.1em;
    color: var(--text-dark);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-index-platform-features__dark-section .page-index-platform-features__section-title,
.page-index-platform-features__dark-section .page-index-platform-features__section-description {
    color: var(--text-light);
}

.page-index-platform-features__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-dark);
}

.page-index-platform-features__dark-section .page-index-platform-features__text-block {
    color: var(--text-light);
}

/* About Section */
.page-index-platform-features__about-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Features Section */
.page-index-platform-features__features-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

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

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

.page-index-platform-features__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-index-platform-features__feature-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-index-platform-features__feature-text {
    font-size: 1em;
    color: var(--text-dark);
}

/* Video Section */
.page-index-platform-features__video-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-index-platform-features__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px; /* Max width for video */
    margin: 40px auto 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.page-index-platform-features__video-link-wrapper {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-index-platform-features__video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Game Types Section */
.page-index-platform-features__game-types-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

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

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

.page-index-platform-features__game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-index-platform-features__game-title {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.page-index-platform-features__game-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-index-platform-features__game-title a:hover {
    text-decoration: underline;
}

.page-index-platform-features__game-text {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.page-index-platform-features__btn-text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-index-platform-features__btn-text-link:hover {
    color: darken(var(--primary-color), 10%);
    text-decoration: underline;
}

/* Commitment Section */
.page-index-platform-features__commitment-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* FAQ Section */
.page-index-platform-features__faq-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.page-index-platform-features__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-index-platform-features__faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-index-platform-features__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transition: background-color 0.3s ease;
}

.page-index-platform-features__faq-question:hover {
    background-color: #f9f9f9;
}

.page-index-platform-features__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

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

.page-index-platform-features__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-dark);
}

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

.page-index-platform-features__faq-answer p {
    margin: 0;
    font-size: 1em;
}

/* CTA Section */
.page-index-platform-features__cta-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    text-align: center;
    color: var(--text-light);
}

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

.page-index-platform-features__btn-register {
    background-color: var(--register-btn-bg);
    color: var(--register-login-font);
    border: 2px solid var(--register-btn-bg);
}

.page-index-platform-features__btn-register:hover {
    background-color: darken(var(--register-btn-bg), 10%);
    border-color: darken(var(--register-btn-bg), 10%);
}

.page-index-platform-features__btn-login {
    background-color: transparent;
    color: var(--register-login-font);
    border: 2px solid var(--register-login-font);
}

.page-index-platform-features__btn-login:hover {
    background-color: var(--register-login-font);
    color: var(--login-btn-bg);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-index-platform-features__hero-title {
        font-size: 3em;
    }
    .page-index-platform-features__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-index-platform-features {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-index-platform-features__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-index-platform-features__hero-content {
        padding: 15px;
    }
    .page-index-platform-features__hero-title {
        font-size: 2.5em;
    }
    .page-index-platform-features__hero-description {
        font-size: 1em;
    }
    .page-index-platform-features__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-index-platform-features__btn-primary,
    .page-index-platform-features__btn-secondary,
    .page-index-platform-features__cta-button,
    .page-index-platform-features__btn-register,
    .page-index-platform-features__btn-login,
    .page-index-platform-features a[class*="button"],
    .page-index-platform-features a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0 auto;
    }
    .page-index-platform-features__cta-buttons,
    .page-index-platform-features__button-group,
    .page-index-platform-features__btn-container {
        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-platform-features__section-title {
        font-size: 1.8em;
        margin-top: 40px;
    }
    .page-index-platform-features__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-index-platform-features__feature-grid,
    .page-index-platform-features__game-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-index-platform-features__feature-card,
    .page-index-platform-features__game-card {
        padding: 25px;
    }
    .page-index-platform-features__feature-icon {
        max-width: 200px;
    }
    .page-index-platform-features__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-index-platform-features__video-wrapper,
    .page-index-platform-features__video-link-wrapper,
    .page-index-platform-features__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-index-platform-features__video-section .page-index-platform-features__container,
    .page-index-platform-features__about-section .page-index-platform-features__container,
    .page-index-platform-features__features-section .page-index-platform-features__container,
    .page-index-platform-features__game-types-section .page-index-platform-features__container,
    .page-index-platform-features__commitment-section .page-index-platform-features__container,
    .page-index-platform-features__faq-section .page-index-platform-features__container,
    .page-index-platform-features__cta-section .page-index-platform-features__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-index-platform-features img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}

@media (max-width: 480px) {
    .page-index-platform-features__hero-title {
        font-size: 2em;
    }
    .page-index-platform-features__section-title {
        font-size: 1.5em;
    }
    .page-index-platform-features__btn-primary,
    .page-index-platform-features__btn-secondary {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    .page-index-platform-features__hero-cta-buttons {
        flex-direction: column;
    }
    .page-index-platform-features__feature-icon {
        max-width: 150px;
    }
}