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

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

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

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

/* Hero Section */
.page-index-core-game-features__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* body handles top offset, this is for internal spacing */
    text-align: center;
    overflow: hidden;
}

.page-index-core-game-features__hero-image-wrapper {
    width: 100%;
    max-height: 70vh; /* Limit height to prevent excessive scroll */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.page-index-core-game-features__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px;
}

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

.page-index-core-game-features__hero-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: clamp(2.5rem, 5vw, 3.8rem); /* Use clamp for responsive H1 */
}

.page-index-core-game-features__hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-index-core-game-features__btn-primary,
.page-index-core-game-features__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    font-size: 1rem;
    box-sizing: border-box;
}

.page-index-core-game-features__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
}

.page-index-core-game-features__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-index-core-game-features__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-index-core-game-features__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

/* General Section Styling */
.page-index-core-game-features__introduction-section,
.page-index-core-game-features__features-grid,
.page-index-core-game-features__security-section,
.page-index-core-game-features__registration-guide,
.page-index-core-game-features__faq-section {
    padding: 60px 0;
}

.page-index-core-game-features__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-index-core-game-features__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--glow-color);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

.page-index-core-game-features__text-block {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.page-index-core-game-features__inline-link {
    color: var(--gold-color);
    text-decoration: none;
    font-weight: bold;
}

.page-index-core-game-features__inline-link:hover {
    text-decoration: underline;
    color: var(--glow-color);
}

.page-index-core-game-features__highlight {
    color: var(--gold-color);
    font-weight: bold;
}

/* Features Grid */
.page-index-core-game-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-index-core-game-features__feature-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.page-index-core-game-features__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

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

.page-index-core-game-features__card-title {
    font-size: 1.5rem;
    color: var(--text-main);
    padding: 20px 20px 10px 20px;
    margin: 0;
}

.page-index-core-game-features__card-description {
    font-size: 1rem;
    color: var(--text-secondary);
    padding: 0 20px 20px 20px;
    flex-grow: 1;
}

.page-index-core-game-features__card-button {
    margin: 0 20px 20px 20px;
    text-align: center;
    width: calc(100% - 40px);
}

/* Security Section */
.page-index-core-game-features__dark-section {
    background-color: var(--deep-green);
    color: var(--text-main);
}

.page-index-core-game-features__security-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-index-core-game-features__security-content .page-index-core-game-features__text-block {
    flex: 1;
    min-width: 300px;
    color: var(--text-main);
}

.page-index-core-game-features__security-image {
    flex: 1;
    min-width: 300px;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    min-height: 200px;
}

/* Registration Guide */
.page-index-core-game-features__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-index-core-game-features__step-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.page-index-core-game-features__step-title {
    font-size: 1.4rem;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-index-core-game-features__step-item p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.page-index-core-game-features__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* FAQ Section */
.page-index-core-game-features__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-index-core-game-features__faq-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    color: var(--text-main);
}

.page-index-core-game-features__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-main);
}

.page-index-core-game-features__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-index-core-game-features__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-index-core-game-features__faq-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
    color: var(--gold-color);
}

.page-index-core-game-features__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-index-core-game-features__hero-title {
        font-size: clamp(2rem, 4.5vw, 3.5rem);
    }

    .page-index-core-game-features__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }

    .page-index-core-game-features__security-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-index-core-game-features__container {
        padding: 0 15px;
    }

    .page-index-core-game-features__hero-section {
        padding: 10px 0 40px 0;
    }

    .page-index-core-game-features__hero-title {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
    }

    .page-index-core-game-features__hero-description {
        font-size: 1rem;
    }

    .page-index-core-game-features__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-index-core-game-features__btn-primary,
    .page-index-core-game-features__btn-secondary,
    .page-index-core-game-features a[class*="button"],
    .page-index-core-game-features a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-index-core-game-features__cta-buttons,
    .page-index-core-game-features__button-group,
    .page-index-core-game-features__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .page-index-core-game-features__introduction-section,
    .page-index-core-game-features__features-grid,
    .page-index-core-game-features__security-section,
    .page-index-core-game-features__registration-guide,
    .page-index-core-game-features__faq-section {
        padding: 40px 0;
    }

    .page-index-core-game-features__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 30px;
    }

    .page-index-core-game-features__grid {
        grid-template-columns: 1fr;
    }

    .page-index-core-game-features__card-image,
    .page-index-core-game-features__hero-image,
    .page-index-core-game-features__security-image,
    .page-index-core-game-features img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-height: 200px !important;
    }

    .page-index-core-game-features__security-image {
        order: -1; /* Image first on mobile */
    }

    .page-index-core-game-features__feature-card,
    .page-index-core-game-features__step-item,
    .page-index-core-game-features__faq-item,
    .page-index-core-game-features__section,
    .page-index-core-game-features__card,
    .page-index-core-game-features__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }

    .page-index-core-game-features__faq-item summary {
        font-size: 1rem;
    }
}