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

/* Variables for consistent styling */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-dark: #222222;
    --text-light: #FFFFFF;
    --bg-light: #f8f8f8;
    --bg-dark: #333333;
    --border-color: #e0e0e0;
}

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

.page-index-platform-features .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.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;
    background-color: var(--bg-dark); /* Fallback background */
    color: var(--text-light);
}

.page-index-platform-features .hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-index-platform-features .hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-index-platform-features .hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index-platform-features .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-index-platform-features .hero-content h1 {
    font-size: 3.2em;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index-platform-features .hero-content p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-light);
}

.page-index-platform-features .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index-platform-features .cta-button:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-index-platform-features section {
    padding: 80px 0;
    text-align: center;
}

.page-index-platform-features section:nth-of-type(even) {
    background-color: var(--bg-light);
}

.page-index-platform-features section:nth-of-type(odd) {
    background-color: #ffffff;
}

.page-index-platform-features h2 {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-index-platform-features h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.page-index-platform-features h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-index-platform-features p {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
    color: #444444;
}

.page-index-platform-features .button-link,
.page-index-platform-features .cta-button-small {
    display: inline-block;
    padding: 10px 25px;
    background: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.page-index-platform-features .button-link:hover,
.page-index-platform-features .cta-button-small:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Section Intro */
.page-index-platform-features .section-intro p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Grid (Games, Security, Experience) */
.page-index-platform-features .feature-grid,
.page-index-platform-features .promo-grid,
.page-index-platform-features .security-grid,
.page-index-platform-features .experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.page-index-platform-features .feature-item,
.page-index-platform-features .promo-item,
.page-index-platform-features .security-item,
.page-index-platform-features .experience-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-index-platform-features .feature-item:hover,
.page-index-platform-features .promo-item:hover,
.page-index-platform-features .security-item:hover,
.page-index-platform-features .experience-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index-platform-features .feature-item img,
.page-index-platform-features .promo-item img,
.page-index-platform-features .security-item img,
.page-index-platform-features .experience-item img {
    width: 100%;
    height: 200px; /* Enforce minimum height for content images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-index-platform-features .feature-item h3,
.page-index-platform-features .promo-item h3,
.page-index-platform-features .security-item h3,
.page-index-platform-features .experience-item h3 {
    font-size: 1.5em;
    margin-top: 0;
    color: var(--secondary-color);
}

.page-index-platform-features .feature-item p,
.page-index-platform-features .promo-item p,
.page-index-platform-features .security-item p,
.page-index-platform-features .experience-item p {
    font-size: 1em;
    color: #555555;
    flex-grow: 1; /* Allow paragraphs to take up available space */
}

/* CTA Bottom */
.page-index-platform-features .section-cta-bottom {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 100px 20px;
}

.page-index-platform-features .section-cta-bottom h2 {
    color: var(--primary-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-index-platform-features .section-cta-bottom p {
    color: var(--text-light);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.page-index-platform-features .section-cta-bottom .cta-button {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.page-index-platform-features .section-cta-bottom .cta-button:hover {
    background: var(--text-light);
    color: var(--secondary-color);
}


/* FAQ Section */
.page-index-platform-features .section-faq {
    background-color: var(--bg-light);
    text-align: center;
}

.page-index-platform-features .faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
    text-align: left;
}

.page-index-platform-features .faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #ffffff;
    overflow: hidden;
}

.page-index-platform-features .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-index-platform-features .faq-question:hover {
    background: #f5f5f5;
}

.page-index-platform-features .faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--text-dark);
}

.page-index-platform-features .faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    line-height: 1;
}

.page-index-platform-features .faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--secondary-color);
}

.page-index-platform-features .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    color: #555555;
    background-color: #fcfcfc;
}

.page-index-platform-features .faq-item.active .faq-answer {
    max-height: 500px; /* Adjust as needed to fit content */
    padding: 15px 25px 25px 25px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index-platform-features .hero-content h1 {
        font-size: 2.8em;
    }
    .page-index-platform-features h2 {
        font-size: 2em;
    }
    .page-index-platform-features h3 {
        font-size: 1.6em;
    }
    .page-index-platform-features section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .page-index-platform-features .hero-section {
        padding: 40px 15px;
    }
    .page-index-platform-features .hero-content h1 {
        font-size: 2.2em;
    }
    .page-index-platform-features .hero-content p {
        font-size: 1em;
    }
    .page-index-platform-features .cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-index-platform-features h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-index-platform-features h3 {
        font-size: 1.4em;
    }
    .page-index-platform-features p {
        font-size: 0.95em;
    }
    .page-index-platform-features .feature-grid,
    .page-index-platform-features .promo-grid,
    .page-index-platform-features .security-grid,
    .page-index-platform-features .experience-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    .page-index-platform-features .feature-item,
    .page-index-platform-features .promo-item,
    .page-index-platform-features .security-item,
    .page-index-platform-features .experience-item {
        padding: 20px;
    }
    .page-index-platform-features .feature-item img,
    .page-index-platform-features .promo-item img,
    .page-index-platform-features .security-item img,
    .page-index-platform-features .experience-item img {
        height: 180px;
    }
    .page-index-platform-features .section-cta-bottom {
        padding: 60px 15px;
    }
    .page-index-platform-features .faq-question {
        padding: 15px 20px;
    }
    .page-index-platform-features .faq-question h3 {
        font-size: 1.1em;
    }
    .page-index-platform-features .faq-answer {
        padding: 0 20px;
    }
    .page-index-platform-features .faq-item.active .faq-answer {
        padding: 15px 20px 20px 20px;
    }
}

@media (max-width: 480px) {
    .page-index-platform-features .hero-content h1 {
        font-size: 1.8em;
    }
    .page-index-platform-features h2 {
        font-size: 1.5em;
    }
    .page-index-platform-features h3 {
        font-size: 1.2em;
    }
    .page-index-platform-features .container {
        padding: 0 15px;
    }
    .page-index-platform-features .cta-button {
        font-size: 0.9em;
        padding: 10px 25px;
    }
    .page-index-platform-features .button-link,
    .page-index-platform-features .cta-button-small {
        font-size: 0.9em;
        padding: 8px 20px;
    }
}