/* style/games.css */
.page-games {
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f8f8;
}

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

.page-games__hero {
    background: linear-gradient(135deg, #0A2463 0%, #1a3a7a 100%); /* Dark blue gradient */
    color: #ffffff;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.page-games__hero-content {
    max-width: 600px;
    z-index: 1;
    text-align: left;
    padding-left: 20px;
}

.page-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #E3B23C; /* Gold accent */
    line-height: 1.2;
}

.page-games__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.page-games__hero-btn {
    display: inline-block;
    background-color: #E3B23C; /* Gold button */
    color: #0A2463;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1.1em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-games__hero-btn:hover {
    background-color: #f5c765;
    transform: translateY(-2px);
}

.page-games__hero-image-wrapper {
    flex-shrink: 0;
    width: 50%;
    max-width: 700px;
    text-align: right;
    z-index: 0;
}

.page-games__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-games__about,
.page-games__categories,
.page-games__advantages,
.page-games__faq {
    padding: 60px 0;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
}

.page-games__about {
    background-color: #f0f4f8;
}

.page-games__section-title {
    font-size: 2.8em;
    color: #0A2463;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-games__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #E3B23C;
    border-radius: 2px;
}

.page-games__text {
    font-size: 1.1em;
    color: #555;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 20px auto;
}

.page-games__btn {
    display: inline-block;
    background-color: #0A2463;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.page-games__btn:hover {
    background-color: #1a3a7a;
}

.page-games__about .page-games__btn {
    display: block;
    width: fit-content;
    margin: 30px auto 0 auto;
}

.page-games__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-games__category-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-games__category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.page-games__card-title {
    font-size: 1.5em;
    color: #0A2463;
    margin: 20px 15px 10px 15px;
}

.page-games__card-title a {
    color: #0A2463;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-games__card-title a:hover {
    color: #E3B23C;
}

.page-games__card-description {
    font-size: 0.95em;
    color: #666;
    padding: 0 15px;
    flex-grow: 1;
}

.page-games__category-card .page-games__btn {
    background-color: #E3B23C;
    color: #0A2463;
    margin: 20px 15px;
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
}

.page-games__category-card .page-games__btn:hover {
    background-color: #f5c765;
}

.page-games__advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-games__advantage-item {
    text-align: center;
    background-color: #f0f4f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.page-games__advantage-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.page-games__advantage-title {
    font-size: 1.6em;
    color: #0A2463;
    margin-bottom: 15px;
}

.page-games__advantage-description {
    color: #666;
    font-size: 0.95em;
}

.page-games__cta-bottom {
    text-align: center;
    margin-top: 60px;
    background-color: #0A2463;
    padding: 40px;
    border-radius: 10px;
    color: #ffffff;
}

.page-games__cta-text {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: #E3B23C;
    font-weight: bold;
}

.page-games__cta-bottom .page-games__btn {
    margin: 0 10px;
    padding: 15px 35px;
    font-size: 1.1em;
}

.page-games__btn--primary {
    background-color: #E3B23C;
    color: #0A2463;
}

.page-games__btn--primary:hover {
    background-color: #f5c765;
}

.page-games__btn--secondary {
    background-color: transparent;
    border: 2px solid #E3B23C;
    color: #E3B23C;
}

.page-games__btn--secondary:hover {
    background-color: #E3B23C;
    color: #0A2463;
}

.page-games__faq-item {
    background-color: #f0f4f8;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-games__faq-question {
    font-size: 1.3em;
    color: #0A2463;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-games__faq-question::after {
    content: '+';
    font-size: 1.2em;
    color: #E3B23C;
    transition: transform 0.3s ease;
}

.page-games__faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-games__faq-answer {
    font-size: 1em;
    color: #666;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding-top: 0;
}

.page-games__faq-answer.active {
    max-height: 200px; /* Adjust as needed */
    padding-top: 15px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-games__hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 0;
    }

    .page-games__hero-content {
        padding-left: 0;
        max-width: 100%;
    }

    .page-games__hero-title {
        font-size: 2.8em;
    }

    .page-games__hero-description {
        font-size: 1.1em;
    }

    .page-games__hero-image-wrapper {
        width: 80%;
        margin-top: 40px;
    }

    .page-games__section-title {
        font-size: 2.2em;
    }

    .page-games__category-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-games__hero-title {
        font-size: 2.2em;
    }

    .page-games__hero-description {
        font-size: 1em;
    }

    .page-games__hero-btn {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-games__section-title {
        font-size: 1.8em;
    }

    .page-games__text {
        font-size: 0.95em;
    }

    .page-games__cta-bottom .page-games__btn {
        margin: 10px 0;
        display: block;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-games__hero {
        padding: 40px 0;
    }

    .page-games__hero-title {
        font-size: 1.8em;
    }

    .page-games__hero-description {
        font-size: 0.9em;
    }

    .page-games__hero-image-wrapper {
        width: 95%;
    }

    .page-games__category-grid {
        grid-template-columns: 1fr;
    }

    .page-games__cta-text {
        font-size: 1.2em;
    }

    .page-games__faq-question {
        font-size: 1.1em;
    }
}