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

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --bg-dark: #08160F;
    --card-bg: #11271B;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-index-platform-features {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

.page-index-platform-features__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden;
}

.page-index-platform-features__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    min-height: 400px; /* Ensure hero image has a minimum height */
}

.page-index-platform-features__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for readability */
    border-radius: 10px;
    margin-top: 100px; /* Push content down from top */
}

.page-index-platform-features__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index-platform-features__hero-description {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.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: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-index-platform-features__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-index-platform-features__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-index-platform-features__btn-secondary {
    background: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index-platform-features__btn-secondary:hover {
    background: rgba(var(--gold-color), 0.1);
    color: var(--text-main);
    border-color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-index-platform-features__section {
    padding: 80px 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
}

.page-index-platform-features__section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

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

.page-index-platform-features__feature-card,
.page-index-platform-features__game-card,
.page-index-platform-features__promotion-card,
.page-index-platform-features__experience-item,
.page-index-platform-features__security-item,
.page-index-platform-features__support-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-index-platform-features__feature-card:hover,
.page-index-platform-features__game-card:hover,
.page-index-platform-features__promotion-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-index-platform-features__feature-icon,
.page-index-platform-features__game-image,
.page-index-platform-features__promotion-image,
.page-index-platform-features__mobile-app-image,
.page-index-platform-features__security-image,
.page-index-platform-features__support-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    object-fit: cover;
}

.page-index-platform-features__feature-icon {
    max-width: 150px;
    margin-bottom: 25px;
}

.page-index-platform-features__feature-title,
.page-index-platform-features__game-title,
.page-index-platform-features__promotion-title,
.page-index-platform-features__experience-title,
.page-index-platform-features__security-title,
.page-index-platform-features__support-title {
    font-size: 1.6rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-index-platform-features__feature-text,
.page-index-platform-features__game-text,
.page-index-platform-features__promotion-text,
.page-index-platform-features__experience-text,
.page-index-platform-features__security-text,
.page-index-platform-features__support-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-index-platform-features__game-card .page-index-platform-features__btn-primary,
.page-index-platform-features__promotion-card .page-index-platform-features__btn-primary,
.page-index-platform-features__promotion-card .page-index-platform-features__btn-secondary {
    margin-top: auto; /* Push button to bottom */
    width: fit-content;
    align-self: center;
}

.page-index-platform-features__cta-center {
    text-align: center;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-index-platform-features__mobile-app-image,
.page-index-platform-features__security-image,
.page-index-platform-features__support-image {
    max-width: 90%;
    margin-top: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-index-platform-features__dark-section {
    background-color: var(--deep-green);
    color: var(--text-main);
}

.page-index-platform-features__dark-section .page-index-platform-features__section-title {
    color: var(--gold-color);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-index-platform-features__hero-content {
        padding: 40px 20px;
        margin-top: 50px;
    }
    .page-index-platform-features__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-index-platform-features__hero-description {
        font-size: 1.1rem;
    }
    .page-index-platform-features__section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .page-index-platform-features__hero-section {
        padding-bottom: 40px;
    }
    .page-index-platform-features__hero-content {
        padding: 30px 15px;
        margin-top: 30px;
        max-width: 100%;
    }
    .page-index-platform-features__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-index-platform-features__hero-description {
        font-size: 1rem;
    }
    .page-index-platform-features__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .page-index-platform-features__btn-primary,
    .page-index-platform-features__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1rem;
    }
    .page-index-platform-features__section {
        padding: 40px 0;
    }
    .page-index-platform-features__section-title {
        font-size: clamp(1.5rem, 5.5vw, 2.2rem);
    }
    .page-index-platform-features__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    .page-index-platform-features__features-grid,
    .page-index-platform-features__game-cards-grid,
    .page-index-platform-features__promotion-grid,
    .page-index-platform-features__experience-grid,
    .page-index-platform-features__security-grid,
    .page-index-platform-features__support-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }
    .page-index-platform-features__container {
        padding: 0 15px !important;
        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;
    }
    .page-index-platform-features__card,
    .page-index-platform-features__section,
    .page-index-platform-features__box,
    .page-index-platform-features__cta-buttons,
    .page-index-platform-features__cta-center {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
    .page-index-platform-features__feature-card,
    .page-index-platform-features__game-card,
    .page-index-platform-features__promotion-card,
    .page-index-platform-features__experience-item,
    .page-index-platform-features__security-item,
    .page-index-platform-features__support-item {
        padding: 20px;
    }
    .page-index-platform-features__mobile-app-image,
    .page-index-platform-features__security-image,
    .page-index-platform-features__support-image {
        margin-top: 30px;
        max-width: 100%;
    }
    .page-index-platform-features__cta-center {
        flex-direction: column;
        gap: 15px;
    }
}