/* Games Page Specific Styles */

/* Games Hero Section */
.games-hero {
    padding: 140px 0 60px;
    text-align: center;
}

.games-hero h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
}

.games-hero h1  span {
  color: rgba(238, 23, 25, 1);
}


/* Featured Game Section */
.featured-game {
    padding: 60px 0;
    background: #e8ddd4;
}

.game-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.game-info h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: left;
}

.game-info p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.game-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* Game Features Section */
.game-features {
    padding: 60px 0;
    background: #b8a08c;
}

.game-features .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.game-features .red-dot {
    width: 20px;
    height: 20px;
    background: #e74c3c;
    border-radius: 50%;
    margin-bottom: 20px;
}

.game-features .feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.game-features .feature-card p {
    font-size: 14px;
    line-height: 1.5;
}

/* Games Grid Section */
.games-grid-section {
    padding: 80px 0;
    background: #d4c5b3;
}

.games-grid-section h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    font-weight: bold;
}

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

.game-card {
    background: #e8ddd4;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.game-card-image {
    height: 200px;
    overflow: hidden;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-card-image img {
    transform: scale(1.05);
}

.game-card-content {
    padding: 25px;
}

.game-card-content h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.game-card-content p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #666;
}

.game-rating {
    font-size: 18px;
    color: #ffd700;
}

/* Responsive Design for Games Page */
@media (max-width: 968px) {
    .game-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .game-info h2 {
        text-align: center;
    }
    
    .game-features .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .games-hero h1 {
        font-size: 36px;
    }
    
    .games-hero p {
        font-size: 16px;
    }
    
    .game-info h2 {
        font-size: 28px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .games-grid-section h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .games-hero {
        padding: 60px 0 40px;
    }
    
    .games-hero h1 {
        font-size: 28px;
    }
    
    .featured-game {
        padding: 40px 0;
    }
    
    .game-features {
        padding: 40px 0;
    }
    
    .games-grid-section {
        padding: 60px 0;
    }
    
    .game-card-content {
        padding: 20px;
    }
}

 .game-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: repeat(3, 1fr);
            gap: 10px;
            width: 100%;
            margin: 0 auto;
            aspect-ratio: 1;
        }

        .game-item {
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
      
            overflow: hidden;
            position: relative;
            cursor: pointer;
            transition: transform 0.2s ease;
        }

        .game-item img {
          height: 100%;
          width: 100%;
          object-fit: cover;
        }

        .game-item:hover {
            transform: scale(1.05);
        }

        /* Позиціонування конкретних елементів */
        .game-item:nth-child(1) {
            grid-column: 1;
            grid-row: 1;
          
        }

        .game-item:nth-child(2) {
            grid-column: 2;
            grid-row: 1;
           
        }

        .game-item:nth-child(3) {
            grid-column: 3;
            grid-row: 1 / 2;
           
        }

        .game-item:nth-child(4) {
            grid-column: 1 / 3;
            grid-row: 2 / 4;
           
        }

        .game-item:nth-child(5) {
            grid-column: 3;
            grid-row: 2 / 3;
          
        }

        .game-item:nth-child(6) {
            grid-column: 3;
            grid-row: 3 / 4;
          
        }

        .game-item:nth-child(7) {
            grid-column: 3;
            grid-row: 3;
          
        }

        .game-item:nth-child(8) {
            grid-column: 1 / 3;
            grid-row: 4;
          
        }

        .game-item:nth-child(9) {
            grid-column: 3;
            grid-row: 4;
          
        }

        /* Адаптивність для мобільних пристроїв */
        @media (max-width: 768px) {
            .game-grid {
                max-width: 100%;
                margin: 0;
                gap: 8px;
            }

         

            .game-item:hover {
                transform: none;
            }
        }

        @media (max-width: 480px) {
            .game-grid {
                gap: 6px;
            }

        
        }

