/* style/electronic-games.css */
:root {
    --primary-color: #1A237E; /* Deep Blue */
    --secondary-color: #FFD700; /* Gold */
    --text-dark: #212121;
    --text-light: #FFFFFF;
    --background-light: #F5F5F5;
    --background-dark: #121212;
    --accent-color: #FFC107; /* Lighter Gold for subtle accents */
    --border-color: #E0E0E0;
}

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

.page-electronic-games-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-electronic-games-section {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-electronic-games-section:nth-of-type(odd) {
    background-color: #FFFFFF;
}

.page-electronic-games-section:nth-of-type(even) {
    background-color: var(--background-light);
}

.page-electronic-games-section-title {
    font-size: 38px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.page-electronic-games-section-intro {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-dark);
}

/* Hero Section */
.page-electronic-games-hero {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0D1258 100%); /* Darker gradient for hero background */
    color: var(--text-light);
}

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

.page-electronic-games-hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

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

.page-electronic-games-hero-title {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-electronic-games-hero-description {
    font-size: 20px;
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: #E0E0E0;
}

.page-electronic-games-cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 22px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-electronic-games-cta-button:hover {
    background: #FFEB3B; /* Lighter gold */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Game Types Grid */
.page-electronic-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-electronic-games-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}

.page-electronic-games-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-electronic-games-card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.page-electronic-games-card-title {
    font-size: 24px;
    color: var(--primary-color);
    margin: 20px 20px 10px 20px;
    font-weight: bold;
}

.page-electronic-games-card-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-electronic-games-card-title a:hover {
    color: var(--secondary-color);
}

.page-electronic-games-card-description {
    font-size: 16px;
    color: var(--text-dark);
    padding: 0 20px;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-electronic-games-list {
    list-style: none;
    padding: 0 20px;
    margin-bottom: 20px;
}

.page-electronic-games-list li {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.page-electronic-games-list-icon {
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 10px;
    font-size: 18px;
}

.page-electronic-games-card-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 0 20px;
    text-align: center;
    border: none;
    cursor: pointer;
}

.page-electronic-games-card-button:hover {
    background: #FFEB3B;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Why Choose Features */
.page-electronic-games-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-electronic-games-feature-item {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-electronic-games-feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.page-electronic-games-feature-title {
    font-size: 26px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-electronic-games-feature-description {
    font-size: 16px;
    color: var(--text-dark);
}

/* How to Play Steps */
.page-electronic-games-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    counter-reset: step-counter;
}

.page-electronic-games-step-item {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-electronic-games-step-item::before {
    counter-increment: step-counter;
    content: "0" counter(step-counter);
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-electronic-games-step-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 25px;
    margin-top: 20px;
}

.page-electronic-games-step-title {
    font-size: 26px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-electronic-games-step-description {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-electronic-games-step-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-electronic-games-step-button:hover {
    background: #283593; /* Slightly lighter primary */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Safety and Responsibility */
.page-electronic-games-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-electronic-games-info-item {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.page-electronic-games-info-title {
    font-size: 26px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-electronic-games-info-description {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-electronic-games-info-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    align-self: flex-start;
    border: none;
    cursor: pointer;
}

.page-electronic-games-info-button:hover {
    background: #FFEB3B;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-electronic-games-faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.faq-item.active .faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.faq-question:hover {
    background: #F0F0F0;
}

.faq-question h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin: 0;
    font-weight: bold;
}

.faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
    line-height: 1;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height for content */
    padding: 20px 25px;
}

.faq-answer p {
    font-size: 16px;
    color: var(--text-dark);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-electronic-games-hero-title {
        font-size: 44px;
    }
    .page-electronic-games-hero-description {
        font-size: 18px;
    }
    .page-electronic-games-cta-button {
        padding: 15px 35px;
        font-size: 20px;
    }
    .page-electronic-games-section-title {
        font-size: 32px;
    }
    .page-electronic-games-section-intro {
        font-size: 16px;
    }
    .page-electronic-games-card-title {
        font-size: 22px;
    }
    .page-electronic-games-feature-title, .page-electronic-games-step-title, .page-electronic-games-info-title {
        font-size: 24px;
    }
    .faq-question h3 {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-electronic-games-hero {
        padding: 60px 15px;
    }
    .page-electronic-games-hero-image {
        margin-bottom: 30px;
    }
    .page-electronic-games-hero-title {
        font-size: 36px;
    }
    .page-electronic-games-hero-description {
        font-size: 16px;
    }
    .page-electronic-games-cta-button {
        padding: 12px 30px;
        font-size: 18px;
    }
    .page-electronic-games-section {
        padding: 40px 0;
    }
    .page-electronic-games-section-title {
        font-size: 28px;
    }
    .page-electronic-games-section-intro {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .page-electronic-games-grid, .page-electronic-games-features, .page-electronic-games-steps-grid, .page-electronic-games-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-electronic-games-card-image {
        height: 200px;
    }
    .page-electronic-games-card-title {
        font-size: 20px;
    }
    .page-electronic-games-card-description, .page-electronic-games-list li, .page-electronic-games-feature-description, .page-electronic-games-step-description, .page-electronic-games-info-description, .faq-answer p {
        font-size: 14px;
    }
    .page-electronic-games-card-button, .page-electronic-games-step-button, .page-electronic-games-info-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    .page-electronic-games-step-icon {
        width: 80px;
        height: 80px;
    }
    .faq-question {
        padding: 15px 20px;
    }
    .faq-question h3 {
        font-size: 16px;
    }
    .faq-toggle {
        font-size: 24px;
    }
    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-electronic-games-hero {
        padding: 40px 10px;
    }
    .page-electronic-games-hero-title {
        font-size: 30px;
    }
    .page-electronic-games-cta-button {
        font-size: 16px;
        padding: 10px 25px;
    }
    .page-electronic-games-section-title {
        font-size: 24px;
    }
    .page-electronic-games-section-intro {
        font-size: 14px;
        margin-bottom: 25px;
    }
    .page-electronic-games-card-image {
        height: 180px;
    }
    .page-electronic-games-card-title {
        font-size: 18px;
    }
    .page-electronic-games-feature-title, .page-electronic-games-step-title, .page-electronic-games-info-title {
        font-size: 20px;
    }
    .page-electronic-games-step-item::before {
        width: 50px;
        height: 50px;
        font-size: 24px;
        top: -10px;
    }
    .page-electronic-games-step-icon {
        width: 70px;
        height: 70px;
        margin-top: 15px;
    }
    .faq-question h3 {
        font-size: 15px;
    }
    .faq-toggle {
        font-size: 20px;
    }
}