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

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

.page-index-platform-features {
    font-family: Arial, sans-serif;
    color: var(--888b-text-main); /* Default text color for dark body background */
    background-color: var(--888b-background);
}

.page-index-platform-features__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--888b-background);
    overflow: hidden;
}

.page-index-platform-features__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.6);
}

.page-index-platform-features__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    color: var(--888b-text-main);
}

.page-index-platform-features__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--888b-gold);
}

.page-index-platform-features__description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--888b-text-secondary);
}

.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: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-index-platform-features__btn-primary {
    background: var(--888b-btn-gradient);
    color: var(--888b-text-main);
    border: 2px solid transparent;
}

.page-index-platform-features__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 100, 0.3);
}

.page-index-platform-features__btn-secondary {
    background: transparent;
    color: var(--888b-text-main);
    border: 2px solid var(--888b-primary-color);
}

.page-index-platform-features__btn-secondary:hover {
    background: var(--888b-primary-color);
    color: var(--888b-text-main);
    transform: translateY(-3px);
}

.page-index-platform-features__section {
    padding: 60px 20px;
    text-align: center;
}

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

.page-index-platform-features__light-bg {
    background-color: #0d1a13; /* Slightly lighter dark for contrast */
    color: var(--888b-text-main);
}

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

.page-index-platform-features__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--888b-gold);
}

.page-index-platform-features__text-block {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--888b-text-secondary);
}

.page-index-platform-features__features-grid,
.page-index-platform-features__game-categories-grid,
.page-index-platform-features__promo-grid,
.page-index-platform-features__responsible-gambling-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-index-platform-features__feature-card,
.page-index-platform-features__game-card,
.page-index-platform-features__promo-card,
.page-index-platform-features__responsible-card {
    background-color: var(--888b-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: var(--888b-text-main);
    border: 1px solid var(--888b-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-index-platform-features__feature-card:hover,
.page-index-platform-features__game-card:hover,
.page-index-platform-features__promo-card:hover,
.page-index-platform-features__responsible-card:hover {
    transform: translateY(-8px);
}

.page-index-platform-features__feature-image,
.page-index-platform-features__game-image,
.page-index-platform-features__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 100%;
    display: block;
}

.page-index-platform-features__card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--888b-gold);
}

.page-index-platform-features__card-title a {
    color: var(--888b-gold);
    text-decoration: none;
}

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

.page-index-platform-features__card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--888b-text-secondary);
}

.page-index-platform-features__button-group {
    margin-top: 40px;
}

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

.page-index-platform-features__faq-item {
    background-color: var(--888b-card-bg);
    border: 1px solid var(--888b-divider);
    border-radius: 8px;
    margin-bottom: 15px;
    color: var(--888b-text-main);
    overflow: hidden;
}

.page-index-platform-features__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Remove default marker */
    color: var(--888b-gold);
}

.page-index-platform-features__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit */
}

.page-index-platform-features__faq-qtext {
    flex-grow: 1;
}

.page-index-platform-features__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.page-index-platform-features__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--888b-text-secondary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-index-platform-features__hero-content {
        padding: 15px;
    }

    .page-index-platform-features__main-title {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }

    .page-index-platform-features__description {
        font-size: 1rem;
    }

    .page-index-platform-features__section-title {
        font-size: clamp(1.6rem, 4vw, 2.4rem);
    }

    .page-index-platform-features__features-grid,
    .page-index-platform-features__game-categories-grid,
    .page-index-platform-features__promo-grid,
    .page-index-platform-features__responsible-gambling-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .page-index-platform-features__feature-card,
    .page-index-platform-features__game-card,
    .page-index-platform-features__promo-card,
    .page-index-platform-features__responsible-card {
        padding: 25px;
    }

    .page-index-platform-features__card-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .page-index-platform-features__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-index-platform-features__hero-content {
        max-width: 100%;
    }

    .page-index-platform-features__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .page-index-platform-features__description {
        font-size: 0.95rem;
    }

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

    .page-index-platform-features__btn-primary,
    .page-index-platform-features__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-index-platform-features__section {
        padding: 40px 15px;
    }

    .page-index-platform-features__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-index-platform-features__text-block {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-index-platform-features__features-grid,
    .page-index-platform-features__game-categories-grid,
    .page-index-platform-features__promo-grid,
    .page-index-platform-features__responsible-gambling-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }

    .page-index-platform-features__feature-card,
    .page-index-platform-features__game-card,
    .page-index-platform-features__promo-card,
    .page-index-platform-features__responsible-card {
        padding: 20px;
    }

    .page-index-platform-features__feature-image,
    .page-index-platform-features__game-image,
    .page-index-platform-features__promo-image {
        height: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        min-height: 200px; /* Ensure minimum size */
    }

    .page-index-platform-features img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-index-platform-features__faq-item summary {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-index-platform-features__faq-answer {
        font-size: 0.9rem;
        padding: 0 20px 15px;
    }

    .page-index-platform-features__button-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
}