/* style/games.css */
.page-games {
    font-family: 'Arial', sans-serif;
    color: #f0f0f0; /* Default text color for dark background */
    line-height: 1.6;
    background-color: #0A192F; /* Ensure main background matches primary color */
}

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

.page-games-hero-section {
    background: linear-gradient(135deg, #0A192F, #1a345e); /* Dark blue gradient */
    color: #FFD700; /* Gold for hero text */
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-games-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('[GALLERY:bg:abstract,geometric,pattern]') no-repeat center center/cover;
    opacity: 0.1;
    z-index: 0;
}

.page-games-hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for title */
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-games-hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0; /* Light text for description */
    position: relative;
    z-index: 1;
}

.page-games-btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.page-games-btn-primary {
    background-color: #FFD700; /* Gold */
    color: #0A192F; /* Dark blue text */
    border: 2px solid #FFD700;
}

.page-games-btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

.page-games-btn-secondary {
    background-color: #0A192F; /* Dark blue */
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-games-btn-secondary:hover {
    background-color: #1a345e;
    transform: translateY(-3px);
}

.page-games-btn-tertiary {
    background-color: #333; /* Dark grey */
    color: #FFD700; /* Gold text */
    border: 2px solid #555;
}

.page-games-btn-tertiary:hover {
    background-color: #555;
    transform: translateY(-3px);
}

.page-games-btn-detail {
    background-color: #1a345e;
    color: #FFD700;
    border: 1px solid #FFD700;
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-games-btn-detail:hover {
    background-color: #2a4c7e;
}

.page-games-btn-hero {
    background-color: #FFD700;
    color: #0A192F;
    border: 2px solid #FFD700;
    padding: 18px 40px;
    font-size: 1.3em;
    margin-top: 30px;
}

.page-games-btn-hero:hover {
    background-color: #e6c200;
    transform: translateY(-5px);
}

.page-games-about-sv88, .page-games-game-categories, .page-games-get-started-section, .page-games-detail-pages, .page-games-final-cta {
    padding: 60px 0;
    background-color: #0A192F;
    color: #f0f0f0;
}

.page-games-section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold */
    text-align: center;
    margin-bottom: 50px;
    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: #FFD700;
    border-radius: 2px;
}

.page-games-grid {
    display: grid;
    gap: 30px;
}

.page-games-reasons-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    text-align: center;
}

.page-games-reason-item {
    background-color: #1a345e; /* Slightly lighter dark blue */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-games-reason-item:hover {
    transform: translateY(-10px);
}

.page-games-reason-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(1.2);
}

.page-games-reason-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-games-reason-text {
    font-size: 1em;
    color: #cccccc;
}

.page-games-category-item {
    display: flex;
    align-items: center;
    background-color: #1a345e;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    overflow: hidden;
}

.page-games-category-item.page-games-reverse {
    flex-direction: row-reverse;
}

.page-games-category-image {
    width: 50%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.page-games-category-content {
    width: 50%;
    padding: 40px;
}

.page-games-category-title {
    font-size: 2em;
    color: #FFD700;
    margin-bottom: 20px;
}

.page-games-category-text {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

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

.page-games-game-list li {
    margin-bottom: 8px;
    color: #cccccc;
    position: relative;
    padding-left: 20px;
}

.page-games-game-list li::before {
    content: '•';
    color: #FFD700;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-games-start-steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    text-align: center;
}

.page-games-step-item {
    background-color: #1a345e;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-games-step-item:hover {
    transform: translateY(-10px);
}

.page-games-step-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: brightness(1.2);
}

.page-games-step-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-games-step-text {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 20px;
}

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

.page-games-detail-card {
    background-color: #1a345e;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-games-detail-card:hover {
    transform: translateY(-10px);
}

.page-games-detail-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-games-detail-title a {
    color: #FFD700;
    text-decoration: none;
}

.page-games-detail-title a:hover {
    text-decoration: underline;
}

.page-games-detail-description {
    font-size: 0.95em;
    color: #cccccc;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-games-final-cta {
    text-align: center;
    padding: 80px 0;
    background-color: #0A192F;
}

.page-games-final-cta-text {
    font-size: 1.3em;
    color: #f0f0f0;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* JS Animation styles */
.page-games-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.page-games-fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-games-hero-title {
        font-size: 2.8em;
    }
    .page-games-section-title {
        font-size: 2em;
    }
    .page-games-category-item {
        flex-direction: column;
    }
    .page-games-category-item.page-games-reverse {
        flex-direction: column;
    }
    .page-games-category-image,
    .page-games-category-content {
        width: 100%;
        height: auto;
    }
    .page-games-category-image {
        height: 300px;
    }
    .page-games-category-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-games-hero-title {
        font-size: 2.2em;
    }
    .page-games-hero-description {
        font-size: 1em;
    }
    .page-games-section-title {
        font-size: 1.8em;
    }
    .page-games-btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-games-hero-section {
        padding: 60px 0;
    }
    .page-games-about-sv88, .page-games-game-categories, .page-games-get-started-section, .page-games-detail-pages, .page-games-final-cta {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .page-games-hero-title {
        font-size: 1.8em;
    }
    .page-games-hero-description {
        font-size: 0.9em;
    }
    .page-games-section-title {
        font-size: 1.5em;
    }
    .page-games-category-content {
        padding: 20px;
    }
    .page-games-category-title {
        font-size: 1.5em;
    }
    .page-games-category-image {
        height: 200px;
    }
    .page-games-btn-hero {
        padding: 15px 30px;
        font-size: 1.1em;
    }
}